1 2010-03-14 Bruno Haible <bruno@clisp.org>
3 Fix bug introduced on 2009-12-31.
4 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5 gl_PREREQ_SYS_H_WINSOCK2 always.
6 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16 2010-03-14 Bruno Haible <bruno@clisp.org>
18 Fix values returned by sinl, cosl.
19 * lib/trigl.h: Add specification comments.
20 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21 that combines the values from the precomputed table with the values of
22 the Chebyshev polynomials.
24 2010-03-14 Bruno Haible <bruno@clisp.org>
26 Fix compilation error when modules 'posix_spawn[p]' are not used.
27 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30 2010-03-14 Bruno Haible <bruno@clisp.org>
32 Fix compilation error on mingw when module 'time_r' is not used.
33 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
38 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
40 2010-03-14 Bruno Haible <bruno@clisp.org>
42 Fix compilation error with Sun C.
43 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
44 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
45 instead of GCC specific ULONG_LONG_MAX.
46 * lib/xstrtoll.c: Likewise.
47 * lib/xstrtoull.c: Likewise.
49 2010-03-13 Bruno Haible <bruno@clisp.org>
51 Allow the user to disable C++ code and tests.
52 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
53 (gl_PROG_ANSI_CXX): Require it.
55 2010-03-13 Bruno Haible <bruno@clisp.org>
57 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
60 2010-03-13 Bruno Haible <bruno@clisp.org>
62 Test that gnulib does not break the standard C++ headers.
63 * tests/test-locale-c++2.cc: New file.
64 * modules/locale-tests (Files): Add it.
65 (Makefile.am): Compile it for test-locale-c++.
66 * tests/test-math-c++2.cc: New file.
67 * modules/math-tests (Files): Add it.
68 (Makefile.am): Compile it for test-math-c++.
69 * tests/test-signal-c++2.cc: New file.
70 * modules/signal-tests (Files): Add it.
71 (Makefile.am): Compile it for test-signal-c++.
72 * tests/test-stdio-c++2.cc: New file.
73 * modules/stdio-tests (Files): Add it.
74 (Makefile.am): Compile it for test-stdio-c++.
75 * tests/test-stdlib-c++2.cc: New file.
76 * modules/stdlib-tests (Files): Add it.
77 (Makefile.am): Compile it for test-stdlib-c++.
78 * tests/test-string-c++2.cc: New file.
79 * modules/string-tests (Files): Add it.
80 (Makefile.am): Compile it for test-string-c++.
81 * tests/test-time-c++2.cc: New file.
82 * modules/time-tests (Files): Add it.
83 (Makefile.am): Compile it for test-time-c++.
84 Reported by John W. Eaton <jwe@gnu.org>.
86 2010-03-13 Bruno Haible <bruno@clisp.org>
88 * gnulib-tool (func_usage): Clarify which options are available for
89 --create-testdir and --create-megatestdir.
91 2010-03-13 Bruno Haible <bruno@clisp.org>
93 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
94 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
95 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
96 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
97 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
99 Reported by Jim Meyering.
101 2010-03-12 Simon Josefsson <simon@josefsson.org>
103 * gnulib-tool (func_import): Explain origin of code.
105 2010-03-12 Bruno Haible <bruno@clisp.org>
107 Fix problem with automake's definition of CXXLINK.
108 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
109 Reported by Simon Josefsson and Ludovic Courtès.
111 2010-03-12 Bruno Haible <bruno@clisp.org>
113 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
116 2010-03-11 Bruno Haible <bruno@clisp.org>
118 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
119 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
120 whether the system provides one variant or multiple variants of the
122 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
124 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
125 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
126 Reported by Jim Meyering.
128 2010-03-09 Simon Josefsson <simon@josefsson.org>
130 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
132 2010-03-08 Bruno Haible <bruno@clisp.org>
134 gnulib-tool: Add support for --libtool in --create-testdir.
135 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
136 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
138 2010-03-08 Eric Blake <eblake@redhat.com>
140 gnulib-tool.texi: mention possibility of git submodule
141 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
143 * doc/.gitignore: Ignore another generated file.
145 2010-03-08 Karl Berry <karl@gnu.org>
147 * doc/gnulib-tool.texi (VCS Issues): Mention third option
148 of committing gnulib files while skipping others.
150 2010-03-07 Bruno Haible <bruno@clisp.org>
152 Tests of module 'wctype' in C++ mode.
153 * tests/test-wctype-c++.cc: New file.
154 * modules/wctype-tests (Files): Add it and tests/signature.h.
155 (Depends-on): Add ansi-c++-opt.
156 (Makefile.am): Arrange to compile and run test-wctype-c++.
158 Tests of module 'wchar' in C++ mode.
159 * tests/test-wchar-c++.cc: New file.
160 * modules/wchar-tests (Files): Add it and tests/signature.h.
161 (Depends-on): Add ansi-c++-opt.
162 (Makefile.am): Arrange to compile and run test-wchar-c++.
163 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
166 Tests of module 'unistd' in C++ mode.
167 * tests/test-unistd-c++.cc: New file.
168 * modules/unistd-tests (Files): Add it and tests/signature.h.
169 (Depends-on): Add ansi-c++-opt.
170 (Makefile.am): Arrange to compile and run test-unistd-c++.
171 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
174 Tests of module 'time' in C++ mode.
175 * tests/test-time-c++.cc: New file.
176 * modules/time-tests (Files): Add it and tests/signature.h.
177 (Depends-on): Add ansi-c++-opt.
178 (Makefile.am): Arrange to compile and run test-time-c++.
179 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
181 Tests of module 'sys_time' in C++ mode.
182 * tests/test-sys_time-c++.cc: New file.
183 * modules/sys_time-tests (Files): Add it and tests/signature.h.
184 (Depends-on): Add ansi-c++-opt.
185 (Makefile.am): Arrange to compile and run test-sys_time-c++.
186 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
189 Tests of module 'sys_stat' in C++ mode.
190 * tests/test-sys_stat-c++.cc: New file.
191 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
192 (Depends-on): Add ansi-c++-opt.
193 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
194 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
197 Tests of module 'sys_socket' in C++ mode.
198 * tests/test-sys_socket-c++.cc: New file.
199 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
200 (Depends-on): Add ansi-c++-opt.
201 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
202 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
205 Tests of module 'sys_select' in C++ mode.
206 * tests/test-sys_select-c++.cc: New file.
207 * modules/sys_select-tests (Files): Add it and tests/signature.h.
208 (Depends-on): Add ansi-c++-opt.
209 (Makefile.am): Arrange to compile and run test-sys_select-c++.
210 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
213 Tests of module 'sys_ioctl' in C++ mode.
214 * tests/test-sys_ioctl-c++.cc: New file.
215 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
216 (Depends-on): Add ansi-c++-opt.
217 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
218 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
221 Tests of module 'string' in C++ mode.
222 * tests/test-string-c++.cc: New file.
223 * modules/string-tests (Files): Add it and tests/signature.h.
224 (Depends-on): Add ansi-c++-opt.
225 (Makefile.am): Arrange to compile and run test-string-c++.
226 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
229 Tests of module 'stdlib' in C++ mode.
230 * tests/test-stdlib-c++.cc: New file.
231 * modules/stdlib-tests (Files): Add it and tests/signature.h.
232 (Depends-on): Add ansi-c++-opt.
233 (Makefile.am): Arrange to compile and run test-stdlib-c++.
234 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
237 Tests of module 'stdio' in C++ mode.
238 * tests/test-stdio-c++.cc: New file.
239 * modules/stdio-tests (Files): Add it and tests/signature.h.
240 (Depends-on): Add ansi-c++-opt.
241 (Makefile.am): Arrange to compile and run test-stdio-c++.
242 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
245 Tests of module 'spawn' in C++ mode.
246 * tests/test-spawn-c++.cc: New file.
247 * modules/spawn-tests (Files): Add it and tests/signature.h.
248 (Depends-on): Add ansi-c++-opt.
249 (Makefile.am): Arrange to compile and run test-spawn-c++.
250 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
253 Tests of module 'signal' in C++ mode.
254 * tests/test-signal-c++.cc: New file.
255 * modules/signal-tests (Files): Add it and tests/signature.h.
256 (Depends-on): Add ansi-c++-opt.
257 (Makefile.am): Arrange to compile and run test-signal-c++.
258 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
261 Tests of module 'search' in C++ mode.
262 * tests/test-search-c++.cc: New file.
263 * modules/search-tests (Files): Add it and tests/signature.h.
264 (Depends-on): Add ansi-c++-opt.
265 (Makefile.am): Arrange to compile and run test-search-c++.
266 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
269 Tests of module 'math' in C++ mode.
270 * tests/test-math-c++.cc: New file.
271 * modules/math-tests (Files): Add it and tests/signature.h.
272 (Depends-on): Add ansi-c++-opt.
273 (Makefile.am): Arrange to compile and run test-math-c++.
274 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
276 Tests of module 'locale' in C++ mode.
277 * tests/test-locale-c++.cc: New file.
278 * modules/locale-tests (Files): Add it and tests/signature.h.
279 (Depends-on): Add ansi-c++-opt.
280 (Makefile.am): Arrange to compile and run test-locale-c++.
281 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
284 Tests of module 'langinfo' in C++ mode.
285 * tests/test-langinfo-c++.cc: New file.
286 * modules/langinfo-tests (Files): Add it and tests/signature.h.
287 (Depends-on): Add ansi-c++-opt.
288 (Makefile.am): Arrange to compile and run test-langinfo-c++.
289 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
292 Tests of module 'iconv-h' in C++ mode.
293 * tests/test-iconv-h-c++.cc: New file.
294 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
295 (Depends-on): Add ansi-c++-opt.
296 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
298 Tests of module 'glob' in C++ mode.
299 * tests/test-glob-c++.cc: New file.
300 * modules/glob-tests (Files): Add it.
301 (Depends-on): Add ansi-c++-opt.
302 (Makefile.am): Arrange to compile and run test-glob-c++.
304 Tests of module 'fcntl-h' in C++ mode.
305 * tests/test-fcntl-h-c++.cc: New file.
306 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
307 (Depends-on): Add ansi-c++-opt.
308 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
309 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
312 Tests of module 'dirent' in C++ mode.
313 * tests/test-dirent-c++.cc: New file.
314 * modules/dirent-tests (Files): Add it and tests/signature.h.
315 (Depends-on): Add ansi-c++-opt.
316 (Makefile.am): Arrange to compile and run test-dirent-c++.
317 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
320 New module 'ansi-c++-opt'.
321 * modules/ansi-c++-opt: New file.
322 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
324 Document C++ namespace mode.
325 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
327 wctype: Avoid #define replacements in C++ mode.
328 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
329 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
330 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
331 In C++, define a namespaced alias symbol.
332 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
333 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
334 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
337 wchar: Avoid #define replacements in C++ mode.
338 * lib/wchar.in.h: Include c++defs.h.
339 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
340 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
342 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
343 * modules/wchar (Depends-on): Add c++defs.
344 (Makefile.am): Update wchar.h rule.
346 unistd: Avoid #define replacements in C++ mode.
347 * lib/unistd.in.h: Include c++defs.h.
348 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
349 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
350 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
351 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
352 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
353 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
356 * modules/unistd (Depends-on): Add c++defs.
357 (Makefile.am): Update unistd.h rule.
359 time: Avoid #define replacements in C++ mode.
360 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
361 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
362 define a namespaced alias symbol.
363 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
364 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
365 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
366 * modules/time (Depends-on): Add c++defs, warn-on-use.
367 (Makefile.am): Update time.h rule.
368 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
369 * modules/nanosleep (configure.ac): Likewise.
370 * modules/strptime (configure.ac): Likewise.
371 * modules/timegm (configure.ac): Likewise.
373 sys_time: Avoid #define replacements in C++ mode.
374 * lib/sys_time.in.h: Include c++defs.h.
375 (gettimeofday): In C++, define a namespaced alias symbol.
376 * modules/sys_time (Depends-on): Add c++defs.
377 (Makefile.am): Update sys/time.h rule.
379 sys_stat: Avoid #define replacements in C++ mode.
380 * lib/sys_stat.in.h: Include c++defs.h.
381 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
382 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
383 namespaced alias symbol.
384 In C++, define a namespaced alias symbol.
385 * modules/sys_stat (Depends-on): Add c++defs.
386 (Makefile.am): Update sys/stat.h rule.
388 sys_socket: Avoid #define replacements in C++ mode.
389 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
390 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
391 definitions also when the system has a <sys/socket.h>.
392 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
393 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
394 In C++, define a namespaced alias symbol.
395 * modules/sys_socket (Depends-on): Add c++defs.
396 (Makefile.am): Update sys/socket.h rule.
398 sys_select: Avoid #define replacements in C++ mode.
399 * lib/sys_select.in.h: Include c++defs.h. Enable the function
400 definitions also when the system has a <sys/select.h>.
401 (select): In C++, define a namespaced alias symbol.
402 * modules/sys_select (Depends-on): Add c++defs.
403 (Makefile.am): Update sys/select.h rule.
405 sys_ioctl: Avoid #define replacements in C++ mode.
406 * lib/sys_ioctl.in.h: Include c++defs.h.
407 (ioctl): In C++, define a namespaced alias symbol.
408 * modules/sys_ioctl (Depends-on): Add c++defs.
409 (Makefile.am): Update sys/ioctl.h rule.
411 string: Avoid #define replacements in C++ mode.
412 * lib/string.in.h: Include c++defs.h.
413 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
414 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
415 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
416 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
417 strsignal, strverscmp): In C++, define a namespaced alias symbol.
418 * modules/string (Depends-on): Add c++defs.
419 (Makefile.am): Update string.h rule.
421 stdlib: Avoid #define replacements in C++ mode.
422 * lib/stdlib.in.h: Include c++defs.h.
423 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
424 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
425 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
426 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
428 * modules/stdlib (Depends-on): Add c++defs.
429 (Makefile.am): Update stdlib.h rule.
431 stdio: Avoid #define replacements in C++ mode.
432 * lib/stdio.in.h: Include c++defs.h.
433 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
434 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
435 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
436 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
437 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
438 namespaced alias symbol.
439 * modules/stdio (Depends-on): Add c++defs.
440 (Makefile.am): Update stdio.h rule.
442 spawn: Avoid #define replacements in C++ mode.
443 * lib/spawn.in.h: Include c++defs.h.
444 (posix_spawn, posix_spawnp, posix_spawnattr_init,
445 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
446 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
447 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
448 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
449 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
450 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
451 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
452 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
453 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
454 In C++, define a namespaced alias symbol.
455 * modules/spawn (Depends-on): Add c++defs.
456 (Makefile.am): Update spawn.h rule.
458 signal: Avoid #define replacements in C++ mode.
459 * lib/signal.in.h: Include c++defs.h.
460 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
461 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
462 namespaced alias symbol.
463 * modules/signal (Depends-on): Add c++defs.
464 (Makefile.am): Update signal.h rule.
466 search: Avoid #define replacements in C++ mode.
467 * lib/search.in.h: Include c++defs.h.
468 (_gl_search_compar_fn, _gl_search_action_fn): New types.
469 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
471 * modules/search (Depends-on): Add c++defs.
472 (Makefile.am): Update search.h rule.
474 math: Avoid #define replacements in C++ mode.
475 * lib/math.in.h: Include c++defs.h.
476 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
477 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
478 trunc, truncl): In C++, define a namespaced alias symbol.
479 * modules/math (Depends-on): Add c++defs.
480 (Makefile.am): Update math.h rule.
482 locale: Avoid #define replacements in C++ mode.
483 * lib/locale.in.h: Include c++defs.h.
484 (duplocale): In C++, define a namespaced alias symbol.
485 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
486 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
487 * modules/locale (Depends-on): Add c++defs.
488 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
490 langinfo: Avoid #define replacements in C++ mode.
491 * lib/langinfo.in.h: Include c++defs.h.
492 (nl_langinfo): In C++, define a namespaced alias symbol.
493 * modules/langinfo (Depends-on): Add c++defs.
494 (Makefile.am): Update langinfo.h rule.
496 iconv-h: Avoid #define replacements in C++ mode.
497 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
498 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
500 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
501 whenever iconv is present.
502 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
503 (Makefile.am): Update iconv.h rule.
505 glob: Avoid #define replacements in C++ mode.
506 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
507 (_gl_glob_errfunc_fn): New type.
508 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
510 * modules/glob (Depends-on): Add c++defs, warn-on-use.
511 (Makefile.am): Update glob.h rule.
513 fcntl-h: Avoid #define replacements in C++ mode.
514 * lib/fcntl.in.h: Include c++defs.h.
515 (fcntl, open, openat): In C++, define a namespaced alias symbol.
516 * modules/fcntl-h (Depends-on): Add c++defs.
517 (Makefile.am): Update fcntl.h rule.
519 dirent: Avoid #define replacements in C++ mode.
520 * lib/dirent.in.h: Include c++defs.h.
521 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
522 namespaced alias symbol.
523 (dirfd): Update declaration.
524 * modules/dirent (Depends-on): Add c++defs.
525 (Makefile.am): Update dirent.h rule.
527 ctype: Make it usable in C++ code.
528 * lib/ctype.in.h: Include c++defs.h.
529 (isblank): Declare as extern "C".
530 * modules/ctype (Depends-on): Add c++defs.
531 (Makefile.am): Update ctype.h rule.
533 New module 'c++defs'.
534 * modules/c++defs: New file.
535 * build-aux/c++defs.h: New file.
536 Reported by John W. Eaton <jwe@gnu.org>.
538 2010-03-07 Bruno Haible <bruno@clisp.org>
540 logb: Provide missing declaration for Cygwin.
541 * lib/math.in.h (logb): New declaration.
542 * m4/logb.m4: New file.
543 * modules/logb (Files): Add m4/logb.m4.
544 (Depends-on): Add math.
545 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
546 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
547 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
548 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
549 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
551 2010-03-07 Bruno Haible <bruno@clisp.org>
553 Fix test-cond link error.
554 * tests/test-cond.c: Include <stdio.h>.
556 2010-03-07 Bruno Haible <bruno@clisp.org>
558 Fix test-dirent-safer link error.
559 * modules/dirent-safer-tests (Makefile.am): Define
560 test_dirent_safer_LDADD.
562 2010-03-07 Bruno Haible <bruno@clisp.org>
564 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
565 among default module list.
567 2010-03-07 Bruno Haible <bruno@clisp.org>
569 Fix link error on platforms with GNU libiconv.
570 * modules/unistr/u8-strcoll-tests (Makefile): Define
571 test_u8_strcoll_LDADD.
572 * modules/unistr/u16-strcoll-tests (Makefile): Define
573 test_u16_strcoll_LDADD.
574 * modules/unistr/u32-strcoll-tests (Makefile): Define
575 test_u32_strcoll_LDADD.
577 2010-03-07 Bruno Haible <bruno@clisp.org>
579 Use POSIX declarations for socket functions.
580 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
581 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
582 rpl_sendto): Change declaration to match POSIX.
583 * lib/connect.c (rpl_connect): Likewise.
584 * lib/accept.c (rpl_accept): Likewise.
585 * lib/bind.c (rpl_bind): Likewise.
586 * lib/getpeername.c (rpl_getpeername): Likewise.
587 * lib/getsockname.c (rpl_getsockname): Likewise.
588 * lib/recv.c (rpl_recv): Likewise.
589 * lib/send.c (rpl_send): Likewise.
590 * lib/recvfrom.c (rpl_recvfrom): Likewise.
591 * lib/sendto.c (rpl_sendto): Likewise.
593 2010-03-06 Bruno Haible <bruno@clisp.org>
595 Clarify access, euidaccess, faccessat.
596 * doc/posix-functions/faccessat.texi: Mention security problem under
597 "Other problems", not "Portability problems".
598 * doc/posix-functions/access.texi: Likewise. Mention a related security
600 * doc/glibc-functions/euidaccess.texi: Mention security problems.
601 * lib/euidaccess.c: Add comments about platforms.
602 * lib/unistd.in.h (access, euidaccess): Add warnings.
604 2010-03-07 Bruno Haible <bruno@clisp.org>
606 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
607 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
608 (POSIX_SPAWN_SETSCHEDULER): Likewise.
609 (POSIX_SPAWN_USEVFORK): Define in a way that works when
610 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
611 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
612 declare when POSIX_SPAWN_SETSCHEDULER is zero.
613 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
614 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
615 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
616 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
617 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
618 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
619 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
620 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
621 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
622 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
623 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
624 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
625 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
627 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
628 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
629 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
631 * tests/test-spawn.c (main): Make it work when
632 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
634 2010-03-07 Bruno Haible <bruno@clisp.org>
636 Fix incorrect Makefile.am generation in German locale.
637 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
638 Execute sed command with character range in C locale.
640 2010-03-06 Bruno Haible <bruno@clisp.org>
642 Tests for module 'iconv-h'.
643 * modules/iconv-h-tests: New file.
644 * tests/test-iconv-h.c: New file.
646 New module 'iconv-h'.
647 * modules/iconv-h: New file.
648 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
649 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
650 (configure.ac): Remove gl_ICONV_H.
651 (Makefile.am): Remove rule for iconv.h.
653 2010-03-06 Bruno Haible <bruno@clisp.org>
655 More consistent naming of *.m4 files.
656 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
657 * modules/wctype (Files): Update.
659 More consistent naming of *.m4 files.
660 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
661 * modules/wchar (Files): Update.
663 2010-03-06 Jim Meyering <meyering@redhat.com>
665 euidaccess: relax license to LGPLv2+
666 * modules/euidaccess (License): Relax to LGPLv2+.
668 2010-03-06 Bruno Haible <bruno@clisp.org>
670 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
671 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
672 (Makefile.am): Augment lib_SOURCES instead.
674 2010-03-04 Jim Meyering <meyering@redhat.com>
676 utime: remove obsolete module
677 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
678 unnecessary for years, and has been marked as obsolete for 10 months.
679 * modules/utime: Remove file.
680 * lib/utime.c: Remove file.
681 * m4/utime.m4: Remove file.
682 * m4/utimes-null.m4: Remove file.
683 * doc/posix-functions/utime.texi (utime): Remove reference to
684 the module. Move the sole "fixed by gnulib" item into the
685 "problems not fixed by Gnulib" list.
686 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
688 2010-03-05 Simon Josefsson <simon@josefsson.org>
690 * modules/exit (License): Relax license to LGPLv2+.
691 (Status): Mark as obsolete.
692 * NEWS: Mention deprecated 'exit' module.
693 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
694 of now obsolete 'exit'.
696 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
698 fts-lgpl: remove unused module
699 * modules/fts-lgpl: Remove.
700 * MODULES.html.sh (func_all_modules): Adjust.
701 * check-module (find_included_lib_files): Adjust.
702 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
704 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
706 copy-acl: enhance Solaris ACL error handling
707 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
708 * lib/set-mode-acl.c (qset_acl): Likewise.
710 2010-03-02 Bruno Haible <bruno@clisp.org>
712 spawn: Don't override the system defined values on FreeBSD 8.
713 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
714 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
715 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
716 if HAVE_POSIX_SPAWN is 1.
717 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
719 2010-03-01 Bruno Haible <bruno@clisp.org>
721 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
724 2010-02-25 Bruno Haible <bruno@clisp.org>
726 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
727 * gnulib-tool: Define 'echo' as a function only before the ksh alias
728 setting, not afterwards.
729 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
731 2010-02-24 Eric Blake <eblake@redhat.com>
733 bootstrap, git-version-gen: use timestamp
734 * build-aux/git-version-gen (scriptversion): Force UTC.
735 * build-aux/bootstrap (scriptversion): New variable.
737 bootstrap: allow older git
738 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
739 older than 1.6.4. Requested by the libvirt project.
741 2010-02-23 Eric Blake <eblake@redhat.com>
743 warn-on-use: work with old autoconf
744 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
745 AS_VAR semantics of autoconf 2.60.
746 Reported by Bruno Haible.
748 bootstrap: improve some comments
749 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
750 clarification comments.
752 gettimeofday: provide correct function
753 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
754 when replacement is declared, otherwise provide gettimeofday.
755 Reported by Michael Goffioul.
757 2010-02-23 Jim Meyering <meyering@redhat.com>
759 lib-ignore: relax license to "unlimited", not LGPLv2+
760 * modules/lib-ignore (License): Relax to "unlimited".
762 2010-02-23 Jim Meyering <meyering@redhat.com>
764 lib-ignore: relax license to LGPLv2+
765 * modules/lib-ignore (License): Relax to LGPLv2+.
767 2010-02-22 Eric Blake <eblake@redhat.com>
769 lseek: avoid bash 3.2 broken pipe bug
770 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
771 warning from bash 3.2.
772 Reported by Ben Pfaff, with analysis from Bruno Haible.
774 bootstrap: support non-FSF copyright holder
775 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
776 bootstrap.conf override of COPYRIGHT_HOLDER.
777 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
779 bootstrap: interoperate with gettext 0.14.1
780 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
782 bootstrap: allow for alternate submodule location
783 * build-aux/bootstrap (gnulib_path): New variable; use instead of
784 hardcoding submodule location.
785 (gnulib_mk): Allow direct use of Makefile.am.
787 bootstrap: use GNULIB_SRCDIR to reduce disk usage
788 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
789 rather than reconfiguring where the submodule points.
791 gettimeofday: restore support for platforms that lack function
792 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
793 replacement if function is missing.
794 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
795 * modules/sys_time (Makefile.am): Substitute it.
796 * lib/sys_time.in.h (gettimeofday): Check it.
797 Reported by Michael Goffioul.
799 2010-02-21 Bruno Haible <bruno@clisp.org>
801 * lib/stdio.in.h (obstack_printf): Fix typo.
803 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
805 vc-list-files: use bzr ls's -R option
806 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
807 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
809 2010-02-21 Jim Meyering <meyering@redhat.com>
811 init.sh: fix EXEEXT shims to work also for names like test-prog
812 * tests/init.sh: Re-exec a better shell, when needed.
813 If the current shell lacks support for posix $(...), an init.sh-using
814 test will now try to find a shell that supports that. If EXEEXT is
815 nonempty, we also require support for hyphen-in-alias-name and shell
816 substitutions like ${var#glob}. Failure to find such a shell results
819 2010-02-21 Bruno Haible <bruno@clisp.org>
821 Really work around around "broken pipe" error message from bash 3.2.
822 * gnulib-tool (func_reset_sigpipe): Remove function.
823 (echo): In bash 3.2, define to a function that uses printf.
824 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
826 2010-02-20 Bruno Haible <bruno@clisp.org>
828 Restore support for automake 1.9.6 with autoconf 2.61.
829 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
830 Reported by James Youngman <jay@gnu.org>.
832 2010-02-20 Bruno Haible <bruno@clisp.org>
834 Improve *printf warning condition.
835 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
836 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
837 and the function is overridden due to SIGPIPE emulation.
839 2010-02-20 Bruno Haible <bruno@clisp.org>
841 * lib/stdio.in.h: Tweak comments.
843 2010-02-19 Bruno Haible <bruno@clisp.org>
845 Make it easier to find modules. New gnulib-tool option '--find'.
846 * gnulib-tool: New option --find.
847 (func_usage): Document it.
848 (func_sanitize_modulelist): New function, extracted from
850 (func_all_modules): Invoke it.
851 * doc/gnulib-tool.texi (Which modules?): New node.
853 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
855 * lib/sys_select.in.h: Provide select replacement even if
856 sys/select.h exists on a system, for Interix.
858 2010-02-18 Jim Meyering <meyering@redhat.com>
860 init.sh: don't use $(...) just yet
861 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
862 to accommodate e.g., Solaris' /bin/sh.
864 2010-02-17 Bruno Haible <bruno@clisp.org>
866 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
867 Reported by Ludovic Courtès <ludo@gnu.org>.
869 2010-02-16 Simon Josefsson <simon@josefsson.org>
871 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
874 2010-02-17 Simon Josefsson <simon@josefsson.org>
876 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
877 if not provided by the system's netdb.h. Reported by
878 ludo@gnu.org (Ludovic Courtès).
880 2010-02-15 Jim Meyering <meyering@redhat.com>
882 init.sh: improve portability and efficiency
883 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
884 "dummy" in a for loop.
885 Use '!', not '^' to select the complement of a character set used
886 in a "case" statement.
887 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
888 Suggestions from Eric Blake.
890 init.sh: automatically accommodate programs with the .exe suffix
891 Automatically arrange for an invocation of "prog" to execute the
892 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
893 may use the simpler "prog", yet still work when built on a system
894 that requires specifying the added suffix.
895 Do this by constructing a function named "prog" that invokes
896 "prog.exe" for each .exe file in selected directories.
897 * tests/init.sh (find_exe_basenames_): New function.
898 (create_exe_shim_functions_): New function.
899 (path_prepend_): Use it.
901 maint.mk: mark syntax-check sc_*.m rules as .PHONY
902 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
903 "make -t syntax-check" doesn't create a ton of sc_*.m files.
905 2010-02-14 Jim Meyering <meyering@redhat.com>
907 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
908 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
909 (sc_prohibit_hash_pjw_without_use): New rule.
911 maint.mk: allow the default upload destination dir to be overridden
912 * top/maint.mk (upload_dest_dir_): Define with a default that
913 preserves the status quo.
914 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
915 Reported by Peter Simons.
917 maint.mk: prohibit inclusion of "hash.h" without_use
918 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
920 2010-02-10 Jim Meyering <meyering@redhat.com>
922 maint.mk: prohibit inclusion of "ignore-value.h" without_use
923 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
925 2010-02-09 Eric Blake <ebb9@byu.net>
926 and Bruno Haible <bruno@clisp.org>
928 obstack-printf-posix: ensure declaration
929 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
930 extracted from gl_FUNC_OBSTACK_PRINTF.
931 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
932 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
934 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
935 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
938 2010-02-08 Bruno Haible <bruno@clisp.org>
940 gnulib-tool: Fix typo in 2010-02-07 commit.
941 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
942 Reported by Eric Blake.
944 2010-02-07 Bruno Haible <bruno@clisp.org>
946 gnulib-tool: Fix up caching patches.
947 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
948 option --no-cache. Use associative arrays when supported by the shell.
949 (sed_comments): New variable.
950 (modcache): Renamed from do_cache.
951 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
952 abbreviate unnecessarily.
953 (have_associative): New variable.
954 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
955 way also for ksh and zsh.
956 (func_init_sed_convert_to_cache_statements): New function, extracted
957 from func_cache_lookup_module. Add support for associative arrays.
958 Don't set the c_MODULE_cached variable here. Ignore all lines before
959 the first field header. Remove only the final newline, not all trailing
960 newlines. Support empty fields correctly. Limit the use of 'eval' to
962 (func_get_description, func_get_status, func_get_notice,
963 func_get_applicability, func_get_filelist, func_get_dependencies,
964 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
965 func_get_automake_snippet, func_get_include_directive,
966 func_get_link_directive, func_get_license, func_get_maintainer):
967 Update documentation. List the unoptimized code first. Add support for
968 associative arrays. Limit the use of 'eval' to assignments.
969 (func_get_applicability): Undo stylistic pessimisations.
970 (func_get_automake_snippet, func_get_include_directive): Reduce code
972 (func_modules_transitive_closure, func_modules_add_dummy,
973 func_modules_notice, func_modules_to_filelist, func_add_file,
974 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
975 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
976 func_create_testdir, func_create_megatestdir): Update documentation.
978 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
980 * gnulib-tool (func_cache_lookup_module): Store the module name
981 belonging to the cache variable; error out if two different
982 module names map to the same cache variable name.
984 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
986 gnulib-tool: Make caching optional.
987 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
988 Update matching short versions of --no-changelog.
989 (func_usage): Update.
990 (sed_extract_cache_prog): Renamed from ...
991 (sed_extract_prog): ... this; revert to old extraction script.
992 (func_get_description, func_get_status)
993 (func_get_notice, func_get_applicability, func_get_filelist)
994 (func_get_dependencies, func_get_autoconf_early_snippet)
995 (func_get_autoconf_snippet, func_get_automake_snippet)
996 (func_get_include_directive, func_get_link_directive)
997 (func_get_license, func_get_maintainer): If $do_cache is false,
998 use old, non-caching extraction scripts.
999 Suggestion by Bruno Haible.
1001 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1003 gnulib-tool: cache module metainformation.
1004 * gnulib-tool (sed_extract_prog): Match newline before each
1005 header, and rewrite header to a shell variable suffix.
1006 (func_cache_var, func_cache_lookup_module): New functions,
1007 to turn a module name into a cache variable prefix, and to
1008 look up and cache module metainformation.
1009 (func_get_description, func_get_status)
1010 (func_get_notice, func_get_applicability, func_get_filelist)
1011 (func_get_dependencies, func_get_autoconf_early_snippet)
1012 (func_get_autoconf_snippet, func_get_automake_snippet)
1013 (func_get_include_directive, func_get_link_directive)
1014 (func_get_license, func_get_maintainer): Use
1015 func_cache_lookup_module.
1017 2010-02-07 Bruno Haible <bruno@clisp.org>
1019 fnctl: Fix missing dependency.
1020 * modules/fcntl (Depends-on): Add getdtablesize.
1021 Reported by John W. Eaton <jwe@gnu.org>.
1023 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1025 Argp: fix recognition of short alias options.
1027 * lib/argp-parse.c (convert_options): Fix improper use of
1028 `|' between character values.
1029 * tests/test-argp.c (group1_option): New alias option
1031 (group1_parser): Special handling for 'r'.
1032 (test15): New test case.
1033 (test_fun): Add test15.
1034 * tests/test-argp-2.sh: Update expected --help and --usage
1037 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1039 * tests/test-argp.c: Fix indentation.
1041 2010-02-04 Eric Blake <ebb9@byu.net>
1043 gettimeofday: expose type of second argument
1044 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1045 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1046 * tests/test-gettimeofday.c: Use it to silence warning.
1047 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1050 2010-02-03 Jim Meyering <meyering@redhat.com>
1052 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1053 * lib/regcomp.c (TYPE_SIGNED): Define.
1054 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1056 regcomp.c: avoid a new -Wshadow warning
1057 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1059 2010-02-01 Jim Meyering <meyering@redhat.com>
1061 removing useless parentheses in cpp #define directives
1062 For motivation, see commit c0221df4, "define STREQ(a,b)
1063 consistently, removing useless parentheses"
1064 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1065 * lib/mountlist.c (MNT_IGNORE): Likewise.
1066 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1068 2010-02-01 Eric Blake <ebb9@byu.net>
1070 sys_time: use link-warning
1071 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1072 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1073 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1074 * modules/sys_time (Depends-on): Add warn-on-use.
1075 (Makefile.am): Always build replacement.
1076 (configure.ac): Update substitutions.
1077 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1078 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1079 bother with SYS_TIME_H.
1080 * modules/gettimeofday (configure.ac): Declare indicator.
1081 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1084 closein-tests: silence compiler warning
1085 * tests/test-closein.c (main): Ignore fread result.
1086 * modules/closein-tests (Depends-on): Add ignore-value.
1088 tests: silence warning about system return
1089 * tests/test-areadlink-with-size.c (main): Ignore system result.
1090 * tests/test-areadlink.c (main): Likewise.
1091 * tests/test-areadlinkat-with-size.c (main): Likewise.
1092 * tests/test-areadlinkat.c (main): Likewise.
1093 * tests/test-canonicalize-lgpl.c (main): Likewise.
1094 * tests/test-canonicalize.c (main): Likewise.
1095 * tests/test-chown.c (main): Likewise.
1096 * tests/test-fchownat.c (main): Likewise.
1097 * tests/test-fdutimensat.c (main): Likewise.
1098 * tests/test-fstatat.c (main): Likewise.
1099 * tests/test-futimens.c (main): Likewise.
1100 * tests/test-lchown.c (main): Likewise.
1101 * tests/test-link.c (main): Likewise.
1102 * tests/test-linkat.c (main): Likewise.
1103 * tests/test-lstat.c (main): Likewise.
1104 * tests/test-mkdir.c (main): Likewise.
1105 * tests/test-mkdirat.c (main): Likewise.
1106 * tests/test-mkfifo.c (main): Likewise.
1107 * tests/test-mkfifoat.c (main): Likewise.
1108 * tests/test-mknod.c (main): Likewise.
1109 * tests/test-readlink.c (main): Likewise.
1110 * tests/test-remove.c (main): Likewise.
1111 * tests/test-rename.c (main): Likewise.
1112 * tests/test-renameat.c (main): Likewise.
1113 * tests/test-rmdir.c (main): Likewise.
1114 * tests/test-symlink.c (main): Likewise.
1115 * tests/test-symlinkat.c (main): Likewise.
1116 * tests/test-unlink.c (main): Likewise.
1117 * tests/test-unlinkat.c (main): Likewise.
1118 * tests/test-utimens.c (main): Likewise.
1119 * tests/test-utimensat.c (main): Likewise.
1120 * modules/areadlink-tests (Depends-on): Add ignore-value.
1121 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1122 * modules/areadlinkat-tests (Depends-on): Likewise.
1123 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1124 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1125 * modules/canonicalize-tests (Depends-on): Likewise.
1126 * modules/chown-tests (Depends-on): Likewise.
1127 * modules/fdutimensat-tests (Depends-on): Likewise.
1128 * modules/futimens-tests (Depends-on): Likewise.
1129 * modules/lchown-tests (Depends-on): Likewise.
1130 * modules/link-tests (Depends-on): Likewise.
1131 * modules/linkat-tests (Depends-on): Likewise.
1132 * modules/lstat-tests (Depends-on): Likewise.
1133 * modules/mkdir-tests (Depends-on): Likewise.
1134 * modules/mkfifo-tests (Depends-on): Likewise.
1135 * modules/mkfifoat-tests (Depends-on): Likewise.
1136 * modules/mknod-tests (Depends-on): Likewise.
1137 * modules/openat-tests (Depends-on): Likewise.
1138 * modules/readlink-tests (Depends-on): Likewise.
1139 * modules/remove-tests (Depends-on): Likewise.
1140 * modules/rename-tests (Depends-on): Likewise.
1141 * modules/renameat-tests (Depends-on): Likewise.
1142 * modules/rmdir-tests (Depends-on): Likewise.
1143 * modules/symlink-tests (Depends-on): Likewise.
1144 * modules/symlinkat-tests (Depends-on): Likewise.
1145 * modules/unlink-tests (Depends-on): Likewise.
1146 * modules/utimens-tests (Depends-on): Likewise.
1147 * modules/utimensat-tests (Depends-on): Likewise.
1149 2010-01-31 Bruno Haible <bruno@clisp.org>
1151 Perform the same test for many <math.h> functions.
1152 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1153 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1154 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1156 * modules/acos (configure.ac): Likewise.
1157 * modules/asin (configure.ac): Likewise.
1158 * modules/atan (configure.ac): Likewise.
1159 * modules/atan2 (configure.ac): Likewise.
1160 * modules/cbrt (configure.ac): Likewise.
1161 * modules/copysign (configure.ac): Likewise.
1162 * modules/cos (configure.ac): Likewise.
1163 * modules/cosh (configure.ac): Likewise.
1164 * modules/erf (configure.ac): Likewise.
1165 * modules/erfc (configure.ac): Likewise.
1166 * modules/exp (configure.ac): Likewise.
1167 * modules/fmod (configure.ac): Likewise.
1168 * modules/hypot (configure.ac): Likewise.
1169 * modules/j0 (configure.ac): Likewise.
1170 * modules/j1 (configure.ac): Likewise.
1171 * modules/jn (configure.ac): Likewise.
1172 * modules/lgamma (configure.ac): Likewise.
1173 * modules/log (configure.ac): Likewise.
1174 * modules/log10 (configure.ac): Likewise.
1175 * modules/log1p (configure.ac): Likewise.
1176 * modules/pow (configure.ac): Likewise.
1177 * modules/remainder (configure.ac): Likewise.
1178 * modules/sin (configure.ac): Likewise.
1179 * modules/sinh (configure.ac): Likewise.
1180 * modules/tan (configure.ac): Likewise.
1181 * modules/tanh (configure.ac): Likewise.
1182 * modules/y0 (configure.ac): Likewise.
1183 * modules/y1 (configure.ac): Likewise.
1184 * modules/yn (configure.ac): Likewise.
1185 Suggested by Paolo Bonzini.
1187 2010-01-31 Bruno Haible <bruno@clisp.org>
1189 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1191 2010-01-31 Bruno Haible <bruno@clisp.org>
1193 Work around getdelim() bug on FreeBSD 8.0.
1194 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1195 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1197 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1199 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1200 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1201 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1203 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1205 2010-01-31 Bruno Haible <bruno@clisp.org>
1207 Work around getline() bug on FreeBSD 8.0.
1208 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1209 and a non-zero size.
1210 * tests/test-getline.c (main): Likewise.
1211 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1212 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1214 2010-01-28 Eric Blake <ebb9@byu.net>
1216 regex: fix build failure
1217 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1220 2010-01-28 Jim Meyering <meyering@redhat.com>
1222 regex: do not ignore memory allocation failure
1223 * lib/regex_internal.c (create_cd_newstate): Detect
1224 re_node_set_init_copy failure. Extracted from glibc commit
1225 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1227 regex: sync more white-space changes from libc
1228 * lib/regex_internal.c: White-space only changes.
1229 * lib/regexec.c: Likewise.
1231 regex: add many uses of __attribute_warn_unused_result__
1232 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1233 * lib/regexec.c: Likewise.
1234 Extracted from a messy glibc commit.
1236 regcomp.c: spelling and merge-artifact from glibc
1237 * lib/regcomp.c: Merge remainder of glibc's
1238 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1240 regcomp.c: sync white-space changes from glibc
1241 * lib/regcomp.c: Merge to accommodate white space
1242 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1244 regcomp.c: do not ignore internal return values
1245 * lib/regcomp.c: Do not ignore internal return values.
1246 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1247 but without its white-space changes and spelling fixes.
1249 regex_internal.h: define __attribute_warn_unused_result__
1250 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1252 maint: add a syntax-check rule to check for vulnerable Makefile.in
1253 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1255 2010-01-27 Jim Meyering <meyering@redhat.com>
1257 ncftpput-ftp: clean up spaces
1258 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1259 Remove trailing blanks.
1261 2010-01-27 Simon Josefsson <simon@josefsson.org>
1263 * build-aux/git-version-gen: Fix copyright statement.
1264 * build-aux/gnupload: Likewise.
1265 * tests/test-arcfour.c: Likewise.
1266 * tests/test-arctwo.c: Likewise.
1267 * tests/test-count-one-bits.c: Likewise.
1268 * tests/test-crc.c: Likewise.
1269 * tests/test-des.c: Likewise.
1270 * tests/test-gc-arcfour.c: Likewise.
1271 * tests/test-gc-arctwo.c: Likewise.
1272 * tests/test-gc-des.c: Likewise.
1273 * tests/test-gc-hmac-md5.c: Likewise.
1274 * tests/test-gc-hmac-sha1.c: Likewise.
1275 * tests/test-gc-md2.c: Likewise.
1276 * tests/test-gc-md4.c: Likewise.
1277 * tests/test-gc-md5.c: Likewise.
1278 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1279 * tests/test-gc-rijndael.c: Likewise.
1280 * tests/test-gc-sha1.c: Likewise.
1281 * tests/test-gc.c: Likewise.
1282 * tests/test-gethostname.c: Likewise.
1283 * tests/test-gettimeofday.c: Likewise.
1284 * tests/test-hash.c: Likewise.
1285 * tests/test-hmac-md5.c: Likewise.
1286 * tests/test-hmac-sha1.c: Likewise.
1287 * tests/test-md2.c: Likewise.
1288 * tests/test-md4.c: Likewise.
1289 * tests/test-md5.c: Likewise.
1290 * tests/test-memchr.c: Likewise.
1291 * tests/test-memchr2.c: Likewise.
1292 * tests/test-memcmp.c: Likewise.
1293 * tests/test-memmem.c: Likewise.
1294 * tests/test-memrchr.c: Likewise.
1295 * tests/test-rawmemchr.c: Likewise.
1296 * tests/test-read-file.c: Likewise.
1297 * tests/test-rijndael.c: Likewise.
1298 * tests/test-sockets.c: Likewise.
1299 * tests/test-strchrnul.c: Likewise.
1300 * tests/test-strstr.c: Likewise.
1301 * tests/test-strtod.c: Likewise.
1302 * build-aux/ncftpput-ftp: Likewise.
1304 2010-01-26 Eric Blake <ebb9@byu.net>
1306 ignore-value: update recommended header name
1307 * modules/ignore-value (Include): Only use <> for headers that
1310 2010-01-26 Jim Meyering <meyering@redhat.com>
1312 test-userspec.c: avoid compiler warnings
1313 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1314 and "initialization discards qualifiers..." warnings.
1315 Put the first "uid" in its own scope, and make char* members "const".
1317 2010-01-25 Bruno Haible <bruno@clisp.org>
1319 gnulib-tool: Make warning diagnostics consistent.
1320 * gnulib-tool (func_warning): New function.
1321 Use it everywhere where gnulib-tool produces output to stderr and it is
1324 2010-01-25 Bruno Haible <bruno@clisp.org>
1326 Fix test dependencies.
1327 * modules/xstrtol-tests (Depends-on): Add inttypes.
1328 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1330 2010-01-25 Pádraig Brady <P@draigBrady.com>
1332 syntax-check: detect incorrect boolean macro values in config.h
1333 * modules/maintainer-makefile (configure.ac): Parameterize the location
1334 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1335 The logic is from Eric Blake and the location indicated by Jim Meyering.
1336 Note the more natural CONFIG_HEADER name is prohibited by automake
1337 for backwards compatibility reasons.
1338 * top/maint.mk (sc_Wundef_boolean): New rule.
1340 2010-01-25 Jim Meyering <meyering@redhat.com>
1342 bootstrap: detect MacOS 10.6's shasum, too
1343 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1344 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1346 2010-01-23 Jim Meyering <meyering@redhat.com>
1348 xstrtoll: new module
1349 * modules/xstrtoll: New file.
1350 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1351 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1352 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1353 ./configure fails if you use this module and lack "long long".
1354 * modules/xstrtoll-tests: New module.
1355 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1356 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1357 new init.sh-based test framework.
1359 2010-01-24 Bruno Haible <bruno@clisp.org>
1361 Tests for module 'yn'.
1362 * modules/yn-tests: New file.
1363 * tests/test-yn.c: New file.
1365 Tests for module 'y1'.
1366 * modules/y1-tests: New file.
1367 * tests/test-y1.c: New file.
1369 Tests for module 'y0'.
1370 * modules/y0-tests: New file.
1371 * tests/test-y0.c: New file.
1373 Tests for module 'tanh'.
1374 * modules/tanh-tests: New file.
1375 * tests/test-tanh.c: New file.
1377 Tests for module 'tan'.
1378 * modules/tan-tests: New file.
1379 * tests/test-tan.c: New file.
1381 Tests for module 'sqrt'.
1382 * modules/sqrt-tests: New file.
1383 * tests/test-sqrt.c: New file.
1385 Tests for module 'sinh'.
1386 * modules/sinh-tests: New file.
1387 * tests/test-sinh.c: New file.
1389 Tests for module 'sin'.
1390 * modules/sin-tests: New file.
1391 * tests/test-sin.c: New file.
1393 Tests for module 'rint'.
1394 * modules/rint-tests: New file.
1395 * tests/test-rint.c: New file.
1397 Tests for module 'remainder'.
1398 * modules/remainder-tests: New file.
1399 * tests/test-remainder.c: New file.
1401 Tests for module 'pow'.
1402 * modules/pow-tests: New file.
1403 * tests/test-pow.c: New file.
1405 Tests for module 'nextafter'.
1406 * modules/nextafter-tests: New file.
1407 * tests/test-nextafter.c: New file.
1409 Tests for module 'modf'.
1410 * modules/modf-tests: New file.
1411 * tests/test-modf.c: New file.
1413 Tests for module 'logb'.
1414 * modules/logb-tests: New file.
1415 * tests/test-logb.c: New file.
1417 Tests for module 'log1p'.
1418 * modules/log1p-tests: New file.
1419 * tests/test-log1p.c: New file.
1421 Tests for module 'log10'.
1422 * modules/log10-tests: New file.
1423 * tests/test-log10.c: New file.
1425 Tests for module 'log'.
1426 * modules/log-tests: New file.
1427 * tests/test-log.c: New file.
1429 Tests for module 'lgamma'.
1430 * modules/lgamma-tests: New file.
1431 * tests/test-lgamma.c: New file.
1433 Tests for module 'ldexp'.
1434 * modules/ldexp-tests: New file.
1435 * tests/test-ldexp.c: New file.
1437 Tests for module 'jn'.
1438 * modules/jn-tests: New file.
1439 * tests/test-jn.c: New file.
1441 Tests for module 'j1'.
1442 * modules/j1-tests: New file.
1443 * tests/test-j1.c: New file.
1445 Tests for module 'j0'.
1446 * modules/j0-tests: New file.
1447 * tests/test-j0.c: New file.
1449 Tests for module 'hypot'.
1450 * modules/hypot-tests: New file.
1451 * tests/test-hypot.c: New file.
1453 Tests for module 'fmod'.
1454 * modules/fmod-tests: New file.
1455 * tests/test-fmod.c: New file.
1457 Tests for module 'fabs'.
1458 * modules/fabs-tests: New file.
1459 * tests/test-fabs.c: New file.
1461 Tests for module 'exp'.
1462 * modules/exp-tests: New file.
1463 * tests/test-exp.c: New file.
1465 Tests for module 'erfc'.
1466 * modules/erfc-tests: New file.
1467 * tests/test-erfc.c: New file.
1469 Tests for module 'erf'.
1470 * modules/erf-tests: New file.
1471 * tests/test-erf.c: New file.
1473 Tests for module 'cosh'.
1474 * modules/cosh-tests: New file.
1475 * tests/test-cosh.c: New file.
1477 Tests for module 'cos'.
1478 * modules/cos-tests: New file.
1479 * tests/test-cos.c: New file.
1481 Tests for module 'copysign'.
1482 * modules/copysign-tests: New file.
1483 * tests/test-copysign.c: New file.
1485 Tests for module 'cbrt'.
1486 * modules/cbrt-tests: New file.
1487 * tests/test-cbrt.c: New file.
1489 Tests for module 'atan2'.
1490 * modules/atan2-tests: New file.
1491 * tests/test-atan2.c: New file.
1493 Tests for module 'atan'.
1494 * modules/atan-tests: New file.
1495 * tests/test-atan.c: New file.
1497 Tests for module 'asin'.
1498 * modules/asin-tests: New file.
1499 * tests/test-asin.c: New file.
1501 Tests for module 'acos'.
1502 * modules/acos-tests: New file.
1503 * tests/test-acos.c: New file.
1505 2010-01-24 Bruno Haible <bruno@clisp.org>
1507 Fix tests for common <math.h> functions.
1508 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1509 code snippet that references the function pointer, rather than merely
1510 calling the function. Substitute the FUNC_LIBM variable.
1511 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1512 * modules/acos (configure.ac): Likewise.
1513 * modules/asin (configure.ac): Likewise.
1514 * modules/atan (configure.ac): Likewise.
1515 * modules/atan2 (configure.ac): Likewise.
1516 * modules/cbrt (configure.ac): Likewise.
1517 * modules/copysign (configure.ac): Likewise.
1518 * modules/cos (configure.ac): Likewise.
1519 * modules/cosh (configure.ac): Likewise.
1520 * modules/erf (configure.ac): Likewise.
1521 * modules/erfc (configure.ac): Likewise.
1522 * modules/exp (configure.ac): Likewise.
1523 * modules/fabs (configure.ac): Likewise.
1524 * modules/fmod (configure.ac): Likewise.
1525 * modules/hypot (configure.ac): Likewise.
1526 * modules/j0 (configure.ac): Likewise.
1527 * modules/j1 (configure.ac): Likewise.
1528 * modules/jn (configure.ac): Likewise.
1529 * modules/ldexp (configure.ac): Likewise.
1530 * modules/lgamma (configure.ac): Likewise.
1531 * modules/log (configure.ac): Likewise.
1532 * modules/log10 (configure.ac): Likewise.
1533 * modules/log1p (configure.ac): Likewise.
1534 * modules/logb (configure.ac): Likewise.
1535 * modules/modf (configure.ac): Likewise.
1536 * modules/nextafter (configure.ac): Likewise.
1537 * modules/pow (configure.ac): Likewise.
1538 * modules/remainder (configure.ac): Likewise.
1539 * modules/rint (configure.ac): Likewise.
1540 * modules/sin (configure.ac): Likewise.
1541 * modules/sinh (configure.ac): Likewise.
1542 * modules/tan (configure.ac): Likewise.
1543 * modules/tanh (configure.ac): Likewise.
1544 * modules/y0 (configure.ac): Likewise.
1545 * modules/y1 (configure.ac): Likewise.
1546 * modules/yn (configure.ac): Likewise.
1548 2010-01-24 Bruno Haible <bruno@clisp.org>
1550 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1551 * tests/test-acosl.c (x): New variable.
1552 (main): Store argument in x and fetch it from x.
1553 * tests/test-asinl.c (x): New variable.
1554 (main): Store argument in x and fetch it from x.
1555 * tests/test-atanl.c (x): New variable.
1556 (main): Store argument in x and fetch it from x.
1557 * tests/test-cosl.c (x): New variable.
1558 (main): Store argument in x and fetch it from x.
1559 * tests/test-expl.c (x): New variable.
1560 (main): Store argument in x and fetch it from x.
1561 * tests/test-logl.c (x): New variable.
1562 (main): Store argument in x and fetch it from x.
1563 * tests/test-sinl.c (x): New variable.
1564 (main): Store argument in x and fetch it from x.
1565 * tests/test-sqrtl.c (x): New variable.
1566 (main): Store argument in x and fetch it from x.
1567 * tests/test-tanl.c (x): New variable.
1568 (main): Store argument in x and fetch it from x.
1570 2010-01-24 Bruno Haible <bruno@clisp.org>
1572 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1573 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1574 assignments to the initial TESTS_ENVIRONMENT.
1575 * doc/gnulib.texi (Unit test modules): Document it.
1576 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1578 * modules/btowc-tests (Makefile.am): Likewise.
1579 * modules/c-stack-tests (Makefile.am): Likewise.
1580 * modules/c-strcase-tests (Makefile.am): Likewise.
1581 * modules/copy-file-tests (Makefile.am): Likewise.
1582 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1583 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1584 * modules/mbrtowc-tests (Makefile.am): Likewise.
1585 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1586 * modules/mbscasestr-tests (Makefile.am): Likewise.
1587 * modules/mbschr-tests (Makefile.am): Likewise.
1588 * modules/mbscspn-tests (Makefile.am): Likewise.
1589 * modules/mbsinit-tests (Makefile.am): Likewise.
1590 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1591 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1592 * modules/mbspbrk-tests (Makefile.am): Likewise.
1593 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1594 * modules/mbsrchr-tests (Makefile.am): Likewise.
1595 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1596 * modules/mbsspn-tests (Makefile.am): Likewise.
1597 * modules/mbsstr-tests (Makefile.am): Likewise.
1598 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1599 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1600 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1601 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1602 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1603 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1604 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1605 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1606 * modules/wcrtomb-tests (Makefile.am): Likewise.
1607 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1608 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1609 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1610 assignments from TESTS_ENVIRONMENT.
1611 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1613 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1614 * modules/atexit-tests (Makefile.am): Likewise.
1615 * modules/binary-io-tests (Makefile.am): Likewise.
1616 * modules/closein-tests (Makefile.am): Likewise.
1617 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1618 * modules/exclude-tests (Makefile.am): Likewise.
1619 * modules/fflush-tests (Makefile.am): Likewise.
1620 * modules/fpending-tests (Makefile.am): Likewise.
1621 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1622 * modules/freadahead-tests (Makefile.am): Likewise.
1623 * modules/freadptr-tests (Makefile.am): Likewise.
1624 * modules/freadseek-tests (Makefile.am): Likewise.
1625 * modules/fseek-tests (Makefile.am): Likewise.
1626 * modules/fseeko-tests (Makefile.am): Likewise.
1627 * modules/ftell-tests (Makefile.am): Likewise.
1628 * modules/ftello-tests (Makefile.am): Likewise.
1629 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1630 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1631 * modules/lseek-tests (Makefile.am): Likewise.
1632 * modules/parse-duration-tests (Makefile.am): Likewise.
1633 * modules/perror-tests (Makefile.am): Likewise.
1634 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1635 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1636 * modules/pipe-tests (Makefile.am): Likewise.
1637 * modules/pread-tests (Makefile.am): Likewise.
1638 * modules/printf-posix-tests (Makefile.am): Likewise.
1639 * modules/select-tests (Makefile.am): Likewise.
1640 * modules/sigpipe-tests (Makefile.am): Likewise.
1641 * modules/tsearch-tests (Makefile.am): Likewise.
1642 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1643 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1644 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1645 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1646 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1647 * modules/version-etc-tests (Makefile.am): Likewise.
1648 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1649 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1650 * modules/xalloc-die-tests (Makefile.am): Likewise.
1651 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1652 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1653 * modules/xstrtol-tests (Makefile.am): Likewise.
1654 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1655 * modules/yesno-tests (Makefile.am): Likewise.
1656 Suggested by Jim Meyering.
1658 2010-01-24 Bruno Haible <bruno@clisp.org>
1661 * doc/gnulib.texi (Writing modules): New chapter.
1662 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1665 2010-01-24 Jim Meyering <meyering@redhat.com>
1667 maint.mk: do not prepend "./" after filtering
1668 * top/maint.mk (_prepend_srcdir_prefix): New variable
1669 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1670 "./" when $(srcdir) is ".".
1672 define STREQ(a,b) consistently, removing useless parentheses
1673 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1674 since the only risk is that "a" or "b" contains an unparenthesized
1675 comma, but if either did that, STREQ would have 3 or more arguments.
1676 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1677 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1678 * lib/hash-triple.c (STREQ): Likewise.
1679 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1680 * lib/getugroups.c (STREQ): Likewise.
1682 2010-01-23 Jim Meyering <meyering@redhat.com>
1684 maint.mk: fix syntax-check in a non-srcdir build directory
1685 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1686 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1688 2010-01-22 Jim Meyering <meyering@redhat.com>
1690 userspec: add unit tests
1691 * tests/test-userspec.c: New file.
1692 * modules/userspec-tests: Likewise.
1694 2010-01-21 Jim Meyering <meyering@redhat.com>
1696 maint.mk: handle source file names containing "." robustly
1697 * top/maint.mk (_dot_escaped_srcdir): Define.
1698 (VC_LIST): Use it in LHS of sed substitution.
1700 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1702 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1703 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1704 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1705 from a non-srcdir build.
1707 2010-01-20 Eric Blake <ebb9@byu.net>
1709 warn-on-use: use instead of link-warning
1710 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1711 * modules/unistd (Depends-on, Makefile.am): Likewise.
1712 * modules/arpa_inet (Depends-on): Replace link-warning with
1714 (Makefile.am): Update rules accordingly.
1715 * modules/ctype (Depends-on, Makefile.am): Likewise.
1716 * modules/dirent (Depends-on, Makefile.am): Likewise.
1717 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1718 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1719 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1720 * modules/locale (Depends-on, Makefile.am): Likewise.
1721 * modules/math (Depends-on, Makefile.am): Likewise.
1722 * modules/search (Depends-on, Makefile.am): Likewise.
1723 * modules/signal (Depends-on, Makefile.am): Likewise.
1724 * modules/spawn (Depends-on, Makefile.am): Likewise.
1725 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1726 * modules/string (Depends-on, Makefile.am): Likewise.
1727 * modules/strings (Depends-on, Makefile.am): Likewise.
1728 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1729 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1730 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1731 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1732 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1733 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1734 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1735 * modules/wchar (Depends-on, Makefile.am): Likewise.
1736 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1738 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1739 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1740 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1741 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1742 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1743 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1744 * m4/math_h.m4 (gl_MATH_H): Likewise.
1745 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1746 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1747 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1748 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1749 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1750 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1751 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1752 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1753 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1754 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1755 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1756 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1757 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1758 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1759 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1760 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1761 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1763 * lib/ctype.in.h: Likewise.
1764 * lib/dirent.in.h: Likewise.
1765 * lib/fcntl.in.h: Likewise.
1766 * lib/inttypes.in.h: Likewise.
1767 * lib/langinfo.in.h: Likewise.
1768 * lib/locale.in.h: Likewise.
1769 * lib/math.in.h: Likewise.
1770 * lib/search.in.h: Likewise.
1771 * lib/signal.in.h: Likewise.
1772 * lib/spawn.in.h: Likewise.
1773 * lib/stdio.in.h: Likewise.
1774 * lib/stdlib.in.h: Likewise.
1775 * lib/string.in.h: Likewise.
1776 * lib/strings.in.h: Likewise.
1777 * lib/sys_file.in.h: Likewise.
1778 * lib/sys_ioctl.in.h: Likewise.
1779 * lib/sys_select.in.h: Likewise.
1780 * lib/sys_socket.in.h: Likewise.
1781 * lib/sys_stat.in.h: Likewise.
1782 * lib/sys_times.in.h: Likewise.
1783 * lib/sys_utsname.in.h: Likewise.
1784 * lib/unistd.in.h: Likewise.
1785 * lib/wchar.in.h: Likewise.
1787 2010-01-20 Bruno Haible <bruno@clisp.org>
1789 Avoid duplicate -lm.
1790 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1791 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1792 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1793 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1794 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1795 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1796 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1797 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1798 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1799 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1800 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1801 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1802 Reported by Paolo Bonzini.
1804 2010-01-19 Bruno Haible <bruno@clisp.org>
1806 langinfo, nl_langinfo: Relicense under LGPLv2+.
1807 * modules/langinfo (License): Change to LGPLv2+.
1808 * modules/nl_langinfo (License): Likewise.
1809 Patch by David Lutterkort <lutter@redhat.com>.
1811 2010-01-19 Bruno Haible <bruno@clisp.org>
1813 Avoid compilation error with cc on OSF/1 5.1.
1814 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1815 statement, not before.
1816 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1818 2010-01-18 Bruno Haible <bruno@clisp.org>
1820 Avoid a link error due to the __printf__ symbol.
1821 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1823 (__format__, __printf__): Remove definitions.
1824 * lib/argp-fmtstream.h: Likewise.
1825 * lib/argp.h: Likewise.
1826 * lib/error.h: Likewise.
1827 * lib/vasnprintf.h: Likewise.
1828 * lib/xprintf.h: Likewise.
1829 * lib/xvasprintf.h: Likewise.
1830 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1832 2010-01-18 Bruno Haible <bruno@clisp.org>
1834 Tests for module 'tanl'.
1835 * modules/tanl-tests: New file.
1836 * tests/test-tanl.c: New file.
1838 Tests for module 'sqrtl'.
1839 * modules/sqrtl-tests: New file.
1840 * tests/test-sqrtl.c: New file.
1842 Tests for module 'sinl'.
1843 * modules/sinl-tests: New file.
1844 * tests/test-sinl.c: New file.
1846 Tests for module 'logl'.
1847 * modules/logl-tests: New file.
1848 * tests/test-logl.c: New file.
1850 Tests for module 'expl'.
1851 * modules/expl-tests: New file.
1852 * tests/test-expl.c: New file.
1854 Tests for module 'cosl'.
1855 * modules/cosl-tests: New file.
1856 * tests/test-cosl.c: New file.
1858 Tests for module 'atanl'.
1859 * modules/atanl-tests: New file.
1860 * tests/test-atanl.c: New file.
1862 Tests for module 'asinl'.
1863 * modules/asinl-tests: New file.
1864 * tests/test-asinl.c: New file.
1866 Tests for module 'acosl'.
1867 * modules/acosl-tests: New file.
1868 * tests/test-acosl.c: New file.
1870 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1871 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1872 tanl): Use the standard gnulib idiom.
1873 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1874 * lib/sinl.c: Likewise.
1875 * lib/tanl.c: Don't include trigl.c.
1876 (kernel_tanl): Make static.
1877 * lib/sincosl.c: Include trigl.h first.
1878 * lib/trigl.c: Likewise.
1879 * m4/acosl.m4: New file.
1880 * m4/asinl.m4: New file.
1881 * m4/atanl.m4: New file.
1882 * m4/cosl.m4: New file.
1883 * m4/expl.m4: New file.
1884 * m4/logl.m4: New file.
1885 * m4/sinl.m4: New file.
1886 * m4/sqrtl.m4: New file.
1887 * m4/tanl.m4: New file.
1888 * m4/mathl.m4: Remove file.
1889 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1890 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1891 Don't initialize GNULIB_MATHL.
1892 * modules/acosl: New file.
1893 * modules/asinl: New file.
1894 * modules/atanl: New file.
1895 * modules/cosl: New file.
1896 * modules/expl: New file.
1897 * modules/logl: New file.
1898 * modules/sinl: New file.
1899 * modules/sqrtl: New file.
1900 * modules/tanl: New file.
1901 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1902 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1903 substitute GNULIB_MATHL.
1904 * modules/mathl: Rewritten.
1905 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1906 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1907 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1908 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1909 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1910 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1911 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1912 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1913 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1915 2010-01-18 Bruno Haible <bruno@clisp.org>
1917 sqrt: Make gl_FUNC_SQRT requirable.
1918 * m4/sqrt.m4: New file.
1919 * modules/sqrt (Files): Add it.
1920 (configure.ac): Invoke gl_FUNC_SQRT.
1922 2010-01-18 Bruno Haible <bruno@clisp.org>
1924 New modules for common <math.h> functions.
1925 * m4/mathfunc.m4: New file.
1926 * modules/acos: New file.
1927 * modules/asin: New file.
1928 * modules/atan: New file.
1929 * modules/atan2: New file.
1930 * modules/cbrt: New file.
1931 * modules/copysign: New file.
1932 * modules/cos: New file.
1933 * modules/cosh: New file.
1934 * modules/erf: New file.
1935 * modules/erfc: New file.
1936 * modules/exp: New file.
1937 * modules/fabs: New file.
1938 * modules/fmod: New file.
1939 * modules/hypot: New file.
1940 * modules/j0: New file.
1941 * modules/j1: New file.
1942 * modules/jn: New file.
1943 * modules/ldexp: New file.
1944 * modules/lgamma: New file.
1945 * modules/log: New file.
1946 * modules/log10: New file.
1947 * modules/log1p: New file.
1948 * modules/logb: New file.
1949 * modules/modf: New file.
1950 * modules/nextafter: New file.
1951 * modules/pow: New file.
1952 * modules/remainder: New file.
1953 * modules/rint: New file.
1954 * modules/sin: New file.
1955 * modules/sinh: New file.
1956 * modules/sqrt: New file.
1957 * modules/tan: New file.
1958 * modules/tanh: New file.
1959 * modules/y0: New file.
1960 * modules/y1: New file.
1961 * modules/yn: New file.
1962 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1963 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1964 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1965 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1966 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1967 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1968 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1969 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1970 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1971 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1972 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1973 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1974 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1975 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1976 * doc/posix-functions/j0.texi: Mention the 'j0' module.
1977 * doc/posix-functions/j1.texi: Mention the 'j1' module.
1978 * doc/posix-functions/jn.texi: Mention the 'jn' module.
1979 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1980 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1981 * doc/posix-functions/log.texi: Mention the 'log' module.
1982 * doc/posix-functions/log10.texi: Mention the 'log10' module.
1983 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1984 * doc/posix-functions/logb.texi: Mention the 'logb' module.
1985 * doc/posix-functions/modf.texi: Mention the 'modf' module.
1986 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1987 * doc/posix-functions/pow.texi: Mention the 'pow' module.
1988 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1989 * doc/posix-functions/rint.texi: Mention the 'rint' module.
1990 * doc/posix-functions/sin.texi: Mention the 'sin' module.
1991 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1992 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1993 * doc/posix-functions/tan.texi: Mention the 'tan' module.
1994 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1995 * doc/posix-functions/y0.texi: Mention the 'y0' module.
1996 * doc/posix-functions/y1.texi: Mention the 'y1' module.
1997 * doc/posix-functions/yn.texi: Mention the 'yn' module.
1999 2010-01-18 Jim Meyering <meyering@redhat.com>
2001 ignore-value: relax license to LGPLv2+
2002 * modules/ignore-value (License): Relax to LGPLv2+.
2004 getdate: don't leak when TZ contains two or more '"'s
2005 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2006 double quote in TZ after the first one.
2008 readtokens: do not leak internal token_lengths buffer
2009 * lib/readtokens.c (readtokens): Free the local, lengths,
2010 when the supplied "token_lengths" parameter is NULL.
2012 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2014 Fix a couple of missing LIBTHREAD link failures on AIX.
2015 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2017 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2019 Link test-poll against INET_PTON_LIB.
2020 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2021 for inet_pton on Solaris 10.
2023 2010-01-17 Bruno Haible <bruno@clisp.org>
2025 unistdio/*-sprintf: Fix typo in module description.
2026 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2027 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2028 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2029 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2030 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2031 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2032 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2033 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2035 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2037 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2038 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2039 variables in shell case patterns, for AIX and HP-UX ksh.
2041 Split large sed scripts, for HP-UX sed.
2042 * modules/stdio: Split sed scripts around 50 sed commands,
2043 to avoid HP-UX limit of 99 commands, in the near future.
2044 * modules/string: Likewise.
2045 * modules/unistd: Likewise.
2047 gnulib-tool: avoid writing in the current directory.
2048 * gnulib-tool (func_emit_lib_Makefile_am)
2049 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2050 not in the current directory, so concurrent gnulib-tool
2051 instances do not interfere.
2053 2010-01-16 Jim Meyering <meyering@redhat.com>
2055 doc: update users.txt
2056 * users.txt: Add grep.
2057 (diffutils, gzip): Update URLs.
2059 2010-01-12 Bruno Haible <bruno@clisp.org>
2061 posix_spawn: Avoid test failure on Cygwin.
2062 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2064 Reported by Simon Josefsson.
2066 2010-01-12 Bruno Haible <bruno@clisp.org>
2068 * tests/test-cond.c (main): When skipping the test, show the reason.
2070 2010-01-12 Simon Josefsson <simon@josefsson.org>
2072 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2074 2010-01-12 Simon Josefsson <simon@josefsson.org>
2076 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2077 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2079 2010-01-12 Eric Blake <ebb9@byu.net>
2081 build: guarantee AS_VAR_IF
2082 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2083 (gl_AS_VAR_IF): Move...
2084 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2085 Reported by Simon Josefsson.
2087 2010-01-12 Simon Josefsson <simon@josefsson.org>
2089 * lib/stdio.in.h: Fix typo.
2091 2010-01-12 Simon Josefsson <simon@josefsson.org>
2093 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2096 2010-01-12 Simon Josefsson <simon@josefsson.org>
2098 * tests/test-xalloc-die.sh: Use $EXEEXT.
2100 2010-01-12 Simon Josefsson <simon@josefsson.org>
2101 Bruno Haible <bruno@clisp.org>
2103 getlogin, getlogin_r: Avoid test failure.
2104 * tests/test-getlogin.c: Include <stdio.h>.
2105 (main): Skip the test when the function fails because stdin is not a
2107 * tests/test-getlogin_r.c: Include <stdio.h>.
2108 (main): Skip the test when the function fails because stdin is not a
2111 2010-01-11 Eric Blake <ebb9@byu.net>
2113 tests: avoid more large file warnings
2114 * tests/test-fflush.c: Avoid warning about ftell use.
2115 * tests/test-fseek.c: Avoid warning about fseek use.
2117 2010-01-10 Bruno Haible <bruno@clisp.org>
2119 nproc: Work better on Linux when /proc and /sys are not mounted.
2120 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2121 as lower bound when, on glibc/Linux systems,
2122 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2123 Suggested by Pádraig Brady <P@draigbrady.com>.
2124 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2127 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2128 extracted from num_processors.
2129 (num_processors): Call it.
2131 2010-01-11 Jim Meyering <meyering@redhat.com>
2133 utimecmp: avoid new warning from upcoming gcc-4.5.0
2134 * lib/utimecmp.c (BILLION): Define using #define rather than an
2135 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2137 2010-01-11 Eric Blake <ebb9@byu.net>
2139 math: add portability warnings for classification macros
2140 * modules/math (Depends-on): Add warn-on-use.
2141 (Makefile.am): Provide new substitutions.
2142 * m4/math_h.m4 (gl_MATH_H): Require inline.
2143 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2144 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2145 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2148 unistd: warn on use of environ without module
2149 * modules/unistd (Depends-on): Add warn-on-use.
2150 (Makefile.am): Provide new substitutions.
2151 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2152 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2154 stdio: warn on suspicious uses
2155 * modules/stdio (Depends-on): Add warn-on-use.
2156 (Makefile.am): Provide new substitutions.
2157 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2159 * lib/stdio.in.h (gets): Always warn on use.
2160 (fseek, ftell): Adjust when warnings are issued, and honor
2161 _GL_NO_LARGE_FILES as a way to silence the warning.
2162 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2163 any warning about large file offsets.
2164 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2165 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2166 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2167 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2168 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2169 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2170 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2171 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2173 warn-on-use: new module
2174 * modules/warn-on-use: New file.
2175 * build-aux/warn-on-use.h: Likewise.
2176 * m4/warn-on-use.m4: Likewise.
2177 * MODULES.html.sh (Support for building): Mention it.
2179 2010-01-10 Bruno Haible <bruno@clisp.org>
2181 Tests for module 'unistr/u32-strdup'.
2182 * modules/unistr/u32-strdup-tests: New file.
2183 * tests/unistr/test-u32-strdup.c: New file.
2185 Tests for module 'unistr/u16-strdup'.
2186 * modules/unistr/u16-strdup-tests: New file.
2187 * tests/unistr/test-u16-strdup.c: New file.
2189 Tests for module 'unistr/u8-strdup'.
2190 * modules/unistr/u8-strdup-tests: New file.
2191 * tests/unistr/test-u8-strdup.c: New file.
2192 * tests/unistr/test-strdup.h: New file.
2194 Tests for module 'unistr/u32-strncmp'.
2195 * modules/unistr/u32-strncmp-tests: New file.
2196 * tests/unistr/test-u32-strncmp.c: New file.
2198 Tests for module 'unistr/u16-strncmp'.
2199 * modules/unistr/u16-strncmp-tests: New file.
2200 * tests/unistr/test-u16-strncmp.c: New file.
2202 Tests for module 'unistr/u8-strncmp'.
2203 * modules/unistr/u8-strncmp-tests: New file.
2204 * tests/unistr/test-u8-strncmp.c: New file.
2205 * tests/unistr/test-strncmp.h: New file.
2207 Tests for module 'unistr/u32-strcoll'.
2208 * modules/unistr/u32-strcoll-tests: New file.
2209 * tests/unistr/test-u32-strcoll.c: New file.
2211 Tests for module 'unistr/u16-strcoll'.
2212 * modules/unistr/u16-strcoll-tests: New file.
2213 * tests/unistr/test-u16-strcoll.c: New file.
2215 Tests for module 'unistr/u8-strcoll'.
2216 * modules/unistr/u8-strcoll-tests: New file.
2217 * tests/unistr/test-u8-strcoll.c: New file.
2219 Tests for module 'unistr/u32-strcmp'.
2220 * modules/unistr/u32-strcmp-tests: New file.
2221 * tests/unistr/test-u32-strcmp.c: New file.
2222 * tests/unistr/test-u32-strcmp.h: New file.
2224 Tests for module 'unistr/u16-strcmp'.
2225 * modules/unistr/u16-strcmp-tests: New file.
2226 * tests/unistr/test-u16-strcmp.c: New file.
2227 * tests/unistr/test-u16-strcmp.h: New file.
2229 Tests for module 'unistr/u8-strcmp'.
2230 * modules/unistr/u8-strcmp-tests: New file.
2231 * tests/unistr/test-u8-strcmp.c: New file.
2232 * tests/unistr/test-u8-strcmp.h: New file.
2233 * tests/unistr/test-strcmp.h: New file.
2235 Tests for module 'unistr/u32-strncat'.
2236 * modules/unistr/u32-strncat-tests: New file.
2237 * tests/unistr/test-u32-strncat.c: New file.
2239 Tests for module 'unistr/u16-strncat'.
2240 * modules/unistr/u16-strncat-tests: New file.
2241 * tests/unistr/test-u16-strncat.c: New file.
2243 Tests for module 'unistr/u8-strncat'.
2244 * modules/unistr/u8-strncat-tests: New file.
2245 * tests/unistr/test-u8-strncat.c: New file.
2246 * tests/unistr/test-strncat.h: New file.
2248 Tests for module 'unistr/u32-strcat'.
2249 * modules/unistr/u32-strcat-tests: New file.
2250 * tests/unistr/test-u32-strcat.c: New file.
2252 Tests for module 'unistr/u16-strcat'.
2253 * modules/unistr/u16-strcat-tests: New file.
2254 * tests/unistr/test-u16-strcat.c: New file.
2256 Tests for module 'unistr/u8-strcat'.
2257 * modules/unistr/u8-strcat-tests: New file.
2258 * tests/unistr/test-u8-strcat.c: New file.
2259 * tests/unistr/test-strcat.h: New file.
2261 Tests for module 'unistr/u32-stpncpy'.
2262 * modules/unistr/u32-stpncpy-tests: New file.
2263 * tests/unistr/test-u32-stpncpy.c: New file.
2265 Tests for module 'unistr/u16-stpncpy'.
2266 * modules/unistr/u16-stpncpy-tests: New file.
2267 * tests/unistr/test-u16-stpncpy.c: New file.
2269 Tests for module 'unistr/u8-stpncpy'.
2270 * modules/unistr/u8-stpncpy-tests: New file.
2271 * tests/unistr/test-u8-stpncpy.c: New file.
2272 * tests/unistr/test-stpncpy.h: New file.
2274 Tests for module 'unistr/u32-strncpy'.
2275 * modules/unistr/u32-strncpy-tests: New file.
2276 * tests/unistr/test-u32-strncpy.c: New file.
2278 Tests for module 'unistr/u16-strncpy'.
2279 * modules/unistr/u16-strncpy-tests: New file.
2280 * tests/unistr/test-u16-strncpy.c: New file.
2282 Tests for module 'unistr/u8-strncpy'.
2283 * modules/unistr/u8-strncpy-tests: New file.
2284 * tests/unistr/test-u8-strncpy.c: New file.
2285 * tests/unistr/test-strncpy.h: New file.
2287 Tests for module 'unistr/u32-stpcpy'.
2288 * modules/unistr/u32-stpcpy-tests: New file.
2289 * tests/unistr/test-u32-stpcpy.c: New file.
2291 Tests for module 'unistr/u16-stpcpy'.
2292 * modules/unistr/u16-stpcpy-tests: New file.
2293 * tests/unistr/test-u16-stpcpy.c: New file.
2295 Tests for module 'unistr/u8-stpcpy'.
2296 * modules/unistr/u8-stpcpy-tests: New file.
2297 * tests/unistr/test-u8-stpcpy.c: New file.
2298 * tests/unistr/test-stpcpy.h: New file.
2300 Tests for module 'unistr/u32-strcpy'.
2301 * modules/unistr/u32-strcpy-tests: New file.
2302 * tests/unistr/test-u32-strcpy.c: New file.
2304 Tests for module 'unistr/u16-strcpy'.
2305 * modules/unistr/u16-strcpy-tests: New file.
2306 * tests/unistr/test-u16-strcpy.c: New file.
2308 Tests for module 'unistr/u8-strcpy'.
2309 * modules/unistr/u8-strcpy-tests: New file.
2310 * tests/unistr/test-u8-strcpy.c: New file.
2311 * tests/unistr/test-strcpy.h: New file.
2313 Tests for module 'unistr/u32-strnlen'.
2314 * modules/unistr/u32-strnlen-tests: New file.
2315 * tests/unistr/test-u32-strnlen.c: New file.
2317 Tests for module 'unistr/u16-strnlen'.
2318 * modules/unistr/u16-strnlen-tests: New file.
2319 * tests/unistr/test-u16-strnlen.c: New file.
2321 Tests for module 'unistr/u8-strnlen'.
2322 * modules/unistr/u8-strnlen-tests: New file.
2323 * tests/unistr/test-u8-strnlen.c: New file.
2324 * tests/unistr/test-strnlen.h: New file.
2326 Tests for module 'unistr/u32-strlen'.
2327 * modules/unistr/u32-strlen-tests: New file.
2328 * tests/unistr/test-u32-strlen.c: New file.
2330 Tests for module 'unistr/u16-strlen'.
2331 * modules/unistr/u16-strlen-tests: New file.
2332 * tests/unistr/test-u16-strlen.c: New file.
2334 Tests for module 'unistr/u8-strlen'.
2335 * modules/unistr/u8-strlen-tests: New file.
2336 * tests/unistr/test-u8-strlen.c: New file.
2338 Tests for module 'unistr/u32-prev'.
2339 * modules/unistr/u32-prev-tests: New file.
2340 * tests/unistr/test-u32-prev.c: New file.
2342 Tests for module 'unistr/u16-prev'.
2343 * modules/unistr/u16-prev-tests: New file.
2344 * tests/unistr/test-u16-prev.c: New file.
2346 Tests for module 'unistr/u8-prev'.
2347 * modules/unistr/u8-prev-tests: New file.
2348 * tests/unistr/test-u8-prev.c: New file.
2350 Tests for module 'unistr/u32-next'.
2351 * modules/unistr/u32-next-tests: New file.
2352 * tests/unistr/test-u32-next.c: New file.
2354 Tests for module 'unistr/u16-next'.
2355 * modules/unistr/u16-next-tests: New file.
2356 * tests/unistr/test-u16-next.c: New file.
2358 Tests for module 'unistr/u8-next'.
2359 * modules/unistr/u8-next-tests: New file.
2360 * tests/unistr/test-u8-next.c: New file.
2362 Tests for module 'unistr/u32-strmbtouc'.
2363 * modules/unistr/u32-strmbtouc-tests: New file.
2364 * tests/unistr/test-u32-strmbtouc.c: New file.
2366 Tests for module 'unistr/u16-strmbtouc'.
2367 * modules/unistr/u16-strmbtouc-tests: New file.
2368 * tests/unistr/test-u16-strmbtouc.c: New file.
2370 Tests for module 'unistr/u8-strmbtouc'.
2371 * modules/unistr/u8-strmbtouc-tests: New file.
2372 * tests/unistr/test-u8-strmbtouc.c: New file.
2374 Tests for module 'unistr/u32-strmblen'.
2375 * modules/unistr/u32-strmblen-tests: New file.
2376 * tests/unistr/test-u32-strmblen.c: New file.
2378 Tests for module 'unistr/u16-strmblen'.
2379 * modules/unistr/u16-strmblen-tests: New file.
2380 * tests/unistr/test-u16-strmblen.c: New file.
2382 Tests for module 'unistr/u8-strmblen'.
2383 * modules/unistr/u8-strmblen-tests: New file.
2384 * tests/unistr/test-u8-strmblen.c: New file.
2386 Tests for module 'unistr/u32-cpy-alloc'.
2387 * modules/unistr/u32-cpy-alloc-tests: New file.
2388 * tests/unistr/test-u32-cpy-alloc.c: New file.
2390 Tests for module 'unistr/u16-cpy-alloc'.
2391 * modules/unistr/u16-cpy-alloc-tests: New file.
2392 * tests/unistr/test-u16-cpy-alloc.c: New file.
2394 Tests for module 'unistr/u8-cpy-alloc'.
2395 * modules/unistr/u8-cpy-alloc-tests: New file.
2396 * tests/unistr/test-u8-cpy-alloc.c: New file.
2397 * tests/unistr/test-cpy-alloc.h: New file.
2399 Tests for module 'unistr/u32-mbsnlen'.
2400 * modules/unistr/u32-mbsnlen-tests: New file.
2401 * tests/unistr/test-u32-mbsnlen.c: New file.
2403 Tests for module 'unistr/u16-mbsnlen'.
2404 * modules/unistr/u16-mbsnlen-tests: New file.
2405 * tests/unistr/test-u16-mbsnlen.c: New file.
2407 Tests for module 'unistr/u8-mbsnlen'.
2408 * modules/unistr/u8-mbsnlen-tests: New file.
2409 * tests/unistr/test-u8-mbsnlen.c: New file.
2411 Tests for module 'unistr/u32-chr'.
2412 * modules/unistr/u32-chr-tests: New file.
2413 * tests/unistr/test-u32-chr.c: New file.
2415 Tests for module 'unistr/u16-chr'.
2416 * modules/unistr/u16-chr-tests: New file.
2417 * tests/unistr/test-u16-chr.c: New file.
2419 Tests for module 'unistr/u8-chr'.
2420 * modules/unistr/u8-chr-tests: New file.
2421 * tests/unistr/test-u8-chr.c: New file.
2422 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2424 Tests for module 'unistr/u32-cmp2'.
2425 * modules/unistr/u32-cmp2-tests: New file.
2426 * tests/unistr/test-u32-cmp2.c: New file.
2428 Tests for module 'unistr/u16-cmp2'.
2429 * modules/unistr/u16-cmp2-tests: New file.
2430 * tests/unistr/test-u16-cmp2.c: New file.
2432 Tests for module 'unistr/u8-cmp2'.
2433 * modules/unistr/u8-cmp2-tests: New file.
2434 * tests/unistr/test-u8-cmp2.c: New file.
2435 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2437 Tests for module 'unistr/u32-cmp'.
2438 * modules/unistr/u32-cmp-tests: New file.
2439 * tests/unistr/test-u32-cmp.c: New file.
2441 Tests for module 'unistr/u16-cmp'.
2442 * modules/unistr/u16-cmp-tests: New file.
2443 * tests/unistr/test-u16-cmp.c: New file.
2445 Tests for module 'unistr/u8-cmp'.
2446 * modules/unistr/u8-cmp-tests: New file.
2447 * tests/unistr/test-u8-cmp.c: New file.
2448 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2450 Tests for module 'unistr/u32-set'.
2451 * modules/unistr/u32-set-tests: New file.
2452 * tests/unistr/test-u32-set.c: New file.
2454 Tests for module 'unistr/u16-set'.
2455 * modules/unistr/u16-set-tests: New file.
2456 * tests/unistr/test-u16-set.c: New file.
2458 Tests for module 'unistr/u8-set'.
2459 * modules/unistr/u8-set-tests: New file.
2460 * tests/unistr/test-u8-set.c: New file.
2461 * tests/unistr/test-set.h: New file.
2463 Tests for module 'unistr/u32-move'.
2464 * modules/unistr/u32-move-tests: New file.
2465 * tests/unistr/test-u32-move.c: New file.
2467 Tests for module 'unistr/u16-move'.
2468 * modules/unistr/u16-move-tests: New file.
2469 * tests/unistr/test-u16-move.c: New file.
2471 Tests for module 'unistr/u8-move'.
2472 * modules/unistr/u8-move-tests: New file.
2473 * tests/unistr/test-u8-move.c: New file.
2474 * tests/unistr/test-move.h: New file.
2476 Tests for module 'unistr/u32-cpy'.
2477 * modules/unistr/u32-cpy-tests: New file.
2478 * tests/unistr/test-u32-cpy.c: New file.
2480 Tests for module 'unistr/u16-cpy'.
2481 * modules/unistr/u16-cpy-tests: New file.
2482 * tests/unistr/test-u16-cpy.c: New file.
2484 Tests for module 'unistr/u8-cpy'.
2485 * modules/unistr/u8-cpy-tests: New file.
2486 * tests/unistr/test-u8-cpy.c: New file.
2487 * tests/unistr/test-cpy.h: New file.
2489 2010-01-09 Bruno Haible <bruno@clisp.org>
2491 Tests for module 'unistr/u32-uctomb'.
2492 * modules/unistr/u32-uctomb-tests: New file.
2493 * tests/unistr/test-u32-uctomb.c: New file.
2495 Tests for module 'unistr/u16-uctomb'.
2496 * modules/unistr/u16-uctomb-tests: New file.
2497 * tests/unistr/test-u16-uctomb.c: New file.
2499 Tests for module 'unistr/u8-uctomb'.
2500 * modules/unistr/u8-uctomb-tests: New file.
2501 * tests/unistr/test-u8-uctomb.c: New file.
2503 Tests for module 'unistr/u32-mbtoucr'.
2504 * modules/unistr/u32-mbtoucr-tests: New file.
2505 * tests/unistr/test-u32-mbtoucr.c: New file.
2507 Tests for module 'unistr/u16-mbtoucr'.
2508 * modules/unistr/u16-mbtoucr-tests: New file.
2509 * tests/unistr/test-u16-mbtoucr.c: New file.
2511 Tests for module 'unistr/u8-mbtoucr'.
2512 * modules/unistr/u8-mbtoucr-tests: New file.
2513 * tests/unistr/test-u8-mbtoucr.c: New file.
2515 Tests for module 'unistr/u32-mbtouc'.
2516 * modules/unistr/u32-mbtouc-tests: New file.
2517 * tests/unistr/test-u32-mbtouc.c: New file.
2519 Tests for module 'unistr/u16-mbtouc'.
2520 * modules/unistr/u16-mbtouc-tests: New file.
2521 * tests/unistr/test-u16-mbtouc.c: New file.
2523 Tests for module 'unistr/u8-mbtouc'.
2524 * modules/unistr/u8-mbtouc-tests: New file.
2525 * tests/unistr/test-u8-mbtouc.c: New file.
2527 Tests for module 'unistr/u32-mbtouc-unsafe'.
2528 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2529 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2530 * tests/unistr/test-u32-mbtouc.h: New file.
2532 Tests for module 'unistr/u16-mbtouc-unsafe'.
2533 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2534 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2535 * tests/unistr/test-u16-mbtouc.h: New file.
2537 Tests for module 'unistr/u8-mbtouc-unsafe'.
2538 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2539 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2540 * tests/unistr/test-u8-mbtouc.h: New file.
2542 Tests for module 'unistr/u32-mblen'.
2543 * modules/unistr/u32-mblen-tests: New file.
2544 * tests/unistr/test-u32-mblen.c: New file.
2546 Tests for module 'unistr/u16-mblen'.
2547 * modules/unistr/u16-mblen-tests: New file.
2548 * tests/unistr/test-u16-mblen.c: New file.
2550 Tests for module 'unistr/u8-mblen'.
2551 * modules/unistr/u8-mblen-tests: New file.
2552 * tests/unistr/test-u8-mblen.c: New file.
2554 Tests for module 'unistr/u32-to-u16'.
2555 * modules/unistr/u32-to-u16-tests: New file.
2556 * tests/unistr/test-u32-to-u16.c: New file.
2558 Tests for module 'unistr/u32-to-u8'.
2559 * modules/unistr/u32-to-u8-tests: New file.
2560 * tests/unistr/test-u32-to-u8.c: New file.
2562 Tests for module 'unistr/u16-to-u32'.
2563 * modules/unistr/u16-to-u32-tests: New file.
2564 * tests/unistr/test-u16-to-u32.c: New file.
2566 Tests for module 'unistr/u16-to-u8'.
2567 * modules/unistr/u16-to-u8-tests: New file.
2568 * tests/unistr/test-u16-to-u8.c: New file.
2570 Tests for module 'unistr/u8-to-u32'.
2571 * modules/unistr/u8-to-u32-tests: New file.
2572 * tests/unistr/test-u8-to-u32.c: New file.
2574 Tests for module 'unistr/u8-to-u16'.
2575 * modules/unistr/u8-to-u16-tests: New file.
2576 * tests/unistr/test-u8-to-u16.c: New file.
2578 Tests for module 'unistr/u32-check'.
2579 * modules/unistr/u32-check-tests: New file.
2580 * tests/unistr/test-u32-check.c: New file.
2582 Tests for module 'unistr/u16-check'.
2583 * modules/unistr/u16-check-tests: New file.
2584 * tests/unistr/test-u16-check.c: New file.
2586 Tests for module 'unistr/u8-check'.
2587 * modules/unistr/u8-check-tests: New file.
2588 * tests/unistr/test-u8-check.c: New file.
2590 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2591 (category_equals): New function.
2592 (main): Add more tests.
2593 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2595 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2597 2010-01-10 Bruno Haible <bruno@clisp.org>
2599 unistr/u*-strcoll: Try harder to distinguish different strings.
2600 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2601 compare s1 and s2 to see if they are different.
2603 2010-01-10 Bruno Haible <bruno@clisp.org>
2605 unistr/u*-stpncpy: Fix the return value.
2606 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2607 description of the return value consistent with stpncpy in glibc.
2608 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2609 written non-NUL unit.
2611 2010-01-10 Bruno Haible <bruno@clisp.org>
2613 unistr/u*-next: Add missing dependencies.
2614 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2615 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2616 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2618 2010-01-10 Bruno Haible <bruno@clisp.org>
2620 unistr/u8-mbsnlen: Fix return value for incomplete character.
2621 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2623 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2624 Remove unistr/u8-mblen.
2625 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2627 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2628 Remove unistr/u16-mblen.
2630 2010-01-10 Bruno Haible <bruno@clisp.org>
2632 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2633 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2634 Reported by Brian Gough <bjg@gnu.org> and
2635 Chris Clayton <chris2553@googlemail.com> via
2636 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2638 2010-01-09 Bruno Haible <bruno@clisp.org>
2640 unistr/u16-to-u32: Reject invalid input.
2641 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2643 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2644 Remove unistr/u16-mbtouc.
2646 unistr/u16-to-u8: Reject invalid input.
2647 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2649 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2650 Remove unistr/u16-mbtouc.
2652 unistr/u8-to-u32: Reject invalid input.
2653 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2655 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2656 Remove unistr/u8-mbtouc.
2658 unistr/u8-to-u16: Reject invalid input.
2659 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2661 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2662 Remove unistr/u8-mbtouc.
2664 2010-01-09 Bruno Haible <bruno@clisp.org>
2666 Tests for module 'getlogin'.
2667 * modules/getlogin-tests: New file.
2668 * tests/test-getlogin.c: New file.
2670 New module 'getlogin'.
2671 * lib/unistd.in.h (getlogin): New declaration.
2672 * lib/getlogin.c: New file.
2673 * m4/getlogin.m4: New file.
2674 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2676 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2678 * modules/getlogin: New file.
2679 * doc/posix-functions/getlogin.texi: Mention the new module.
2680 Reported by John W. Eaton <jwe@gnu.org>.
2682 2010-01-09 Bruno Haible <bruno@clisp.org>
2684 getlogin_r: Support for native Windows.
2685 * lib/getlogin_r.c: Include <windows.h>
2686 (getlogin_r): Implement for native Windows.
2687 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2688 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2689 via John W. Eaton <jwe@gnu.org>.
2691 2010-01-09 Bruno Haible <bruno@clisp.org>
2693 getlogin_r: Small fixes.
2694 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2696 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2697 before testing whether getlogin_r is declared. No need to set
2698 HAVE_DECL_GETLOGIN_R to 1.
2699 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2701 2010-01-09 Bruno Haible <bruno@clisp.org>
2703 * lib/unistd.in.h (getlogin_r): Add comment.
2705 2010-01-09 Bruno Haible <bruno@clisp.org>
2707 Tests for module 'getlogin_r'.
2708 * modules/getlogin_r-tests: New file.
2709 * tests/test-getlogin_r.c: New file.
2711 2010-01-09 Jim Meyering <meyering@redhat.com>
2713 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2714 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2715 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2717 2010-01-08 Simon Josefsson <simon@josefsson.org>
2719 * lib/dup2.c (rpl_dup2): Improve comment.
2721 2010-01-08 Eric Blake <ebb9@byu.net>
2723 maint.mk: allow packages to add makefile @@ exceptions
2724 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2725 (sc_makefile_check): Rename...
2726 (sc_makefile_at_at_check): ...to this, and use hook.
2728 dup2: work around mingw bug
2729 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2730 Reported by Simon Josefsson.
2732 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2734 glob: Fix C++ compilation.
2735 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2738 2010-01-07 Bruno Haible <bruno@clisp.org>
2740 Fix indentation of wctype.in.h, broken since 2007-01-06.
2741 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2743 2010-01-07 Bruno Haible <bruno@clisp.org>
2745 mbslen: Avoid collision with system function.
2746 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2747 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2748 * m4/mbslen.m4: New file.
2749 * modules/mbslen (Files): Add it.
2750 (configure.ac): Invoke gl_MBSLEN.
2751 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2752 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2753 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2754 via Ian Beckwith <ianb@erislabs.net>.
2756 2010-01-07 Bruno Haible <bruno@clisp.org>
2758 dirent: Document the last fix.
2759 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2761 2010-01-07 Bruno Haible <bruno@clisp.org>
2763 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2764 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2765 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2766 va_list are defined.
2767 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2768 Reported by Eric Blake.
2770 2010-01-07 Bruno Haible <bruno@clisp.org>
2772 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2773 * modules/xlist (Depends-on): Add 'list',
2774 * modules/xoset (Depends-on): Add 'oset'.
2775 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2777 2010-01-07 Bruno Haible <bruno@clisp.org>
2779 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2780 * doc/posix-functions/strncasecmp.texi: Likewise.
2782 2010-01-07 Bruno Haible <bruno@clisp.org>
2784 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2786 2010-01-07 John W. Eaton <jwe@octave.org>
2788 wctype: allow C++ use
2789 * lib/wctype.in.h: Add extern "C" block for C++.
2791 2010-01-06 Eric Blake <ebb9@byu.net>
2793 maint.mk: detect incorrect GFDL usage
2794 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2796 2010-01-06 Jim Meyering <meyering@redhat.com>
2797 and Eric Blake <ebb9@byu.net>
2799 maint.mk: ignore multi-line copyright in NEWS
2800 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2802 2010-01-06 Eric Blake <ebb9@byu.net>
2804 select: add missing dependency
2805 * modules/select-tests (Depends-on): Move sockets dependency...
2806 * modules/select (Depends-on): ...here.
2807 Reported by Ian Beckwith.
2809 doc: regenerate INSTALL
2810 * doc/INSTALL: Reflect recent autoconf update.
2811 * doc/INSTALL.ISO: Likewise.
2812 * doc/INSTALL.UTF-8: Likewise.
2814 pread: fix compilation on glibc
2815 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2816 Reported by Ralf Wildenhues.
2818 dirent: fix test failure
2819 * lib/dirent.in.h (includes): Guarantee ino_t.
2820 Reported by Ralf Wildenhues.
2822 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2824 linkat, renameat: avoid bad free
2825 * lib/at-func2.c (at_func2): Fix typo.
2826 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2828 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2830 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2831 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2832 to avoid failure of symlink test later.
2834 2010-01-06 Eric Blake <ebb9@byu.net>
2836 stdio, unistd: guarantee ssize_t
2837 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2838 2008 are exposed when needed.
2839 * lib/stdio.in.h (includes): Likewise.
2840 Reported by Ralf Wildenhues.
2842 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2844 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2845 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2846 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2848 2010-01-06 Jim Meyering <meyering@redhat.com>
2850 readtokens: this module *does* require xalloc.h
2851 It uses only functions that were omitted by the old syntax-check rule.
2852 * lib/readtokens.c: Include "xalloc.h" once again.
2853 * modules/readtokens (Depends-on): Add xalloc.
2854 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2856 2010-01-05 Eric Blake <ebb9@byu.net>
2858 maint: support 'make announcement' from a VPATH build
2859 * top/maint.mk (announcement): Look for correct NEWS file.
2861 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2863 utimens (fdutimens): ignore a negative FD, per contract
2864 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2865 when we have a valid file descriptor. Otherwise, using a brand
2866 new glibc (with just-patched futimens that now fails with EBADF)
2867 would cause this function to fail with ENOSYS.
2868 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2869 See also http://bugzilla.redhat.com/552320.
2871 2010-01-05 Eric Blake <ebb9@byu.net>
2873 strcase: document what it provides
2874 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2876 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2877 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2879 2010-01-05 Jim Meyering <meyering@redhat.com>
2881 maint: remove useless inclusions of "xalloc.h"
2882 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2883 * lib/readtokens.c: Likewise.
2884 * lib/same.c: Likewise.
2885 * modules/getloadavg (Depends-on): Remove xalloc.
2886 * modules/readtokens: Likewise.
2887 * modules/same: Likewise.
2889 maint.mk: include 4 more function names in alloca.h-checking regexp
2890 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2891 regexp. Before, we would give a false-positive (saying alloca.h
2892 is included unnecessarily) when the only uses involved omitted symbols.
2894 xalloc.h: use consistent formatting
2895 * lib/xalloc.h: Move declarations to start in the first column.
2897 2010-01-05 Eric Blake <ebb9@byu.net>
2900 * lib/mkdir.c (includes): Drop unused header.
2901 Reported by John W. Eaton.
2903 2010-01-04 Jim Meyering <meyering@redhat.com>
2905 nl_langinfo: avoid configure-time syntax error
2906 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2907 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2908 the empty string. Don't let that provoke a shell syntax error.
2910 regcomp, regexec, fnmatch: avoid array bounds read error
2911 * lib/regcomp.c (build_equiv_class): From glibc:
2912 Use only the low 24 bits of a findidx return value as an index
2913 into the weights array. Patch by Ulrich Drepper:
2914 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2915 * lib/regexec.c (check_node_accept_bytes): Likewise.
2916 * lib/fnmatch_loop.c (FCT): Likewise.
2918 regcomp: skip collseq lookup when there are no rules
2919 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2920 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2922 regcomp: recognize ill-formed { } expressions
2923 * lib/regcomp.c (parse_dup_op): From glibc:
2924 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2926 regcomp: fix typo in comment
2927 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2928 s/satisfy/satisfies/.
2930 regcomp: sync from glibc: remove dead store
2931 * lib/regcomp.c (duplicate_node_closure): Remove useless
2932 search_duplicated_node call and dead store.
2934 regcomp: sync from glibc; always use nl_langinfo
2935 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2936 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2937 * modules/regex (Depends-on): Add nl_langinfo.
2939 2010-01-04 Eric Blake <ebb9@byu.net>
2941 fdopendir: fix configure test
2942 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2944 2010-01-01 Bruno Haible <bruno@clisp.org>
2946 wchar: Remove unused configure check.
2947 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2949 2010-01-01 Eric Blake <ebb9@byu.net>
2951 headers: make check of system header explicit
2952 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2953 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2955 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2956 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2957 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2958 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2960 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2962 Suggested by Bruno Haible.
2964 2010-01-01 Jim Meyering <meyering@redhat.com>
2966 ChangeLog: tweak to eliminate unnecessary copyright line
2967 * ChangeLog: Remove a copyright line that was mistakenly updated
2968 by today's update-copyright run. Reported by Eric Blake.
2970 test-update-copyright: don't let envvar setting cause test failure
2971 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2973 2010-01-01 Bruno Haible <bruno@clisp.org>
2975 localename: Avoid gcc warning.
2976 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2977 function if it is not used.
2979 2010-01-01 Jim Meyering <meyering@redhat.com>
2981 update nearly all FSF copyright year lists to include 2010
2982 Use the same procedure as for 2009, outlined in
2983 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2985 version-etc: set COPYRIGHT_YEAR to 2010
2986 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2988 2009-12-31 Eric Blake <ebb9@byu.net>
2990 doc: correct availability of cygwin 1.5.x getopt
2991 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2993 * doc/posix-functions/opterr.texi (opterr): Likewise.
2994 * doc/posix-functions/optind.texi (optind): Likewise.
2995 * doc/posix-functions/optopt.texi (optopt): Likewise.
2996 * doc/posix-functions/tzname.texi (tzname): Likewise.
2998 openat: update maintainer
2999 * modules/openat (Maintainer): Add myself.
3001 utimens: avoid shadowing warning
3002 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3003 buffers into one, to avoid shadowing, as well as avoiding a
3005 Reported by Jim Meyering.
3007 test-dup2: avoid compiler warning
3008 * tests/test-dup2.c (is_inheritable): Only define if used.
3010 2010-01-01 Bruno Haible <bruno@clisp.org>
3012 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3013 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3014 defined, use wctomb instead of wcrtomb.
3016 2010-01-01 Bruno Haible <bruno@clisp.org>
3018 iconv: Reject native Solaris iconv.
3019 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3020 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3022 2009-12-31 Bruno Haible <bruno@clisp.org>
3024 * tests/test-signal.c (main): Remove test of 'SIG'.
3026 2009-12-31 Bruno Haible <bruno@clisp.org>
3028 spawn: Fix incomplete fix.
3029 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3030 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3031 warnings for GNULIB_POSIXCHECK again.
3032 Reported by Eric Blake.
3034 2009-12-31 Bruno Haible <bruno@clisp.org>
3036 Avoid namespace pollution on glibc systems.
3037 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3038 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3039 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3042 2009-12-31 Bruno Haible <bruno@clisp.org>
3044 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3045 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3046 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3047 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3048 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3049 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3050 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3052 2009-12-31 Bruno Haible <bruno@clisp.org>
3054 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3055 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3058 2009-12-31 Bruno Haible <bruno@clisp.org>
3060 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3063 2009-12-31 Bruno Haible <bruno@clisp.org>
3065 spawn: Fix misapplied patch.
3066 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3067 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3068 warnings for GNULIB_POSIXCHECK.
3070 2009-12-31 Bruno Haible <bruno@clisp.org>
3072 times: Update after sys_times changed.
3073 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3074 * modules/times (Files): Add it.
3075 (configure.ac): Invoke gl_FUNC_TIMES.
3077 2009-12-31 Bruno Haible <bruno@clisp.org>
3079 Use AC_C_INLINE where necessary.
3080 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3081 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3082 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3083 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3084 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3085 * m4/mbiter.m4 (gl_MBITER): Likewise.
3086 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3087 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3088 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3089 * modules/u64 (configure.ac): Likewise.
3091 2009-12-31 Bruno Haible <bruno@clisp.org>
3093 Use AC_C_INLINE instead of module 'inline' where possible.
3094 * modules/inline (Description): Clarify purpose.
3095 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3096 * modules/count-one-bits (Depends-on): Remove inline.
3097 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3098 * modules/openat (Depends-on): Remove inline.
3099 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3100 instead of depending on module 'inline'.
3101 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3102 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3103 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3104 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3105 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3106 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3107 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3108 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3109 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3110 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3111 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3112 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3113 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3114 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3115 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3116 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3117 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3118 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3120 * modules/unictype/property-ascii-hex-digit (Depends-on,
3121 configure.ac): Likewise.
3122 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3123 configure.ac): Likewise.
3124 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3125 configure.ac): Likewise.
3126 * modules/unictype/property-bidi-block-separator (Depends-on,
3127 configure.ac): Likewise.
3128 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3129 configure.ac): Likewise.
3130 * modules/unictype/property-bidi-common-separator (Depends-on,
3131 configure.ac): Likewise.
3132 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3134 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3135 configure.ac): Likewise.
3136 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3137 configure.ac): Likewise.
3138 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3139 configure.ac): Likewise.
3140 * modules/unictype/property-bidi-european-digit (Depends-on,
3141 configure.ac): Likewise.
3142 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3143 configure.ac): Likewise.
3144 * modules/unictype/property-bidi-left-to-right (Depends-on,
3145 configure.ac): Likewise.
3146 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3147 configure.ac): Likewise.
3148 * modules/unictype/property-bidi-other-neutral (Depends-on,
3149 configure.ac): Likewise.
3150 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3152 * modules/unictype/property-bidi-segment-separator (Depends-on,
3153 configure.ac): Likewise.
3154 * modules/unictype/property-bidi-whitespace (Depends-on,
3155 configure.ac): Likewise.
3156 * modules/unictype/property-combining (Depends-on, configure.ac):
3158 * modules/unictype/property-composite (Depends-on, configure.ac):
3160 * modules/unictype/property-currency-symbol (Depends-on,
3161 configure.ac): Likewise.
3162 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3163 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3165 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3166 configure.ac): Likewise.
3167 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3169 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3171 * modules/unictype/property-extender (Depends-on, configure.ac):
3173 * modules/unictype/property-format-control (Depends-on, configure.ac):
3175 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3177 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3179 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3181 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3183 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3185 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3187 * modules/unictype/property-id-start (Depends-on, configure.ac):
3189 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3191 * modules/unictype/property-ids-binary-operator (Depends-on,
3192 configure.ac): Likewise.
3193 * modules/unictype/property-ids-trinary-operator (Depends-on,
3194 configure.ac): Likewise.
3195 * modules/unictype/property-ignorable-control (Depends-on,
3196 configure.ac): Likewise.
3197 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3199 * modules/unictype/property-join-control (Depends-on, configure.ac):
3201 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3203 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3205 * modules/unictype/property-logical-order-exception (Depends-on,
3206 configure.ac): Likewise.
3207 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3209 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3210 * modules/unictype/property-non-break (Depends-on, configure.ac):
3212 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3214 * modules/unictype/property-numeric (Depends-on, configure.ac):
3216 * modules/unictype/property-other-alphabetic (Depends-on,
3217 configure.ac): Likewise.
3218 * modules/unictype/property-other-default-ignorable-code-point
3219 (Depends-on, configure.ac): Likewise.
3220 * modules/unictype/property-other-grapheme-extend (Depends-on,
3221 configure.ac): Likewise.
3222 * modules/unictype/property-other-id-continue (Depends-on,
3223 configure.ac): Likewise.
3224 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3226 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3228 * modules/unictype/property-other-math (Depends-on, configure.ac):
3230 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3232 * modules/unictype/property-paired-punctuation (Depends-on,
3233 configure.ac): Likewise.
3234 * modules/unictype/property-paragraph-separator (Depends-on,
3235 configure.ac): Likewise.
3236 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3238 * modules/unictype/property-pattern-white-space (Depends-on,
3239 configure.ac): Likewise.
3240 * modules/unictype/property-private-use (Depends-on, configure.ac):
3242 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3244 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3246 * modules/unictype/property-radical (Depends-on, configure.ac):
3248 * modules/unictype/property-sentence-terminal (Depends-on,
3249 configure.ac): Likewise.
3250 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3252 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3253 * modules/unictype/property-terminal-punctuation (Depends-on,
3254 configure.ac): Likewise.
3255 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3257 * modules/unictype/property-unassigned-code-value (Depends-on,
3258 configure.ac): Likewise.
3259 * modules/unictype/property-unified-ideograph (Depends-on,
3260 configure.ac): Likewise.
3261 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3263 * modules/unictype/property-variation-selector (Depends-on,
3264 configure.ac): Likewise.
3265 * modules/unictype/property-white-space (Depends-on, configure.ac):
3267 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3269 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3271 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3273 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3274 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3277 2009-12-31 Bruno Haible <bruno@clisp.org>
3279 Remove unnecessary AC_C_INLINE invocation.
3280 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3283 2009-12-31 Jim Meyering <meyering@redhat.com>
3285 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3286 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3287 With this change, we can all remove the gpg_key_ID = ... definition
3288 from our respective cfg.mk files.
3290 maint.mk: create announcement template in ~/, not in /tmp
3291 * top/maint.mk (emit_upload_commands): Adjust.
3292 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3293 Remove temporary file, .ci-msg.
3295 2009-12-31 Eric Blake <ebb9@byu.net>
3297 link-warning: always build headers with link warnings
3298 * modules/arpa_inet (Makefile.am): Always build replacement
3300 * modules/ctype (Makefile.am): Likewise.
3301 * modules/dirent (Makefile.am): Likewise.
3302 * modules/inttypes (Makefile.am): Likewise.
3303 * modules/langinfo (Makefile.am): Likewise.
3304 * modules/locale (Makefile.am): Likewise.
3305 * modules/spawn (Makefile.am): Likewise.
3306 * modules/sys_file (Makefile.am): Likewise.
3307 * modules/sys_ioctl (Makefile.am): Likewise.
3308 * modules/sys_select (Makefile.am): Likewise.
3309 * modules/sys_socket (Makefile.am): Likewise.
3310 * modules/sys_times (Makefile.am): Likewise.
3311 * modules/sys_utsname (Makefile.am): Likewise.
3312 * modules/sys_wait (Makefile.am): Likewise.
3313 * modules/wchar (Makefile.am): Likewise.
3314 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3315 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3316 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3317 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3318 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3320 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3321 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3322 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3324 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3326 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3327 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3328 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3329 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3330 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3331 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3332 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3333 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3334 (gl_WCHAR_H_DEFAULTS): Likewise.
3336 2009-12-31 Eric Blake <ebb9@byu.net>
3338 signal, spawn: use link warnings
3339 * lib/signal.in.h (sigset_t): Make unconditional.
3340 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3341 (sigpending, sigprocmask, sigaction): Add link warnings.
3342 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3343 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3344 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3345 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3346 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3347 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3348 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3349 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3350 (posix_spawn_file_actions_destroy)
3351 (posix_spawn_file_actions_addopen)
3352 (posix_spawn_file_actions_addclose)
3353 (posix_spawwn_file_actions_adddup2): Likewise.
3354 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3355 * tests/test-signal.c (main): Enhance test.
3357 spawn: improve wrapper support
3358 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3359 (gl_SPAWN_H_DEFAULTS): New defaults.
3360 * modules/spawn (Makefile.am): Substitute them.
3361 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3362 Only declare if missing or broken.
3364 sys_times, sys_utsname: use include_next
3365 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3367 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3368 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3369 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3370 * modules/sys_times (Depends-on): Add include_next.
3371 (Makefile.am): Substitute additional values.
3372 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3373 * lib/sys_times.in.h (includes): Include native header, if
3375 * lib/sys_utsname.in.h (includes): Likewise.
3376 * tests/test-sys_times.c (main): Enhance test.
3378 fdutimensat: revert prior patch
3379 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3381 Reported by Bruno Haible.
3383 2009-12-30 Eric Blake <ebb9@byu.net>
3385 sys_wait: drop link-warning dependency
3386 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3387 link-warning efforts.
3388 * lib/sys_wait.in.h: Likewise.
3390 fdutimensat: remove bogus dependency
3391 * modules/fdutimensat (Depends-on): Drop inline.
3394 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3396 2009-12-30 Bruno Haible <bruno@clisp.org>
3398 Fix compilation error with Solaris cc.
3399 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3400 * lib/unicase/u16-is-invariant.c: Likewise.
3401 * lib/unicase/u32-is-invariant.c: Likewise.
3402 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3404 2009-12-30 Bruno Haible <bruno@clisp.org>
3407 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3409 Reported by Simon Josefsson <simon@josefsson.org>.
3411 2009-12-30 Bruno Haible <bruno@clisp.org>
3413 Fix compilation error on most platforms.
3414 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3415 Reported by Simon Josefsson <simon@josefsson.org>
3416 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3418 2009-12-30 Eric Blake <ebb9@byu.net>
3420 futimens, utimensat: work around ntfs-3g bug
3421 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3422 a ctime bug is present, and expand workaround to cover ntfs-3g.
3423 * lib/utimens.c (fdutimens, lutimens): Likewise.
3424 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3425 (validate_timespec): Adjust return value.
3426 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3427 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3428 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3430 2009-12-29 Eric Blake <ebb9@byu.net>
3432 link-warning: make usage consistent
3433 * modules/ctype (Depends-on): Add link-warning.
3434 (Makefile.am): Update rules accordingly.
3435 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3436 * modules/locale (Depends-on, Makefile.am): Likewise.
3437 * modules/sys_file (Makefile.am): Likewise.
3438 * modules/getopt-posix (Makefile.am): Delete unused link warning
3440 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3441 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3442 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3443 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3445 stdio: remove unused variables
3446 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3447 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3448 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3450 tests: test more substitute headers
3451 * modules/ctype-tests: New file.
3452 * modules/dirent-tests: Likewise.
3453 * modules/spawn-tests: Likewise.
3454 * modules/sys_file-tests: Likewise.
3455 * modules/sys_ioctl-tests: Likewise.
3456 * modules/sys_wait-tests: Likewise.
3457 * tests/test-ctype.c: Likewise.
3458 * tests/test-dirent.c: Likewise.
3459 * tests/test-spawn.c: Likewise.
3460 * tests/test-sys_file.c: Likewise.
3461 * tests/test-sys_ioctl.c: Likewise.
3462 * tests/test-sys_wait.c: Likewise.
3463 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3464 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3465 whether or not flock is in use.
3467 tests: remove License section from module
3468 * modules/arpa_inet-tests: Remove unneeded section.
3469 * modules/byteswap-tests: Likewise.
3470 * modules/ceilf-tests: Likewise.
3471 * modules/ceill-tests: Likewise.
3472 * modules/crypto/des-tests: Likewise.
3473 * modules/crypto/gc-arcfour-tests: Likewise.
3474 * modules/crypto/gc-arctwo-tests: Likewise.
3475 * modules/crypto/gc-des-tests: Likewise.
3476 * modules/crypto/gc-hmac-md5-tests: Likewise.
3477 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3478 * modules/crypto/gc-md2-tests: Likewise.
3479 * modules/crypto/gc-md4-tests: Likewise.
3480 * modules/crypto/gc-md5-tests: Likewise.
3481 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3482 * modules/crypto/gc-rijndael-tests: Likewise.
3483 * modules/crypto/gc-sha1-tests: Likewise.
3484 * modules/crypto/gc-tests: Likewise.
3485 * modules/crypto/md2-tests: Likewise.
3486 * modules/crypto/md4-tests: Likewise.
3487 * modules/fcntl-h-tests: Likewise.
3488 * modules/floorf-tests: Likewise.
3489 * modules/floorl-tests: Likewise.
3490 * modules/frexp-nolibm-tests: Likewise.
3491 * modules/frexp-tests: Likewise.
3492 * modules/frexpl-nolibm-tests: Likewise.
3493 * modules/frexpl-tests: Likewise.
3494 * modules/getaddrinfo-tests: Likewise.
3495 * modules/inttypes-tests: Likewise.
3496 * modules/isfinite-tests: Likewise.
3497 * modules/isinf-tests: Likewise.
3498 * modules/ldexpl-tests: Likewise.
3499 * modules/locale-tests: Likewise.
3500 * modules/math-tests: Likewise.
3501 * modules/netdb-tests: Likewise.
3502 * modules/netinet_in-tests: Likewise.
3503 * modules/printf-frexp-tests: Likewise.
3504 * modules/printf-frexpl-tests: Likewise.
3505 * modules/priv-set-tests: Likewise.
3506 * modules/random_r-tests: Likewise.
3507 * modules/round-tests: Likewise.
3508 * modules/roundf-tests: Likewise.
3509 * modules/roundl-tests: Likewise.
3510 * modules/search-tests: Likewise.
3511 * modules/select-tests: Likewise.
3512 * modules/signal-tests: Likewise.
3513 * modules/stdbool-tests: Likewise.
3514 * modules/stddef-tests: Likewise.
3515 * modules/stdint-tests: Likewise.
3516 * modules/stdio-tests: Likewise.
3517 * modules/stdlib-tests: Likewise.
3518 * modules/string-tests: Likewise.
3519 * modules/strings-tests: Likewise.
3520 * modules/sys_select-tests: Likewise.
3521 * modules/sys_socket-tests: Likewise.
3522 * modules/sys_stat-tests: Likewise.
3523 * modules/sys_time-tests: Likewise.
3524 * modules/sys_utsname-tests: Likewise.
3525 * modules/sysexits-tests: Likewise.
3526 * modules/time-tests: Likewise.
3527 * modules/trunc-tests: Likewise.
3528 * modules/truncf-tests: Likewise.
3529 * modules/truncl-tests: Likewise.
3530 * modules/tsearch-tests: Likewise.
3531 * modules/unistd-tests: Likewise.
3532 * modules/wchar-tests: Likewise.
3533 * modules/wctype-tests: Likewise.
3535 tests: fix license on several tests
3536 * tests/test-des.c: Update to GPLv3+.
3537 * tests/test-flock.c: Likewise.
3538 * tests/test-fsync.c: Likewise.
3539 * tests/test-futimens.h: Likewise.
3540 * tests/test-gc-arcfour.c: Likewise.
3541 * tests/test-gc-arctwo.c: Likewise.
3542 * tests/test-gc-des.c: Likewise.
3543 * tests/test-gc-hmac-md5.c: Likewise.
3544 * tests/test-gc-hmac-sha1.c: Likewise.
3545 * tests/test-gc-md2.c: Likewise.
3546 * tests/test-gc-md4.c: Likewise.
3547 * tests/test-gc-md5.c: Likewise.
3548 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3549 * tests/test-gc-rijndael.c: Likewise.
3550 * tests/test-gc-sha1.c: Likewise.
3551 * tests/test-gc.c: Likewise.
3552 * tests/test-getcwd.c: Likewise.
3553 * tests/test-link.c: Likewise.
3554 * tests/test-link.h: Likewise.
3555 * tests/test-lutimens.h: Likewise.
3556 * tests/test-md2.c: Likewise.
3557 * tests/test-md4.c: Likewise.
3558 * tests/test-mkdir.h: Likewise.
3559 * tests/test-rename.c: Likewise.
3560 * tests/test-rename.h: Likewise.
3561 * tests/test-safe-alloc.c: Likewise.
3562 * tests/test-utimens-common.h: Likewise.
3563 * tests/test-utimens.h: Likewise.
3565 maint: sync license texts
3566 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3567 * doc/gpl-3.0.texi: Revert copyright year update.
3568 * doc/lgpl-3.0.texi: Likewise.
3570 2009-12-29 Jim Meyering <meyering@redhat.com>
3572 update nearly all FSF copyright year lists to include 2009
3573 The files named by the following are exempted:
3574 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3575 test -f "$dst" && { echo "$dst"; continue; }
3576 test -d "$dst" || continue
3577 echo "$dst"/$(basename "$src")
3579 git ls-files tests/unictype >> exempt
3580 In the remaining files, convert to all-interval notation if
3581 - there is already at least one year interval like 2000-2003
3582 - the file is maintained by me
3583 - the file is in lib/uni*/, where that style already prevails
3584 Otherwise, use update-copyright's default.
3586 2009-12-29 Simon Josefsson <simon@josefsson.org>
3587 and Eric Blake <ebb9@byu.net>
3589 tests: don't require debug system() to pass
3590 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3591 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3592 * tests/test-unlink.h (test_unlink_func): Likewise.
3593 * tests/test-fstatat.c (main): ...into callers.
3594 * tests/test-lstat.c (main): Likewise.
3595 * tests/test-rmdir.c (main): Likewise.
3596 * tests/test-unlink.c (main): Likewise.
3597 * tests/test-unlinkat.c (main): Likewise.
3598 * tests/test-areadlink-with-size.c (main): Don't require a
3599 debug-only system call to pass, aiding cross-testing to mingw.
3600 * tests/test-areadlink.c (main): Likewise.
3601 * tests/test-areadlinkat-with-size.c (main): Likewise.
3602 * tests/test-areadlinkat.c (main): Likewise.
3603 * tests/test-canonicalize-lgpl.c (main): Likewise.
3604 * tests/test-canonicalize.c (main): Likewise.
3605 * tests/test-chown.c (main): Likewise.
3606 * tests/test-fchownat.c (main): Likewise.
3607 * tests/test-lchown.c (main): Likewise.
3608 * tests/test-fdutimensat.c (main): Likewise.
3609 * tests/test-futimens.c (main): Likewise.
3610 * tests/test-link.c (main): Likewise.
3611 * tests/test-linkat.c (main): Likewise.
3612 * tests/test-mkdir.c (main): Likewise.
3613 * tests/test-mkdirat.c (main): Likewise.
3614 * tests/test-mkfifo.c (main): Likewise.
3615 * tests/test-mkfifoat.c (main): Likewise.
3616 * tests/test-mknod.c (main): Likewise.
3617 * tests/test-readlink.c (main): Likewise.
3618 * tests/test-remove.c (main): Likewise.
3619 * tests/test-rename.c (main): Likewise.
3620 * tests/test-renameat.c (main): Likewise.
3621 * tests/test-symlink.c (main): Likewise.
3622 * tests/test-symlinkat.c (main): Likewise.
3623 * tests/test-utimens.c (main): Likewise.
3624 * tests/test-utimensat.c (main): Likewise.
3626 2009-12-29 Simon Josefsson <simon@josefsson.org>
3628 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3629 on $(UNUSED_PARAMETER_H) to avoid build failure.
3631 2009-12-28 Jim Meyering <meyering@redhat.com>
3633 update-copyright: you may specify a max. line length other than 72
3634 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3636 maint: use consistent FSF copyright line syntax
3637 * lib/posixtm.c: Add missing comma in FSF copyright line.
3638 * lib/posixtm.h: Likewise.
3639 * lib/getugroups.c: Add missing ", Inc.".
3641 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3642 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3643 FSF copyright line. Remove trailing blanks.
3645 2009-12-28 Eric Blake <ebb9@byu.net>
3647 test-dup2: reduce dependencies
3648 * modules/cloexec (Configure.ac): Set witness.
3649 * modules/dup2-tests (Depends-on): Drop cloexec.
3650 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3652 Suggested by Bruno Haible.
3654 2009-12-26 Bruno Haible <bruno@clisp.org>
3656 Remove an unneeded dependency.
3657 * modules/fseterr (Depends-on): Remove dup2.
3659 2009-12-26 Eric Blake <ebb9@byu.net>
3661 tests: use macros.h in more places
3662 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3663 (ASSERT_STREAM): Provide default of stderr.
3664 * tests/test-dirent-safer.c: Include macros.h, using alternate
3665 stream for assertions.
3666 * tests/test-dup-safer.c: Likewise.
3667 * tests/test-freopen-safer.c: Likewise.
3668 * tests/test-getopt.c: Likewise.
3669 * tests/test-openat-safer.c: Likewise.
3670 * tests/test-pipe.c: Likewise.
3671 * tests/test-popen-safer.c: Likewise.
3672 * modules/dirent-safer-tests (Files): Include macros.h.
3673 * modules/unistd-safer-tests (Files): Likewise.
3674 * modules/freopen-safer-tests (Files): Likewise.
3675 * modules/getopt-posix-tests (Files): Likewise.
3676 * modules/openat-safer-tests (Files): Likewise.
3677 * modules/pipe-tests (Files): Likewise.
3679 2009-12-26 Bruno Haible <bruno@clisp.org>
3681 javacomp: Portability fix.
3682 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3683 that it also works on Solaris.
3685 2009-12-26 Bruno Haible <bruno@clisp.org>
3687 localename: Fix storage allocation of gl_locale_name_thread's result.
3688 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3689 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3690 all platforms that have 'uselocale'.
3691 (gl_locale_name_thread_unsafe): New function, extracted from
3692 gl_locale_name_thread.
3693 (gl_locale_name_thread): Call struniq on all platforms that have
3695 * tests/test-localename.c (test_locale_name_thread): Check that the
3696 resulting strings are permanently allocated.
3697 * modules/localename-tests (Depends-on): Add strdup.
3699 2009-12-26 Bruno Haible <bruno@clisp.org>
3701 * tests/test-localename.c (categories): Fill in the strings.
3703 2009-12-26 Jim Meyering <meyering@redhat.com>
3705 isdir: complete the removal of m4/isdir.m4
3706 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3708 isdir: clean up, since at least grep still uses it
3709 * lib/isdir.c: Include "isdir.h".
3710 (S_ISDIR): Remove now-unneeded definition.
3711 * modules/isdir (Files): Add lib/isdir.h.
3712 * lib/isdir.h: New file, with declaration.
3713 * m4/isdir.m4: Remove file -- unneeded.
3715 2009-12-25 Bruno Haible <bruno@clisp.org>
3717 selinux-h: Make generated .h files standalone.
3718 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3719 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3720 * lib/se-selinux.in.h: Likewise.
3721 * modules/selinux-h (Depends-on): Add unused-parameter.
3722 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3723 selinux/selinux.h and selinux/context.h.
3724 Suggested by Eric Blake.
3726 2009-12-25 Bruno Haible <bruno@clisp.org>
3728 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3729 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3730 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3731 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3732 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3734 2009-12-24 Bruno Haible <bruno@clisp.org>
3736 openat: Fix warning.
3737 * lib/openat-proc.c: Include <unistd.h>.
3739 2009-12-24 Bruno Haible <bruno@clisp.org>
3741 New module 'unused-parameter'.
3742 * build-aux/unused-parameter.h: New file, extracted from earlier
3744 * modules/unused-parameter: New file.
3745 * lib/unistr.h: Include unused-parameter.h.
3746 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3748 * modules/unistr/base (Depends-on): Add unused-parameter.
3750 2009-12-24 Bruno Haible <bruno@clisp.org>
3752 Add missing dependencies to 'extensions' module.
3753 * m4/extensions.m4: Add comment.
3754 * modules/accept4 (Depends-on): Add extensions.
3755 * modules/dup3 (Depends-on): Likewise.
3756 * modules/fcntl (Depends-on): Likewise.
3757 * modules/futimens (Depends-on): Likewise.
3758 * modules/mknod (Depends-on): Likewise.
3759 * modules/pipe2 (Depends-on): Likewise.
3760 * modules/stat-time (Depends-on): Likewise.
3761 * modules/strcasestr-simple (Depends-on): Likewise.
3762 * modules/strsignal (Depends-on): Likewise.
3763 * modules/utimensat (Depends-on): Likewise.
3764 * modules/localcharset (Depends-on): Likewise. Needed because of
3766 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3768 * modules/wcsnrtombs (Depends-on): Likewise.
3769 * modules/wcsrtombs (Depends-on): Likewise.
3771 2009-12-24 Bruno Haible <bruno@clisp.org>
3773 binary-io: Avoid gcc warning due to SET_BINARY.
3774 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3775 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3777 2009-12-24 Bruno Haible <bruno@clisp.org>
3779 Avoid future namespace pollution on glibc systems.
3780 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3781 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3782 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3785 2009-12-24 Bruno Haible <bruno@clisp.org>
3787 Refactor common macros used in tests.
3788 * tests/macros.h: New file.
3789 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3790 and/or <stdlib.h>, if appropriate.
3791 (ASSERT, SIZEOF): Remove macros.
3792 * tests/test-areadlink-with-size.c: Likewise.
3793 * tests/test-areadlinkat.c: Likewise.
3794 * tests/test-areadlinkat-with-size.c: Likewise.
3795 * tests/test-argmatch.c: Likewise.
3796 * tests/test-argv-iter.c: Likewise.
3797 * tests/test-array-mergesort.c: Likewise.
3798 * tests/test-array_list.c: Likewise.
3799 * tests/test-array_oset.c: Likewise.
3800 * tests/test-avltree_list.c: Likewise.
3801 * tests/test-avltree_oset.c: Likewise.
3802 * tests/test-avltreehash_list.c: Likewise.
3803 * tests/test-base64.c: Likewise.
3804 * tests/test-binary-io.c: Likewise.
3805 * tests/test-bitrotate.c: Likewise.
3806 * tests/test-btowc.c: Likewise.
3807 * tests/test-byteswap.c: Likewise.
3808 * tests/test-c-ctype.c: Likewise.
3809 * tests/test-c-stack.c: Likewise.
3810 * tests/test-c-strcasecmp.c: Likewise.
3811 * tests/test-c-strcasestr.c: Likewise.
3812 * tests/test-c-strncasecmp.c: Likewise.
3813 * tests/test-c-strstr.c: Likewise.
3814 * tests/test-canonicalize-lgpl.c: Likewise.
3815 * tests/test-canonicalize.c: Likewise.
3816 * tests/test-carray_list.c: Likewise.
3817 * tests/test-ceilf1.c: Likewise.
3818 * tests/test-ceilf2.c: Likewise.
3819 * tests/test-ceill.c: Likewise.
3820 * tests/test-chown.c: Likewise.
3821 * tests/test-cloexec.c: Likewise.
3822 * tests/test-copy-acl.c: Likewise.
3823 * tests/test-copy-file.c: Likewise.
3824 * tests/test-count-one-bits.c: Likewise.
3825 * tests/test-dprintf-posix.c: Likewise.
3826 * tests/test-dup2.c: Likewise.
3827 * tests/test-dup3.c: Likewise.
3828 * tests/test-duplocale.c: Likewise.
3829 * tests/test-fbufmode.c: Likewise.
3830 * tests/test-fchdir.c: Likewise.
3831 * tests/test-fchownat.c: Likewise.
3832 * tests/test-fcntl-safer.c: Likewise.
3833 * tests/test-fcntl.c: Likewise.
3834 * tests/test-fdopendir.c: Likewise.
3835 * tests/test-fdutimensat.c: Likewise.
3836 * tests/test-fflush2.c: Likewise.
3837 * tests/test-file-has-acl.c: Likewise.
3838 * tests/test-filevercmp.c: Likewise.
3839 * tests/test-flock.c: Likewise.
3840 * tests/test-floorf1.c: Likewise.
3841 * tests/test-floorf2.c: Likewise.
3842 * tests/test-floorl.c: Likewise.
3843 * tests/test-fnmatch.c: Likewise.
3844 * tests/test-fopen.h: Likewise.
3845 * tests/test-fpending.c: Likewise.
3846 * tests/test-fprintf-posix.c: Likewise.
3847 * tests/test-fpurge.c: Likewise.
3848 * tests/test-freadable.c: Likewise.
3849 * tests/test-freadahead.c: Likewise.
3850 * tests/test-freading.c: Likewise.
3851 * tests/test-freadptr.c: Likewise.
3852 * tests/test-freadptr2.c: Likewise.
3853 * tests/test-freadseek.c: Likewise.
3854 * tests/test-freopen.c: Likewise.
3855 * tests/test-frexp.c: Likewise.
3856 * tests/test-frexpl.c: Likewise.
3857 * tests/test-fseek.c: Likewise.
3858 * tests/test-fseeko.c: Likewise.
3859 * tests/test-fstatat.c: Likewise.
3860 * tests/test-fstrcmp.c: Likewise.
3861 * tests/test-fsync.c: Likewise.
3862 * tests/test-ftell.c: Likewise.
3863 * tests/test-ftello.c: Likewise.
3864 * tests/test-func.c: Likewise.
3865 * tests/test-futimens.c: Likewise.
3866 * tests/test-fwritable.c: Likewise.
3867 * tests/test-fwriting.c: Likewise.
3868 * tests/test-getcwd.c: Likewise.
3869 * tests/test-getdate.c: Likewise.
3870 * tests/test-getdelim.c: Likewise.
3871 * tests/test-getdtablesize.c: Likewise.
3872 * tests/test-getgroups.c: Likewise.
3873 * tests/test-getline.c: Likewise.
3874 * tests/test-getndelim2.c: Likewise.
3875 * tests/test-glob.c: Likewise.
3876 * tests/test-hash.c: Likewise.
3877 * tests/test-i-ring.c: Likewise.
3878 * tests/test-iconv-utf.c: Likewise.
3879 * tests/test-iconv.c: Likewise.
3880 * tests/test-idpriv-drop.c: Likewise.
3881 * tests/test-idpriv-droptemp.c: Likewise.
3882 * tests/test-inet_ntop.c: Likewise.
3883 * tests/test-inet_pton.c: Likewise.
3884 * tests/test-isblank.c: Likewise.
3885 * tests/test-isfinite.c: Likewise.
3886 * tests/test-isinf.c: Likewise.
3887 * tests/test-isnan.c: Likewise.
3888 * tests/test-isnand.h: Likewise.
3889 * tests/test-isnanf.h: Likewise.
3890 * tests/test-isnanl.h: Likewise.
3891 * tests/test-lchown.c: Likewise.
3892 * tests/test-ldexpl.c: Likewise.
3893 * tests/test-link.c: Likewise.
3894 * tests/test-linkat.c: Likewise.
3895 * tests/test-linked_list.c: Likewise.
3896 * tests/test-linkedhash_list.c: Likewise.
3897 * tests/test-localename.c: Likewise.
3898 * tests/test-lseek.c: Likewise.
3899 * tests/test-lstat.c: Likewise.
3900 * tests/test-mbmemcasecmp.c: Likewise.
3901 * tests/test-mbmemcasecoll.c: Likewise.
3902 * tests/test-mbrtowc.c: Likewise.
3903 * tests/test-mbscasecmp.c: Likewise.
3904 * tests/test-mbscasestr1.c: Likewise.
3905 * tests/test-mbscasestr2.c: Likewise.
3906 * tests/test-mbscasestr3.c: Likewise.
3907 * tests/test-mbscasestr4.c: Likewise.
3908 * tests/test-mbschr.c: Likewise.
3909 * tests/test-mbscspn.c: Likewise.
3910 * tests/test-mbsinit.c: Likewise.
3911 * tests/test-mbsncasecmp.c: Likewise.
3912 * tests/test-mbsnrtowcs.c: Likewise.
3913 * tests/test-mbspbrk.c: Likewise.
3914 * tests/test-mbspcasecmp.c: Likewise.
3915 * tests/test-mbsrchr.c: Likewise.
3916 * tests/test-mbsrtowcs.c: Likewise.
3917 * tests/test-mbsspn.c: Likewise.
3918 * tests/test-mbsstr1.c: Likewise.
3919 * tests/test-mbsstr2.c: Likewise.
3920 * tests/test-mbsstr3.c: Likewise.
3921 * tests/test-memchr.c: Likewise.
3922 * tests/test-memchr2.c: Likewise.
3923 * tests/test-memcmp.c: Likewise.
3924 * tests/test-memmem.c: Likewise.
3925 * tests/test-memrchr.c: Likewise.
3926 * tests/test-mkdir.c: Likewise.
3927 * tests/test-mkdirat.c: Likewise.
3928 * tests/test-mkfifo.c: Likewise.
3929 * tests/test-mkfifoat.c: Likewise.
3930 * tests/test-mknod.c: Likewise.
3931 * tests/test-nanosleep.c: Likewise.
3932 * tests/test-nl_langinfo.c: Likewise.
3933 * tests/test-obstack-printf.c: Likewise.
3934 * tests/test-open.c: Likewise.
3935 * tests/test-openat.c: Likewise.
3936 * tests/test-pipe-filter-gi1.c: Likewise.
3937 * tests/test-pipe-filter-gi2-main.c: Likewise.
3938 * tests/test-pipe-filter-ii1.c: Likewise.
3939 * tests/test-pipe-filter-ii2-main.c: Likewise.
3940 * tests/test-pipe2.c: Likewise.
3941 * tests/test-popen.h: Likewise.
3942 * tests/test-posixtm.c: Likewise.
3943 * tests/test-pread.c: Likewise.
3944 * tests/test-printf-frexp.c: Likewise.
3945 * tests/test-printf-frexpl.c: Likewise.
3946 * tests/test-printf-posix.c: Likewise.
3947 * tests/test-priv-set.c: Likewise.
3948 * tests/test-quotearg.c: Likewise.
3949 * tests/test-random_r.c: Likewise.
3950 * tests/test-rawmemchr.c: Likewise.
3951 * tests/test-rbtree_list.c: Likewise.
3952 * tests/test-rbtree_oset.c: Likewise.
3953 * tests/test-rbtreehash_list.c: Likewise.
3954 * tests/test-readlink.c: Likewise.
3955 * tests/test-remove.c: Likewise.
3956 * tests/test-rename.c: Likewise.
3957 * tests/test-renameat.c: Likewise.
3958 * tests/test-rmdir.c: Likewise.
3959 * tests/test-round1.c: Likewise.
3960 * tests/test-roundf1.c: Likewise.
3961 * tests/test-roundl.c: Likewise.
3962 * tests/test-safe-alloc.c: Likewise.
3963 * tests/test-sameacls.c: Likewise.
3964 * tests/test-set-mode-acl.c: Likewise.
3965 * tests/test-setenv.c: Likewise.
3966 * tests/test-sigaction.c: Likewise.
3967 * tests/test-signbit.c: Likewise.
3968 * tests/test-sleep.c: Likewise.
3969 * tests/test-snprintf-posix.c: Likewise.
3970 * tests/test-snprintf.c: Likewise.
3971 * tests/test-sprintf-posix.c: Likewise.
3972 * tests/test-stat-time.c: Likewise.
3973 * tests/test-stat.c: Likewise.
3974 * tests/test-strcasestr.c: Likewise.
3975 * tests/test-strchrnul.c: Likewise.
3976 * tests/test-strerror.c: Likewise.
3977 * tests/test-striconv.c: Likewise.
3978 * tests/test-striconveh.c: Likewise.
3979 * tests/test-striconveha.c: Likewise.
3980 * tests/test-strsignal.c: Likewise.
3981 * tests/test-strstr.c: Likewise.
3982 * tests/test-strtod.c: Likewise.
3983 * tests/test-strverscmp.c: Likewise.
3984 * tests/test-symlink.c: Likewise.
3985 * tests/test-symlinkat.c: Likewise.
3986 * tests/test-trunc1.c: Likewise.
3987 * tests/test-trunc2.c: Likewise.
3988 * tests/test-truncf1.c: Likewise.
3989 * tests/test-truncf2.c: Likewise.
3990 * tests/test-truncl.c: Likewise.
3991 * tests/test-uname.c: Likewise.
3992 * tests/test-unlink.c: Likewise.
3993 * tests/test-unlinkat.c: Likewise.
3994 * tests/test-unsetenv.c: Likewise.
3995 * tests/test-usleep.c: Likewise.
3996 * tests/test-utimens.c: Likewise.
3997 * tests/test-utimensat.c: Likewise.
3998 * tests/test-vasnprintf-posix.c: Likewise.
3999 * tests/test-vasnprintf-posix2.c: Likewise.
4000 * tests/test-vasnprintf.c: Likewise.
4001 * tests/test-vasprintf-posix.c: Likewise.
4002 * tests/test-vasprintf.c: Likewise.
4003 * tests/test-vdprintf-posix.c: Likewise.
4004 * tests/test-vfprintf-posix.c: Likewise.
4005 * tests/test-vprintf-posix.c: Likewise.
4006 * tests/test-vsnprintf-posix.c: Likewise.
4007 * tests/test-vsnprintf.c: Likewise.
4008 * tests/test-vsprintf-posix.c: Likewise.
4009 * tests/test-wcrtomb.c: Likewise.
4010 * tests/test-wcsnrtombs.c: Likewise.
4011 * tests/test-wcsrtombs.c: Likewise.
4012 * tests/test-wctype.c: Likewise.
4013 * tests/test-wcwidth.c: Likewise.
4014 * tests/test-xfprintf-posix.c: Likewise.
4015 * tests/test-xmemdup0.c: Likewise.
4016 * tests/test-xprintf-posix.c: Likewise.
4017 * tests/test-xvasprintf.c: Likewise.
4018 * tests/unicase/test-locale-language.c: Likewise.
4019 * tests/unicase/test-mapping-part1.h: Likewise.
4020 * tests/unicase/test-predicate-part1.h: Likewise.
4021 * tests/unicase/test-u8-casecmp.c: Likewise.
4022 * tests/unicase/test-u8-casecoll.c: Likewise.
4023 * tests/unicase/test-u8-casefold.c: Likewise.
4024 * tests/unicase/test-u8-is-cased.c: Likewise.
4025 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4026 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4027 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4028 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4029 * tests/unicase/test-u8-tolower.c: Likewise.
4030 * tests/unicase/test-u8-totitle.c: Likewise.
4031 * tests/unicase/test-u8-toupper.c: Likewise.
4032 * tests/unicase/test-u16-casecmp.c: Likewise.
4033 * tests/unicase/test-u16-casecoll.c: Likewise.
4034 * tests/unicase/test-u16-casefold.c: Likewise.
4035 * tests/unicase/test-u16-is-cased.c: Likewise.
4036 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4037 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4038 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4039 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4040 * tests/unicase/test-u16-tolower.c: Likewise.
4041 * tests/unicase/test-u16-totitle.c: Likewise.
4042 * tests/unicase/test-u16-toupper.c: Likewise.
4043 * tests/unicase/test-u32-casecmp.c: Likewise.
4044 * tests/unicase/test-u32-casecoll.c: Likewise.
4045 * tests/unicase/test-u32-casefold.c: Likewise.
4046 * tests/unicase/test-u32-is-cased.c: Likewise.
4047 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4048 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4049 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4050 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4051 * tests/unicase/test-u32-tolower.c: Likewise.
4052 * tests/unicase/test-u32-totitle.c: Likewise.
4053 * tests/unicase/test-u32-toupper.c: Likewise.
4054 * tests/unicase/test-ulc-casecmp.c: Likewise.
4055 * tests/unicase/test-ulc-casecoll.c: Likewise.
4056 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4057 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4058 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4059 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4060 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4061 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4062 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4063 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4064 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4065 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4066 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4067 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4068 * tests/unictype/test-bidi_byname.c: Likewise.
4069 * tests/unictype/test-bidi_name.c: Likewise.
4070 * tests/unictype/test-bidi_of.c: Likewise.
4071 * tests/unictype/test-bidi_test.c: Likewise.
4072 * tests/unictype/test-block_list.c: Likewise.
4073 * tests/unictype/test-block_of.c: Likewise.
4074 * tests/unictype/test-block_test.c: Likewise.
4075 * tests/unictype/test-categ_and.c: Likewise.
4076 * tests/unictype/test-categ_and_not.c: Likewise.
4077 * tests/unictype/test-categ_byname.c: Likewise.
4078 * tests/unictype/test-categ_name.c: Likewise.
4079 * tests/unictype/test-categ_none.c: Likewise.
4080 * tests/unictype/test-categ_of.c: Likewise.
4081 * tests/unictype/test-categ_or.c: Likewise.
4082 * tests/unictype/test-categ_test_withtable.c: Likewise.
4083 * tests/unictype/test-combining.c: Likewise.
4084 * tests/unictype/test-decdigit.c: Likewise.
4085 * tests/unictype/test-digit.c: Likewise.
4086 * tests/unictype/test-mirror.c: Likewise.
4087 * tests/unictype/test-numeric.c: Likewise.
4088 * tests/unictype/test-pr_byname.c: Likewise.
4089 * tests/unictype/test-pr_test.c: Likewise.
4090 * tests/unictype/test-predicate-part1.h: Likewise.
4091 * tests/unictype/test-scripts.c: Likewise.
4092 * tests/unictype/test-sy_c_ident.c: Likewise.
4093 * tests/unictype/test-sy_java_ident.c: Likewise.
4094 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4095 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4096 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4097 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4098 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4099 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4100 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4101 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4102 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4103 * tests/uninorm/test-compat-decomposition.c: Likewise.
4104 * tests/uninorm/test-composition.c: Likewise.
4105 * tests/uninorm/test-decomposing-form.c: Likewise.
4106 * tests/uninorm/test-decomposition.c: Likewise.
4107 * tests/uninorm/test-u8-nfc.c: Likewise.
4108 * tests/uninorm/test-u8-nfd.c: Likewise.
4109 * tests/uninorm/test-u8-nfkc.c: Likewise.
4110 * tests/uninorm/test-u8-nfkd.c: Likewise.
4111 * tests/uninorm/test-u8-normcmp.c: Likewise.
4112 * tests/uninorm/test-u8-normcoll.c: Likewise.
4113 * tests/uninorm/test-u16-nfc.c: Likewise.
4114 * tests/uninorm/test-u16-nfd.c: Likewise.
4115 * tests/uninorm/test-u16-nfkc.c: Likewise.
4116 * tests/uninorm/test-u16-nfkd.c: Likewise.
4117 * tests/uninorm/test-u16-normcmp.c: Likewise.
4118 * tests/uninorm/test-u16-normcoll.c: Likewise.
4119 * tests/uninorm/test-u32-nfc.c: Likewise.
4120 * tests/uninorm/test-u32-nfd.c: Likewise.
4121 * tests/uninorm/test-u32-nfkc.c: Likewise.
4122 * tests/uninorm/test-u32-nfkd.c: Likewise.
4123 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4124 * tests/uninorm/test-u32-normcmp.c: Likewise.
4125 * tests/uninorm/test-u32-normcoll.c: Likewise.
4126 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4127 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4128 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4129 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4130 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4131 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4132 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4133 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4134 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4135 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4136 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4137 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4138 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4139 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4140 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4141 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4142 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4143 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4144 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4145 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4146 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4147 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4148 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4149 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4150 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4151 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4152 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4153 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4154 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4155 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4156 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4157 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4158 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4159 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4160 * tests/uniwidth/test-u8-width.c: Likewise.
4161 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4162 * tests/uniwidth/test-u16-width.c: Likewise.
4163 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4164 * tests/uniwidth/test-u32-width.c: Likewise.
4165 * tests/uniwidth/test-uc_width.c: Likewise.
4166 * tests/uniwidth/test-uc_width2.c: Likewise.
4167 * modules/acl-tests (Files): Add tests/macros.h.
4168 * modules/areadlink-tests (Files): Likewise.
4169 * modules/areadlink-with-size-tests (Files): Likewise.
4170 * modules/areadlinkat-tests (Files): Likewise.
4171 * modules/areadlinkat-with-size-tests (Files): Likewise.
4172 * modules/argmatch-tests (Files): Likewise.
4173 * modules/argv-iter-tests (Files): Likewise.
4174 * modules/array-list-tests (Files): Likewise.
4175 * modules/array-mergesort-tests (Files): Likewise.
4176 * modules/array-oset-tests (Files): Likewise.
4177 * modules/avltree-list-tests (Files): Likewise.
4178 * modules/avltree-oset-tests (Files): Likewise.
4179 * modules/avltreehash-list-tests (Files): Likewise.
4180 * modules/base64-tests (Files): Likewise.
4181 * modules/binary-io-tests (Files): Likewise.
4182 * modules/bitrotate-tests (Files): Likewise.
4183 * modules/btowc-tests (Files): Likewise.
4184 * modules/byteswap-tests (Files): Likewise.
4185 * modules/c-ctype-tests (Files): Likewise.
4186 * modules/c-stack-tests (Files): Likewise.
4187 * modules/c-strcase-tests (Files): Likewise.
4188 * modules/c-strcasestr-tests (Files): Likewise.
4189 * modules/c-strstr-tests (Files): Likewise.
4190 * modules/canonicalize-lgpl-tests (Files): Likewise.
4191 * modules/canonicalize-tests (Files): Likewise.
4192 * modules/carray-list-tests (Files): Likewise.
4193 * modules/ceilf-tests (Files): Likewise.
4194 * modules/ceill-tests (Files): Likewise.
4195 * modules/chown-tests (Files): Likewise.
4196 * modules/cloexec-tests (Files): Likewise.
4197 * modules/copy-file-tests (Files): Likewise.
4198 * modules/count-one-bits-tests (Files): Likewise.
4199 * modules/dprintf-posix-tests (Files): Likewise.
4200 * modules/dup2-tests (Files): Likewise.
4201 * modules/dup3-tests (Files): Likewise.
4202 * modules/duplocale-tests (Files): Likewise.
4203 * modules/fbufmode-tests (Files): Likewise.
4204 * modules/fchdir-tests (Files): Likewise.
4205 * modules/fcntl-safer-tests (Files): Likewise.
4206 * modules/fcntl-tests (Files): Likewise.
4207 * modules/fdopendir-tests (Files): Likewise.
4208 * modules/fdutimensat-tests (Files): Likewise.
4209 * modules/fflush-tests (Files): Likewise.
4210 * modules/filevercmp-tests (Files): Likewise.
4211 * modules/flock-tests (Files): Likewise.
4212 * modules/floorf-tests (Files): Likewise.
4213 * modules/floorl-tests (Files): Likewise.
4214 * modules/fnmatch-tests (Files): Likewise.
4215 * modules/fopen-safer-tests (Files): Likewise.
4216 * modules/fopen-tests (Files): Likewise.
4217 * modules/fpending-tests (Files): Likewise.
4218 * modules/fprintf-posix-tests (Files): Likewise.
4219 * modules/fpurge-tests (Files): Likewise.
4220 * modules/freadable-tests (Files): Likewise.
4221 * modules/freadahead-tests (Files): Likewise.
4222 * modules/freading-tests (Files): Likewise.
4223 * modules/freadptr-tests (Files): Likewise.
4224 * modules/freadseek-tests (Files): Likewise.
4225 * modules/freopen-tests (Files): Likewise.
4226 * modules/frexp-nolibm-tests (Files): Likewise.
4227 * modules/frexp-tests (Files): Likewise.
4228 * modules/frexpl-nolibm-tests (Files): Likewise.
4229 * modules/frexpl-tests (Files): Likewise.
4230 * modules/fseek-tests (Files): Likewise.
4231 * modules/fseeko-tests (Files): Likewise.
4232 * modules/fstrcmp-tests (Files): Likewise.
4233 * modules/fsync-tests (Files): Likewise.
4234 * modules/ftell-tests (Files): Likewise.
4235 * modules/ftello-tests (Files): Likewise.
4236 * modules/func-tests (Files): Likewise.
4237 * modules/futimens-tests (Files): Likewise.
4238 * modules/fwritable-tests (Files): Likewise.
4239 * modules/fwriting-tests (Files): Likewise.
4240 * modules/getcwd-tests (Files): Likewise.
4241 * modules/getdate-tests (Files): Likewise.
4242 * modules/getdelim-tests (Files): Likewise.
4243 * modules/getdtablesize-tests (Files): Likewise.
4244 * modules/getgroups-tests (Files): Likewise.
4245 * modules/getline-tests (Files): Likewise.
4246 * modules/getndelim2-tests (Files): Likewise.
4247 * modules/glob-tests (Files): Likewise.
4248 * modules/hash-tests (Files): Likewise.
4249 * modules/i-ring-tests (Files): Likewise.
4250 * modules/iconv-tests (Files): Likewise.
4251 * modules/iconv_open-utf-tests (Files): Likewise.
4252 * modules/idpriv-drop-tests (Files): Likewise.
4253 * modules/idpriv-droptemp-tests (Files): Likewise.
4254 * modules/inet_ntop-tests (Files): Likewise.
4255 * modules/inet_pton-tests (Files): Likewise.
4256 * modules/isblank-tests (Files): Likewise.
4257 * modules/isfinite-tests (Files): Likewise.
4258 * modules/isinf-tests (Files): Likewise.
4259 * modules/isnan-tests (Files): Likewise.
4260 * modules/isnand-nolibm-tests (Files): Likewise.
4261 * modules/isnand-tests (Files): Likewise.
4262 * modules/isnanf-nolibm-tests (Files): Likewise.
4263 * modules/isnanf-tests (Files): Likewise.
4264 * modules/isnanl-nolibm-tests (Files): Likewise.
4265 * modules/isnanl-tests (Files): Likewise.
4266 * modules/lchown-tests (Files): Likewise.
4267 * modules/ldexpl-tests (Files): Likewise.
4268 * modules/link-tests (Files): Likewise.
4269 * modules/linkat-tests (Files): Likewise.
4270 * modules/linked-list-tests (Files): Likewise.
4271 * modules/linkedhash-list-tests (Files): Likewise.
4272 * modules/localename-tests (Files): Likewise.
4273 * modules/lseek-tests (Files): Likewise.
4274 * modules/lstat-tests (Files): Likewise.
4275 * modules/mbmemcasecmp-tests (Files): Likewise.
4276 * modules/mbmemcasecoll-tests (Files): Likewise.
4277 * modules/mbrtowc-tests (Files): Likewise.
4278 * modules/mbscasecmp-tests (Files): Likewise.
4279 * modules/mbscasestr-tests (Files): Likewise.
4280 * modules/mbschr-tests (Files): Likewise.
4281 * modules/mbscspn-tests (Files): Likewise.
4282 * modules/mbsinit-tests (Files): Likewise.
4283 * modules/mbsncasecmp-tests (Files): Likewise.
4284 * modules/mbsnrtowcs-tests (Files): Likewise.
4285 * modules/mbspbrk-tests (Files): Likewise.
4286 * modules/mbspcasecmp-tests (Files): Likewise.
4287 * modules/mbsrchr-tests (Files): Likewise.
4288 * modules/mbsrtowcs-tests (Files): Likewise.
4289 * modules/mbsspn-tests (Files): Likewise.
4290 * modules/mbsstr-tests (Files): Likewise.
4291 * modules/memchr-tests (Files): Likewise.
4292 * modules/memchr2-tests (Files): Likewise.
4293 * modules/memcmp-tests (Files): Likewise.
4294 * modules/memmem-tests (Files): Likewise.
4295 * modules/memrchr-tests (Files): Likewise.
4296 * modules/mkdir-tests (Files): Likewise.
4297 * modules/mkfifo-tests (Files): Likewise.
4298 * modules/mkfifoat-tests (Files): Likewise.
4299 * modules/mknod-tests (Files): Likewise.
4300 * modules/nanosleep-tests (Files): Likewise.
4301 * modules/nl_langinfo-tests (Files): Likewise.
4302 * modules/obstack-printf-tests (Files): Likewise.
4303 * modules/open-tests (Files): Likewise.
4304 * modules/openat-tests (Files): Likewise.
4305 * modules/pipe-filter-gi-tests (Files): Likewise.
4306 * modules/pipe-filter-ii-tests (Files): Likewise.
4307 * modules/pipe2-tests (Files): Likewise.
4308 * modules/popen-safer-tests (Files): Likewise.
4309 * modules/popen-tests (Files): Likewise.
4310 * modules/posixtm-tests (Files): Likewise.
4311 * modules/pread-tests (Files): Likewise.
4312 * modules/printf-frexp-tests (Files): Likewise.
4313 * modules/printf-frexpl-tests (Files): Likewise.
4314 * modules/printf-posix-tests (Files): Likewise.
4315 * modules/priv-set-tests (Files): Likewise.
4316 * modules/quotearg-tests (Files): Likewise.
4317 * modules/random_r-tests (Files): Likewise.
4318 * modules/rawmemchr-tests (Files): Likewise.
4319 * modules/rbtree-list-tests (Files): Likewise.
4320 * modules/rbtree-oset-tests (Files): Likewise.
4321 * modules/rbtreehash-list-tests (Files): Likewise.
4322 * modules/readlink-tests (Files): Likewise.
4323 * modules/remove-tests (Files): Likewise.
4324 * modules/rename-tests (Files): Likewise.
4325 * modules/renameat-tests (Files): Likewise.
4326 * modules/rmdir-tests (Files): Likewise.
4327 * modules/round-tests (Files): Likewise.
4328 * modules/roundf-tests (Files): Likewise.
4329 * modules/roundl-tests (Files): Likewise.
4330 * modules/safe-alloc-tests (Files): Likewise.
4331 * modules/setenv-tests (Files): Likewise.
4332 * modules/sigaction-tests (Files): Likewise.
4333 * modules/signbit-tests (Files): Likewise.
4334 * modules/sleep-tests (Files): Likewise.
4335 * modules/snprintf-posix-tests (Files): Likewise.
4336 * modules/snprintf-tests (Files): Likewise.
4337 * modules/sprintf-posix-tests (Files): Likewise.
4338 * modules/stat-tests (Files): Likewise.
4339 * modules/stat-time-tests (Files): Likewise.
4340 * modules/strcasestr-tests (Files): Likewise.
4341 * modules/strchrnul-tests (Files): Likewise.
4342 * modules/strerror-tests (Files): Likewise.
4343 * modules/striconv-tests (Files): Likewise.
4344 * modules/striconveh-tests (Files): Likewise.
4345 * modules/striconveha-tests (Files): Likewise.
4346 * modules/strsignal-tests (Files): Likewise.
4347 * modules/strstr-tests (Files): Likewise.
4348 * modules/strtod-tests (Files): Likewise.
4349 * modules/strverscmp-tests (Files): Likewise.
4350 * modules/symlink-tests (Files): Likewise.
4351 * modules/symlinkat-tests (Files): Likewise.
4352 * modules/trunc-tests (Files): Likewise.
4353 * modules/truncf-tests (Files): Likewise.
4354 * modules/truncl-tests (Files): Likewise.
4355 * modules/uname-tests (Files): Likewise.
4356 * modules/unicase/cased-tests (Files): Likewise.
4357 * modules/unicase/ignorable-tests (Files): Likewise.
4358 * modules/unicase/locale-language-tests (Files): Likewise.
4359 * modules/unicase/tolower-tests (Files): Likewise.
4360 * modules/unicase/totitle-tests (Files): Likewise.
4361 * modules/unicase/toupper-tests (Files): Likewise.
4362 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4363 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4364 * modules/unicase/u8-casefold-tests (Files): Likewise.
4365 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4366 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4367 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4368 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4369 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4370 * modules/unicase/u8-tolower-tests (Files): Likewise.
4371 * modules/unicase/u8-totitle-tests (Files): Likewise.
4372 * modules/unicase/u8-toupper-tests (Files): Likewise.
4373 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4374 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4375 * modules/unicase/u16-casefold-tests (Files): Likewise.
4376 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4377 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4378 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4379 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4380 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4381 * modules/unicase/u16-tolower-tests (Files): Likewise.
4382 * modules/unicase/u16-totitle-tests (Files): Likewise.
4383 * modules/unicase/u16-toupper-tests (Files): Likewise.
4384 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4385 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4386 * modules/unicase/u32-casefold-tests (Files): Likewise.
4387 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4388 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4389 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4390 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4391 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4392 * modules/unicase/u32-tolower-tests (Files): Likewise.
4393 * modules/unicase/u32-totitle-tests (Files): Likewise.
4394 * modules/unicase/u32-toupper-tests (Files): Likewise.
4395 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4396 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4397 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4398 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4399 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4400 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4401 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4402 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4403 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4404 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4405 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4406 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4407 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4408 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4409 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4410 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4411 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4412 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4413 * modules/unictype/block-list-tests (Files): Likewise.
4414 * modules/unictype/block-of-tests (Files): Likewise.
4415 * modules/unictype/block-test-tests (Files): Likewise.
4416 * modules/unictype/category-C-tests (Files): Likewise.
4417 * modules/unictype/category-Cc-tests (Files): Likewise.
4418 * modules/unictype/category-Cf-tests (Files): Likewise.
4419 * modules/unictype/category-Cn-tests (Files): Likewise.
4420 * modules/unictype/category-Co-tests (Files): Likewise.
4421 * modules/unictype/category-Cs-tests (Files): Likewise.
4422 * modules/unictype/category-L-tests (Files): Likewise.
4423 * modules/unictype/category-Ll-tests (Files): Likewise.
4424 * modules/unictype/category-Lm-tests (Files): Likewise.
4425 * modules/unictype/category-Lo-tests (Files): Likewise.
4426 * modules/unictype/category-Lt-tests (Files): Likewise.
4427 * modules/unictype/category-Lu-tests (Files): Likewise.
4428 * modules/unictype/category-M-tests (Files): Likewise.
4429 * modules/unictype/category-Mc-tests (Files): Likewise.
4430 * modules/unictype/category-Me-tests (Files): Likewise.
4431 * modules/unictype/category-Mn-tests (Files): Likewise.
4432 * modules/unictype/category-N-tests (Files): Likewise.
4433 * modules/unictype/category-Nd-tests (Files): Likewise.
4434 * modules/unictype/category-Nl-tests (Files): Likewise.
4435 * modules/unictype/category-No-tests (Files): Likewise.
4436 * modules/unictype/category-P-tests (Files): Likewise.
4437 * modules/unictype/category-Pc-tests (Files): Likewise.
4438 * modules/unictype/category-Pd-tests (Files): Likewise.
4439 * modules/unictype/category-Pe-tests (Files): Likewise.
4440 * modules/unictype/category-Pf-tests (Files): Likewise.
4441 * modules/unictype/category-Pi-tests (Files): Likewise.
4442 * modules/unictype/category-Po-tests (Files): Likewise.
4443 * modules/unictype/category-Ps-tests (Files): Likewise.
4444 * modules/unictype/category-S-tests (Files): Likewise.
4445 * modules/unictype/category-Sc-tests (Files): Likewise.
4446 * modules/unictype/category-Sk-tests (Files): Likewise.
4447 * modules/unictype/category-Sm-tests (Files): Likewise.
4448 * modules/unictype/category-So-tests (Files): Likewise.
4449 * modules/unictype/category-Z-tests (Files): Likewise.
4450 * modules/unictype/category-Zl-tests (Files): Likewise.
4451 * modules/unictype/category-Zp-tests (Files): Likewise.
4452 * modules/unictype/category-Zs-tests (Files): Likewise.
4453 * modules/unictype/category-and-not-tests (Files): Likewise.
4454 * modules/unictype/category-and-tests (Files): Likewise.
4455 * modules/unictype/category-byname-tests (Files): Likewise.
4456 * modules/unictype/category-name-tests (Files): Likewise.
4457 * modules/unictype/category-none-tests (Files): Likewise.
4458 * modules/unictype/category-of-tests (Files): Likewise.
4459 * modules/unictype/category-or-tests (Files): Likewise.
4460 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4461 * modules/unictype/combining-class-tests (Files): Likewise.
4462 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4463 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4464 * modules/unictype/ctype-blank-tests (Files): Likewise.
4465 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4466 * modules/unictype/ctype-digit-tests (Files): Likewise.
4467 * modules/unictype/ctype-graph-tests (Files): Likewise.
4468 * modules/unictype/ctype-lower-tests (Files): Likewise.
4469 * modules/unictype/ctype-print-tests (Files): Likewise.
4470 * modules/unictype/ctype-punct-tests (Files): Likewise.
4471 * modules/unictype/ctype-space-tests (Files): Likewise.
4472 * modules/unictype/ctype-upper-tests (Files): Likewise.
4473 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4474 * modules/unictype/decimal-digit-tests (Files): Likewise.
4475 * modules/unictype/digit-tests (Files): Likewise.
4476 * modules/unictype/mirror-tests (Files): Likewise.
4477 * modules/unictype/numeric-tests (Files): Likewise.
4478 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4479 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4480 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4481 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4483 * modules/unictype/property-bidi-block-separator-tests (Files):
4485 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4487 * modules/unictype/property-bidi-common-separator-tests (Files):
4489 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4490 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4492 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4494 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4496 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4497 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4499 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4500 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4502 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4503 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4504 * modules/unictype/property-bidi-segment-separator-tests (Files):
4506 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4507 * modules/unictype/property-byname-tests (Files): Likewise.
4508 * modules/unictype/property-combining-tests (Files): Likewise.
4509 * modules/unictype/property-composite-tests (Files): Likewise.
4510 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4511 * modules/unictype/property-dash-tests (Files): Likewise.
4512 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4513 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4515 * modules/unictype/property-deprecated-tests (Files): Likewise.
4516 * modules/unictype/property-diacritic-tests (Files): Likewise.
4517 * modules/unictype/property-extender-tests (Files): Likewise.
4518 * modules/unictype/property-format-control-tests (Files): Likewise.
4519 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4520 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4521 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4522 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4523 * modules/unictype/property-hyphen-tests (Files): Likewise.
4524 * modules/unictype/property-id-continue-tests (Files): Likewise.
4525 * modules/unictype/property-id-start-tests (Files): Likewise.
4526 * modules/unictype/property-ideographic-tests (Files): Likewise.
4527 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4528 * modules/unictype/property-ids-trinary-operator-tests (Files):
4530 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4531 * modules/unictype/property-iso-control-tests (Files): Likewise.
4532 * modules/unictype/property-join-control-tests (Files): Likewise.
4533 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4534 * modules/unictype/property-line-separator-tests (Files): Likewise.
4535 * modules/unictype/property-logical-order-exception-tests (Files):
4537 * modules/unictype/property-lowercase-tests (Files): Likewise.
4538 * modules/unictype/property-math-tests (Files): Likewise.
4539 * modules/unictype/property-non-break-tests (Files): Likewise.
4540 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4541 * modules/unictype/property-numeric-tests (Files): Likewise.
4542 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4543 * modules/unictype/property-other-default-ignorable-code-point-tests
4545 * modules/unictype/property-other-grapheme-extend-tests (Files):
4547 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4548 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4549 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4550 * modules/unictype/property-other-math-tests (Files): Likewise.
4551 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4552 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4553 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4554 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4555 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4556 * modules/unictype/property-private-use-tests (Files): Likewise.
4557 * modules/unictype/property-punctuation-tests (Files): Likewise.
4558 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4559 * modules/unictype/property-radical-tests (Files): Likewise.
4560 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4561 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4562 * modules/unictype/property-space-tests (Files): Likewise.
4563 * modules/unictype/property-terminal-punctuation-tests (Files):
4565 * modules/unictype/property-test-tests (Files): Likewise.
4566 * modules/unictype/property-titlecase-tests (Files): Likewise.
4567 * modules/unictype/property-unassigned-code-value-tests (Files):
4569 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4570 * modules/unictype/property-uppercase-tests (Files): Likewise.
4571 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4572 * modules/unictype/property-white-space-tests (Files): Likewise.
4573 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4574 * modules/unictype/property-xid-start-tests (Files): Likewise.
4575 * modules/unictype/property-zero-width-tests (Files): Likewise.
4576 * modules/unictype/scripts-tests (Files): Likewise.
4577 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4578 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4579 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4580 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4581 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4582 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4583 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4584 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4585 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4586 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4587 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4588 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4589 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4590 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4591 * modules/uninorm/composition-tests (Files): Likewise.
4592 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4593 * modules/uninorm/decomposition-tests (Files): Likewise.
4594 * modules/uninorm/filter-tests (Files): Likewise.
4595 * modules/uninorm/nfc-tests (Files): Likewise.
4596 * modules/uninorm/nfd-tests (Files): Likewise.
4597 * modules/uninorm/nfkc-tests (Files): Likewise.
4598 * modules/uninorm/nfkd-tests (Files): Likewise.
4599 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4600 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4601 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4602 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4603 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4604 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4605 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4606 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4607 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4608 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4609 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4610 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4611 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4612 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4613 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4614 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4615 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4616 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4617 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4618 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4619 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4620 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4621 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4622 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4623 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4624 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4625 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4626 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4627 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4628 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4629 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4630 * modules/uniwidth/u8-width-tests (Files): Likewise.
4631 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4632 * modules/uniwidth/u16-width-tests (Files): Likewise.
4633 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4634 * modules/uniwidth/u32-width-tests (Files): Likewise.
4635 * modules/uniwidth/width-tests (Files): Likewise.
4636 * modules/unlink-tests (Files): Likewise.
4637 * modules/unsetenv-tests (Files): Likewise.
4638 * modules/usleep-tests (Files): Likewise.
4639 * modules/utimens-tests (Files): Likewise.
4640 * modules/utimensat-tests (Files): Likewise.
4641 * modules/vasnprintf-posix-tests (Files): Likewise.
4642 * modules/vasnprintf-tests (Files): Likewise.
4643 * modules/vasprintf-posix-tests (Files): Likewise.
4644 * modules/vasprintf-tests (Files): Likewise.
4645 * modules/vdprintf-posix-tests (Files): Likewise.
4646 * modules/vfprintf-posix-tests (Files): Likewise.
4647 * modules/vprintf-posix-tests (Files): Likewise.
4648 * modules/vsnprintf-posix-tests (Files): Likewise.
4649 * modules/vsnprintf-tests (Files): Likewise.
4650 * modules/vsprintf-posix-tests (Files): Likewise.
4651 * modules/wcrtomb-tests (Files): Likewise.
4652 * modules/wcsnrtombs-tests (Files): Likewise.
4653 * modules/wcsrtombs-tests (Files): Likewise.
4654 * modules/wctype-tests (Files): Likewise.
4655 * modules/wcwidth-tests (Files): Likewise.
4656 * modules/xmemdup0-tests (Files): Likewise.
4657 * modules/xprintf-posix-tests (Files): Likewise.
4658 * modules/xvasprintf-tests (Files): Likewise.
4660 2009-12-24 Eric Blake <ebb9@byu.net>
4662 test-nanosleep: fix typo
4663 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4665 Reported by Bruno Haible.
4667 2009-12-24 Bruno Haible <bruno@clisp.org>
4669 Reduce namespace pollution on glibc systems.
4670 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4671 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4673 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4674 <getopt.h> on glibc systems.
4675 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4677 * lib/fcntl.c: Include <unistd.h> here instead.
4679 2009-12-24 Bruno Haible <bruno@clisp.org>
4681 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4683 2009-12-24 Eric Blake <ebb9@byu.net>
4685 tests: add signature checks
4686 * tests/signature.h (SIGNATURE_CHECK): New file.
4687 * modules/atexit-tests (Files): Use it.
4688 * modules/btowc-tests (Files): Likewise.
4689 * modules/canonicalize-lgpl-tests (Files): Likewise.
4690 * modules/ceilf-tests (Files): Likewise.
4691 * modules/ceill-tests (Files): Likewise.
4692 * modules/chown-tests (Files): Likewise.
4693 * modules/dprintf-posix-tests (Files): Likewise.
4694 * modules/dup2-tests (Files): Likewise.
4695 * modules/dup3-tests (Files): Likewise.
4696 * modules/duplocale-tests (Files): Likewise.
4697 * modules/fchdir-tests (Files): Likewise.
4698 * modules/fcntl-tests (Files): Likewise.
4699 * modules/fdopendir-tests (Files): Likewise.
4700 * modules/fflush-tests (Files): Likewise.
4701 * modules/flock-tests (Files): Likewise.
4702 * modules/floorf-tests (Files): Likewise.
4703 * modules/floorl-tests (Files): Likewise.
4704 * modules/fnmatch-tests (Files): Likewise.
4705 * modules/fopen-tests (Files): Likewise.
4706 * modules/fprintf-posix-tests (Files): Likewise.
4707 * modules/freopen-tests (Files): Likewise.
4708 * modules/frexp-nolibm-tests (Files): Likewise.
4709 * modules/frexp-tests (Files): Likewise.
4710 * modules/frexpl-nolibm-tests (Files): Likewise.
4711 * modules/frexpl-tests (Files): Likewise.
4712 * modules/fseek-tests (Files): Likewise.
4713 * modules/fseeko-tests (Files): Likewise.
4714 * modules/fsync-tests (Files): Likewise.
4715 * modules/ftell-tests (Files): Likewise.
4716 * modules/ftello-tests (Files): Likewise.
4717 * modules/futimens-tests (Files): Likewise.
4718 * modules/getaddrinfo-tests (Files): Likewise.
4719 * modules/getcwd-tests (Files): Likewise.
4720 * modules/getdelim-tests (Files): Likewise.
4721 * modules/getdtablesize-tests (Files): Likewise.
4722 * modules/getgroups-tests (Files): Likewise.
4723 * modules/gethostname-tests (Files): Likewise.
4724 * modules/getline-tests (Files): Likewise.
4725 * modules/getopt-posix-tests (Files): Likewise.
4726 * modules/gettimeofday-tests (Files): Likewise.
4727 * modules/glob-tests (Files): Likewise.
4728 * modules/iconv-tests (Files): Likewise.
4729 * modules/inet_ntop-tests (Files): Likewise.
4730 * modules/inet_pton-tests (Files): Likewise.
4731 * modules/isblank-tests (Files): Likewise.
4732 * modules/lchown-tests (Files): Likewise.
4733 * modules/ldexpl-tests (Files): Likewise.
4734 * modules/link-tests (Files): Likewise.
4735 * modules/linkat-tests (Files): Likewise.
4736 * modules/lseek-tests (Files): Likewise.
4737 * modules/lstat-tests (Files): Likewise.
4738 * modules/mbrtowc-tests (Files): Likewise.
4739 * modules/mbsinit-tests (Files): Likewise.
4740 * modules/mbsnrtowcs-tests (Files): Likewise.
4741 * modules/mbsrtowcs-tests (Files): Likewise.
4742 * modules/memchr-tests (Files): Likewise.
4743 * modules/memcmp-tests (Files): Likewise.
4744 * modules/memmem-tests (Files): Likewise.
4745 * modules/memrchr-tests (Files): Likewise.
4746 * modules/mkdir-tests (Files): Likewise.
4747 * modules/mkfifo-tests (Files): Likewise.
4748 * modules/mkfifoat-tests (Files): Likewise.
4749 * modules/mknod-tests (Files): Likewise.
4750 * modules/nanosleep-tests (Files): Likewise.
4751 * modules/nl_langinfo-tests (Files): Likewise.
4752 * modules/obstack-printf-tests (Files): Likewise.
4753 * modules/open-tests (Files): Likewise.
4754 * modules/openat-tests (Files): Likewise.
4755 * modules/perror-tests (Files): Likewise.
4756 * modules/pipe2-tests (Files): Likewise.
4757 * modules/poll-tests (Files): Likewise.
4758 * modules/popen-tests (Files): Likewise.
4759 * modules/posix_spawn-tests (Files): Likewise.
4760 * modules/posix_spawnp-tests (Files): Likewise.
4761 * modules/pread-tests (Files): Likewise.
4762 * modules/printf-posix-tests (Files): Likewise.
4763 * modules/pty-tests (Files): Likewise.
4764 * modules/random_r-tests (Files): Likewise.
4765 * modules/rawmemchr-tests (Files): Likewise.
4766 * modules/readlink-tests (Files): Likewise.
4767 * modules/remove-tests (Files): Likewise.
4768 * modules/rename-tests (Files): Likewise.
4769 * modules/renameat-tests (Files): Likewise.
4770 * modules/rmdir-tests (Files): Likewise.
4771 * modules/round-tests (Files): Likewise.
4772 * modules/roundf-tests (Files): Likewise.
4773 * modules/roundl-tests (Files): Likewise.
4774 * modules/select-tests (Files): Likewise.
4775 * modules/setenv-tests (Files): Likewise.
4776 * modules/sigaction-tests (Files): Likewise.
4777 * modules/sleep-tests (Files): Likewise.
4778 * modules/snprintf-posix-tests (Files): Likewise.
4779 * modules/snprintf-tests (Files): Likewise.
4780 * modules/sprintf-posix-tests (Files): Likewise.
4781 * modules/stat-tests (Files): Likewise.
4782 * modules/strcasestr-tests (Files): Likewise.
4783 * modules/strchrnul-tests (Files): Likewise.
4784 * modules/strerror-tests (Files): Likewise.
4785 * modules/strsignal-tests (Files): Likewise.
4786 * modules/strstr-tests (Files): Likewise.
4787 * modules/strtod-tests (Files): Likewise.
4788 * modules/strverscmp-tests (Files): Likewise.
4789 * modules/symlink-tests (Files): Likewise.
4790 * modules/symlinkat-tests (Files): Likewise.
4791 * modules/times-tests (Files): Likewise.
4792 * modules/trunc-tests (Files): Likewise.
4793 * modules/truncf-tests (Files): Likewise.
4794 * modules/truncl-tests (Files): Likewise.
4795 * modules/tsearch-tests (Files): Likewise.
4796 * modules/uname-tests (Files): Likewise.
4797 * modules/unlink-tests (Files): Likewise.
4798 * modules/unsetenv-tests (Files): Likewise.
4799 * modules/usleep-tests (Files): Likewise.
4800 * modules/utimensat-tests (Files): Likewise.
4801 * modules/vasprintf-tests (Files): Likewise.
4802 * modules/vdprintf-posix-tests (Files): Likewise.
4803 * modules/vfprintf-posix-tests (Files): Likewise.
4804 * modules/vprintf-posix-tests (Files): Likewise.
4805 * modules/vsnprintf-posix-tests (Files): Likewise.
4806 * modules/vsnprintf-tests (Files): Likewise.
4807 * modules/vsprintf-posix-tests (Files): Likewise.
4808 * modules/wcrtomb-tests (Files): Likewise.
4809 * modules/wcsnrtombs-tests (Files): Likewise.
4810 * modules/wcsrtombs-tests (Files): Likewise.
4811 * modules/wcwidth-tests (Files): Likewise.
4812 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4813 * tests/test-isinf.c (isinf): Likewise.
4814 * tests/test-isnan.c (isnan): Likewise.
4815 * tests/test-signbit.c (signbit): Likewise.
4816 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4817 declaration, either as macro or with correct signature.
4818 (select): Ensure function under test is declared with correct
4819 signature in correct header.
4820 * tests/test-atexit.c (atexit): Likewise.
4821 * tests/test-btowc.c (btowc): Likewise.
4822 * tests/test-canonicalize-lgpl.c (realpath)
4823 (canonicalize_file_name): Likewise.
4824 * tests/test-ceilf1.c (ceilf): Likewise.
4825 * tests/test-ceill.c (ceill): Likewise.
4826 * tests/test-chown.c (chown): Likewise.
4827 * tests/test-dprintf-posix.c (dprintf): Likewise.
4828 * tests/test-dup2.c (dup2): Likewise.
4829 * tests/test-dup3.c (dup3): Likewise.
4830 * tests/test-duplocale.c (duplocale): Likewise.
4831 * tests/test-fchdir.c (fchdir): Likewise.
4832 * tests/test-fchownat.c (fchownat): Likewise.
4833 * tests/test-fcntl.c (fcntl): Likewise.
4834 * tests/test-fdopendir.c (fdopendir): Likewise.
4835 * tests/test-fflush.c (fflush): Likewise.
4836 * tests/test-flock.c (flock): Likewise.
4837 * tests/test-floorf1.c (floorf): Likewise.
4838 * tests/test-floorl.c (floorl): Likewise.
4839 * tests/test-fnmatch.c (fnmatch): Likewise.
4840 * tests/test-fopen.c (fopen): Likewise.
4841 * tests/test-fprintf-posix.c (fprintf): Likewise.
4842 * tests/test-freopen.c (freopen): Likewise.
4843 * tests/test-frexp.c (frexp): Likewise.
4844 * tests/test-frexpl.c (frexpl): Likewise.
4845 * tests/test-fseek.c (fseek): Likewise.
4846 * tests/test-fseeko.c (fseeko): Likewise.
4847 * tests/test-fstatat.c (fstatat): Likewise.
4848 * tests/test-fsync.c (fsync): Likewise.
4849 * tests/test-ftell.c (ftell): Likewise.
4850 * tests/test-ftello.c (ftello): Likewise.
4851 * tests/test-futimens.c (futimens): Likewise.
4852 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4853 (gai_strerror): Likewise.
4854 * tests/test-getcwd.c (getcwd): Likewise.
4855 * tests/test-getdelim.c (getdelim): Likewise.
4856 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4857 * tests/test-getgroups.c (getgroups): Likewise.
4858 * tests/test-gethostname.c (gethostname): Likewise.
4859 * tests/test-getline.c (getline): Likewise.
4860 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4862 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4863 * tests/test-glob.c (glob, globfree): Likewise.
4864 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4865 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4866 * tests/test-inet_pton.c (inet_pton): Likewise.
4867 * tests/test-isblank.c (isblank): Likewise.
4868 * tests/test-lchown.c (lchown): Likewise.
4869 * tests/test-ldexpl.c (ldexpl): Likewise.
4870 * tests/test-link.c (link): Likewise.
4871 * tests/test-linkat.c (linkat): Likewise.
4872 * tests/test-lseek.c (lseek): Likewise.
4873 * tests/test-lstat.c (lstat): Likewise.
4874 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4875 * tests/test-mbsinit.c (mbsinit): Likewise.
4876 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4877 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4878 * tests/test-memchr.c (memchr): Likewise.
4879 * tests/test-memcmp.c (memcmp): Likewise.
4880 * tests/test-memmem.c (memmem): Likewise.
4881 * tests/test-memrchr.c (memrchr): Likewise.
4882 * tests/test-mkdir.c (mkdir): Likewise.
4883 * tests/test-mkdirat.c (mkdirat): Likewise.
4884 * tests/test-mkfifo.c (mkfifo): Likewise.
4885 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4886 * tests/test-mknod.c (mknod): Likewise.
4887 * tests/test-nanosleep.c (nanosleep): Likewise.
4888 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4889 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4891 * tests/test-open.c (open): Likewise.
4892 * tests/test-openat.c (openat): Likewise.
4893 * tests/test-perror.c (perror): Likewise.
4894 * tests/test-pipe2.c (pipe2): Likewise.
4895 * tests/test-poll.c (poll): Likewise.
4896 * tests/test-popen.c (popen, pclose): Likewise.
4897 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4898 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4899 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4900 (posix_spawn_file_actions_destroy)
4901 (posix_spawn_file_actions_addclose)
4902 (posix_spawn_file_actions_addopen)
4903 (posix_spawn_file_actions_adddup2): Likewise.
4904 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4905 * tests/test-pread.c (pread): Likewise.
4906 * tests/test-printf-posix.c (printf): Likewise.
4907 * tests/test-pty.c (openpty, forkpty): Likewise.
4908 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4909 (random_r): Likewise.
4910 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4911 * tests/test-readlink.c (readlink): Likewise.
4912 * tests/test-remove.c (remove): Likewise.
4913 * tests/test-rename.c (rename): Likewise.
4914 * tests/test-renameat.c (renameat): Likewise.
4915 * tests/test-rmdir.c (rmdir): Likewise.
4916 * tests/test-round1.c (round): Likewise.
4917 * tests/test-roundf1.c (roundf): Likewise.
4918 * tests/test-roundl.c (roundl): Likewise.
4919 * tests/test-setenv.c (setenv): Likewise.
4920 * tests/test-sigaction.c (sigaction): Likewise.
4921 * tests/test-sleep.c (sleep): Likewise.
4922 * tests/test-snprintf.c (snprintf): Likewise.
4923 * tests/test-sprintf-posix.c (sprintf): Likewise.
4924 * tests/test-stat.c (stat): Likewise.
4925 * tests/test-stpncpy.c (stpncpy): Likewise.
4926 * tests/test-strcasestr.c (strcasestr): Likewise.
4927 * tests/test-strchrnul.c (strchrnul): Likewise.
4928 * tests/test-strerror.c (strerror): Likewise.
4929 * tests/test-strsignal.c (strsignal): Likewise.
4930 * tests/test-strstr.c (strstr): Likewise.
4931 * tests/test-strtod.c (strtod): Likewise.
4932 * tests/test-strverscmp.c (strverscmp): Likewise.
4933 * tests/test-symlink.c (symlink): Likewise.
4934 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4935 * tests/test-times.c (times): Likewise.
4936 * tests/test-trunc1.c (trunc): Likewise.
4937 * tests/test-truncf1.c (truncf): Likewise.
4938 * tests/test-truncl.c (truncl): Likewise.
4939 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4941 * tests/test-uname.c (uname): Likewise.
4942 * tests/test-unlink.c (unlink): Likewise.
4943 * tests/test-unlinkat.c (unlinkat): Likewise.
4944 * tests/test-unsetenv.c (unsetenv): Likewise.
4945 * tests/test-usleep.c (usleep): Likewise.
4946 * tests/test-utimensat.c (utimensat): Likewise.
4947 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4948 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4949 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4950 * tests/test-vprintf-posix.c (vprintf): Likewise.
4951 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4952 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4953 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4954 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4955 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4956 * tests/test-wcwidth.c (wcwidth): Likewise.
4958 build: pull in conditional headers during GNULIB_POSIXCHECK
4959 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4960 definitions from any conditionally-included headers.
4961 * lib/stdlib.in.h (includes): Likewise.
4962 * lib/unistd.in.h (includes): Likewise.
4964 2009-12-24 Bruno Haible <bruno@clisp.org>
4966 * tests/test-argv-iter.c: Include header file being tested immediately
4968 * tests/test-base64.c: Likewise.
4969 * tests/test-flock.c: Likewise.
4970 * tests/test-fsync.c: Likewise.
4971 * tests/test-getdate.c: Likewise.
4972 * tests/test-getndelim2.c: Likewise.
4973 * tests/test-isfinite.c: Likewise.
4974 * tests/test-isinf.c: Likewise.
4975 * tests/test-strerror.c: Likewise.
4976 * tests/test-strsignal.c: Likewise.
4978 2009-12-23 Eric Blake <ebb9@byu.net>
4980 unistd: work around cygwin bug
4981 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4982 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4983 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4985 2009-12-23 Bruno Haible <bruno@clisp.org>
4987 localename: More tests.
4988 * tests/test-localename.c (SIZEOF): New macro.
4989 (categories): New variable.
4990 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4991 test_locale_name_default): Add test w.r.t. thread locale.
4992 (test_locale_name_thread): New function.
4995 localename: Make aware of thread locale.
4996 * lib/localename.h (gl_locale_name_thread): New declaration.
4997 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4998 behaviour with respect to thread locale.
4999 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5000 <langinfo.h>, glthread/lock.h.
5001 (SIZE_BITS): New macro.
5002 (string_hash): New function.
5003 (struct hash_node): New type.
5004 (HASH_TABLE_SIZE): New macro.
5005 (struniq_hash_table, struniq_lock): New variables.
5006 (struniq): New function.
5007 (gl_locale_name_thread): New function.
5008 (gl_locale_name): Invoke it.
5009 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5010 * modules/localename (Depends-on): Add lock.
5011 Reported by Mike Gran <spk121@yahoo.com>.
5013 2009-12-23 Eric Blake <ebb9@byu.net>
5016 * modules/va-args: New file.
5017 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5018 * MODULES.html.sh (Core language properties): Mention it.
5020 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5021 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5022 named alias for __attribute__((__unused__)).
5023 * lib/chown.c: Update client.
5024 * lib/fchmodat.c: Likewise.
5025 * lib/fts.c: Likewise.
5026 * lib/getdate.y: Likewise.
5027 * lib/getgroups.c: Likewise.
5028 * lib/getopt.c: Likewise.
5029 * lib/getugroups.c: Likewise.
5030 * lib/mkdir.c: Likewise.
5031 * lib/mkfifo.c: Likewise.
5032 * lib/mkfifoat.c: Likewise.
5033 * lib/mknod.c: Likewise.
5034 * lib/mknodat.c: Likewise.
5035 * lib/readlink.c: Likewise.
5036 * lib/se-context.in.h: Likewise.
5037 * lib/se-selinux.in.h: Likewise.
5038 * lib/sockets.c: Likewise.
5039 * lib/symlink.c: Likewise.
5040 * lib/symlinkat.c: Likewise.
5041 * lib/unicodeio.c: Likewise.
5042 * lib/unistr.h: Likewise.
5043 * tests/test-areadlink.c: Likewise.
5044 * tests/test-areadlinkat.c: Likewise.
5045 * tests/test-filenamecat.c: Likewise.
5046 * tests/test-fseeko.c: Likewise.
5047 * tests/test-ftello.c: Likewise.
5048 * tests/test-getdate.c: Likewise.
5049 * tests/test-getgroups.c: Likewise.
5050 * tests/test-gethostname.c: Likewise.
5051 * tests/test-quotearg.c: Likewise.
5052 * tests/test-version-etc.c: Likewise.
5053 * tests/test-xalloc-die.c: Likewise.
5054 * tests/test-xfprintf-posix.c: Likewise.
5055 * tests/test-xprintf-posix.c: Likewise.
5056 * tests/test-xvasprintf.c: Likewise.
5058 tests: avoid compiler warnings
5059 * tests/test-fcntl.c (main): Delete unused parameters.
5060 * tests/test-freopen-safer.c (main): Likewise.
5061 * tests/test-xalloc-die.c (main): Mark unused parameters.
5062 * tests/test-fseeko.c (main): Likewise.
5063 * tests/test-ftello.c (main): Likewise.
5064 * tests/test-nanosleep.c (main): Avoid declaration warning.
5065 * tests/test-sleep.c (main): Likewise.
5066 * tests/test-unsetenv.c (main): Silence warning about string
5068 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5070 2009-12-23 Bruno Haible <bruno@clisp.org>
5072 * tests/test-localename.c (test_locale_name): New function, extracted
5073 from main. Also test mixed situations.
5074 (test_locale_name_posix, test_locale_name_environ,
5075 test_locale_name_default): New functions.
5076 (main): Invoke them all.
5077 * modules/localename-tests (configure.ac): Test for newlocale.
5079 2009-12-23 Bruno Haible <bruno@clisp.org>
5081 unistd: Ensure getcwd gets declared before being overridden.
5082 * lib/unistd.in.h: Conditionally include <io.h>.
5084 2009-12-22 Bruno Haible <bruno@clisp.org>
5086 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5087 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5088 (gl_WCHAR_H): Invoke it.
5089 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5090 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5091 Reported by Karl Berry <karl@freefriends.org>.
5093 2009-12-22 Eric Blake <ebb9@byu.net>
5095 math, unistd: avoid redundant includes
5096 * lib/math.in.h (isnan): No need to re-include <math.h>.
5097 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5099 getsubopt: work around cygwin bug
5100 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5101 avoid conflicting with system getsubopt.
5102 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5105 getopt: synchronize from glibc
5106 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5107 parameter order. Adjust all callers.
5108 (_getopt_internal_r, main): Adjust quoting in error messages.
5109 Drop considerations for outdated POSIX 1003.2 error message.
5110 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5112 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5114 test-getopt: test stderr behavior
5115 * modules/getopt-posix-tests (Depends-on): Add dup2.
5116 * tests/test-getopt.c (ASSERT): Avoid stderr.
5117 (main): Move stderr to a temporary file.
5118 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5119 Instead, add parameter to inform caller if output occurred.
5120 (test_getopt): Adjust all existing tests to expect silence, and
5121 add new tests of leading ":".
5122 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5123 glibc shortcomings with leading "-:" or "+:" in optstring.
5124 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5126 * doc/posix-functions/getopt.texi (getopt): Likewise.
5128 test-getopt: enhance test
5129 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5131 * tests/test-getopt.c (OPTIND_MIN): Move...
5132 * tests/test-getopt.h (OPTIND_MIN): ...here.
5133 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5134 Require that optind=0 works, since modern BSD supports it in
5135 addition to optreset, and since coreutils expects it.
5136 (test_getopt_long_only): New test.
5137 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5138 glibc shortcomings with 'W;', and enforcement of optind=0.
5139 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5142 2009-12-21 Bruno Haible <bruno@clisp.org>
5144 localename: Improvements for MacOS X and Cygwin.
5145 * lib/localename.h (gl_locale_name_environ): New declaration.
5146 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5147 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5148 (gl_locale_name_posix): Invoke it.
5149 (gl_locale_name_default): Add comments. Use Windows native API also on
5152 2009-12-21 Bruno Haible <bruno@clisp.org>
5154 Update list of Win32 locale ids.
5155 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5156 (LANG_SAMI): Renamed from LANG_SAAMI.
5157 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5158 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5159 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5160 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5161 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5162 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5163 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5164 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5165 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5166 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5167 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5168 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5169 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5170 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5171 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5172 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5173 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5174 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5175 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5176 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5177 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5178 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5179 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5180 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5181 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5182 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5183 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5184 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5185 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5186 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5187 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5188 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5189 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5190 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5191 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5192 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5193 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5194 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5195 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5196 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5197 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5198 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5199 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5200 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5201 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5202 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5203 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5204 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5205 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5206 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5207 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5208 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5209 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5210 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5211 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5212 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5213 Add more languages and countries for Sami, Sorbian. Add more countries
5214 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5215 for Pashto. Change country for Syriac, Tswana.
5217 2009-12-21 Eric Blake <ebb9@byu.net>
5219 test-utimens: avoid spurious failure
5220 * tests/test-chown.h (nap): Factor...
5221 * tests/nap.h: ...into new file.
5222 * tests/test-lchown.h (nap): Avoid duplication.
5223 * tests/test-utimens-common.h (nap): Use shared implementation,
5224 necessary on file systems with 1-second resolution.
5225 * modules/chown-tests (Files): Include new file.
5226 * modules/fdutimensat-tests (Files): Likewise.
5227 * modules/futimens-tests (Files): Likewise.
5228 * modules/lchown-tests (Files): Likewise.
5229 * modules/openat-tests (Files): Likewise.
5230 * modules/utimens-tests (Files): Likewise.
5231 * modules/utimensat-tests (Files): Likewise.
5233 2009-12-19 Eric Blake <ebb9@byu.net>
5235 futimens, utimensat: work around Linux bug
5236 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5237 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5238 * lib/utimensat.c (rpl_utimensat): Work around it.
5239 * lib/futimens.c (rpl_futimens): Adjust comment.
5241 utimens: work around Linux ctime bug
5242 * lib/utimens.c (detect_ctime_bug): New helper function.
5243 (update_timespec): Differentiate between workaround needed for
5244 this bug vs. what is needed for systems that lack utimensat.
5245 (fdutimens, lutimens): Work around bug.
5247 utimens: check for ctime update
5248 * tests/test-utimens-common.h (check_ctime): Define.
5249 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5250 * tests/test-futimens.h (test_futimens): Likewise.
5251 * tests/test-lutimens.h (test_lutimens): Likewise.
5252 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5253 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5255 2009-12-19 Bruno Haible <bruno@clisp.org>
5257 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5258 * tests/test-dprintf-posix2.sh: New file.
5259 * tests/test-dprintf-posix2.c: New file.
5260 * modules/dprintf-posix-tests (Files): Add them.
5261 (configure.ac): Check for getrlimit and setrlimit.
5262 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5264 2009-12-19 Bruno Haible <bruno@clisp.org>
5266 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5267 * tests/test-fprintf-posix3.sh: New file.
5268 * tests/test-fprintf-posix3.c: New file.
5269 * modules/fprintf-posix-tests (Files): Add them.
5270 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5272 2009-12-19 Eric Blake <ebb9@byu.net>
5274 dirfd: fix prototype
5275 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5276 * lib/dirfd.c (dirfd): Likewise.
5278 canonicalize: reduce memory usage
5279 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5281 Reported by Solar Designer <solar@openwall.com>.
5283 2009-12-19 Bruno Haible <bruno@clisp.org>
5285 New module attribute 'Applicability'.
5286 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5287 * gnulib-tool: New option --extract-applicability.
5288 (func_usage): Document it.
5289 (sed_extract_prog): Recognize it.
5290 (func_get_applicability): New function.
5291 (func_import): Generalize handling of 'link-warning' module.
5292 * modules/link-warning (Applicability): New section.
5293 * modules/arg-nonnull (Applicability): New section.
5294 Repoted by Simon Josefsson <simon@josefsson.org>.
5296 2009-12-19 Bruno Haible <bruno@clisp.org>
5299 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5300 * lib/fseeko.c (rpl_fseeko): Likewise.
5302 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5304 * lib/gl_list.h: Fix typo in comment.
5306 2009-12-16 Eric Blake <ebb9@byu.net>
5308 fcntl: use to simplify other modules
5309 * modules/cloexec (Depends-on): Add fcntl.
5310 * modules/fchdir (Depends-on): Likewise.
5311 * modules/fd-safer-flag (Depends-on): Likewise.
5312 * modules/unistd-safer (Depends-on): Likewise.
5313 * modules/dup3 (configure.ac): Set module indicator.
5314 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5316 * lib/fchdir.c (_gl_register_dup): Fix comment.
5317 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5318 * lib/dup-safer.c (dup_safer): Likewise.
5319 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5320 * lib/dup3.c (dup3): Likewise.
5321 * tests/test-fchdir.c (main): Enhance test.
5322 Fixes a dup_cloexec bug reported by Ondřej Vašík.
5324 fcntl: port portions of fcntl to mingw
5325 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5326 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5327 replacement for mingw.
5328 * modules/fcntl (Description): Update.
5329 (Depends-on): Add dup2.
5330 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5331 * modules/fcntl-h (Makefile.am): Substitute it.
5332 * lib/fcntl.in.h (fcntl): Update declaration.
5333 (F_DUPFD, F_GETFD): New macros, when needed.
5334 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5335 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5336 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5339 fcntl: work around cygwin bug in F_DUPFD
5340 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5341 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5342 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5343 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5344 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5346 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5347 * modules/fcntl (Files): List new files.
5348 (configure.ac): Run a test.
5349 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5350 * lib/fcntl.c (rpl_fcntl): Likewise.
5351 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5352 (gl_FCNTL_H): Always replace fcntl.h.
5353 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5354 * lib/fcntl.in.h (fcntl): Declare replacement.
5355 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5356 needed, plus a witness.
5357 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5358 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5359 * tests/test-fcntl.c: New file.
5360 * modules/fcntl-tests: Likewise.
5362 binary-io: avoid potential compilation warning
5363 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5366 fflush: avoid compilation error on NetBSD
5367 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5368 between off_t and fpos_t, since the latter is sometimes a struct.
5369 * lib/fseeko.c (rpl_fseeko): Likewise.
5370 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5372 2009-12-15 Eric Blake <ebb9@byu.net>
5374 fcntl-h, stdio, sys_ioctl: fix declarations
5375 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5376 function must not take arguments.
5377 * lib/sys_ioctl.in.h (ioctl): Likewise.
5378 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5379 (open): Add a link warning.
5381 2009-12-15 Jim Meyering <meyering@redhat.com>
5383 areadlink, areadlink-with-size: relax license to LGPLv2+
5384 * modules/areadlink (License): Relax to LGPLv2+.
5385 * modules/areadlink-with-size (License): Likewise.
5387 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5388 Bruno Haible <bruno@clisp.org>
5390 *printf: Fix memory leak.
5391 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5392 * lib/vfprintf.c (vfprintf): Likewise.
5393 * lib/dprintf.c (dprintf): Likewise.
5394 * lib/vdprintf.c (vdprintf): Likewise.
5396 2009-12-14 Eric Blake <ebb9@byu.net>
5398 accept4: adjust module dependencies
5399 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5401 utimens: one more try at avoiding compiler warning
5402 * lib/utimens.c (lutimens): Lower scope of result.
5404 2009-12-13 Bruno Haible <bruno@clisp.org>
5406 Move the malloc checking from module 'list' to new module 'xlist'.
5407 * modules/xlist: New file.
5408 * lib/gl_xlist.h: New file.
5409 * lib/gl_xlist.c: New file.
5410 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5411 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5412 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5413 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5414 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5415 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5416 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5417 gl_sortedlist_nx_add): New declarations.
5418 (struct gl_list_implementation): Rename and change methods accordingly.
5419 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5420 (gl_list_nx_create): Renamed from gl_list_create.
5421 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5422 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5423 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5424 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5425 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5426 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5427 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5428 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5429 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5430 gl_list_create_empty.
5431 (gl_list_nx_create): Renamed from gl_list_create.
5432 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5433 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5434 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5435 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5436 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5437 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5438 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5439 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5440 * lib/gl_array_list.c: Don't include xalloc.h.
5441 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5442 NULL upon out-of-memory.
5443 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5445 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5446 Change return type to 'int'.
5447 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5448 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5449 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5451 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5453 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5455 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5457 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5459 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5461 (gl_array_list_implementation): Update.
5462 * lib/gl_carray_list.c: Don't include xalloc.h.
5463 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5464 Return NULL upon out-of-memory.
5465 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5467 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5468 Change return type to 'int'.
5469 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5470 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5471 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5473 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5475 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5477 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5478 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5479 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5481 (gl_carray_list_implementation): Update.
5482 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5483 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5484 gl_linked_create_empty. Return NULL upon out-of-memory.
5485 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5487 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5488 Change return type to 'int'. Return -1 upon out-of-memory.
5489 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5491 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5493 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5495 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5496 NULL upon out-of-memory.
5497 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5499 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5501 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5503 * lib/gl_linked_list.c: Don't include xalloc.h.
5504 (gl_linked_list_implementation): Update.
5505 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5506 (add_to_bucket): Change return type to 'int'.
5507 (gl_linkedhash_list_implementation): Update.
5508 * lib/gl_anytree_list1.h (free_subtree): New function.
5509 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5510 gl_tree_create_empty. Return NULL upon out-of-memory.
5511 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5512 Change return type to 'int'. Return -1 upon out-of-memory.
5513 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5515 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5516 (gl_tree_remove_node): New function, moved here from
5517 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5518 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5520 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5521 malloc, not xmalloc. Return NULL upon out-of-memory.
5522 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5524 (gl_tree_remove_node_from_tree): New function, extracted from
5525 gl_tree_remove_node.
5526 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5528 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5530 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5532 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5534 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5535 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5536 not xmalloc. Return NULL upon out-of-memory.
5537 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5539 (gl_tree_remove_node_from_tree): New function, extracted from
5540 gl_tree_remove_node.
5541 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5543 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5545 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5547 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5549 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5550 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5551 gl_anytree_list1.h before gl_anyavltree_list2.h.
5552 (gl_avltree_list_implementation): Update.
5553 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5554 gl_anytree_list1.h before gl_anyavltree_list2.h.
5555 (gl_rbtree_list_implementation): Update.
5556 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5557 Change return type to 'int'. Return -1 upon out-of-memory. Use
5559 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5560 (gl_avltreehash_list_implementation): Update.
5561 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5562 (gl_rbtreehash_list_implementation): Update.
5563 * modules/array-list (Depends-on): Remove xalloc.
5564 * modules/carray-list (Depends-on): Likewise.
5565 * modules/linked-list (Depends-on): Likewise.
5566 * modules/linkedhash-list (Depends-on): Likewise.
5567 * modules/avltree-list (Depends-on): Likewise.
5568 * modules/rbtree-list (Depends-on): Likewise.
5569 * modules/avltreehash-list (Depends-on): Likewise.
5570 * modules/rbtreehash-list (Depends-on): Likewise.
5572 * modules/xsublist: New file.
5573 * lib/gl_xsublist.h: New file.
5574 * lib/gl_xsublist.c: New file.
5575 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5576 (gl_sublist_nx_create): New declaration.
5577 * lib/gl_sublist.c: Don't include xalloc.h.
5578 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5579 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5580 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5581 Change return type to 'int'. Return -1 upon out-of-memory.
5582 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5584 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5585 NULL upon out-of-memory.
5586 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5588 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5589 NULL upon out-of-memory.
5590 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5591 NULL upon out-of-memory.
5592 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5594 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5595 (gl_sublist_list_implementation): Update.
5596 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5598 * modules/sublist (Depends-on): Remove xalloc.
5600 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5601 * tests/test-carray_list.c: Likewise.
5602 * tests/test-linked_list.c: Likewise.
5603 * tests/test-linkedhash_list.c: Likewise.
5604 * tests/test-avltree_list.c: Likewise.
5605 * tests/test-rbtree_list.c: Likewise.
5606 * tests/test-avltreehash_list.c: Likewise.
5607 * tests/test-rbtreehash_list.c: Likewise.
5608 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5609 * modules/carray-list-tests (Makefile.am): Likewise.
5610 * modules/linked-list-tests (Makefile.am): Likewise.
5611 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5612 * modules/avltree-list-tests (Makefile.am): Likewise.
5613 * modules/rbtree-list-tests (Makefile.am): Likewise.
5614 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5615 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5617 * NEWS: Mention the changes.
5619 * lib/clean-temp.c: Include gl_xlist.h.
5620 * modules/clean-temp (Depends-on): Add xlist.
5622 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5623 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5625 * tests/test-array_oset.c: Include gl_xlist.h.
5626 * modules/array-oset-tests (Depends-on): Add xlist.
5628 Reported by José E. Marchesi <jemarch@gnu.org>.
5630 2009-12-13 Bruno Haible <bruno@clisp.org>
5632 Move the malloc checking from module 'oset' to new module 'xoset'.
5633 * modules/xoset: New file.
5634 * lib/gl_xoset.h: New file.
5635 * lib/gl_xoset.c: New file.
5636 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5638 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5639 (struct gl_oset_implementation): Rename and change methods accordingly.
5640 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5641 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5642 'int'. Mark as __warn_unused_result__.
5643 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5644 gl_oset_create_empty.
5645 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5647 * lib/gl_array_oset.c: Don't include xalloc.h.
5648 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5649 malloc, not xmalloc.
5650 (grow): Change return type to 'int'. Don't call xalloc_die.
5651 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5653 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5655 (gl_array_oset_implementation): Update.
5656 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5657 gl_tree_create_empty.
5658 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5660 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5661 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5663 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5665 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5667 (gl_avltree_oset_implementation): Update.
5668 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5669 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5671 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5673 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5675 (gl_rbtree_oset_implementation): Update.
5676 * modules/array-oset (Depends-on): Remove xalloc.
5677 * modules/avltree-oset (Depends-on): Likewise.
5678 * modules/rbtree-oset (Depends-on): Likewise.
5679 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5680 * tests/test-avltree_oset.c: Likewise.
5681 * tests/test-rbtree_oset.c: Likewise.
5682 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5683 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5684 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5685 * NEWS: Mention the change.
5687 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5689 maint.mk: allow a project to override release-prep commands
5690 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5691 commands into a new rule.
5692 (release-prep): New rule.
5693 (release-prep-hook): New overridable variable.
5695 2009-12-13 Bruno Haible <bruno@clisp.org>
5697 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5699 2009-12-13 Jim Meyering <meyering@redhat.com>
5701 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5702 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5704 2009-12-12 Bruno Haible <bruno@clisp.org>
5707 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5709 2009-12-12 Karl Berry <karl@gnu.org>
5711 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5713 2009-12-12 Bruno Haible <bruno@clisp.org>
5715 * m4/po.m4: Undo incorrect untabification.
5717 2009-12-12 Bruno Haible <bruno@clisp.org>
5719 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5720 * modules/c-strtod (Depends-on): Add locale.
5721 * modules/c-strtold (Depends-on): Likewise.
5723 2009-12-12 Bruno Haible <bruno@clisp.org>
5725 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5727 2009-12-11 Eric Blake <ebb9@byu.net>
5729 setenv: relax requirement in light of POSIX ruling
5730 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5732 * tests/test-setenv.c (main): Relax test.
5733 * tests/test-unsetenv.c (main): Likewise.
5734 * doc/posix-functions/setenv.texi (setenv): Document this.
5735 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5737 2009-12-11 Bruno Haible <bruno@clisp.org>
5739 New module 'fd-safer-flag'.
5740 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5741 * lib/dup-safer.c (dup_safer_flag): Remove function.
5742 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5743 * lib/fd-safer.c (fd_safer_flag): Remove function.
5744 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5745 * modules/cloexec (configure.ac): Drop indicator macro.
5746 * modules/fd-safer-flag: New file.
5747 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5748 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5749 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5751 2009-12-11 Bruno Haible <bruno@clisp.org>
5753 Tests for module 'nl_langinfo'.
5754 * modules/nl_langinfo-tests: New file.
5755 * tests/test-nl_langinfo.sh: New file.
5756 * tests/test-nl_langinfo.c: New file.
5758 New module 'nl_langinfo'.
5759 * lib/nl_langinfo.c: New file.
5760 * m4/nl_langinfo.m4: New file.
5761 * modules/nl_langinfo: New file.
5762 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5764 2009-12-11 Bruno Haible <bruno@clisp.org>
5766 Tests for module 'langinfo'.
5767 * modules/langinfo-tests: New file.
5768 * tests/test-langinfo.c: New file.
5770 New module 'langinfo'.
5771 * lib/langinfo.in.h: New file.
5772 * m4/langinfo_h.m4: New file.
5773 * modules/langinfo: New file.
5774 * doc/posix-headers/langinfo.texi: Mention the new module.
5776 2009-12-11 Bruno Haible <bruno@clisp.org>
5778 * lib/config.charset: Untabify.
5780 2009-12-11 Bruno Haible <bruno@clisp.org>
5782 * modules/unistd-safer (configure.ac): Drop indicator macro.
5784 2009-12-11 Bruno Haible <bruno@clisp.org>
5786 Move pipe2-safer code to its own file.
5787 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5788 * lib/pipe-safer.c (pipe2_safer): Remove function.
5789 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5790 (Makefile.am): Add it to lib_SOURCES.
5792 2009-12-10 Bruno Haible <bruno@clisp.org>
5794 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5796 2009-12-10 Bruno Haible <bruno@clisp.org>
5798 Declare which arguments expect non-NULL values, for GCC and clang.
5799 * build-aux/arg-nonnull.h: New file.
5800 * modules/arg-nonnull: New file.
5801 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5802 (inet_ntop, inet_pton): Use it.
5803 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5804 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5805 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5806 (open, openat): Use it.
5807 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5809 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5810 (getopt, getopt_long, getopt_long_only): Use it.
5811 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5812 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5814 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5815 (iconv_open): Use it.
5816 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5817 (strtoimax, strtoumax): Use it.
5818 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5819 (duplocale): Use it.
5820 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5821 (frexp, frexpl): Use it.
5822 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5823 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5824 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5825 (tsearch, tfind, tdelete, twalk): Use it.
5826 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5827 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5828 sigpending): Use it.
5829 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5830 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5831 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5832 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5833 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5834 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5835 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5836 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5837 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5838 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5839 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5841 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5842 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5843 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5844 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5845 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5846 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5847 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5848 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5849 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5850 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5851 strtoull, unsetenv): Use it.
5852 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5853 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5854 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5855 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5856 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5857 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5858 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5859 (strcasecmp, strncasecmp): Use it.
5860 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5861 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5862 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5863 rpl_setsockopt): Use it.
5864 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5865 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5866 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5867 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5868 (gettimeofday): Use it.
5869 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5871 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5873 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5874 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5875 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5876 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5877 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5878 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5879 unlinkat, write): Use it.
5880 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5881 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5882 * lib/argv-iter.h: Include arg-nonnull.h.
5883 (_ATTRIBUTE_NONNULL_): Remove macro.
5884 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5885 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5886 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5888 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5889 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5890 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5891 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5892 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5893 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5894 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5895 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5896 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5897 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5898 * modules/dirent (Depends-on): Add arg-nonnull.
5899 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5900 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5901 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5902 * modules/fnmatch (Depends-on): Add arg-nonnull.
5903 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5904 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5905 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5906 * modules/glob (Depends-on): Add arg-nonnull.
5907 (Makefile.am): Insert arg-nonnull.h into glob.h.
5908 * modules/iconv_open (Depends-on): Add arg-nonnull.
5909 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5910 * modules/inttypes (Depends-on): Add arg-nonnull.
5911 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5912 * modules/locale (Depends-on): Add arg-nonnull.
5913 (Makefile.am): Insert arg-nonnull.h into locale.h.
5914 * modules/math (Depends-on): Add arg-nonnull.
5915 (Makefile.am): Insert arg-nonnull.h into math.h.
5916 * modules/netdb (Depends-on): Add arg-nonnull.
5917 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5918 * modules/search (Depends-on): Add arg-nonnull.
5919 (Makefile.am): Insert arg-nonnull.h into search.h.
5920 * modules/signal (Depends-on): Add arg-nonnull.
5921 (Makefile.am): Insert arg-nonnull.h into signal.h.
5922 * modules/spawn (Depends-on): Add arg-nonnull.
5923 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5924 * modules/stdio (Depends-on): Add arg-nonnull.
5925 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5926 * modules/stdlib (Depends-on): Add arg-nonnull.
5927 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5928 * modules/string (Depends-on): Add arg-nonnull.
5929 (Makefile.am): Insert arg-nonnull.h into string.h.
5930 * modules/strings (Depends-on): Add arg-nonnull.
5931 (Makefile.am): Insert arg-nonnull.h into strings.h.
5932 * modules/sys_socket (Depends-on): Add arg-nonnull.
5933 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5934 * modules/sys_stat (Depends-on): Add arg-nonnull.
5935 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5936 * modules/sys_time (Depends-on): Add arg-nonnull.
5937 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5938 * modules/sys_times (Depends-on): Add arg-nonnull.
5939 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5940 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5941 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5942 * modules/time (Depends-on): Add arg-nonnull.
5943 (Makefile.am): Insert arg-nonnull.h into time.h.
5944 * modules/unistd (Depends-on): Add arg-nonnull.
5945 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5946 * modules/wchar (Depends-on): Add arg-nonnull.
5947 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5948 * modules/argv-iter (Depends-on): Add arg-nonnull.
5949 * tests/test-canonicalize.c (null_ptr): New function.
5951 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5953 * tests/test-memmem.c (null_ptr): New function.
5955 Reported by Jim Meyering.
5957 2009-12-10 Bruno Haible <bruno@clisp.org>
5959 Use spaces for indentation, not tabs.
5960 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5961 * m4/*.m4: Untabify.
5962 * build-aux/*.h: Untabify.
5963 * tests/**/*.[hc]: Untabify.
5964 * README: New section "Indent with spaces, not TABs", based on
5965 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5966 * NEWS: Mention the change.
5968 2009-12-10 Bruno Haible <bruno@clisp.org>
5970 pty test: Fix link error.
5971 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5974 2009-12-07 Simon Josefsson <simon@josefsson.org>
5976 * modules/pty: New file.
5977 * modules/pty-tests: New file.
5978 * m4/pty.m4: New file.
5979 * tests/test-pty.c: New file.
5980 * doc/glibc-headers/pty.texi: Modified.
5981 * doc/glibc-functions/forkpty.texi: Modified.
5982 * doc/glibc-functions/openpty.texi: Modified.
5984 2009-12-10 Bruno Haible <bruno@clisp.org>
5986 Avoid syntax error in C++ mode.
5987 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5989 2009-12-10 Bruno Haible <bruno@clisp.org>
5991 Use sed with option -e.
5992 * gnulib-tool (func_version, func_emit_copyright_notice,
5993 func_emit_initmacro_end, func_import, func_create_testdir): Pass
5995 * modules/link-warning (Makefile.am): Likewise.
5997 2009-12-10 Jim Meyering <meyering@redhat.com>
5999 mgetgroups: do not write bytes beyond end of malloc'd buffer
6000 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6001 username, we call getgroups with a one-element-shorter buffer,
6002 but still told it the length was original, max_n_groups.
6004 2009-12-09 Eric Blake <ebb9@byu.net>
6006 cloexec: relax license
6007 * modules/cloexec (Maintainer): Add myself.
6008 (License): Use LGPL, not GPL.
6010 link-warning: optimize generation
6011 * modules/link-warning (Makefile.am): Reduce process usage.
6013 2009-12-09 Bruno Haible <bruno@clisp.org>
6015 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6016 workaround was added on 2009-11-17.
6018 2009-12-09 Jim Meyering <meyering@redhat.com>
6019 Bruno Haible <bruno@clisp.org>
6021 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6022 * modules/link-warning (Makefile.am): Make the comment-removing sed
6023 command more robust in the face of bootstrap-prepended comment lines.
6025 2009-12-09 Bruno Haible <bruno@clisp.org>
6027 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6030 2009-12-09 Simon Josefsson <simon@josefsson.org>
6031 Bruno Haible <bruno@clisp.org>
6033 * build-aux/link-warning.h: Add copyright notice.
6034 * modules/link-warning (Makefile.am): Generate link-warning.h from
6035 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6036 * NEWS: Mention change in link-warning module.
6037 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6038 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6039 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6040 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6041 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6042 * modules/math (Makefile.am): Add dependency to math.h.
6043 * modules/search (Makefile.am): Add dependency to search.h.
6044 * modules/signal (Makefile.am): Add dependency to signal.h.
6045 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6046 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6047 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6048 * modules/string (Makefile.am): Add dependency to string.h.
6049 * modules/strings (Makefile.am): Add dependency to strings.h.
6050 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6051 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6052 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6053 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6054 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6055 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6056 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6057 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6058 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6060 2009-12-09 Bruno Haible <bruno@clisp.org>
6062 fchdir: Optimize away rpl_fstat when possible.
6063 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6064 REPLACE_OPEN_DIRECTORY.
6065 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6067 2009-12-09 Bruno Haible <bruno@clisp.org>
6069 * lib/fchdir.c: Update comment.
6071 2009-12-09 Bruno Haible <bruno@clisp.org>
6073 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6075 2009-12-08 Eric Blake <ebb9@byu.net>
6077 fchdir: avoid memory leak on re-registration.
6078 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6080 2009-12-08 Jim Meyering <meyering@redhat.com>
6082 init.sh: avoid Solaris 10 /bin/sh portability problem
6083 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6085 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6086 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6088 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6089 and two tests used that idiom.
6090 * tests/init.sh: Update suggested usage comments.
6091 (path_prepend_): New function, to be used in place
6092 of the --src-path=DIR option.
6093 (setup_): Move PATH-prepending code into path_prepend_.
6094 * tests/test-pread.sh: Adapt to new usage.
6095 * tests/test-xalloc-die.sh: Likewise.
6097 2009-12-08 Simon Josefsson <simon@josefsson.org>
6099 * doc/gnulib.texi (Glibc pty.h): Add.
6100 * doc/glibc-functions/forkpty.texi: Add.
6101 * doc/glibc-functions/openpty.texi: Add.
6102 Suggested by Bruno Haible.
6104 2009-12-08 Eric Blake <ebb9@byu.net>
6106 fchdir: fix logic bugs
6107 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6108 * tests/test-fchdir.c (main): Enhance test.
6109 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6112 dup2: fix logic bugs
6113 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6114 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6115 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6117 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6119 2009-12-07 Eric Blake <ebb9@byu.net>
6121 unlink: fix m4 detection
6122 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6124 unistd-safer: add unit test
6125 * modules/unistd-safer-tests: New file.
6126 * tests/test-dup-safer.c: Likewise.
6127 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6128 * tests/test-dup2.c (setmode): Likewise.
6129 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6131 cloexec: preserve text vs. binary across dup_cloexec
6132 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6134 * modules/dup2-tests (Depends-on): Add binary-io.
6135 * modules/cloexec-tests (Depends-on): Likewise.
6136 * tests/test-dup2.c (setmode, is_mode): New helpers.
6137 (main): Add tests that translation mode is preserved.
6138 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6139 Reported by Bruno Haible.
6141 mgetgroups: reduce duplicate listings
6142 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6144 * tests/test-chown.h (test_chown): Simplify client.
6145 * tests/test-lchown.h (test_lchown): Likewise.
6147 2009-12-06 Bruno Haible <bruno@clisp.org>
6149 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6152 2009-12-06 Bruno Haible <bruno@clisp.org>
6154 * lib/progname.c: Include stdio.h, stdlib.h.
6155 (set_program_name): Reject a NULL argument.
6157 2009-12-05 Eric Blake <ebb9@byu.net>
6159 pipe2-safer: new module
6160 * modules/pipe2-safer: New file.
6161 * lib/unistd-safer.h (pipe2_safer): New prototype.
6162 * lib/unistd--.h (pipe2): New wrapper.
6163 * lib/pipe-safer.c (pipe2_safer): New function.
6164 * modules/pipe (Depends-on): Add pipe2-safer.
6165 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6167 stdlib-safer: preserve cloexec flag for mkostemp[s]
6168 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6171 unistd-safer: allow preservation of cloexec status via flag
6172 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6174 * lib/dup-safer.c (dup_safer_flag): New function.
6175 * lib/fd-safer.c (fd_safer_flag): Likewise.
6176 * modules/cloexec (configure.ac): Set witness.
6178 test-dup2: enhance test
6179 * modules/dup2-tests (Depends-on): Add cloexec.
6180 * tests/test-dup2.c (main): Enhance test.
6182 cloexec: add dup_cloexec
6183 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6184 header and comments.
6185 * lib/cloexec.c (set_cloexec_flag): Add comments.
6186 (dup_cloexec): New function, with mingw implementation borrowed
6188 * lib/w32spawn.h (dup_noinherit): ...here.
6189 * modules/execute (Depends-on): Add cloexec.
6190 * modules/pipe (Depends-on): Likewise.
6191 * modules/cloexec (Depends-on): Add dup2.
6192 * modules/cloexec-tests (Files): New file.
6193 * tests/test-cloexec.c: Likewise.
6195 test-xalloc-die: fix test for mingw
6196 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6197 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6198 directory and .exe suffix off argv[0] output.
6200 test-fseeko: fix test for mingw
6201 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6202 than undefining fseek, so test will pass on mingw.
6204 2009-12-05 Bruno Haible <bruno@clisp.org>
6206 * lib/progname.h (set_program_name): Clarify specification.
6207 * lib/progname.c (set_program_name): Likewise.
6208 Reported by Jim Meyering.
6210 2009-12-05 Jim Meyering <meyering@redhat.com>
6212 maint.mk: backslash-escape parens in default regexp
6213 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6214 backslash-escape the literal parentheses.
6216 maint.mk: news-date-check: use grep -E
6217 * top/maint.mk (today): Define a Make variable, not a...
6218 (news-date-check): ...shell variable.
6219 (news-date-regexp): Use the Make variable.
6220 Use grep's -E option. Change the failing diagnostic to mention
6221 the variable, $(news-date-regexp).
6223 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6225 maintainer-makefile: allow customization of NEWS entry format
6226 * top/maint.mk (news-date-regexp): New overridable variable.
6227 (news-date-check): Use it.
6229 2009-12-04 Eric Blake <ebb9@byu.net>
6231 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6232 * lib/mgetgroups.h (xgetgroups): New prototype.
6233 * lib/mgetgroups.c (xgetgroups): New wrapper.
6234 (mgetgroups): Handle ENOSYS.
6235 * modules/mgetgroups (Depends-on): Add realloc.
6236 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6238 mgetgroups: avoid argument promotion issues with -1
6239 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6241 * tests/test-chown.h (getegid, test_chown): Likewise.
6242 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6244 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6246 exclude: Fix header file problems.
6247 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6249 2009-12-01 Jim Meyering <meyering@redhat.com>
6251 fts: fts_open: do not let an empty string cause immediate failure
6252 This is required in support of GNU rm, for which the command
6253 "rm A '' B" must process and remove both A and B, in spite of
6254 the empty string argument.
6255 * lib/fts.c (fts_open): Do not let the presence of an empty string
6256 cause fts_open to fail immediately. Most fts-using tools must be
6257 able to process all arguments, in order, and can be expected to
6258 diagnose such arguments themselves.
6260 2009-11-30 Eric Blake <ebb9@byu.net>
6262 utimens: fix compilation error
6263 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6264 Declare variable at right scope.
6266 2009-11-29 Jim Meyering <meyering@redhat.com>
6268 bootstrap: handle perl-5.11's changed --version output
6269 * build-aux/bootstrap (get_version): Handle perl separately,
6270 since perl-5.11's --version output is different.
6272 2009-11-28 Jim Meyering <meyering@redhat.com>
6274 userspec: depend on the inttostr module, too
6275 * modules/userspec (Depends-on): Add inttostr.
6277 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6278 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6279 number of MAXUID when it evaluates to (uid_t) -1.
6280 Likewise for group ID. Reported by Matt McCutchen in
6281 <http://savannah.gnu.org/bugs/?28113>
6283 userspec: reformat to use spaces, not TABs
6284 * lib/userspec.c: Expand TABs to spaces.
6285 Add Emacs' "indent-tabs-mode: nil" hint.
6287 2009-11-27 Eric Blake <ebb9@byu.net>
6289 getopt-gnu: flush out another BSD bug
6290 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6291 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6293 * tests/test-getopt.h (test_getopt): End lists with NULL.
6294 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6295 (test_getopt_long_posix): Enhance test.
6296 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6297 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6299 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6302 2009-11-27 Simon Josefsson <simon@josefsson.org>
6304 * modules/idpriv-droptemp-tests (Notice): Fix text.
6306 2009-11-27 Jim Meyering <meyering@redhat.com>
6308 test-xalloc-die: avoid spurious failure due to libtool argv difference
6309 In a libtool-enabled project, this test would fail due to a difference
6310 in the emitted program name, e.g.,
6311 -test-xalloc-die: memory exhausted
6312 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6313 Use program to avoid that.
6314 * modules/xalloc-die-tests (Depends-on): Add progname.
6315 * tests/test-xalloc-die.c: Include progname.h".
6316 (program_name): Remove decl.
6317 (main): Call set_program_name.
6318 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6320 2009-11-26 Richard Jones <rjones@redhat.com>
6322 w32sock: leave win32 error in place.
6323 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6325 2009-11-26 Eric Blake <ebb9@byu.net>
6327 init.sh: suggest to use skip_ and fail_ functions in comments
6328 * tests/init.sh: Add a sentence.
6330 2009-11-25 Bruno Haible <bruno@clisp.org>
6332 init.sh: add documentation in comments
6333 * tests/init.sh: Add some developer and user documentation.
6335 2009-11-26 Jim Meyering <meyering@redhat.com>
6337 init.sh: accommodate even those who specify bogus srcdir manually
6338 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6339 configure-time tests to be sanitized, so that there is no need to
6340 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6341 (with no double quotes) suffices. However, since tests may be
6342 invoked manually, and since you may explicitly set srcdir to the
6343 name of a directory containing spaces, do quote its uses here.
6344 * tests/test-pread.sh: Likewise.
6345 Suggested by Bruno Haible.
6347 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6348 * tests/test-pread.sh: Write no data into the pipe, because
6349 test-pread actually reads none. This avoids a diagnostic,
6350 "bash: echo: write error: Broken pipe", that arises in the unusual
6351 event something is ignoring SIGPIPE, and might be interpreted
6352 as some sort of failure. Reported by Bruno Haible.
6354 2009-11-25 Jim Meyering <meyering@redhat.com>
6356 test-pread: cover failure with ESPIPE and EINVAL
6357 * tests/test-pread.c (main): Test for failure, too.
6358 * tests/test-pread.sh: Invoke with stdin on a pipe.
6359 Suggested by Eric Blake.
6361 pread: improvement and fix
6362 * modules/pread (Depends-on): Depend on lseek, for portability to
6363 e.g., mingw. Suggested by Eric Blake.
6364 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6366 unistd.in.h: correct declaration of pread
6367 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6368 Reported by Richard W.M. Jones.
6370 test-pread.sh: distribute the test script
6371 * modules/pread-tests (Files): Include test-pread.sh.
6373 test-pread.sh: clean up
6374 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6375 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6376 That is unnecessary, since it's always ".".
6377 Suggestion from Eric Blake.
6379 test-pread.sh: make executable
6380 * tests/test-pread.sh: Set executable bit.
6381 Reported by Eric Blake.
6383 correct typo in test-pread.sh
6384 * tests/test-pread.sh: Add #! line.
6387 * tests/test-pread.c: New file.
6388 * tests/test-pread.sh: Likewise.
6389 * modules/pread-tests: Likewise.
6392 * modules/pread: New file.
6393 * lib/unistd.in.h (pread): Define/declare.
6394 * lib/pread.c (pread): New file.
6395 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6396 * modules/unistd (Makefile.am): Substitute witnesses.
6397 * doc/posix-functions/pread.texi (pread): Update.
6398 * MODULES.html.sh: Add pread.
6400 2009-11-25 Jim Meyering <meyering@redhat.com>
6402 tests/init.sh: new file to be used via most *.sh tests
6403 * tests/init.sh: New file.
6405 2009-11-25 Eric Blake <ebb9@byu.net>
6407 utimens: work around older Linux failure with symlinks
6408 * lib/utimens.c (lutimensat_works_really): New variable.
6409 (fdutimens, lutimens): Use it to manage kernels that support
6410 nanosecond times on files, but not on symlinks.
6411 Reported by Ondřej Vašík.
6413 utimes: fix configure grammar
6414 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6416 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6418 regex: Fix fastmap for multibyte character ranges.
6419 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6420 characters when a multibyte character range is included.
6422 2009-11-22 Andy Wingo <wingo@pobox.com>
6424 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6425 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6427 2009-11-24 Bruno Haible <bruno@clisp.org>
6429 doc: Most *_l functions exist in MacOS X 10.5.
6430 * doc/posix-functions/duplocale.texi: Update platforms list.
6431 * doc/posix-functions/freelocale.texi: Likewise.
6432 * doc/posix-functions/newlocale.texi: Likewise.
6433 * doc/posix-functions/uselocale.texi: Likewise.
6434 * doc/posix-functions/isalnum_l.texi: Likewise.
6435 * doc/posix-functions/isalpha_l.texi: Likewise.
6436 * doc/posix-functions/isblank_l.texi: Likewise.
6437 * doc/posix-functions/iscntrl_l.texi: Likewise.
6438 * doc/posix-functions/isdigit_l.texi: Likewise.
6439 * doc/posix-functions/isgraph_l.texi: Likewise.
6440 * doc/posix-functions/islower_l.texi: Likewise.
6441 * doc/posix-functions/isprint_l.texi: Likewise.
6442 * doc/posix-functions/ispunct_l.texi: Likewise.
6443 * doc/posix-functions/isspace_l.texi: Likewise.
6444 * doc/posix-functions/isupper_l.texi: Likewise.
6445 * doc/posix-functions/iswalnum_l.texi: Likewise.
6446 * doc/posix-functions/iswalpha_l.texi: Likewise.
6447 * doc/posix-functions/iswblank_l.texi: Likewise.
6448 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6449 * doc/posix-functions/iswctype_l.texi: Likewise.
6450 * doc/posix-functions/iswdigit_l.texi: Likewise.
6451 * doc/posix-functions/iswgraph_l.texi: Likewise.
6452 * doc/posix-functions/iswlower_l.texi: Likewise.
6453 * doc/posix-functions/iswprint_l.texi: Likewise.
6454 * doc/posix-functions/iswpunct_l.texi: Likewise.
6455 * doc/posix-functions/iswspace_l.texi: Likewise.
6456 * doc/posix-functions/iswupper_l.texi: Likewise.
6457 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6458 * doc/posix-functions/isxdigit_l.texi: Likewise.
6459 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6460 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6461 * doc/posix-functions/strcoll_l.texi: Likewise.
6462 * doc/posix-functions/strfmon_l.texi: Likewise.
6463 * doc/posix-functions/strftime_l.texi: Likewise.
6464 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6465 * doc/posix-functions/strxfrm_l.texi: Likewise.
6466 * doc/posix-functions/tolower_l.texi: Likewise.
6467 * doc/posix-functions/toupper_l.texi: Likewise.
6468 * doc/posix-functions/towctrans_l.texi: Likewise.
6469 * doc/posix-functions/towlower_l.texi: Likewise.
6470 * doc/posix-functions/towupper_l.texi: Likewise.
6471 * doc/posix-functions/wcscoll_l.texi: Likewise.
6472 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6473 * doc/posix-functions/wctrans_l.texi: Likewise.
6474 * doc/posix-functions/wctype_l.texi: Likewise.
6475 * doc/glibc-functions/strptime_l.texi: Likewise.
6476 * doc/glibc-functions/strtod_l.texi: Likewise.
6477 * doc/glibc-functions/strtof_l.texi: Likewise.
6478 * doc/glibc-functions/strtol_l.texi: Likewise.
6479 * doc/glibc-functions/strtold_l.texi: Likewise.
6480 * doc/glibc-functions/strtoll_l.texi: Likewise.
6481 * doc/glibc-functions/strtoul_l.texi: Likewise.
6482 * doc/glibc-functions/strtoull_l.texi: Likewise.
6483 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6484 * doc/glibc-functions/wcstod_l.texi: Likewise.
6485 * doc/glibc-functions/wcstof_l.texi: Likewise.
6486 * doc/glibc-functions/wcstol_l.texi: Likewise.
6487 * doc/glibc-functions/wcstold_l.texi: Likewise.
6488 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6489 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6490 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6492 2009-11-24 Bruno Haible <bruno@clisp.org>
6494 duplocale: Fix logic bug.
6495 * lib/duplocale.c: Don't include <langinfo.h>.
6496 (_NL_LOCALE_NAME): Remove macro.
6497 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6498 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6500 2009-11-23 Jim Meyering <meyering@redhat.com>
6502 test-update-copyright: don't hard-code /usr/bin/perl
6503 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6504 perl to print the current year. Gilles Espinasse reported that
6505 the replaced use of perl was hard-coded as /usr/bin/perl.
6507 2009-11-23 Bruno Haible <bruno@clisp.org>
6509 duplocale: Add support for glibc 2.3.x.
6510 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6512 2009-11-22 Bruno Haible <bruno@clisp.org>
6514 vasnprintf: Tiny optimization.
6515 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6518 2009-11-22 Bruno Haible <bruno@clisp.org>
6520 Tests for module 'duplocale'.
6521 * modules/duplocale-tests: New file.
6522 * tests/test-duplocale.c: New file.
6524 New module 'duplocale'.
6525 * m4/duplocale.m4: New file.
6526 * lib/locale.in.h (duplocale): New declaration.
6527 * lib/duplocale.c: New file.
6528 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6529 gl_LOCALE_H_DEFAULTS): New macros.
6530 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6531 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6532 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6534 * modules/duplocale: New file.
6535 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6537 2009-11-22 Bruno Haible <bruno@clisp.org>
6539 * modules/locale-tests (configure.ac): Test for newlocale function.
6540 * tests/test-locale.c: When the system has extended locale functions,
6541 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6543 locale: Make locale_t available when possible.
6544 * lib/locale.in.h: Include <xlocale.h> when it exists.
6545 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6546 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6547 * modules/locale (Depends-on): Add extensions.
6548 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6549 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6551 2009-11-22 Bruno Haible <bruno@clisp.org>
6554 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6556 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6557 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6558 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6560 2009-11-22 Bruno Haible <bruno@clisp.org>
6562 error: account for the possibility of freopen (stdout).
6563 * lib/error.c: Include <unistd.h>.
6564 (flush_stdout): New function, extracted from error and error_at_line.
6565 Determine stdout's fd dynamically.
6566 (error, error_at_line): Invoke flush_stdout.
6567 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6568 * modules/error (Depends-on): Add unistd.
6570 2009-11-22 Bruno Haible <bruno@clisp.org>
6572 diffseq: Add comment.
6573 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6575 2009-11-22 Jim Meyering <meyering@redhat.com>
6577 c-stack: avoid defining an unused static function
6578 * lib/c-stack.c (find_stack_direction): Do not define this function
6579 when it will not be used.
6581 diffseq: avoid spurious gcc warnings
6582 * lib/diffseq.h (IF_LINT2): Define.
6583 (compareseq): Use it to initialize two members of "part".
6584 This avoids two used-uninitialized warnings.
6586 2009-11-21 Jim Meyering <meyering@redhat.com>
6588 c-stack: avoid "ignoring return value of `write'" warning
6589 * lib/c-stack.c: Include "ignore-value.h".
6590 (die): Explicitly ignore each write return value.
6591 * modules/c-stack (Depends-on): Add ignore-value.
6593 2009-11-21 Bruno Haible <bruno@clisp.org>
6595 diffseq: reduce scope of variable 'best'.
6596 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6597 variable, earlier used for two different purposes.
6599 2009-11-21 Jim Meyering <meyering@redhat.com>
6601 diffseq: remove useless assignment to "best"
6602 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6603 assignment. At that point "best" is already guaranteed to be zero.
6605 2009-11-20 Eric Blake <ebb9@byu.net>
6607 build: mention ftp redirector in release announcements
6608 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6609 values that used to come from cfg.mk; mention FTP redirect URL.
6610 * build-aux/announce-gen: Mention the mirror list.
6611 Suggested by Karl Berry.
6613 nanosleep: improve port to mingw
6614 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6615 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6616 LIB_NANOSLEEP, but only when needed.
6617 * modules/select (Link): Document LIBSOCKET.
6618 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6621 nanosleep: work around cygwin bug
6622 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6623 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6625 (getnow): Delete, not needed.
6626 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6628 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6629 clock-time, gettime.
6630 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6632 * modules/nanosleep-tests: New test.
6633 * tests/test-nanosleep.c: New file.
6635 sleep: work around cygwin bug
6636 * lib/sleep.c (rpl_sleep): Work around the bug.
6637 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6638 (gl_PREREQ_SLEEP): Delete unused macro.
6639 * modules/sleep (Depends-on): Add verify.
6640 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6641 * modules/unistd (Makefile.am): Substitute witness.
6642 * lib/unistd.in.h (sleep): Update prototype.
6643 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6644 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6645 * modules/sleep-tests (Depends-on): Check for alarm.
6647 2009-11-20 Jim Meyering <meyering@redhat.com>
6649 maint.mk: improve sc_prohibit_magic_number_exit
6650 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6651 so it does not match uses like System.exit(1).
6652 Add comments showing how to correct all offenders.
6654 2009-11-19 Eric Blake <ebb9@byu.net>
6656 xalloc-die-tests: add missing library
6657 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6659 test-xvasprintf: silence compiler warnings
6660 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6661 empty string from gcc.
6663 2009-11-19 Jim Meyering <meyering@redhat.com>
6665 xfreopen: new module, from coreutils
6666 * modules/xfreopen: New module.
6667 * lib/xfreopen.c: New file.
6668 * lib/xfreopen.h: New file.
6669 * MODULES.html.sh (File stream based Input/Output"): Add it.
6671 2009-11-19 Eric Blake <ebb9@byu.net>
6673 manywarnings: depend on warnings
6674 * modules/manywarnings (Depends-on): Add warnings.
6676 build: avoid compiler warnings
6677 * lib/select.c (rpl_select): Delete unused variable.
6678 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6680 2009-11-18 Eric Blake <ebb9@byu.net>
6682 tests: avoid false negative with --with-packager
6683 * tests/test-version-etc.sh: Discard packager information.
6684 * tests/test-argp-version-etc-1.sh: Likewise.
6685 Reported by Mike Frysinger.
6687 utimens: fix regression on Solaris
6688 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6689 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6690 can only change fd timestamps via futimesat. Instead, use an
6691 additional witness macro to avoid BSD bug.
6692 Reported by Jim Meyering.
6694 2009-11-17 Eric Blake <ebb9@byu.net>
6696 usleep: use it to simplify tests
6697 * modules/stat-time-tests (Depends-on): Add usleep.
6698 (configure.ac): Drop usleep check.
6699 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6700 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6701 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6702 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6703 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6704 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6705 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6706 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6708 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6709 * tests/test-lchown.h (nap): Likewise.
6710 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6711 * tests/test-stat-time.c (nap): Likewise.
6712 * tests/test-utimens-common.h (nap): Update comments.
6715 * modules/usleep: New file.
6716 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6717 * lib/usleep.c (usleep): Likewise.
6718 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6719 * modules/unistd (Makefile.am): Substitute witnesses.
6720 * lib/unistd.in.h (usleep): Add declaration.
6721 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6722 * MODULES.html.sh (Date and time): Likewise.
6723 * modules/usleep-tests (Depends-on): New test.
6724 * tests/test-usleep.c: New file.
6726 chown: work around OpenBSD bug
6727 * lib/chown.c (rpl_chown): Work around the bug.
6728 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6729 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6730 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6731 * modules/chown (Depends-on): Add stdbool.
6732 * modules/lchown (Depends-on): Likewise.
6733 * doc/posix-functions/chown.texi (chown): Document the bug.
6734 * doc/posix-functions/lchown.texi (lchown): Likewise.
6735 * tests/test-lchown.h (test_chown): Relax test.
6737 mkstemp: avoid conflict with C++ keyword template
6738 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6739 * lib/mkostemp.c (mkostemp): Likewise.
6740 * lib/mkostemps.c (mkostemps): Likewise.
6741 * lib/mkstemp.c (mkstemp): Likewise.
6742 * lib/mkstemps.c (mkstemps): Likewise.
6744 xalloc-die-tests: optimize
6745 * tests/test-xalloc-die.sh: Reduce number of processes.
6747 2009-11-17 Simon Josefsson <simon@josefsson.org>
6749 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6750 patch from ludo@gnu.org (Ludovic Courtès).
6752 2009-11-17 Jim Meyering <meyering@redhat.com>
6754 version-etc: use proper license string
6755 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6756 * modules/version-etc-fsf: Likewise.
6758 2009-11-17 Simon Josefsson <simon@josefsson.org>
6760 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6761 printed to stdout. Deal with EOL differences.
6763 2009-11-17 Eric Blake <ebb9@byu.net>
6765 unsetenv: work around Solaris bug
6766 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6767 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6768 Reported by Jim Meyering.
6770 vasnprintf: avoid compiler warnings
6771 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6773 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6775 2009-11-17 Simon Josefsson <simon@josefsson.org>
6777 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6778 settings since xalloc-die is no longer the self test,
6781 2009-11-17 Jim Meyering <meyering@redhat.com>
6783 test-xalloc-die.sh: make the code agree with the commit log
6784 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6785 at the end, just in case you happen to have a test-xalloc-die
6786 program in some other PATH directory.
6788 test-xalloc-die.sh: fix a portability bug
6789 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6790 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6791 Otherwise, argv[0] (as often seen in diagnostics) would be too
6792 system-dependent, sometimes with, and sometimes without the leading "./".
6794 version-etc-fsf: relax license to LGPLv3+
6795 * modules/version-etc-fsf (License): Relax license.
6797 2009-11-16 Eric Blake <ebb9@byu.net>
6799 xalloc-die-tests: avoid printing null pointer
6800 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6802 * tests/test-xalloc-die.c (program_name): Declare.
6803 * tests/test-xalloc-die.sh (tmpfiles): New file.
6805 setenv, unsetenv: work around various bugs
6806 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6807 (setenv) [HAVE_SETENV]: Work around bugs.
6808 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6809 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6811 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6812 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6813 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6814 * modules/stdlib (Makefile.am): Update substitutions.
6815 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6816 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6817 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6818 * modules/setenv-tests: New test.
6819 * modules/unsetenv-tests: Likewise.
6820 * tests/test-setenv.c: New file.
6821 * tests/test-unsetenv.c: Likewise.
6823 2009-11-16 Jim Meyering <meyering@redhat.com>
6825 version-etc: relax license to LGPLv3+
6826 * modules/version-etc (License): Relax license.
6828 better AC_REQUIRE expanded-before-required-warning avoidance
6829 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6830 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6831 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6832 which is no longer needed.
6834 2009-11-16 Eric Blake <ebb9@byu.net>
6836 test-freading: clean up temporary file
6837 * tests/test-freading.c (main): Remove file on success, and use
6838 ASSERT more liberally.
6839 Reported by Jim Meyering.
6841 2009-11-16 Jim Meyering <meyering@redhat.com>
6843 avoid new AC_REQUIRE expanded-before-required warnings
6844 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6846 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6847 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6849 2009-11-15 Simon Josefsson <simon@josefsson.org>
6851 * tests/test-xalloc-die.c: New file.
6852 * modules/xalloc-die-tests: New file.
6853 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6854 XFAIL_TESTS so it can be appended by modules.
6856 2009-11-15 Simon Josefsson <simon@josefsson.org>
6858 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6859 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6861 2009-11-14 Eric Blake <ebb9@byu.net>
6863 fnmatch: avoid compiler warning
6864 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6865 to silence compiler warning about mismatch signedness in ?:.
6866 Reported by Robert Millan.
6868 intprops: add double-inclusion guard
6869 * lib/intprops.h: Allow idempotent includes.
6870 Suggested by Bruce Korb.
6872 openat: detect Solaris fchownat bug
6873 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6874 penalizing glibc chownat when only lchownat is broken.
6875 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6876 trailing slash bugs.
6877 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6878 * modules/openat-tests (Files): Include more files.
6879 (Depends-on): Add mgetgroups, sleep, stat-time.
6880 (configure.ac): Add additional checks.
6881 (Makefile.am): Build new test.
6882 * tests/test-fchownat.c: New file.
6884 lchown: detect Solaris and FreeBSD bug
6885 * lib/lchown.c (rpl_lchown): Work around bug.
6886 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6887 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6888 * modules/unistd (Makefile.am): Populate it.
6889 * lib/unistd.in.h (lchown): Update declaration.
6890 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6891 * modules/lchown-tests: New file.
6892 * tests/test-lchown.h (test_lchown): Likewise.
6893 * tests/test-lchown.c (main): Likewise.
6895 chown: detect Solaris and FreeBSD bug
6896 * lib/chown.c (rpl_chown): Work around bug.
6897 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6898 (gl_PREREQ_CHOWN): Delete.
6899 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6900 * modules/unistd (Makefile.am): Populate it.
6901 * lib/unistd.in.h (chown): Update declaration.
6902 * lib/lchown.c (chown): Update client.
6903 * modules/lchown (Depends-on): Add lstat.
6904 * doc/posix-functions/chown.texi (chown): Document the bug.
6905 * doc/posix-functions/getgroups.texi (getgroups): Document
6907 * modules/chown-tests: New file.
6908 * tests/test-chown.h (test_chown): Likewise.
6909 * tests/test-chown.c (main): Likewise.
6911 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6913 gnulib-tool: correctly detect absence of m4 directories
6914 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6916 2009-11-14 Jim Meyering <meyering@redhat.com>
6918 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6919 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6921 2009-11-14 John W. Eaton <jwe@gnu.org>
6923 strftime.h: wrap funtion declaration in extern "C" block
6924 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6926 2009-11-13 Eric Blake <ebb9@byu.net>
6928 getgroups: avoid compiler warning
6929 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6931 getgroups: work around FreeBSD bug
6932 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6933 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6934 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6935 * tests/test-getgroups.c (main): Fix buffer overrun.
6937 getgroups: avoid compilation failure
6938 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6939 * modules/getgroups (Depends-on): Add stdint.
6941 2009-11-13 Jim Meyering <meyering@redhat.com>
6943 test-getgroups: avoid compilation failure
6944 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6946 2009-11-13 Eric Blake <ebb9@byu.net>
6948 mgetgroups: new module, taken from coreutils
6949 * modules/mgetgroups: New file.
6950 * lib/mgetgroups.h: Likewise.
6951 * lib/mgetgroups.c (mgetgroups): Likewise.
6952 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6953 * MODULES.html.sh (Users and groups): Mention it.
6955 getgroups: don't expose GETGROUPS_T to user
6956 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6957 an element at a time if GETGROUPS_T is wrong size.
6958 * lib/getugroups.h (getugroups): Change signature.
6959 * lib/unistd.in.h (getgroups): Likewise.
6960 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6961 signature needs fixing.
6962 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6964 * modules/group-member (Depends-on): Add getgroups.
6965 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6966 (group_member): Rely on getgroups replacement.
6967 * lib/getugroups.c (getugroups): Use gid_t.
6968 * tests/test-getgroups.c (main): Likewise.
6969 * NEWS: Mention the signature change.
6970 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6971 problem with signature.
6972 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6973 GETGROUPS_T is still useful for setgroups.
6975 getgroups, getugroups: provide stubs for mingw
6976 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6977 * lib/getugroups.c (getugroups): Likewise.
6978 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6979 function. Modernize replacement scheme.
6980 (gl_PREREQ_GETGROUPS): Delete.
6981 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6982 * modules/getgroups (configure.ac): Declare witness.
6983 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6984 * modules/unistd (Depends-on): Substitute witness.
6985 * lib/unistd.in.h (getgroups): Declare replacement.
6987 getgroups: avoid calling exit
6988 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6990 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6992 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6993 exiting, in the rare case of malloc failure.
6995 getgroups: fix logic error
6996 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6997 has more than 20 groups.
6998 * modules/getgroups-tests: New test.
6999 * tests/test-getgroups.c: New file.
7001 2009-11-13 Simon Josefsson <simon@josefsson.org>
7003 * tests/test-base64.c: Improve.
7005 2009-11-13 Simon Josefsson <simon@josefsson.org>
7007 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7008 Blake <ebb9@byu.net>.
7010 2009-11-13 Simon Josefsson <simon@josefsson.org>
7012 * tests/test-xvasprintf.c: Add %s%s related checks.
7014 2009-11-12 Eric Blake <ebb9@byu.net>
7016 version-etc: match standards.texi style
7017 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7018 and use <> only for URLs.
7020 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7022 fts: do not fail on a submount during traversal
7023 * lib/fts.c (fts_build): Read the stat info again after opening
7024 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7025 Original report at http://bugzilla.redhat.com/501848.
7027 2009-11-12 Jim Meyering <meyering@redhat.com>
7029 bootstrap: sync from coreutils
7030 * build-aux/bootstrap (bootstrap_epilogue): New function.
7031 Use git_modules_config in one more place. This make bootstrap's
7032 --gnulib-srcdir option more useful for testing.
7034 bootstrap: generalize autoheader check
7035 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7038 2009-11-11 Eric Blake <ebb9@byu.net>
7040 mkfifoat: use new modules for Solaris and BSD bugs
7041 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7042 * lib/mkfifoat.c (mknodat): Split...
7043 * lib/mknodat.c (mknodat): ...into new file.
7044 * modules/mkfifoat (Files): Ship new file.
7045 (Depends-on): Add mkfifo, mknod.
7046 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7047 (Depends-on): Add symlink.
7048 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7049 redundant with test_mkfifo.h.
7050 (do_mkfifoat, do_mknodat): New helpers.
7053 * modules/mknod: New file.
7054 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7055 * lib/mknod.c (mknod): Likewise.
7056 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7058 * modules/sys_stat (Makefile.am): Substitute them.
7059 * lib/sys_stat.in.h (mknod): Declare replacement.
7060 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7062 * doc/posix-functions/mknod.texi (mknod): Likewise.
7063 * modules/mknod-tests: New test.
7064 * tests/test-mknod.c: Likewise.
7067 * modules/mkfifo: New file.
7068 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7069 * lib/mkfifo.c (mkfifo): Likewise.
7070 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7072 * modules/sys_stat (Makefile.am): Substitute them.
7073 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7074 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7076 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7077 * modules/mkfifo-tests: New test.
7078 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7079 from test-mkfifoat.c.
7080 * tests/test-mkfifo.c: New file.
7082 readlink: detect FreeBSD bug
7083 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7085 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7086 * tests/test-readlink.h (test_readlink): Enhance test.
7088 symlink: detect FreeBSD bug
7089 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7091 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7092 * tests/test-symlink.h (test_symlink): Enhance test.
7094 2009-11-10 Eric Blake <ebb9@byu.net>
7096 link: detect FreeBSD bug
7097 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7099 * doc/posix-functions/link.texi (link): Document the bug.
7100 * tests/test-link.h (test_link): Enhance test.
7101 * tests/test-linkat.c (main): Update caller.
7103 unlink, remove: detect FreeBSD bug
7104 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7106 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7107 * doc/posix-functions/remove.texi (remove): Likewise.
7108 * tests/test-unlink.h (test_unlink): Enhance test.
7109 * tests/test-remove.c (main): Likewise.
7111 2009-11-09 Eric Blake <ebb9@byu.net>
7113 rename: detect FreeBSD bug
7114 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7116 * modules/renameat-tests (Depends-on): Add filenamecat.
7117 * tests/test-rename.h (test_rename): Allow one more errno.
7118 * tests/test-renameat.c (main): Likewise.
7119 * doc/posix-functions/rename.texi (rename): Document the bug.
7121 open: detect FreeBSD bug
7122 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7124 * doc/posix-functions/open.texi (open): Document the bug.
7125 * doc/posix-functions/utimes.texi (utimes): Likewise.
7126 * tests/test-open.h (test_open): Add parameters, and test symlink
7128 * tests/test-open.c (main): Adjust caller.
7129 * tests/test-fcntl-safer.c (main): Likewise.
7130 * modules/open-tests (Depends-on): Add stdbool, symlink.
7131 * modules/fcntl-safer-tests (Depends-on): Likewise.
7132 * tests/test-openat.c (main): Add test-open tests.
7134 stat: detect FreeBSD bug
7135 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7137 * doc/posix-functions/stat.texi (stat): Document the bug.
7138 * tests/test-stat.h (test_stat_func): Add argument.
7139 * tests/test-stat.c (main): Adjust caller.
7140 * tests/test-fstatat.c (main): Likewise.
7141 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7142 Reported by Jim Meyering.
7144 2009-11-09 James Youngman <jay@gnu.org>
7146 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7147 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7149 2009-11-08 Jim Meyering <meyering@redhat.com>
7151 utimens: remove invalid futimesat call
7152 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7153 It used the file descriptor of the target file as the DIR_FD
7154 parameter and NULL as the file name. That caused failure with
7155 errno == EFAULT on FreeBSD-8.0-rc2
7157 2009-11-07 Eric Blake <ebb9@byu.net>
7159 fflush, freadseek: use fseeko, not fseek
7160 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7161 (clear_ungetc_buffer): Avoid potential problems on large files.
7162 * lib/freadseek.c (freadseek): Likewise.
7163 * modules/freadseek (Depends-on): Add fseeko.
7164 * modules/fseek (configure.ac): Set a witness.
7165 * tests/test-fflush.c (main): Use fseeko.
7166 * tests/test-fpurge.c (fseek): Disable link warning.
7167 * tests/test-freadable.c (fseek): Likewise.
7168 * tests/test-freading.c (fseek): Likewise.
7169 * tests/test-fseeko.c (fseek): Likewise.
7170 * tests/test-ftell.c (fseek): Likewise.
7171 * tests/test-ftello.c (fseek): Likewise.
7172 * tests/test-fwritable.c (fseek): Likewise.
7173 * tests/test-fwriting.c (fseek): Likewise.
7175 2009-11-06 Simon Josefsson <simon@josefsson.org>
7177 * modules/memchr (Depends-on): Drop getpagesize dependency.
7179 2009-11-06 Simon Josefsson <simon@josefsson.org>
7181 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7182 Reported by Ludovic Courtès.
7183 * build-aux/pmccabe2html: Improve example usage.
7184 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7186 2009-11-06 Jim Meyering <meyering@redhat.com>
7188 do-release-commit-and-tag: New module.
7189 Automate the release-commit and tag process.
7190 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7191 * modules/do-release-commit-and-tag: New file.
7192 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7194 2009-11-06 Simon Josefsson <simon@josefsson.org>
7196 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7197 because test-select.c uses inet_pton.
7199 2009-11-06 Simon Josefsson <simon@josefsson.org>
7201 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7202 GETADDRINFO_LIB. Bump serial number.
7203 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7204 Suggested by Eric Blake <ebb9@byu.net>.
7206 2009-11-05 Eric Blake <ebb9@byu.net>
7208 strtod: detect darwin bug
7209 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7210 Reported by Leo Davis.
7212 freopen-safer: new module
7213 * modules/freopen-safer: New module.
7214 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7215 * lib/freopen-safer.c (freopen_safer): New file.
7216 * lib/stdio-safer.h (freopen_safer): New declaration.
7217 * lib/stdio--.h (freopen): New override.
7218 * MODULES.html.sh (File stream based Input/Output): Mention it.
7219 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7220 freopen-safer module.
7221 * doc/posix-functions/stderr.texi (stderr): Likewise.
7222 * doc/posix-functions/stdin.texi (stdin): Likewise.
7223 * doc/posix-functions/stdout.texi (stdout): Likewise.
7224 * modules/freopen-safer-tests: New test.
7225 * tests/test-reopen-safer.c: New file.
7227 2009-11-05 Jim Meyering <meyering@redhat.com>
7229 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7230 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7232 2009-11-05 Simon Josefsson <simon@josefsson.org>
7234 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7236 2009-11-05 Simon Josefsson <simon@josefsson.org>
7238 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7240 2009-11-05 Simon Josefsson <simon@josefsson.org>
7243 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7244 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7246 2009-11-05 Simon Josefsson <simon@josefsson.org>
7248 * tests/test-func.c: Also test value of __func__.
7250 2009-11-05 Simon Josefsson <simon@josefsson.org>
7252 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7253 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7255 2009-11-05 Bruno Haible <bruno@clisp.org>
7258 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7259 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7260 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7262 2009-11-05 Bruno Haible <bruno@clisp.org>
7264 Tests for module 'inet_pton'.
7265 * modules/inet_pton-tests: New file.
7266 * tests/test-inet_pton.c: New file.
7268 2009-11-05 Bruno Haible <bruno@clisp.org>
7270 Tests for module 'inet_ntop'.
7271 * modules/inet_ntop-tests: New file.
7272 * tests/test-inet_ntop.c: New file.
7274 2009-11-04 Eric Blake <ebb9@byu.net>
7276 stdlib-safer: wrap all mkstemp variants
7277 * modules/mkostemp (configure.ac): Set witness.
7278 * modules/mkostemps (configure.ac): Likewise.
7279 * modules/mkstemps (configure.ac): Likewise.
7280 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7281 (mkstemps_safer): Wrap more functions.
7282 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7284 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7285 (mkstemps_safer): Implement the wrappers.
7287 mkstemps, mkostemps: new modules
7288 * modules/mkostemps: New module.
7289 * modules/mkstemps: Likewise.
7290 * lib/mkostemps.c (mkostemps): New file.
7291 * lib/mkstemps.c (mkstemps): Likewise.
7292 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7293 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7294 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7295 * modules/stdlib (Makefile.am): Substitute them.
7296 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7297 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7298 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7299 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7300 * MODULES.html.sh (File system functions): Mention them.
7302 tempname: resync from glibc
7303 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7304 same values for __GT_FILE as glibc. Abort even when assertions
7306 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7307 match its value otherwise. Allow idempotent inclusion.
7308 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7309 * lib/mkostemp.c (mkostemp): Likewise.
7310 * lib/mkstemp.c (mkstemp): Likewise.
7311 * lib/tmpfile.c (tmpfile): Likewise.
7312 * NEWS: Document this.
7314 utimens: fix use of futimens on older Linux
7315 * lib/utimens.c (fdutimens): Use updated, rather than original,
7316 timespec to avoid bug in older Linux kernel.
7317 Reported by Simon Josefsson.
7319 2009-11-04 Bruno Haible <bruno@clisp.org>
7321 Make num_processors more flexible and consistent.
7322 * lib/nproc.h (enum nproc_query): New type.
7323 (num_processors): Add a 'query' argument.
7324 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7325 (num_processors): Add a 'query' argument. Test the value of the
7326 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7327 mingw, count the number of CPUs available for the current process.
7328 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7329 Check for sched_getaffinity and sched_getaffinity_np.
7330 * modules/nproc (Depends-on): Add c-ctype, extensions.
7331 * NEWS: Mention the change.
7333 2009-11-03 Bruno Haible <bruno@clisp.org>
7335 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7337 2009-11-03 Jim Meyering <meyering@redhat.com>
7339 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7340 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7343 2009-11-02 Eric Blake <ebb9@byu.net>
7345 mktime, timegm: share common declaration
7346 * lib/mktime-internal.h: New file.
7347 * lib/mktime.c: Use it rather than open-coding a declaration.
7348 * lib/timegm.c: Likewise.
7349 * modules/mktime (Files): Ship it.
7350 * modules/timegm (Files): Likewise.
7351 Suggested by Bruno Haible.
7353 test-update-copyright: update test to match script changes
7354 * tests/test-update-copyright.sh: Avoid hard-coding perl
7355 location. Don't update *.bak created by earlier runs.
7357 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7358 Simon Josefsson <simon@josefsson.org>
7359 Bruno Haible <bruno@clisp.org>
7361 Fix link error on Solaris 8.
7362 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7363 also in libnsl. Define also INET_PTON_LIB.
7364 * modules/inet_pton (Link): New section.
7366 2009-11-02 Simon Josefsson <simon@josefsson.org>
7367 Bruno Haible <bruno@clisp.org>
7369 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7370 * modules/inet_ntop (Link): New section.
7371 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7373 2009-11-02 Eric Blake <ebb9@byu.net>
7375 maint: avoid compiler warnings in m4 macros
7376 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7377 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7379 2009-11-02 Simon Josefsson <simon@josefsson.org>
7381 * m4/pmccabe2html.m4: Remove file.
7382 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7383 function. Change maintainer.
7384 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7385 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7388 2009-10-31 Eric Blake <ebb9@byu.net>
7390 fseeko: fix m4 regression
7391 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7392 regression from 2009-10-27.
7393 Reported by Ralf Wildenhues.
7395 2009-10-31 Jim Meyering <meyering@redhat.com>
7397 inttostr: aesthetics and improved (compile-time) safety
7398 Define inttype_is_signed rather than inttype_is_unsigned,
7399 since the sole use is via "#if inttype_is_signed".
7400 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7401 inttype_is_unsigned.
7402 * lib/offtostr.c (inttype_is_signed): Likewise.
7403 * lib/uinttostr.c (inttype_is_signed): Likewise.
7404 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7405 * lib/inttostr.c (inttostr): Use verify to cross-check the
7406 inttype_is_signed value and the signedness of the actual type.
7407 * modules/inttostr (Depends-on): Add verify.
7409 2009-10-30 Eric Blake <ebb9@byu.net>
7411 build: avoid compiler warnings
7412 * lib/fchmodat.c (lchmod): Mark unused variables.
7413 * lib/getopt.c (_getopt_initialize): Likewise.
7414 * lib/mktime.c (__mktime_internal): Provide prototype.
7415 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7416 older gcc that do not understand #pragma GCC diagnostic.
7417 * lib/uinttostr.c (inttype_is_unsigned): Define.
7418 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7420 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7422 stat: fix compilation on AIX
7423 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7424 only see struct stat64.
7426 2009-10-30 Eric Blake <ebb9@byu.net>
7428 exclude: make more robust
7429 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7430 rather than masking a coding bug.
7431 Suggested by Bruno Haible.
7433 2009-10-30 Jim Meyering <meyering@redhat.com>
7435 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7436 Rather than putting #!/usr/bin/perl on the first line,
7437 start with a variant of what's recommended by "man perlrun" that
7438 invokes the first "perl" program from your shell's search path.
7439 * build-aux/gitlog-to-changelog: Replace #!... as above.
7440 Add a "Local Variables" perl mode setting.
7441 Prompted by a patch from Ludovic Courtès.
7442 Improved by Eric Blake.
7443 * build-aux/useless-if-before-free: Likewise.
7444 * build-aux/announce-gen: Likewise.
7445 * build-aux/update-copyright: Likewise.
7447 2009-10-29 Eric Blake <ebb9@byu.net>
7449 filenamecat-lgpl: adjust clients
7450 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7452 * modules/renameat (Depends-on): Likewise.
7454 filenamecat: split into filenamecat-lgpl
7455 * modules/filenamecat-lgpl: New module.
7456 * modules/filenamecat (Files): Move library-safe files into
7458 (Depends-on): Add filenamecat-lgpl.
7459 (configure.ac): Declare witness.
7460 * lib/filenamecat.h (file_name_concat): Only declare when using
7462 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7464 * lib/filenamecat-lgpl.c: ...into new file.
7465 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7466 (gl_FILE_NAME_CONCAT): Use it.
7467 * MODULES.html.sh (File system functions): Mention new module.
7469 argp: avoid memory leak
7470 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7471 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7472 base_name, since the latter malloc()s and can call exit().
7473 Leak introduced 2006-07-03.
7475 dirname-lgpl: adjust clients that don't need full dirname
7476 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7477 * modules/filenamecat (Depends-on): Likewise.
7478 * modules/linkat (Depends-on): Likewise.
7479 * modules/mkancesdirs (Depends-on): Likewise.
7480 * modules/mkdir (Depends-on): Likewise.
7481 * modules/openat (Depends-on): Likewise.
7482 * modules/savewd (Depends-on): Likewise.
7483 * modules/rename (Depends-on): Likewise.
7484 (License): Relax license.
7485 * modules/mkdir-tests (Depends-on): Drop progname.
7486 (Makefile.am): Delete unneeded LDADD.
7487 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7489 dirname: split into dirname-lgpl
7490 * modules/dirname-lgpl: New module.
7491 * modules/dirname (Files): Move library-safe files into
7493 (Depends-on): Add dirname-lgpl.
7494 (configure.ac): Declare witness.
7495 * modules/double-slash-root (License): Relax license.
7496 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7498 * lib/dirname.c (dir_len, mdir_name): Move...
7499 * lib/dirname-lgpl.c: ...into new file.
7500 * lib/basename.c (last_component, base_len): Move...
7501 * lib/basename-lgpl.c: ...into new file.
7502 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7503 (gl_DIRNAME): Use it.
7504 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7506 * modules/dirname-tests (Depends-on): Add progname.
7507 * tests/test-dirname.c (program_name): Delete.
7509 mkdir: make safe for libraries
7510 * modules/mkdir (Depends-on): Drop xalloc.
7511 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7514 tests: avoid some compiler warnings
7515 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7517 * tests/test-memchr.c (main): Avoid type mismatch.
7518 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7519 * tests/test-base64.c (main): Likewise.
7520 * tests/test-getdelim.c (main): Likewise.
7521 * tests/test-gethostname.c (main): Likewise.
7522 * tests/test-getline.c (main): Likewise.
7523 * tests/test-netinet_in.c (main): Likewise.
7524 * tests/test-select.c (open_server_socket, main): Likewise.
7525 * tests/test-select-stdin.c (main): Likewise.
7526 * tests/test-sockets.c (main): Likewise.
7527 * tests/test-strsignal.c (main): Likewise.
7528 * tests/test-sys_select.c (main): Likewise.
7529 * tests/test-sys_socket.c (main): Likewise.
7530 * tests/test-u64.c (main): Likewise.
7531 * tests/test-xfprintf-posix.c (main): Likewise.
7532 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7534 sockets: avoid compiler warning
7535 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7537 maint: detect usage(1) and other suspicious exits
7538 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7540 2009-10-29 Jim Meyering <meyering@redhat.com>
7542 timespec: long-to-int truncation could make timespec_cmp malfunction
7543 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7544 a multiple of 2^32 nanoseconds as no difference.
7546 2009-10-28 Jim Meyering <meyering@redhat.com>
7548 fprintftime: wrap macro code argument in "do {...} while(0)"
7549 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7550 cpy macro must be a statement that can be followed by a semicolon.
7551 Now that the else clause contains a comment and is hence longer
7552 than one line, I require curly braces. That in turn requires
7553 that we wrap this code block in the standard do...while(0).
7555 fprintftime: remove stray semicolon from previous change
7556 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7558 fprintftime: avoid a warning about ignored fwrite return value
7559 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7560 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7562 * modules/fprintftime (Depends-on): Add ignore-value.
7564 exclude: avoid an unwarranted warning
7565 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7567 2009-10-27 Eric Blake <ebb9@byu.net>
7569 fseek: avoid compilation failure when fflush is replaced
7570 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7571 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7573 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7574 module is not in use; since REPLACE_FSEEK worked otherwise.
7575 (GNULIB_FTELLO): Likewise for ftell.
7576 Reported by Ian Beckwith and others.
7578 2009-10-27 Bruno Haible <bruno@clisp.org>
7580 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7581 Reported by Jim Meyering.
7583 2009-10-27 Jim Meyering <jim@meyering.net>
7584 Bruno Haible <bruno@clisp.org>
7586 Avoid warning despite dropping the return value of fwrite.
7587 * lib/unicodeio.c: Include ignore-value.h.
7588 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7589 * modules/unicodeio (Depends-on): Add ignore-value.
7591 2009-10-26 Eric Blake <ebb9@byu.net>
7593 areadlinkat: fix fallback path
7594 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7597 2009-10-22 Pádraig Brady <P@draigBrady.com>
7599 Use a better IO block size for modern systems
7600 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7601 * lib/md2.c: Likewise.
7602 * lib/md4.c: Likewise.
7603 * lib/md5.c: Likewise.
7604 * lib/sha1.c: Likewise.
7605 * lib/sha256.c: Likewise.
7606 * lib/sha512.c: Likewise.
7608 2009-10-22 Eric Blake <ebb9@byu.net>
7610 tests: avoid several compiler warnings
7611 * tests/test-getcwd.c (main): Avoid buffer underflow.
7612 * tests/test-getdate.c (main): String literals are not safe with
7613 putenv, so use setenv. Declare unused argument.
7614 * modules/getdate-tests (Depends-on): Add setenv.
7615 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7616 problems with string literals in char *.
7617 * tests/test-hash.c (main): Avoid shadowing declaration.
7618 (insert_new): Treat string literals as char const *.
7619 * tests/test-getopt.h (test_getopt): Likewise.
7620 (getopt_loop): Alter types to minimize casting elsewhere.
7621 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7622 (test_getopt_long_posix): Likewise.
7623 (do_getopt_long): Add wrapper to minimize casting.
7624 * tests/test-atexit.c (clear_temp_file): Use void.
7625 * tests/test-areadlink-with-size.c (main): Declare unused
7627 * tests/test-areadlink.c (main): Likewise.
7628 * tests/test-areadlinkat-with-size.c (main): Likewise.
7629 * tests/test-areadlinkat.c (main): Likewise.
7630 * tests/test-canonicalize-lgpl.c (main): Likewise.
7631 * tests/test-canonicalize.c (main): Likewise.
7632 * tests/test-dirent-safer.c (main): Likewise.
7633 * tests/test-dirname.c (main): Likewise.
7634 * tests/test-dup2.c (main): Likewise.
7635 * tests/test-fchdir.c (main): Likewise.
7636 * tests/test-fcntl-h.c (main): Likewise.
7637 * tests/test-fcntl-safer.c (main): Likewise.
7638 * tests/test-fdopendir.c (main): Likewise.
7639 * tests/test-fdutimensat.c (main): Likewise.
7640 * tests/test-fflush.c (main): Likewise.
7641 * tests/test-filenamecat.c (main): Likewise.
7642 * tests/test-filevercmp.c (main): Likewise.
7643 * tests/test-fopen-safer.c (main): Likewise.
7644 * tests/test-fopen.c (main): Likewise.
7645 * tests/test-fpending.c (main): Likewise.
7646 * tests/test-fpurge.c (main): Likewise.
7647 * tests/test-freading.c (main): Likewise.
7648 * tests/test-fstatat.c (main): Likewise.
7649 * tests/test-fsync.c (main): Likewise.
7650 * tests/test-futimens.c (main): Likewise.
7651 * tests/test-getndelim2.c (main): Likewise.
7652 * tests/test-gettimeofday.c (main): Likewise.
7653 * tests/test-getopt.c (main): Likewise.
7654 * tests/test-i-ring.c (main): Likewise.
7655 * tests/test-inttypes.c (main): Likewise.
7656 * tests/test-link.c (main): Likewise.
7657 * tests/test-lstat.c (main): Likewise.
7658 * tests/test-math.c (main): Likewise.
7659 * tests/test-md5.c (main): Likewise.
7660 * tests/test-memchr2.c (main): Likewise.
7661 * tests/test-memrchr.c (main): Likewise.
7662 * tests/test-mkdir.c (main): Likewise.
7663 * tests/test-mkdirat.c (main): Likewise.
7664 * tests/test-mkfifoat.c (main): Likewise.
7665 * tests/test-open.c (main): Likewise.
7666 * tests/test-openat-safer.c (main): Likewise.
7667 * tests/test-openat.c (main): Likewise.
7668 * tests/test-quotearg.c (main): Likewise.
7669 * tests/test-rawmemchr.c (main): Likewise.
7670 * tests/test-readlink.c (main): Likewise.
7671 * tests/test-remove.c (main): Likewise.
7672 * tests/test-rename.c (main): Likewise.
7673 * tests/test-renameat.c (main): Likewise.
7674 * tests/test-rmdir.c (main): Likewise.
7675 * tests/test-sha1.c (main): Likewise.
7676 * tests/test-signal.c (main): Likewise.
7677 * tests/test-sigaction.c (main): Likewise.
7678 * tests/test-stat.c (main): Likewise.
7679 * tests/test-stat-time.c (main): Likewise.
7680 * tests/test-stddef.c (main): Likewise.
7681 * tests/test-stdint.c (main): Likewise.
7682 * tests/test-stdio.c (main): Likewise.
7683 * tests/test-stdlib.c (main): Likewise.
7684 * tests/test-strchrnul.c (main): Likewise.
7685 * tests/test-strerror.c (main): Likewise.
7686 * tests/test-string.c (main): Likewise.
7687 * tests/test-strtod.c (main): Likewise.
7688 * tests/test-strverscmp.c (main): Likewise.
7689 * tests/test-symlink.c (main): Likewise.
7690 * tests/test-symlinkat.c (main): Likewise.
7691 * tests/test-sys_stat.c (main): Likewise.
7692 * tests/test-sys_time.c (main): Likewise.
7693 * tests/test-time.c (main): Likewise.
7694 * tests/test-unistd.c (main): Likewise.
7695 * tests/test-unlink.c (main): Likewise.
7696 * tests/test-unlinkat.c (main): Likewise.
7697 * tests/test-utimens.c (main): Likewise.
7698 * tests/test-utimensat.c (main): Likewise.
7699 * tests/test-version-etc.c (main): Likewise.
7700 * tests/test-wchar.c (main): Likewise.
7701 * tests/test-wctype.c (main): Likewise.
7702 * tests/test-xprintf-posix.c (main): Likewise.
7703 * tests/test-posixtm.c (main): Likewise.
7704 (STREQ): Delete unused macro.
7705 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7707 * tests/test-memchr.c (main): Likewise.
7709 2009-10-21 Eric Blake <ebb9@byu.net>
7711 areadlinkat: avoid failure on older glibc
7712 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7713 rather than mis-comparing 0 against FUNC_RESULT of char*.
7715 2009-10-21 Bruno Haible <bruno@clisp.org>
7717 * modules/stpncpy (License): Relicense under LGPLv2+.
7718 Reported by David Lutterkort <lutter@redhat.com>.
7720 2009-10-20 Eric Blake <ebb9@byu.net>
7722 utimensat: work around Solaris 9 bug
7723 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7724 has trailing slash bugs.
7725 * tests/test-lutimens.h (test_lutimens): Enhance test.
7726 * tests/test-utimens.h (test_utimens): Likewise.
7727 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7728 * doc/posix-functions/utimes.texi (utimes): Likewise.
7729 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7730 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7731 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7732 * doc/posix-functions/futimens.texi (futimens): Likewise.
7734 fdutimensat: new module
7735 * modules/fdutimensat: New file.
7736 * lib/fdutimensat.c (fdutimensat): Likewise.
7737 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7738 * MODULES.html.sh (File system functions): Mention module.
7739 * modules/fdutimensat-tests: New test.
7740 * tests/test-fdutimensat.c: Likewise.
7742 doc: regenerate INSTALL
7743 * doc/INSTALL: Reflect recent autoconf update.
7744 * doc/INSTALL.ISO: Likewise.
7745 * doc/INSTALL.UTF-8: Likewise.
7747 2009-10-20 Pádraig Brady <P@draigBrady.com>
7749 acl: warn if ACL support is not detected
7750 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7752 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7754 * lib/nproc.h: Add extern "C" block for C++.
7756 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7757 Bruno Haible <bruno@clisp.org>
7759 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7760 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7761 * doc/posix-functions/isalpha.texi: Likewise.
7762 * doc/posix-functions/isblank.texi: Likewise.
7763 * doc/posix-functions/iscntrl.texi: Likewise.
7764 * doc/posix-functions/isdigit.texi: Likewise.
7765 * doc/posix-functions/isgraph.texi: Likewise.
7766 * doc/posix-functions/islower.texi: Likewise.
7767 * doc/posix-functions/isprint.texi: Likewise.
7768 * doc/posix-functions/ispunct.texi: Likewise.
7769 * doc/posix-functions/isspace.texi: Likewise.
7770 * doc/posix-functions/isupper.texi: Likewise.
7771 * doc/posix-functions/isxdigit.texi: Likewise.
7773 2009-10-18 Bruno Haible <bruno@clisp.org>
7775 Tests for module 'isblank'.
7776 * modules/isblank-tests: New file.
7777 * tests/test-isblank.c: New file.
7779 New module 'isblank'.
7780 * lib/isblank.c: New file.
7781 * m4/isblank.m4: New file.
7782 * modules/isblank: New file.
7783 * doc/posix-functions/isblank.texi: Mention the new module.
7785 2009-10-18 Bruno Haible <bruno@clisp.org>
7788 * lib/ctype.in.h: New file.
7789 * m4/ctype.m4: New file.
7790 * modules/ctype: New file.
7791 * doc/posix-headers/ctype.texi: Mention the new module.
7793 2009-10-18 Jim Meyering <meyering@redhat.com>
7795 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7796 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7797 right after its initialization, rather than farther down.
7798 Keeping these in close proximity makes it easier to ensure
7799 that each such variable is initialized. E.g.,
7802 AC_SUBST([LIB_CLOCK_GETTIME])
7804 This change also increments these serial numbers.
7805 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7806 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7807 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7809 2009-10-18 Bruno Haible <bruno@clisp.org>
7811 Don't let environment variables perturb build.
7812 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7813 (gl_PREREQ_GETHRXTIME): ... not here.
7815 2009-10-18 Bruno Haible <bruno@clisp.org>
7817 Avoid symlink attack in localcharset module.
7818 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7819 (O_NOFOLLOW): Define fallback.
7820 (get_charset_aliases): Don't open the file if it is a symbolic link.
7821 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7823 (gl_FCNTL_H): Require it.
7824 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7825 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7826 Reported by Fergal Glynn <fglynn@veracode.com>.
7828 2009-10-18 Bruno Haible <bruno@clisp.org>
7830 Implement nproc for mingw.
7831 * lib/nproc.c: Include <windows.h>
7832 (num_processors): On native Windows platforms, try GetSystemInfo.
7834 2009-10-18 Bruno Haible <bruno@clisp.org>
7836 Implement nproc for IRIX.
7837 * lib/nproc.c: Include <sys/sysmp.h>.
7838 (num_processors): On IRIX systems, try sysmp.
7839 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7841 2009-10-18 Bruno Haible <bruno@clisp.org>
7843 Implement nproc for HP-UX.
7844 * lib/nproc.c: Include <sys/pstat.h>
7845 (num_processors): On HP-UX systems, try pstat_getdynamic.
7846 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7849 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7850 Bruno Haible <bruno@clisp.org>
7852 Implement nproc for NetBSD, OpenBSD.
7853 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7854 (ARRAY_SIZE): New macro.
7855 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7856 * m4/nproc.m4: New file.
7857 * modules/nproc (Files): Add m4/nproc.m4.
7858 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7859 (Makefile.am): Instead, augment lib_SOURCES.
7861 2009-10-18 Bruno Haible <bruno@clisp.org>
7863 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7864 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7867 2009-10-16 Eric Blake <ebb9@byu.net>
7869 utimensat: new module
7870 * modules/utimensat: New file.
7871 * lib/utimensat.c (utimensat): Likewise.
7872 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7873 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7874 so we can work around Linux bugs.
7875 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7876 * modules/sys_stat (Makefile.am): Substitute them.
7877 * lib/sys_stat.in.h (utimensat): Declare it.
7878 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7879 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7880 * modules/utimensat-tests: New test.
7881 * tests/test-utimensat.c: Likewise.
7883 utimens: let lutimens work on non-symlinks
7884 * lib/utimens.c (lutimens): Fall back to utimens rather than
7885 failing with ENOSYS, when file is not a symlink.
7886 (utimens): Reduce redirection.
7887 * tests/test-lutimens.h (test_lutimens): Update test to cover
7889 * tests/test-utimens.h (test_utimens): Update test to cover
7891 * tests/test-utimens.c (main): Update caller.
7893 utimens: cache whether utimensat syscall works
7894 * lib/utimens.c (utimensat_works_really): New cache variable.
7895 (fdutimens, lutimens): Use it to avoid failing syscall.
7897 test-stat-time, test-utimens: improve portability
7898 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7899 ext4 on alpha, and for cygwin.
7900 * tests/test-utimens-common.h: New file.
7901 (nap): Factor delays into single function.
7902 * tests/test-lutimens.h (test_lutimens): Use new header.
7903 * tests/test-futimens.h (test_futimens): Likewise.
7904 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7905 timestamps to occur from same machine, as was done previously for
7907 * modules/utimens-tests (Files): Ship new file.
7908 * modules/futimens-tests (Files): Likewise.
7909 Reported in part by Jim Meyering.
7911 sys_stat: sort replacement declarations
7912 * lib/sys_stat.in.h: Sort declarations.
7913 * lib/futimens.c (futimens): Fix typo.
7915 2009-10-15 Jim Meyering <meyering@redhat.com>
7917 don't let environment settings perturb build
7918 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7919 could cause a configure-time and/or build-time malfunction.
7920 Typically, a configure-time function-in-library test is performed
7925 prefix_saved_LIBS=$LIBS
7926 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7927 [test "$ac_cv_search_FUNC" = "none required" ||
7928 LIB_VAR=$ac_cv_search_FUNC])
7929 LIBS=$prefix_saved_LIBS
7931 However, in each of the files affected by this change, the LIB_VAR=
7932 initialization was omitted. Thus, when set in the environment, its
7933 value would propagate into generated Makefiles when FUNC is not found
7935 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7936 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7937 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7939 2009-10-14 Eric Blake <ebb9@byu.net>
7941 fchdir: avoid infinite recursion in mingw
7942 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7945 test-stat-time: port to mingw
7946 * tests/test-stat-time.c (force_unlink): Return a value.
7947 (test_ctime) [W32]: Fix compilation error.
7948 (nap): Don't call usleep with too large an argument. Use
7950 * doc/pastposix-functions/usleep.texi (usleep): Document the
7953 2009-10-13 Jim Meyering <meyering@redhat.com>
7955 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7956 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7957 * modules/pipe-filter-ii: Likewise.
7958 * modules/sys_socket-tests: Likewise.
7959 * modules/tsearch-tests: Likewise.
7960 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7961 (check): Depend on it.
7963 2009-10-12 Eric Blake <ebb9@byu.net>
7965 utimens-tests: port to NFS file systems
7966 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7967 comparisons to avoid spurious failures from timestamp drift
7968 between NFS machines.
7970 2009-10-12 Eric Blake <ebb9@byu.net>
7972 stat-time-tests: minor cleanups
7973 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7974 * tests/test-stat-time.c (nap): Separate assignment from call.
7975 Suggested by Paolo Bonzini and Bruno Haible.
7977 sys_stat: guarantee struct timespec
7978 * lib/sys_stat.in.h (includes): Always include <time.h>
7979 * modules/sys_stat (Depends-on): Add time.
7980 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7981 mode_t permission values.
7982 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7983 get at subsecond timestamps.
7985 2009-10-10 Eric Blake <ebb9@byu.net>
7987 futimens: new module
7988 * modules/futimens: New file.
7989 * lib/futimens.c (futimens): Likewise.
7990 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7991 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7992 we can work around Linux bugs.
7993 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7994 * modules/sys_stat (Makefile.am): Substitute them.
7995 * lib/sys_stat.in.h (futimens): Declare it.
7996 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7997 * doc/posix-functions/futimens.texi (futimens): Likewise.
7998 * modules/futimens-tests: New test.
7999 * tests/test-futimens.c: Likewise.
8001 utimens: introduce fdutimens
8002 * lib/utimens.h (fdutimens): New prototype.
8003 * lib/utimens.c (gl_futimens): Move guts...
8004 (fdutimens): ...to new interface.
8005 * tests/test-utimens.c (do_fdutimens): Use it.
8007 utimens: add UTIME_NOW and UTIME_OMIT support
8008 * lib/utimens.c (validate_timespec, update_timespec): New helper
8010 (gl_futimens, lutimens): Use them.
8011 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8013 (Link): Mention resulting library dependency.
8014 * modules/utimecmp (Link): Likewise.
8015 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8016 (Makefile.am): Pick up library dependency.
8017 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8019 * tests/test-sys_stat.c: Test the definitions.
8020 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8021 * NEWS: Document library dependency.
8023 utimecmp: support symlink timestamps
8024 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8025 hashing when possible. Use pathconf when available.
8026 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8027 * modules/utimecmp (Depends-on): Add lstat.
8029 utimens: add lutimens interface
8030 * lib/utimens.c (lutimens): New function.
8031 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8032 * lib/utimens.h (lutimens): Declare new interface.
8033 * tests/test-utimens.c (main): Enhance test.
8034 * tests/test-lutimens.h (test_lutimens): New file.
8035 * modules/utimens-tests (Files): Distribute it.
8036 (Depends-on): Add symlink.
8037 (configure.ac): Check for usleep.
8039 utimens: validate futimens usage
8040 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8041 fewer syscalls on failure later on. Avoid compiler warning on
8043 * modules/utimens (Depends-on): Add dup2.
8046 * modules/utimens-tests: New test.
8047 * tests/test-utimens.h: New file.
8048 * tests/test-futimens.h: Likewise.
8049 * tests/test-utimens.c: Likewise.
8051 doc: mention timestamp portability issues
8052 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8054 * doc/posix-functions/utime.texi (utime): Likewise.
8055 * doc/posix-functions/utimes.texi (utimes): Likewise.
8056 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8058 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8060 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8061 Mention weakness with symlink timestamps.
8062 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8063 to utimensat/futimens instead.
8064 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8066 test-dup2: enhance test
8067 * tests/test-dup2.c (main): Also check AT_FDCWD.
8069 test-stat-time: avoid more spurious failures
8070 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8071 xfs; and avoid race if the two timestamps cross quantization edge.
8073 relocatable: prefer 'file system' over 'filesystem'
8074 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8075 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8076 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8077 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8078 * lib/relocatable.c (compute_curr_prefix): Likewise.
8080 2009-10-10 Jim Meyering <meyering@redhat.com>
8082 stat-time-tests: check for the usleep function
8083 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8085 2009-10-10 Bruno Haible <bruno@clisp.org>
8087 * modules/xnanosleep: Put the Link section after the Include section.
8089 2009-10-09 Eric Blake <ebb9@byu.net>
8091 dup2: work around FreeBSD 6.1 bug
8092 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8093 * doc/posix-functions/dup2.texi (dup2): Document it.
8094 Reported by Nelson H. F. Beebe and Jim Meyering.
8096 test-stat-time: port to buggy NFS clients
8097 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8098 (test_ctime): Also skip test if mtime and ctime are skewed.
8100 maint: prefer 'file system' over 'filesystem'
8101 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8102 * doc/posix-functions/lstat.texi (lstat): Likewise.
8103 * lib/file-has-acl.c (file_has_acl): Likewise.
8104 * lib/fwriteerror.c [TEST]: Likewise.
8105 * tests/test-areadlink.h (test_areadlink): Likewise.
8106 * tests/test-areadlinkat-with-size.c (main): Likewise.
8107 * tests/test-areadlinkat.c (main): Likewise.
8108 * tests/test-canonicalize-lgpl.c (main): Likewise.
8109 * tests/test-canonicalize.c (main): Likewise.
8110 * tests/test-fstatat.c (main): Likewise.
8111 * tests/test-linkat.c (main): Likewise.
8112 * tests/test-lstat.h (test_lstat_func): Likewise.
8113 * tests/test-mkdir.h (test_mkdir): Likewise.
8114 * tests/test-readlink.h (test_readlink): Likewise.
8115 * tests/test-remove.c (main): Likewise.
8116 * tests/test-rename.h (test_rename): Likewise.
8117 * tests/test-renameat.c (main): Likewise.
8118 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8119 * tests/test-symlink.h (test_symlink): Likewise.
8120 * tests/test-symlinkat.c (main): Likewise.
8121 * tests/test-unlink.h (test_unlink_func): Likewise.
8122 * tests/test-unlinkat.c (main): Likewise.
8124 maint: make realtime library usage explicit
8125 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8126 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8127 * modules/settime (Link): Likewise.
8128 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8130 test-stat-time: speed up execution
8131 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8133 (nap): New helper function.
8134 (prepare_test): Use it to reduce sleep time.
8135 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8137 * modules/stat-time-tests (configure.ac): Check for usleep.
8139 2009-10-09 Jim Meyering <meyering@redhat.com>
8141 selinux-h: always use getfilecon wrappers
8142 * lib/getfilecon.c: New file.
8143 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8144 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8145 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8146 (fgetfilecon): Provide a stub.
8147 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8148 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8149 file unconditionally.
8150 When <selinux/selinux.h> is found, arrange to use wrappers.
8151 * modules/selinux-h (Files): Add getfilecon.c.
8152 (Makefile.am): Substitute include-next-related bits
8153 into the now-always-generated selinux/selinux.h file.
8154 * doc/glibc-functions/lgetfilecon.texi: New file.
8155 * doc/glibc-functions/fgetfilecon.texi: New file.
8156 * doc/glibc-functions/getfilecon.texi: New file.
8157 * doc/glibc-functions/getfilecon-desc.texi: New file.
8158 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8159 which to pull in the new files.
8160 * MODULES.html.sh (Misc): Add selinux-h.
8162 2009-10-08 Jim Meyering <meyering@redhat.com>
8164 unistd: fix comment typo
8165 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8167 2009-10-08 Eric Blake <ebb9@byu.net>
8169 areadlink: use SIZE_MAX consistently
8170 * modules/areadlink (Depends-on): Add stdint.
8171 * modules/areadlink-with-size (Depends-on): Likewise.
8172 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8173 gives NULL; drop sys/types, since unistd gives size_t; and add
8174 stdint for SIZE_MAX.
8175 (SIZE_MAX): Rely on headers.
8176 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8178 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8179 (SIZE_MAX): Likewise.
8180 (INITIAL_BUF_SIZE): Turn into enum.
8181 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8183 2009-10-08 Jim Meyering <meyering@redhat.com>
8185 areadlinkat: avoid compilation failure
8186 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8187 Fix typo in comment.
8189 2009-10-07 Eric Blake <ebb9@byu.net>
8191 areadlinkat-with-size: new module
8192 * modules/areadlinkat-with-size: New module.
8193 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8194 * lib/areadlink.h (areadlinkat): Declare it.
8195 * MODULES.html.sh (File system functions): Mention it.
8196 * modules/areadlinkat-with-size-tests: New test.
8197 * tests/test-areadlinkat-with-size.c: New file.
8199 xreadlinkat: new module
8200 * modules/xreadlinkat: New module.
8201 * lib/xreadlinkat.c (xreadlinkat): New file.
8202 * lib/xreadlink.h (xreadlinkat): Declare it.
8203 * MODULES.html.sh (File system functions): Mention it.
8205 areadlinkat: new module
8206 * lib/at-func.c (FUNC_FAIL): New define.
8207 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8208 * modules/areadlinkat: New module.
8209 * lib/linkat.c (areadlinkat): Move...
8210 * lib/areadlinkat.c (areadlinkat): ...to new file.
8211 * lib/areadlink.h (areadlinkat): Declare it.
8212 * modules/linkat (Depends-on): Add areadlinkat.
8213 * MODULES.html.sh (File system functions): Mention it.
8214 * modules/areadlinkat-tests: New test.
8215 * tests/test-areadlinkat.c: New file.
8217 areadlink, areadlink-with-size: add tests
8218 * modules/areadlink-tests: New test.
8219 * modules/areadlink-with-size-tests: Likewise.
8220 * tests/test-areadlink.h: New file.
8221 * tests/test-areadlink.c: Likewise.
8222 * tests/test-areadlink-with-size.c: Likewise.
8224 maint: minor cleanups
8225 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8226 _UNUSED_PARAMETER_ instead.
8227 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8228 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8229 * modules/linkat-tests (Files): Distribute test-link.h.
8231 openat, utimens: whitespace cleanup
8232 * lib/openat.c: Prefer space throughout, rather than mix of 8
8234 * lib/at-func.c: Likewise.
8235 * lib/utimens.c: Likewise.
8237 openat: avoid using wrong fd
8238 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8239 working directory chooses same fd.
8240 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8242 mkdir, mkdirat: fix cygwin 1.5.x bug
8243 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8244 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8245 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8247 (gl_PREREQ_MKDIR): Delete unused macro.
8248 * modules/mkdir (Files): Track file rename.
8249 (configure.ac): Update macro name.
8250 * modules/openat (Depends-on): Add mkdir.
8251 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8253 mkdir, mkdirat: add tests
8254 * modules/mkdir-tests: New test.
8255 * tests/test-mkdir.h: New file.
8256 * tests/test-mkdir.c: Likewise.
8257 * tests/test-mkdirat.c: Likewise.
8258 * modules/openat-tests (Files): Add new files.
8259 (Makefile.am): Run new test.
8261 2009-10-06 Eric Blake <ebb9@byu.net>
8263 doc: tweak *at function documentation
8264 * doc/posix-functions/faccessat.texi (faccessat): Mention
8265 known issue with replacement.
8266 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8267 * doc/posix-functions/linkat.texi (linkat): Likewise.
8268 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8269 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8270 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8271 * doc/posix-functions/renameat.texi (renameat): Likewise.
8272 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8274 openat: fix GNU/Hurd bug in unlinkat
8275 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8277 * doc/posix-functions/unlink.texi (unlink): Document this.
8278 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8280 fdopendir: fix GNU/Hurd bug
8281 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8282 allowing non-directory fds.
8283 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8284 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8285 * modules/dirent (Makefile.am): Substitute it.
8286 * lib/dirent.in.h (fdopendir): Declare replacement.
8287 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8288 * tests/test-fdopendir.c (main): Test something other than
8289 /dev/null, since on Hurd that behaves like a directory.
8291 test-symlink: port to GNU/Hurd
8292 * tests/test-symlink.h (test_symlink): Relax expected errno.
8294 doc: tweak more cygwin information
8295 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8296 now compatible with glibc.
8297 * doc/posix-functions/getopt.texi (getopt): Likewise.
8299 getopt-gnu: add another test
8300 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8301 guarantee behavior relied on by m4.
8302 * tests/test-getopt.c (main): Use it.
8303 * modules/getopt-posix-tests (Depends-on): Add setenv.
8304 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8306 getopt: fix compilation on darwin
8307 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8309 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8310 Reported by Ludovic Courtès.
8312 2009-10-06 Bruno Haible <bruno@clisp.org>
8314 * modules/size_max (Description): Discourage its use.
8315 Reported by Simon Josefsson.
8317 2009-10-06 Jim Meyering <meyering@redhat.com>
8319 linkat: avoid compilation failure
8320 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8322 2009-10-05 Eric Blake <ebb9@byu.net>
8324 linkat: support Linux 2.6.17
8325 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8326 linkat on Linux, but allow cache variable override.
8327 * lib/linkat.c (rpl_linkat): Define override.
8328 * modules/linkat (Depends-on): Add symlinkat.
8329 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8330 * modules/unistd (Makefile.am): Substitute it.
8331 * lib/unistd.in.h (linkat): Declare replacement.
8332 Reported by Pádraig Brady.
8334 quotearg: port test to systems with C.UTF-8 locale
8335 * tests/test-quotearg.c (struct result_strings): Add another
8336 member, differentiating between C.ASCII and C.UTF-8 handling.
8337 (compare_strings): Add parameter.
8338 (main): Adjust all callers.
8340 getopt: avoid clash with FreeBSD _getopt_internal
8341 * lib/getopt.in.h (_getopt_internal): Override the name.
8342 * lib/getopt_int.h (includes): Pick up any overrides.
8343 Reported by Reuben Thomas.
8345 hash: allow C89 compilation
8346 * lib/hash.c (check_tuning): Move declaration before statement.
8347 Reported by Reuben Thomas.
8349 2009-10-05 Karl Berry <karl@gnu.org>
8351 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8353 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8354 Bruno Haible <bruno@clisp.org>
8356 * lib/uname.c (uname): Use a table-driven algorithm to compute
8357 Windows NT versions.
8359 2009-10-04 Bruno Haible <bruno@clisp.org>
8361 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8362 program_invocation_short_name.
8363 * modules/progname (configure.ac): Test for presence of
8364 program_invocation_short_name.
8365 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8367 2009-10-04 Bruno Haible <bruno@clisp.org>
8369 * lib/progname.c (set_program_name): Fix comment.
8370 Reported by Jim Meyering.
8372 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8373 Bruno Haible <bruno@clisp.org>
8375 * lib/uname.c: Include <string.h>.
8376 (uname): Do only one call to GetVersionEx in the common case.
8378 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8379 Bruno Haible <bruno@clisp.org>
8381 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8382 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8383 (uname): Add support for Windows CE and various non-x86 CPU types.
8385 2009-10-03 Bruno Haible <bruno@clisp.org>
8387 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8388 invocation to tests/configure.ac.
8389 Reported by Ian Beckwith <ianb@erislabs.net>.
8391 2009-10-02 Eric Blake <ebb9@byu.net>
8393 fchdir: avoid compiler warning
8394 * lib/fchdir.c (canonicalize_file_name)
8395 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8397 test-open: support mingw errno values
8398 * tests/test-open.h (test_open): Relax test.
8399 * tests/test-fopen.h (test_fopen): Likewise.
8400 * tests/test-openat-safer.c (main): Likewise.
8402 open: fix opening directory on mingw
8403 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8405 test-open: on GNU/Hurd, /dev/null is a directory
8406 * tests/test-fopen.h (main): Rename...
8407 (test_fopen): ...to this. Use a guaranteed non-directory when
8408 confirming open behavior on trailing slash.
8409 * tests/test-openat-safer.c (main): Likewise.
8410 * tests/test-open.h (main): Likewise....
8411 (test_open): ...to this.
8412 * tests/test-fopen.c (main): Adjust caller.
8413 * tests/test-fopen-safer.c (main): Likewise.
8414 * tests/test-open.c (main): Likewise.
8415 * tests/test-fcntl-safer.c (main): Likewise.
8416 Reported by Samuel Thibault.
8418 rename, fchdir: don't ignore chdir failure
8419 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8420 * lib/rename.c (rpl_rename) [W32]: Likewise.
8421 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8422 an empty destination directory if source cannot be renamed,
8423 although there is still possibility for failure.
8424 * doc/posix-functions/rename.texi (rename): Document the race.
8425 Reported by Jim Meyering.
8427 maint: cleanup whitespace in recent commits
8428 * lib/rename.c (rpl_rename): Remove tabs.
8429 * tests/test-link.h (test_link): Likewise.
8430 * lib/fchdir.c (get_name): Likewise.
8431 Reported by Jim Meyering.
8433 2009-10-02 Ben Pfaff <blp@gnu.org>
8435 relocatable-prog-wrapper: Add missing dependency on
8437 * modules/relocatable-prog-wrapper: Add dependency.
8438 Reported by Ian Beckwith <ianb@erislabs.net>.
8440 2009-10-02 Eric Blake <ebb9@byu.net>
8442 renameat: fix Solaris bugs
8443 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8445 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8446 * modules/stdio (Makefile.am): Substitute it.
8447 * lib/stdio.in.h (renameat): Declare replacement.
8448 * lib/renameat.c (rpl_renameat): Implement fix.
8450 renameat: new module
8451 * modules/renameat: New file.
8452 * lib/renameat.c (renameat): Likewise.
8453 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8454 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8455 * modules/stdio (Makefile.am): Substitute them.
8456 * lib/stdio.in.h (renameat): Declare it.
8457 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8458 * doc/posix-functions/renameat.texi (renameat): Likewise.
8459 * modules/renameat-tests: New test.
8460 * tests/test-renameat.c: Likewise.
8462 rename: fix mingw bugs
8463 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8464 directory overwrite bugs.
8466 rename: fix another cygwin 1.5 bug
8467 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8469 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8470 unnecessary cygwin workarounds. Also work around bug with moving
8471 full directory onto an empty one.
8472 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8474 rename-dest-slash: merge into rename module
8475 * modules/rename-dest-slash (Status): Mark obsolete.
8476 (Depends-on): Add rename.
8477 (Files): Let rename do it all.
8478 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8479 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8480 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8481 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8482 * lib/rename.c (rpl_rename): Update comments.
8484 rename: fix cygwin 1.5.x bugs
8485 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8486 * lib/rename.c (rpl_rename): Work around them.
8487 * modules/rename (Depends-on): Add same-inode.
8489 rename: fix Solaris 10 bug
8490 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8491 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8494 rename: fix Solaris 9 bug
8495 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8496 on non-directory. Avoid calling exit.
8497 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8499 * modules/rename-tests (Depends-on): Drop lstat.
8500 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8501 (gl_PREREQ_RENAME): Delete unused macro.
8503 rename-dest-slash: fix NetBSD bug
8504 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8506 * modules/rename-dest-slash (Depends-on): Add same-inode.
8508 rename-tests: new test, exposes several platform bugs
8509 * modules/rename-tests: New file.
8510 * tests/test-rename.h: Likewise.
8511 * tests/test-rename.c: Likewise.
8512 * doc/posix-functions/rename.texi (rename): Improve documentation,
8513 including bugs that will eventually be fixed in gnulib.
8515 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8517 * lib/uname.c: Include <stdlib.h>
8518 (uname): Assume version info is available.
8520 2009-10-02 Jim Meyering <meyering@redhat.com>
8522 gnu-web-doc-update: correct --help output
8523 * build-aux/gnu-web-doc-update: Make --help output relevant.
8525 gnu-web-doc-update: add standard options
8526 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8528 gnu-web-doc-update: New module.
8529 Use this script to automatically update the on-line web documentation
8530 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8531 * modules/gnu-web-doc-update: New file, from coreutils.
8532 * build-aux/gnu-web-doc-update: New script.
8534 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8536 link: LoadLibrary is not needed.
8537 * lib/link.c: Use GetModuleHandle.
8539 2009-10-01 Eric Blake <ebb9@byu.net>
8541 getopt: bump serial number
8542 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8545 tests: tighten link, rmdir, and remove tests
8546 * tests/test-link.h (includes): No need to use <config.h> here.
8547 Clean up if directory hard link was created, otherwise test for
8549 * tests/test-linkat.c (main): Simplify.
8550 * tests/test-remove.c (main): Enhance test for trailing '.'.
8551 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8553 2009-10-01 Jim Meyering <meyering@redhat.com>
8555 maint.mk: requiring "make major" was annoying, for a "minor" release.
8556 What is intended is "stable", to contrast with alpha and beta,
8557 so require "make stable", not "make major".
8558 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8559 (get_tool_versions): Likewise.
8560 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8562 2009-09-30 Ben Pfaff <blp@gnu.org>
8564 Fix broken build of replacement for Windows tmpfile().
8565 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8566 flags argument added along with the 'mkostemp' module.
8568 2009-09-28 Bruno Haible <bruno@clisp.org>
8570 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8571 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8573 (gl_list_remove): Update.
8574 * lib/gl_list.c (gl_list_remove): Update.
8575 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8577 (gl_oset_remove): Update.
8578 * lib/gl_list.c (gl_oset_remove): Update.
8579 Reported by Eric Blake.
8581 2009-09-28 Eric Blake <ebb9@byu.net>
8583 doc: mention yet more cygwin 1.7 status
8584 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8586 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8587 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8589 argp: fix test failure
8590 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8591 that are not upper-case. Pass correct range to tolower.
8593 2009-09-27 Jim Meyering <meyering@redhat.com>
8595 test-yesno: work around sparc-dash here-document infelicity
8596 Without this change, the literal \177 byte in a here document
8597 would make dash 0.5.5.1-3 access uninitialized memory.
8598 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8599 Instead, use a marker, "@", and filter through tr to create the desired
8600 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8602 2009-09-27 Bruno Haible <bruno@clisp.org>
8604 Disable untested support for new flavours of ACLs on AIX.
8605 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8607 * lib/set-mode-acl.c (qset_acl): Likewise.
8609 2008-12-07 Bruno Haible <bruno@clisp.org>
8611 Add support for new flavours of ACLs on AIX. (Untested.)
8612 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8613 (file_has_acl): Add support for newer AIX.
8614 * lib/set-mode-acl.c (qset_acl): Likewise.
8615 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8616 Rainer Tammer <tammer@tammer.net>.
8618 2009-09-26 Eric Blake <ebb9@byu.net>
8620 argp: fix compilation of getopt
8621 * lib/getopt.in.h (includes): Use different guard than glibc.
8622 Reported by Sergey Poznyakoff.
8624 doc: mention more cygwin 1.7 status
8625 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8627 * doc/posix-functions/execl.texi (execl): Likewise.
8628 * doc/posix-functions/execle.texi (execle): Likewise.
8629 * doc/posix-functions/execlp.texi (execlp): Likewise.
8630 * doc/posix-functions/execv.texi (execv): Likewise.
8631 * doc/posix-functions/execve.texi (execve): Likewise.
8632 * doc/posix-functions/execvp.texi (execvp): Likewise.
8633 * doc/glibc-functions/canonicalize_file_name.texi
8634 (canonicalize_file_name): Cygwin 1.7 now provides this.
8635 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8636 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8637 on AT_SYMLINK_NOFOLLOW.
8639 2009-09-24 Eric Blake <ebb9@byu.net>
8641 test-linkat: make test more robust
8642 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8644 getopt: fix inclusion guards for cygwin
8645 * modules/getopt-posix (Depends-on): Add include-next.
8646 (Makefile.am): Substitute more items in replacement header.
8647 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8649 * lib/getopt.in.h (includes): Use split inclusion guard, and
8650 prefer <getopt.h> over include <unistd.h> when one is present.
8651 (option): Also override name of 'struct option'.
8653 same-inode: revert prior change; it is not yet ready
8654 * NEWS: Undo mention of this change.
8655 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8656 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8657 * lib/cycle-check.c (cycle_check): Likewise.
8658 * lib/same.c (same_name): Likewise.
8659 * lib/at-func2.c (at_func2): Likewise.
8661 2009-09-23 Eric Blake <ebb9@byu.net>
8664 * modules/linkat: New file.
8665 * lib/at-func2.c (at_func2): Likewise.
8666 * lib/linkat.c (linkat): Likewise.
8667 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8668 * lib/openat-priv.h (at_func2): Add declaration.
8669 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8670 * modules/unistd (Makefile.am): Substitute them.
8671 * lib/unistd.in.h (linkat): Declare it.
8672 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8673 * doc/posix-functions/linkat.texi (linkat): Likewise.
8674 * doc/posix-functions/link.texi (link): Tweak wording.
8675 * tests/test-link.c (main): Move guts...
8676 * tests/test-link.h (test_link): ...into new file.
8677 * modules/linkat-tests: New test.
8678 * tests/test-linkat.c: Likewise.
8679 * modules/link-tests (Files): Ship new file.
8680 (Depends-on): Add stdbool.
8682 dirname: add library-safe mdir_name
8683 * lib/dirname.h (mdir_name): New prototype.
8684 * lib/dirname.c (dir_name): Move guts...
8685 (mdir_name): ...to new function that avoids xalloc_die.
8687 fchdir: another mingw fix
8688 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8689 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8690 on mingw (where it has not yet been ported), and make it optional
8692 (_gl_register_fd): Use it.
8694 same-inode: make SAME_INODE tri-state, to port to mingw
8695 * NEWS: Mention this change.
8696 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8697 st_ino always being 0.
8698 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8699 * lib/cycle-check.c (cycle_check): Likewise.
8700 * lib/same.c (same_name): Likewise.
8702 lstat: avoid mingw compilation error
8703 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8704 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8706 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8708 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8709 the checks for lstat.
8710 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8712 link: fix test failure on Solaris 9
8713 * lib/link.c (rpl_link): Don't assume link will catch bogus
8714 trailing slash on source.
8716 test-symlinkat: enhance test
8717 * tests/test-readlink.c (main): Move guts...
8718 * tests/test-readlink.h (test_readlink): ...into new file.
8719 * tests/test-symlink.c (main): Move guts...
8720 * tests/test-symlink.h (test_symlink): ...into new file.
8721 * tests/test-symlinkat.c (main): Use new files for further
8723 (do_symlink, do_readlink): New helper functions.
8724 * modules/symlink-tests (Files): Ship new file.
8725 (Depends-on): Add stdbool.
8726 * modules/readlink-tests (Files): Ship new file.
8727 (Depends-on): Add stdbool.
8728 * modules/symlinkat-tests (Files): Use new files.
8730 2009-09-23 Eric Blake <ebb9@byu.net>
8732 readlink: document portability issue with symlink length
8733 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8734 systems have bogus st_size on symlinks, and mention the
8735 areadlink-with-size module.
8736 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8737 * doc/posix-functions/readlink.texi (readlink): Mention the
8738 areadlink module, and ERANGE failure.
8739 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8740 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8742 readlink: fix Solaris 9 bug with trailing slash
8743 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8744 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8745 * doc/posix-functions/readlink.texi (readlink): Document this.
8746 * modules/readlink-tests: New test.
8747 * tests/test-readlink.c: Likewise.
8749 readlink: fix cygwin 1.5.x bug with return type
8750 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8751 * lib/unistd.in.h (readlink): Use ssize_t.
8752 * lib/readlink.c (readlink): Likewise.
8753 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8754 * modules/unistd (Makefile.am): Substitute it.
8755 * lib/unistd.in.h (readlink): Declare replacement.
8756 * doc/posix-functions/readlink.texi (readlink): Document this.
8758 symlink: use throughout gnulib
8759 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8760 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8761 symlink is not used.
8762 * modules/symlinkat (Depends-on): Add symlink.
8763 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8764 * modules/canonicalize-tests (Depends-on): Likewise.
8765 * modules/lstat-tests (Depends-on): Likewise.
8766 * modules/openat-tests (Depends-on): Likewise.
8767 * modules/remove-tests (Depends-on): Likewise.
8768 * modules/rmdir-tests (Depends-on): Likewise.
8769 * modules/unlink-tests (Depends-on): Likewise.
8770 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8771 * tests/test-canonicalize.c (symlink): Likewise.
8772 * tests/test-fstatat.c (symlink): Likewise.
8773 * tests/test-lstat.c (symlink): Likewise.
8774 * tests/test-remove.c (symlink): Likewise.
8775 * tests/test-rmdir.c (symlink): Likewise.
8776 * tests/test-unlink.c (symlink): Likewise.
8777 * tests/test-unlinkat.c (symlink): Likewise.
8779 symlink: new module, for Solaris 9 bug
8780 * modules/symlink: New file.
8781 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8782 * lib/symlink.c: Likewise.
8783 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8784 * modules/unistd (Makefile.am): Substitute them.
8785 * lib/unistd.in.h (symlink): Declare replacement.
8786 * MODULES.html.sh (File system functions): Mention it.
8787 * doc/posix-functions/symlink.texi (symlink): Likewise.
8788 * modules/symlink-tests: New test.
8789 * tests/test-symlink.c: Likewise.
8791 2009-09-23 Bruno Haible <bruno@clisp.org>
8793 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8795 Test case: gnulib-tool --import --with-tests atexit inttypes.
8796 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8798 2009-09-23 Bruno Haible <bruno@clisp.org>
8800 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8801 subcommand, not in a subshell.
8803 2009-09-22 Eric Blake <ebb9@byu.net>
8805 unistd: sort replacement declarations
8806 * lib/unistd.in.h: Sort declarations.
8808 open, openat: minor optimization
8809 * lib/open.c (open): If open succeeded, len is non-zero.
8810 * lib/openat.c (rpl_openat): Likewise.
8812 link-follow: ensure correct result
8813 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8814 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8815 distinguish between possible failures.
8817 2009-09-21 Eric Blake <ebb9@byu.net>
8819 fts: avoid compiler warning
8820 * lib/fts.c (dirent_inode_sort_may_be_useful)
8821 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8823 2009-09-19 Bruno Haible <bruno@clisp.org>
8825 * lib/progreloc.c (canonicalize_file_name): New declaration.
8827 2009-09-19 Eric Blake <ebb9@byu.net>
8830 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8832 openat: fix openat bugs on Solaris 9
8833 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8834 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8835 * modules/openat (Depends-on): Add open.
8836 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8837 * modules/fcntl-h (Makefile.am): Substitute it.
8838 * lib/fcntl.in.h (openat): Declare replacement.
8839 * doc/posix-functions/openat.texi (openat): Document this.
8841 openat: move fstatat and unlinkat into correct files
8842 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8844 * lib/openat.c (fstatat, unlinkat): Move...
8845 * lib/fstatat.c (fstatat): ...into correct files.
8846 * lib/unlinkat.c (unlinkat): Likewise.
8848 openat: fix unlinkat bugs on Solaris 9
8849 * lib/unlinkat.c (unlinkat): New file.
8850 * modules/openat (Depends-on): Add unlink.
8851 (Files): Distribute it.
8852 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8853 trailing slash behavior is broken.
8854 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8855 * modules/unistd (Makefile.am): Substitute it.
8856 * lib/unistd.in.h (unlinkat): Declare replacement.
8857 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8859 openat: fix fstatat bugs on Solaris 9
8860 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8862 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8864 test-unlinkat: enhance test, to expose Solaris 9 bug
8865 * tests/test-unlink.c (main): Factor guts...
8866 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8867 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8868 * tests/test-rmdir.c (main): Adjust caller.
8869 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8870 (unlinker): New helper function.
8871 (rmdirat): Enhance check.
8872 * modules/rmdir-tests (Depends-on): Add stdbool.
8873 * modules/unlink-tests (Depends-on): Likewise.
8874 (Files): Add test-unlink.h.
8875 * modules/openat-tests (Files): Likewise.
8876 (Depends-on): Add unlinkdir.
8878 test-fstatat: new test, to expose Solaris 9 bugs
8879 * tests/test-stat.c (main): Factor guts...
8880 * tests/test-stat.h (test_stat_func): ...into new file.
8881 * tests/test-lstat.c (main): Factor guts...
8882 * tests/test-lstat.h (test_lstat_func): ...into new file.
8883 * tests/test-fstatat.c: New file.
8884 * modules/stat-tests (Files): Add test-stat.h.
8885 * modules/lstat-tests (Files): Add test-lstat.h.
8886 (Depends-on): Add stdbool.
8887 * modules/openat-tests (Depends-on): Add pathmax.
8888 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8889 (Makefile.am): Run new test.
8891 remove: new module, for mingw and Solaris 9 bugs
8892 * modules/remove: New file.
8893 * lib/remove.c: Likewise.
8894 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8895 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8896 * modules/stdio (Makefile.am): Use them.
8897 * lib/stdio.in.h (remove): Declare replacement.
8898 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8899 * doc/posix-functions/remove.texi (remove): Likewise.
8900 * modules/remove-tests: New test.
8901 * tests/test-remove.c: Likewise.
8903 unlink: new module, for Solaris 9 bug
8904 * modules/unlink: New file.
8905 * lib/unlink.c: Likewise.
8906 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8907 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8908 * modules/unistd (Makefile.am): Use them.
8909 * lib/unistd.in.h (stat): Declare replacement.
8910 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8911 * doc/posix-functions/unlink.texi (unlink): Likewise.
8912 * modules/unlink-tests: New test.
8913 * tests/test-unlink.c: Likewise.
8915 lstat: fix Solaris 9 bug
8916 * lib/lstat.c (lstat): Also check for trailing slash on
8917 non-symlink, non-directories. Use stat module to simplify logic.
8918 * doc/posix-functions/lstat.texi (lstat): Document it.
8919 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8920 (configure.ac): Check for symlink.
8921 * tests/test-lstat.c (main): Add more tests.
8923 stat: add as dependency to other modules
8924 * modules/chown (Depends-on): Add stat.
8925 * modules/euidaccess (Depends-on): Likewise.
8926 * modules/fchdir (Depends-on): Likewise.
8927 * modules/isdir (Depends-on): Likewise.
8928 * modules/link (Depends-on): Likewise.
8929 * modules/lstat (Depends-on): Likewise.
8930 * modules/mkdir-p (Depends-on): Likewise.
8931 * modules/modechange (Depends-on): Likewise.
8932 * modules/open (Depends-on): Likewise.
8933 * modules/readlink (Depends-on): Likewise.
8934 * modules/same (Depends-on): Likewise.
8936 stat: fix Solaris 9 bug
8937 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8939 * lib/stat.c (rpl_stat): Work around it.
8940 * doc/posix-functions/stat.texi (stat): Update documentation.
8942 stat: new module, for mingw bug
8943 * modules/stat: New file.
8944 * lib/stat.c: Likewise.
8945 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8946 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8947 * modules/sys_stat (Makefile.am): Use them.
8948 * lib/sys_stat.in.h (stat): Declare replacement.
8949 * lib/openat.c (fstatat): Deal with lstat and stat being function
8951 * modules/openat (Depends-on): Add inline.
8952 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8953 * doc/posix-functions/stat.texi (stat): Likewise.
8954 * modules/stat-tests: New test.
8955 * tests/test-stat.c: Likewise.
8957 2009-09-19 Jim Meyering <meyering@redhat.com>
8959 syntax-check: detect unnecessary inclusion of canonicalize.h
8960 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8962 2009-09-19 Eric Blake <ebb9@byu.net>
8964 canonicalize-lgpl: adjust clients to use correct header
8965 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8966 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8967 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8968 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8969 * lib/progreloc.c (includes): Likewise.
8971 2009-09-19 Jim Meyering <meyering@redhat.com>
8973 test-posixtm.c: correct a comment
8974 * tests/test-posixtm.c: Correct first-line comment.
8975 Spotted by Eric Blake.
8977 2009-09-16 Jim Meyering <meyering@redhat.com>
8979 posixtm-tests: make T const-correct; add a test case
8980 * tests/test-posixtm.c (T): Declare const.
8981 Add a test for -(2^31+1).
8982 Remove useless can-succeed-only-in-2002 test.
8984 posixtm-tests: adjust the sole failing test
8985 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8986 expected output matches what mktime now produces. Cross-checked via
8987 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8989 posixtm: move #ifdef'd tests into a new module
8990 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
8991 * tests/test-posixtm.c: ... this new file.
8992 * modules/posixtm-tests: New module.
8994 2009-09-19 Eric Blake <ebb9@byu.net>
8996 openat: simplify use of at-func.c
8997 * lib/at-func.c (includes): Include prerequisites here, to
8998 simplify requirements on client files.
8999 * lib/openat-priv.h: Add double-inclusion guard.
9000 * lib/faccessat.c (includes): Simplify.
9001 * lib/fchmodat.c (includes): Likewise.
9002 * lib/fchownat.c (includes): Likewise.
9003 * lib/mkdirat.c (includes): Likewise.
9004 * lib/mkfifoat.c (includes): Likewise.
9005 * lib/symlinkat.c (includes): Likewise.
9007 openat: allow return of fd 0
9008 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9009 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9011 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9012 <fcntl.h>; this module does not leak fds.
9013 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9014 must be allowed to return 0, leaving openat_safer to add the
9016 (openat_permissive): Avoid writing to just-opened fd 2 if
9017 restoring the current directory fails.
9018 * lib/openat-die.c (openat_restore_fail): Add comment.
9019 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9020 (save_cwd): Guarantee safe fd, but without use of open_safer.
9021 * tests/test-openat.c: New test.
9022 * modules/openat-tests (Files, Makefile.am): Distribute and build
9025 relocatable-prog-wrapper: fix build
9026 * modules/relocatable-prog-wrapper (Files): Update name of
9027 canonicalize m4 file, broken on 2009-09-17.
9028 Reported by emad hajjar <aleppos@hotmail.com>.
9030 2009-09-19 Bruno Haible <bruno@clisp.org>
9032 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9033 * lib/safe-alloc.c: Likewise.
9034 Reported by Ian Beckwith <ianb@erislabs.net>.
9036 2009-09-18 Bruno Haible <bruno@clisp.org>
9038 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9039 Reported by <erobles@sensacd.com.mx>.
9041 2009-09-17 Eric Blake <ebb9@byu.net>
9043 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9044 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9045 slashes when checking if last component is missing.
9046 * tests/test-canonicalize.c (main): Test this.
9048 canonicalize, canonicalize-lgpl: honor // if distinct from /
9049 * modules/canonicalize (Files): Add double-slash-root.m4.
9050 * modules/canonicalize-lgpl (Files): Likewise.
9051 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9052 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9053 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9054 fallback definition.
9055 (canonicalize_filename_mode): Use it to protect //.
9056 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9057 (__realpath): Likewise.
9058 * tests/test-canonicalize.c (main): Test this.
9059 * tests/test-canonicalize-lgpl.c (main): Likewise.
9060 * modules/canonicalize-tests (Depends-on): Add same-inode.
9061 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9063 canonicalize-lgpl: fix glibc bug with trailing slash
9064 * m4/canonicalize-lgpl.m4: Move contents...
9065 * m4/canonicalize.m4: ...here.
9066 (gl_CANONICALIZE_LGPL): Factor realpath check...
9067 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9068 glibc 2.3.5 bug, fixed 2005-04-27.
9069 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9070 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9071 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9072 * modules/canonicalize-lgpl (Files): Manage file rename.
9073 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9074 * modules/stdlib (Makefile.am): Substitute witness.
9075 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9077 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9078 replacement is required.
9079 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9080 * doc/glibc-functions/canonicalize_file_name.texi
9081 (canonicalize_file_name): Document this.
9082 * doc/posix-functions/realpath.texi (realpath): Likewise.
9084 canonicalize-lgpl: reject non-directory with trailing slash
9085 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9086 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9087 catches failures in glibc 2.3.5.
9088 * tests/test-canonicalize.c (main): Likewise.
9090 canonicalize-lgpl: use native realpath if it works
9091 * lib/canonicalize-lgpl.c (realpath): Guard with
9092 FUNC_REALPATH_WORKS.
9093 * lib/stdlib.in.h (realpath): Make declaration optional based on
9095 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9096 native realpath works.
9097 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9098 * modules/stdlib (Makefile.am): Substitute witness.
9100 canonicalize, canonicalize-lgpl: use <stdlib.h>
9101 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9102 (Include): Mention <stdlib.h>.
9103 (configure.ac): Mention functions we provide.
9104 * modules/canonicalize (configure.ac): Likewise.
9105 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9106 realpath if canonicalize_file_name is missing.
9107 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9108 * modules/stdlib (Makefile.am): Substitute witnesses.
9109 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9110 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9111 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9112 * NEWS: Document this.
9113 * doc/glibc-functions/canonicalize_file_name.texi
9114 (canonicalize_file_name): Likewise.
9115 * doc/posix-functions/realpath.texi (realpath): Likewise.
9116 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9118 test-canonicalize: consolidate into single C program
9119 * tests/test-canonicalize.sh: Delete; move setup into...
9120 * tests/test-canonicalize.c (main): ...the program, making it
9121 easier to run in debugger. Add some tests.
9122 * modules/canonicalize-tests (Files): Remove unused file.
9123 (Depends-on): Add progname.
9124 (configure.ac, Makefile.am): Simplify.
9126 test-canonicalize-lgpl: consolidate into single C program
9127 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9128 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9129 easier to run in debugger. Add some tests.
9130 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9131 (configure.ac, Makefile.am): Simplify.
9133 canonicalize: avoid resolvepath
9134 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9136 * lib/canonicalize.c (includes): Simplify.
9137 (canonicalize_file_name): Drop resolvepath implementation.
9138 * modules/canonicalize (Depends-on): Drop filenamecat.
9140 canonicalize: don't lose errno
9141 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9144 canonicalize: simplify errno handling
9145 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9148 canonicalize, canonicalize-lgpl: update module dependencies
9149 * modules/canonicalize (Depends-on): Add extensions, lstat,
9151 (Files): Drop pathmax.h.
9152 (configure.ac): Adjust macro name.
9153 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9154 lstat, stdlib, sys_stat.
9155 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9156 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9158 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9159 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9160 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9161 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9162 declaration, if available.
9163 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9164 we can rely on the readlink module.
9165 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9166 (includes): Use <unistd.h> unconditionally.
9168 2009-09-17 Eric Blake <ebb9@byu.net>
9170 maint: make Include sections of modules consistent
9171 * modules/alloca: Use only header name; no need to list #include.
9172 * modules/alloca-opt: Likewise.
9173 * modules/arpa_inet: Likewise.
9174 * modules/canon-host: Likewise.
9175 * modules/configmake: Likewise.
9176 * modules/dirent: Likewise.
9177 * modules/eealloc: Likewise.
9178 * modules/environ: Likewise.
9179 * modules/fchdir: Likewise.
9180 * modules/fcntl: Likewise.
9181 * modules/fcntl-h: Likewise.
9182 * modules/gethrxtime: Likewise.
9183 * modules/gettime: Likewise.
9184 * modules/ignore-value: Likewise.
9185 * modules/inet_ntop: Likewise.
9186 * modules/inet_pton: Likewise.
9187 * modules/inttypes: Likewise.
9188 * modules/isnand-nolibm: Likewise.
9189 * modules/isnanf-nolibm: Likewise.
9190 * modules/mbchar: Likewise.
9191 * modules/mbfile: Likewise.
9192 * modules/mbiter: Likewise.
9193 * modules/mbuiter: Likewise.
9194 * modules/netdb: Likewise.
9195 * modules/netinet_in: Likewise.
9196 * modules/nproc: Likewise.
9197 * modules/pagealign_alloc: Likewise.
9198 * modules/poll: Likewise.
9199 * modules/printf-frexp: Likewise.
9200 * modules/pthread: Likewise.
9201 * modules/putenv: Likewise.
9202 * modules/random_r: Likewise.
9203 * modules/relocatable-prog: Likewise.
9204 * modules/search: Likewise.
9205 * modules/select: Likewise.
9206 * modules/selinux-h: Likewise.
9207 * modules/settime: Likewise.
9208 * modules/signal: Likewise.
9209 * modules/size_max: Likewise.
9210 * modules/socklen: Likewise.
9211 * modules/ssize_t: Likewise.
9212 * modules/stdarg: Likewise.
9213 * modules/stdbool: Likewise.
9214 * modules/stddef: Likewise.
9215 * modules/stdint: Likewise.
9216 * modules/stdio: Likewise.
9217 * modules/stdlib: Likewise.
9218 * modules/string: Likewise.
9219 * modules/strings: Likewise.
9220 * modules/sys_file: Likewise.
9221 * modules/sys_ioctl: Likewise.
9222 * modules/sys_select: Likewise.
9223 * modules/sys_socket: Likewise.
9224 * modules/sys_stat: Likewise.
9225 * modules/sys_time: Likewise.
9226 * modules/sys_times: Likewise.
9227 * modules/sys_utsname: Likewise.
9228 * modules/sys_wait: Likewise.
9229 * modules/sysexits: Likewise.
9230 * modules/time: Likewise.
9231 * modules/times: Likewise.
9232 * modules/tmpfile: Likewise.
9233 * modules/trim: Likewise.
9234 * modules/unistd: Likewise.
9235 * modules/wchar: Likewise.
9236 * modules/wctype: Likewise.
9238 2009-09-17 Bruno Haible <bruno@clisp.org>
9240 Make getdate.y compile on QNX and NetBSD 5 / i386.
9241 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9242 TIME_T_FITS_IN_LONG_INT.
9243 * lib/getdate.y (long_time_t): New type.
9244 (relative_time): Change type of 'seconds' field to long_time_t.
9245 (get_date): Update types of local variables. Check against overflow
9246 during conversion from long_time_t to time_t.
9247 Reported by Matt Kraai <kraai@ftbfs.org>
9248 and Hasso Tepper <hasso@netbsd.org>.
9250 2009-09-17 Bruno Haible <bruno@clisp.org>
9252 * modules/COPYING: Update copyright years.
9253 * modules/README: Likeiwse.
9254 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9255 Reported by Ian Beckwith <ianb@erislabs.net>.
9257 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9259 * users.txt: Update references for gnuit package.
9261 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9263 * m4/getdelim.m4: Fix typo in copyright line.
9265 2009-09-17 Bruno Haible <bruno@clisp.org>
9267 * lib/atoll.c: Use the standard header with GPL copyright.
9268 * lib/argz.in.h: Likewise.
9269 * lib/glob.c: Likewise.
9270 * lib/glob-libc.h: Likewise.
9271 * lib/random_r.c: Likewise.
9272 * lib/siglist.h: Likewise.
9273 * lib/strsignal.c: Likewise.
9274 Reported by Ian Beckwith <ianb@erislabs.net>.
9276 2009-09-17 Eric Blake <ebb9@byu.net>
9278 rmdir: ensure correct dependency order
9279 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9281 2009-09-17 Bruno Haible <bruno@clisp.org>
9283 Disable assertion that fails on NetBSD 5 / i386.
9284 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9285 Reported by Sam Steingold <sds@gnu.org>
9286 and Hasso Tepper <hasso@netbsd.org>.
9288 2009-09-16 Eric Blake <ebb9@byu.net>
9290 unlinkdir: port to mingw
9291 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9292 on which no one can unlink a directory.
9294 stdlib: sort witness names
9295 * modules/stdlib (Makefile.am): Sort replacements.
9296 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9297 * lib/stdlib.in.h: Likewise.
9299 parse-duration-tests: avoid link failure
9300 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9302 Reported by Tom G. Christensen.
9304 openat-tests: ensure unlinkat behaves like rmdir
9305 * tests/test-rmdir.c (main): Factor guts...
9306 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9307 * modules/rmdir-tests (Files): Ship new file.
9308 * modules/openat-tests: New test.
9309 * tests/test-unlinkat.c: Likewise.
9311 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9312 * modules/rmdir-errno (Status, Notice): Now obsolete.
9314 rmdir: work around cygwin 1.5.x and mingw bugs
9315 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9316 * lib/rmdir.c (rmdir): Work around it.
9317 * modules/rmdir (Status, Notice): No longer obsolete.
9318 (Files): Add dos.m4.
9319 (Depends-on): Add unistd.
9320 (configure.ac): Set witnesses.
9321 (License): Relax to LGPLv2+.
9322 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9323 * modules/unistd (Makefile.am): Substitute witnesses.
9324 * lib/unistd.in.h (rmdir): Declare replacement.
9325 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9326 * modules/rmdir-tests: New tests.
9327 * tests/test-rmdir.c: Likewise.
9329 2009-09-15 Eric Blake <ebb9@byu.net>
9331 fchdir: improve use of replacement functions
9332 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9333 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9334 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9336 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9337 * modules/sys_stat (Makefile.am): Substitute correct witness.
9338 * modules/dirent (Makefile.am): Likewise.
9339 * modules/unistd (Makefile.am): Likewise.
9340 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9341 * lib/unistd.in.h (dup): Likewise.
9342 * lib/sys_stat.in.h (fstat): Likewise.
9344 maint: ignore gnulib-tool temp files
9345 * .gitignore: Ignore files created during gnulib-tool --test.
9347 2009-09-13 Jim Meyering <meyering@redhat.com>
9349 posixtm: don't reject a time that specify "60" as the number of seconds
9350 * lib/posixtm.c (posixtime): The code to reject invalid dates
9351 would also reject a time specified with the .60 suffix.
9352 But POSIX allows that, in order to accommodate leap seconds.
9354 (main): Adjust tests accordingly.
9355 * modules/posixtm (Depends-on): Add stpcpy.
9357 2009-09-11 Jim Meyering <meyering@redhat.com>
9359 announce-gen: include [$release_type] in emitted Subject:
9360 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9361 e.g., [stable] in the emitted Subject: line.
9363 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9365 Remove obsolete macros from several modules.
9366 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9367 obsolete Autoconf macros with their modern counterparts.
9368 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9369 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9370 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9371 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9372 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9373 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9374 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9375 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9376 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9377 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9378 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9379 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9380 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9381 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9382 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9383 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9384 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9385 * m4/time_r.m4 (gl_TIME_R): Likewise.
9386 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9387 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9388 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9390 Fix copyright header in build-aux scripts.
9391 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9393 * build-aux/ncftpput-ftp: Likewise.
9394 * build-aux/update-copyright: Likewise.
9396 2009-09-09 Eric Blake <ebb9@byu.net>
9398 test-link: allow Linux choice of errno
9399 * tests/test-link.c (main): Relax test for alternate error.
9401 strndup: fix improper m4 caching
9402 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9403 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9404 (gl_PREREQ_STRNDUP): Delete.
9405 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9406 * modules/string (Makefile.am): Substitute it.
9407 * lib/string.in.h (strndup): Modernize prototype.
9409 getcwd: port to mingw
9410 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9411 different from the POSIX assumptions made throughout the getcwd
9412 module; fortunately, the mingw getcwd does not need replacement.
9413 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9414 * modules/getcwd-tests: New test.
9415 * tests/test-getcwd.c: Likewise.
9417 link: fix platform bugs
9418 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9419 * lib/link.c (link): Work around them. Fix related mingw bug.
9420 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9421 * modules/unistd (Makefile.am): Substitute it.
9422 * lib/unistd.in.h (link): Declare replacement.
9423 * doc/posix-functions/link.texi (link): Document this.
9424 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9426 test-link: consolidate into single C program, test more cases
9427 * tests/test-link.sh: Delete.
9428 * tests/test-link.c: Test more error conditions. Exposes bugs on
9429 at least Cygwin and Solaris.
9430 * modules/link-tests (Files): Remove unused file.
9431 (Depends-on): Add errno, sys_stat.
9432 (Makefile.am): Simplify.
9434 2009-09-08 Bruno Haible <bruno@clisp.org>
9436 Work around towlower, towupper bug on mingw.
9437 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9438 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9439 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9440 * doc/posix-functions/towupper.texi: Likewise.
9441 Reported by Eric Blake.
9443 2009-09-08 Jim Meyering <meyering@redhat.com>
9445 build: don't try to run autoheader if we don't use it
9446 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9447 is not used in configure.ac.
9449 2009-09-08 Eric Blake <ebb9@byu.net>
9451 euidaccess: fix compilation error
9452 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9454 rawmemchr: relax license
9455 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9457 Reported by Jim Meyering.
9459 mkfifoat: new module
9460 * modules/mkfifoat: New file.
9461 * lib/mkfifoat.c: Likewise.
9462 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9463 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9464 * modules/sys_stat (Makefile.am): Use them.
9465 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9466 * MODULES.html.sh (File system functions): Mention module.
9467 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9468 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9469 * modules/mkfifoat-tests: New test.
9470 * tests/test-mkfifoat.c: Likewise.
9472 strchrnul: relax license
9473 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9475 Reported by Jim Meyering.
9477 2009-09-08 Eric Blake <ebb9@byu.net>
9479 fstatat: fix compilation on Solaris
9480 * lib/fstatat.c (includes): Add fcntl.h.
9481 Reported by Pádraig Brady.
9483 2009-09-07 Eric Blake <ebb9@byu.net>
9485 rename: modernize replacement
9486 * modules/rename (Depends-on): Add stdio.
9487 (configure.ac): Declare witness.
9488 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9489 stdio take care of replacement.
9490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9491 * modules/stdio (Makefile.am): Substitute them.
9492 * lib/stdio.in.h (rename): Declare replacement.
9493 * lib/rename.c (includes): Allow cross-compilation to non-windows
9495 * doc/posix-functions/rename.texi (rename): Improve
9498 stdio: sort witness names
9499 * modules/stdio (Makefile.am): Sort replacements.
9500 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9501 * lib/stdio.in.h: Likewise.
9503 getcwd: minor cleanups
9504 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9505 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9507 openat: provide more convenience names
9508 * modules/faccessat (configure.ac): Add C witness.
9509 * lib/unistd.in.h (readlinkat): Fix typo.
9510 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9511 convenience wrappers.
9512 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9513 wrappers in syntax checks.
9515 2009-09-06 Eric Blake <ebb9@byu.net>
9517 doc: fix comments in recent patches
9518 * lib/faccessat.c: Mention correct function.
9519 * lib/fchmodat.c: Likewise.
9520 * lib/fchownat.c: Likewise.
9521 * lib/symlinkat.c: Likewise.
9522 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9525 faccessat, symlinkat: continue cleanup of previous patch
9526 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9527 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9528 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9529 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9530 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9531 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9534 2009-09-06 Bruno Haible <bruno@clisp.org>
9536 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9537 (fstatat): Declare if GNULIB_FSTATAT is set.
9538 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9539 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9540 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9541 * modules/fcntl-h (Files): Remove m4/openat.m4.
9542 * modules/sys_stat (Files): Remove m4/openat.m4.
9543 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9544 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9545 * modules/unistd (Files): Remove m4/openat.m4.
9546 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9548 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9549 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9550 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9551 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9552 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9554 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9555 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9556 Don't require gl_OPENAT_DEFAULTS.
9557 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9558 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9559 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9560 (gl_OPENAT_DEFAULTS): Remove macro.
9562 2009-09-06 Bruno Haible <bruno@clisp.org>
9564 * modules/openat (configure.ac): Remove unneeded witness.
9566 2009-09-06 Bruno Haible <bruno@clisp.org>
9568 Set errno to ENOSYS when a function is entirely unsupported.
9569 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9571 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9572 * modules/chown (Depends-on): Remove errno.
9574 2009-09-06 Bruno Haible <bruno@clisp.org>
9576 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9578 2009-09-06 Bruno Haible <bruno@clisp.org>
9580 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9582 2009-09-06 Ben Pfaff <blp@gnu.org>
9583 Bruno Haible <bruno@clisp.org>
9585 Work around a glibc bug in strtok_r.
9586 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9587 Undefine if UNDEFINE_STRTOK_R is set.
9588 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9589 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9590 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9591 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9592 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9594 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9596 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9599 * lib/exclude.c: Include wctype.h
9601 2009-09-06 Akim Demaille <demaille@gostai.com>
9603 bootstrap: improve error message
9604 * build-aux/bootstrap (find_tool): Upon failure, report the list
9606 Honor the initial value of the envvar.
9608 2009-09-05 Eric Blake <ebb9@byu.net>
9610 symlinkat: new module
9611 * modules/symlinkat: New file.
9612 * lib/symlinkat.c: Likewise.
9613 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9614 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9615 * modules/unistd (Makefile.am): Use them.
9616 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9617 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9618 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9619 * MODULES.html.sh (File system functions): Mention module.
9620 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9621 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9622 * modules/symlinkat-tests: New test.
9623 * tests/test-symlinkat.c: Likewise.
9625 test-openat-safer: add more checks
9626 * tests/test-openat-safer.c (main): Check more code paths.
9628 2009-09-05 Jim Meyering <meyering@redhat.com>
9630 syntax-check: detect unnecessary inclusion of openat.h
9631 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9633 2009-09-05 Bruno Haible <bruno@clisp.org>
9635 Support towlower, towupper.
9636 * doc/posix-functions/towlower.texi: Mention module wctype.
9637 * doc/posix-functions/towupper.texi: Likewise.
9638 * lib/wctype.in.h (towlower, towupper): New functions.
9639 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9640 (ASSERT): New macro.
9642 (main): Test also towlower, towupper. Test WEOF argument.
9643 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9645 2009-09-05 Bruno Haible <bruno@clisp.org>
9647 Fix conversion behaviour when the input is invalid.
9648 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9649 mark occurring in first pass of indirect conversion.
9650 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9652 Found by clang's static analyzer.
9654 2009-09-05 Bruno Haible <bruno@clisp.org>
9656 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9657 where direct conversion is possible.
9659 2009-09-04 Eric Blake <ebb9@byu.net>
9661 openat: fail with ENOENT on empty name
9662 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9665 link-follow: fix logic bug in prior patch
9666 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9667 reversed sense of yes and no in prior patch. Avoid confusing
9668 compilation failure with desired semantics.
9670 link-follow: accomodate mingw and cross-compilation
9671 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9672 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9673 cross-compilation results to -1, to make linkat easier to
9674 implement when cross-compiling. Trivially support mingw.
9675 * modules/link-follow (configure.ac): Call new name.
9676 * NEWS: Mention this.
9678 2009-09-03 Eric Blake <ebb9@byu.net>
9680 faccessat: compile replacement
9681 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9684 fts: fix compilation error
9685 * lib/fts.c (includes): Re-add "openat.h", for
9686 openat_needs_fchdir.
9688 faccessat: new module
9689 * modules/faccessat: New file.
9690 * lib/faccessat.c: Likewise.
9691 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9692 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9693 * modules/unistd (Makefile.am): Use it.
9694 * lib/unistd.in.h (faccessat): Declare it.
9695 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9696 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9697 * MODULES.html.sh (File system functions): Mention it.
9698 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9699 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9701 euidaccess: prefer POSIX over non-standard implementation
9702 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9703 * lib/euidaccess.c (euidaccess): Use it if available.
9705 openat: make template easier to use
9706 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9707 AT_FUNC_F2 to be undefined.
9708 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9709 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9710 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9711 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9712 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9714 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9715 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9716 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9719 openat: declare in POSIX headers
9720 * NEWS: Mention this.
9721 * modules/openat (configure.ac): Declare witnesses.
9722 (Depends-on): Add fcntl-h, sys_stat, unistd.
9723 (Include): Mention correct headers.
9724 * modules/fcntl-h (Depends-on): Add link-warning.
9725 (Files): Add openat.m4.
9726 (Makefile.am): Substitute witnesses.
9727 * modules/sys_stat (Files, Makefile.am): Likewise.
9728 * modules/unistd (Files, Makefile.am): Likewise.
9729 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9730 (gl_OPENAT_DEFAULTS): New macro.
9731 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9732 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9733 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9734 (SYS_STAT_H): Remove unused variable.
9735 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9736 * lib/fcntl--.h (includes): Remove unneeded header.
9737 * lib/openat-safer.c (includes): Likewise.
9738 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9739 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9740 appropriate headers.
9741 (__OPENAT_PREFIX): Delete.
9742 * lib/fcntl.in.h (openat): Provide declaration.
9743 (AT_FDCWD): Fix Solaris bug.
9744 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9745 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9746 * lib/fchmodat.c (includes): Adjust to find declaration.
9747 * lib/fchownat.c (includes): Likewise.
9748 * lib/mkdirat.c (includes): Likewise.
9749 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9752 2009-09-02 Eric Blake <ebb9@byu.net>
9754 errno: use consistently
9755 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9756 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9757 * lib/canonicalize.c (ELOOP): Likewise.
9758 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9759 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9760 * lib/lchown.c (EOPNOTSUPP): Likewise.
9761 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9762 * lib/savewd.c (ESTALE): Likewise.
9763 * lib/settime.c (ENOSYS): Likewise.
9764 * lib/utimens.c (ENOSYS): Likewise.
9765 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9766 * lib/chdir-safer.c (ELOOP): Likewise.
9767 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9768 * modules/c-stack (Depends-on): Add errno.
9769 * modules/canonicalize (Depends-on): Likewise.
9770 * modules/chdir-safer (Depends-on): Likewise.
9771 * modules/fdopendir (Depends-on): Likewise.
9772 * modules/inet_ntop (Depends-on): Likewise.
9773 * modules/inet_pton (Depends-on): Likewise.
9774 * modules/lchown (Depends-on): Likewise.
9775 * modules/openat (Depends-on): Likewise.
9776 * modules/savewd (Depends-on): Likewise.
9777 * modules/settime (Depends-on): Likewise.
9778 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9780 fts: avoid leaking fds
9781 * modules/fts (Depends-on): Add cloexec.
9782 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9785 fts: make directory fds more robust
9786 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9787 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9789 backupfile, chdir-long, fts, savedir: make safer
9790 * lib/backupfile.c (includes): Use "dirent--.h", since
9791 numbered_backup can write to stderr during readdir.
9792 * lib/savedir.c (includes): Likewise.
9793 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9794 emulation can write to stderr on failure.
9795 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9796 * lib/getcwd.c: Document why opendir_safer is unused.
9797 * lib/glob.c: Likewise.
9798 * lib/scandir.c: Likewise.
9799 * lib/openat-proc.c: Likewise, for open_safer.
9800 * modules/backupfile (Depends-on): Add dirent-safer.
9801 * modules/savedir (Depends-on): Likewise.
9802 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9803 * modules/chdir-long (Depends-on): Add openat-safer.
9805 openat-safer: new module
9806 * modules/openat-safer: New file.
9807 * lib/openat-safer.c: Likewise.
9808 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9809 * lib/fcntl-safer.h (openat_safer): Declare.
9810 * lib/fcntl--.h (openat): Override.
9811 * MODULES.html.sh (File descriptor based I/O): Mention it.
9812 * lib/openat.h: Add double-inclusion guards.
9813 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9814 "fcntl--.h", so we can implement openat.
9815 * modules/openat-safer-tests: New test.
9816 * tests/test-openat-safer.c: New file.
9818 dirent-safer: new module
9819 * modules/dirent-safer: New file.
9820 * lib/dirent--.h: Likewise.
9821 * lib/dirent-safer.h: Likewise.
9822 * lib/opendir-safer.c: Likewise.
9823 * m4/dirent-safer.m4: Likewise.
9824 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9825 * modules/dirent-safer-tests: New test.
9826 * tests/test-dirent-safer.c: New file.
9827 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9829 fdopendir: optimize on mingw
9830 * lib/unistd.in.h (_gl_directory_name): New prototype.
9831 * lib/fchdir.c (_gl_directory_name): Implement it.
9832 (fchdir): Use it to simplify implementation.
9833 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9834 fchdir, when available, to avoid calling [f]chdir().
9836 fdopendir: split into its own module
9837 * lib/openat.c (fdopendir): Move...
9838 * lib/fdopendir.c: ...into new file.
9839 * modules/fdopendir: New module.
9840 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9841 * modules/openat (Depends-on): Add fdopendir.
9842 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9844 * modules/savedir (Depends-on): Only need fdopendir, not full
9846 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9847 * lib/openat.h (fdopendir): Drop prototype.
9848 * lib/dirent.in.h (fdopendir): Provide prototype.
9849 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9850 * modules/dirent (Makefile.am): Substitute them.
9851 * MODULES.html.sh (File system functions): Mention it.
9852 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9853 * modules/fdopendir-tests: New file.
9854 * tests/test-fdopendir.c: Likewise.
9856 fchdir: use more consistent macro convention
9857 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9858 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9859 REPLACE_FCHDIR, rather than relying on config.h macros.
9860 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9861 inside a single make-time REPLACE_FCHDIR block, rather than using
9862 the config.h FCHDIR_REPLACEMENT.
9863 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9864 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9865 Manage fstat replacement.
9866 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9868 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9869 (Makefile.am): Substitute REPLACE_FCHDIR.
9870 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9872 * lib/dup-safer.c (dup_safer): Likewise.
9873 * lib/dup2.c (rpl_dup2): Likewise.
9874 * lib/dup3.c (rpl_dup3): Likewise.
9875 * lib/open.c (rpl_open): Likewise.
9877 fchdir: simplify error handling, and support dup3
9878 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9879 stdbool, malloc-posix, realloc-posix.
9880 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9881 (ensure_dirs_slot): Return false on allocation failure.
9883 (_gl_register_dup): New function.
9884 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9885 (_gl_register_fd): Close fd on allocation failure.
9886 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9887 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9889 (rpl_dup2_fchdir): Delete prototype.
9890 * lib/open.c (open): Update caller.
9891 * lib/dup2.c (dup2): Track fchdir metadata.
9892 * lib/dup3.c (dup3): Likewise.
9893 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9894 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9896 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9898 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9899 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9900 don't pass arguments to AC_OUTPUT.
9902 2009-09-02 Bruno Haible <bruno@clisp.org>
9904 * modules/mkdtemp (License): Relicense under LGPLv2+.
9905 Reported by Paolo Bonzini.
9907 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9909 Replace uses of obsolete autoconf macros in Jim's modules.
9910 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9911 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9912 can evoke a warning from autoconf when run with -Wobsolete
9913 enabled. They were declared obsolete for good reasons (see
9914 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9915 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9916 should not continue using the deprecated macros.
9917 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9918 obsolete Autoconf macros with modern counterparts.
9919 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9920 * m4/dos.m4 (gl_AC_DOS): Likewise.
9921 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9922 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9923 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9924 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9925 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9926 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9927 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9928 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9929 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9931 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9932 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9933 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9934 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9935 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9936 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9938 2009-09-01 Eric Blake <ebb9@byu.net>
9940 fchdir: fix off-by-one bug in previous patch
9941 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9942 (_gl_unregister_fd): Delete useless if.
9944 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9946 maint.mk: sort the list of syntax-check rules
9947 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9948 easier to get a sense of progress when the rules are run sequentially
9949 and take a long time.
9951 2009-09-01 Simon Josefsson <simon@josefsson.org>
9953 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9954 * modules/netinet_in: Likewise.
9955 * modules/sys_file: Likewise.
9956 * modules/sys_ioctl: Likewise.
9957 * modules/sys_select: Likewise.
9958 * modules/sys_socket: Likewise.
9959 * modules/sys_stat: Likewise.
9960 * modules/sys_time: Likewise.
9961 * modules/sys_times: Likewise.
9962 * modules/sys_utsname: Likewise.
9963 * modules/sys_wait: Likewise.
9965 2009-09-01 Jim Meyering <meyering@redhat.com>
9967 fts: help ensure that return values are not ignored
9968 * lib/fts_.h (__GNUC_PREREQ): Define.
9969 (__attribute_warn_unused_result__): Define.
9970 (fts_children, fts_close, fts_open, fts_read): Declare with
9971 __attribute_warn_unused_result__.
9973 fts: fts_close now fails also when closing a dir file descriptor fails
9974 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9975 and propagate to caller, along with errno.
9977 announce-gen: correct formatting in --help output
9978 * build-aux/announce-gen (usage): Move the one-line description in
9979 --help output "up", to where it belongs, just after Usage:.
9981 2009-08-31 Eric Blake <ebb9@byu.net>
9983 fchdir: port to mingw
9984 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9985 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9986 opened, then use a substitute.
9987 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9989 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9990 (_gl_register_fd): No need to check stat if open already filters
9992 (fchdir): Fix error condition to match POSIX.
9993 * modules/fchdir (Depends-on): Add sys_stat.
9994 * doc/posix-functions/open.texi (open): Document the limitation.
9995 * modules/fchdir-tests: New file.
9996 * tests/test-fchdir.c: Likewise.
9998 canonicalize: allow cross-testing from cygwin to mingw
9999 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10000 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10001 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10003 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10004 target does not support symlinks.
10005 * tests/test-canonicalize-lgpl.sh: Likewise.
10007 chown: avoid compilation warning on mingw
10008 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10009 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10011 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10012 * modules/chown (Depends-on): Add errno.
10014 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10016 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10019 2009-08-31 Jim Meyering <meyering@redhat.com>
10021 canonicalize: remove useless initialization
10022 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10023 initialization of local, "end".
10025 2009-08-30 Bruno Haible <bruno@clisp.org>
10027 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10028 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10031 2009-08-30 Bruno Haible <bruno@clisp.org>
10033 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10034 /usr/xpg4/bin/tr when it exists.
10035 * tests/test-pipe-filter-gi1.sh: Likewise.
10037 2009-08-30 Bruno Haible <bruno@clisp.org>
10039 Work around deficient /usr/bin/id program on Solaris.
10040 * tests/test-file-has-acl.sh (ID): New variable.
10041 * tests/test-set-mode-acl.sh (ID): Likewise.
10042 * tests/test-copy-acl.sh (ID): Likewise.
10043 * tests/test-copy-file.sh (ID): Likewise.
10045 2009-08-30 Bruno Haible <bruno@clisp.org>
10047 New module 'xstriconveh'.
10048 * lib/xstriconveh.h: New file.
10049 * lib/xstriconveh.c: New file.
10050 * modules/xstriconveh: New file.
10052 2009-08-30 Bruno Haible <bruno@clisp.org>
10054 Make it easier to use mem_cd_iconveh.
10055 * lib/striconveh.h (iconveh_t): New type.
10056 (iconveh_open, iconveh_close): New declarations.
10057 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10058 with a single 'const iconveh_t *' argument.
10059 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10060 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10061 with a single 'const iconveh_t *' argument.
10062 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10063 * tests/test-striconveh.c (main): Update.
10064 * NEWS: Mention the change.
10066 2009-08-30 Bruno Haible <bruno@clisp.org>
10068 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10071 2009-08-30 Bruno Haible <bruno@clisp.org>
10073 Work around iconv_open problem on Solaris.
10074 * lib/iconv_open-solaris.gperf: New file.
10075 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10076 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10077 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10078 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10079 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10080 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10082 2009-08-29 Jim Meyering <meyering@redhat.com>
10084 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10085 * top/maint.mk (cvs-check): Remove target; it was just an alias
10086 to the better-named vc-diff-check.
10087 (maintainer-distcheck): Remove rule. It was used only from
10088 the (alpha/beta/major) target, and all of its commands but one
10089 were coreutils-specific.
10090 (vc-dist): Remove rule.
10091 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10092 Run vc-diff-check, not vc-dist.
10093 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10095 2009-08-27 Bruno Haible <bruno@clisp.org>
10097 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10100 2009-08-27 Bruno Haible <bruno@clisp.org>
10102 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10104 * doc/func.texi: Document the SunPRO C bug.
10106 2009-08-27 Bruno Haible <bruno@clisp.org>
10108 Fix link error on Solaris.
10109 * tests/test-parse-duration.c (xstrdup): Remove function.
10111 2009-08-26 Pádraig Brady <P@draigbrady.com>
10113 ignore-value: handle pointer types, too
10114 * lib/ignore-value.h (__attribute__): Remove definition.
10115 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10116 of a more concise and more-often effective "(void) i" statement.
10117 (ignore_ptr): New function to suppress warnings from functions that
10118 return pointers, and to make it explicit that one function doesn't
10121 2009-08-25 Bruno Haible <bruno@clisp.org>
10123 dup2: work around a Linux bug.
10124 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10125 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10126 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10127 Reported by Simon Josefsson.
10129 2009-08-25 Jim Meyering <meyering@redhat.com>
10131 libguestfs uses gnulib
10132 * users.txt: Add libguestfs.
10134 2009-08-24 Eric Blake <ebb9@byu.net>
10136 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10137 * lib/pipe2.c (includes): Add binary-io.h.
10138 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10140 2009-08-24 Bruno Haible <bruno@clisp.org>
10142 Tolerate declared but missing accept4 syscall.
10143 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10145 * lib/sys_socket.in.h (accept4): If the function is already present,
10147 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10148 * modules/accept4 (Makefile.am): Compile accept4.c always.
10149 Reported by Paolo Bonzini and Eric Blake.
10151 2009-08-23 Bruno Haible <bruno@clisp.org>
10153 New module 'accept4'.
10154 * lib/sys_socket.in.h (accept4): New declaration.
10155 * lib/accept4.c: New file.
10156 * m4/accept4.m4: New file.
10157 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10158 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10159 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10161 * modules/accept4: New file.
10162 * doc/glibc-functions/accept4.texi: Mention the new module.
10164 2009-08-24 Jim Meyering <meyering@redhat.com>
10166 progname: also set global program_invocation_name, when possible
10167 Before this change, a libtool-enabled program that calls glibc's
10168 error function would report the program name as
10169 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10170 * modules/progname (configure.ac): Check for a declaration of
10171 program_invocation_name.
10172 * lib/progname.c: Include <errno.h>.
10173 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10174 Set program_invocation_name.
10176 2009-08-23 Bruno Haible <bruno@clisp.org>
10178 * lib/dup3.c: Include <string.h>.
10180 2009-08-23 Bruno Haible <bruno@clisp.org>
10182 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10183 * lib/pipe2.c (pipe2): Likewise.
10184 Suggested by Eric Blake.
10186 2009-08-23 Bruno Haible <bruno@clisp.org>
10188 Tolerate declared but missing dup3 syscall.
10189 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10190 * lib/unistd.in.h (dup3): If the function is already present,
10192 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10193 * modules/dup3 (Makefile.am): Compile dup3.c always.
10194 Reported by Paolo Bonzini.
10196 2009-08-23 Bruno Haible <bruno@clisp.org>
10198 Tolerate declared but missing pipe2 syscall.
10199 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10201 * lib/unistd.in.h (pipe2): If the function is already present,
10203 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10204 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10205 Reported by Paolo Bonzini.
10207 2009-08-23 Bruno Haible <bruno@clisp.org>
10209 * lib/pipe2.c (pipe2): Move #ifs inside function.
10211 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10213 quotearg: document limitations of quote_these_too
10214 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10215 those limitations are created.
10216 * lib/quotearg.h (set_char_quoting): Document that digits and
10217 letters that are special after backslash are not permitted.
10218 (quotearg_char): Cross-reference set_char_quoting documentation.
10220 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10222 quotearg: implement custom_quoting_style
10223 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10224 right_quote fields.
10225 (set_custom_quoting): New public function.
10226 (quotearg_buffer_restyled): Add left_quote and right_quote
10227 arguments, handle them very much like locale quoting, and update
10229 (quotearg_n_custom): New public function.
10230 (quotearg_n_custom_mem): New public function.
10231 (quotearg_custom): New public function.
10232 (quotearg_custom_mem): New public function.
10233 * lib/quotearg.h: Prototype and document new public functions.
10234 (enum quoting_style): For escape_quoting_style and
10235 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10236 ignored even though they're otherwise like c_quoting_style.
10237 Add custom_quoting_style member and document with comparison to
10238 clocale_quoting_style.
10239 * tests/test-quotearg.c (custom_quotes): New array.
10240 (custom_results): New array.
10241 (main): Extend to test custom quoting.
10243 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10245 quotearg: fix right quote escaping when it's in quote_these_too
10246 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10247 quote, be sure to prepend only one backslash.
10248 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10251 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10253 quotearg-tests: test escaping of embedded locale quotes
10254 * tests/test-quotearg.c (struct result_strings): Add member for
10256 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10257 (inputs): Add new input.
10258 (results_g): Add expected results.
10259 (flag_results): Likewise.
10260 (locale_results): Likewise.
10261 (compare_strings): Check those.
10263 2009-08-23 Bruno Haible <bruno@clisp.org>
10265 Tests for module 'dup3'.
10266 * modules/dup3-tests: New file.
10267 * tests/test-dup3.c: New file.
10270 * lib/unistd.in.h (dup3): New declaration.
10271 * lib/dup3.c: New file.
10272 * m4/dup3.m4: New file.
10273 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10275 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10276 * modules/dup3: New file.
10277 * doc/glibc-functions/dup3.texi: Mention the new module.
10279 2009-08-23 Bruno Haible <bruno@clisp.org>
10281 Tweak the dup2 test.
10282 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10283 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10284 the test file is still empty. Fix argument order of lseek.
10286 2009-08-23 Bruno Haible <bruno@clisp.org>
10288 Avoid test link errors when the modules getopt-gnu, gettext are used.
10289 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10290 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10292 2009-08-23 Bruno Haible <bruno@clisp.org>
10294 Fix getdtablesize() on mingw.
10295 * lib/getdtablesize.c (getdtablesize): Implement differently.
10296 * lib/unistd.in.h (getdtablesize): Improve comment.
10298 2009-08-23 Bruno Haible <bruno@clisp.org>
10300 New module 'mkostemp'.
10301 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10302 * lib/stdlib.in.h (mksotemp): New declaration.
10303 * lib/mkostemp.c: New file, from glibc with modifications.
10304 * lib/tempname.h (GT_FILE): Remove outdated comment.
10305 (gen_tempname): Add flags argument.
10306 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10307 (__GT_FILE): Map to 1.
10308 (small_open, large_open): Remove macros.
10309 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10310 * lib/mkstemp.c (mkstemp): Update.
10311 * lib/mkdtemp.c (mkdtemp): Likewise.
10312 * m4/mkostemp.m4: New file.
10313 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10315 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10317 * modules/mkostemp: New file, based on modules/mkstemp.
10318 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10319 * NEWS: Mention the change.
10321 2009-08-23 Bruno Haible <bruno@clisp.org>
10323 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10324 Reported by Eric Blake.
10326 2009-08-23 Bruno Haible <bruno@clisp.org>
10328 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10329 Reported by Eric Blake.
10331 2009-08-23 Bruno Haible <bruno@clisp.org>
10333 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10334 * modules/pipe2 (Depends-on): Likewise.
10336 2009-08-23 Eric Blake <ebb9@byu.net>
10338 fcntl-h: add O_TTY_INIT support
10339 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10340 * tests/test-fcntl-h.c (o): Test it.
10341 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10343 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10344 * modules/fcntl: Move <fcntl.h> header replacement...
10345 * modules/fcntl-h: ...to new name, so as not to collide with
10346 like-named function.
10347 * tests/test-fcntl.c: Rename...
10348 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10349 * modules/fcntl-tests: Rename...
10350 * modules/fcntl-h-tests: ...to this. Update test file name.
10351 * modules/chdir-long (Depends-on): Update clients.
10352 * modules/chdir-safer (Depends-on): Likewise.
10353 * modules/fcntl-safer (Depends-on): Likewise.
10354 * modules/fts (Depends-on): Likewise.
10355 * modules/mkancesdirs (Depends-on): Likewise.
10356 * modules/mkdir-p (Depends-on): Likewise.
10357 * modules/open (Depends-on): Likewise.
10358 * modules/savewd (Depends-on): Likewise.
10359 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10360 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10362 2009-08-22 Bruno Haible <bruno@clisp.org>
10364 * modules/binary-io (License): Relicense under LGPL.
10365 * modules/pipe2 (License): Likewise.
10367 2009-08-22 Bruno Haible <bruno@clisp.org>
10369 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10371 * lib/pipe-filter-gi.c (filter_init): Likewise.
10372 Reported by Eric Blake.
10374 2009-08-22 Bruno Haible <bruno@clisp.org>
10376 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10377 * modules/pipe (Depends-on): Add pipe2.
10379 2009-08-22 Bruno Haible <bruno@clisp.org>
10381 Tests for module 'pipe2'.
10382 * modules/pipe2-tests: New file.
10383 * tests/test-pipe2.c: New file.
10385 New module 'pipe2'.
10386 * lib/unistd.in.h (pipe2): New declaration.
10387 * lib/pipe2.c: New file.
10388 * m4/pipe2.m4: New file.
10389 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10391 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10392 * modules/pipe2: New file.
10393 * doc/glibc-functions/pipe2.texi: Mention the new module.
10395 2009-08-22 Bruno Haible <bruno@clisp.org>
10397 Reference some new glibc functions.
10398 * doc/glibc-functions/accept4.texi: New file.
10399 * doc/glibc-functions/dup3.texi: New file.
10400 * doc/glibc-functions/mkostemp.texi: New file.
10401 * doc/glibc-functions/pipe2.texi: New file.
10402 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10403 (Glibc sys/socket.h): Refer to accept4.
10404 (Glibc unistd.h): Refer to dup3, pipe2.
10405 Reported by Eric Blake.
10407 2009-08-22 Jim Meyering <meyering@redhat.com>
10408 Bruno Haible <bruno@clisp.org>
10410 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10411 This makes it so packages using automake-1.11's silent-rules option
10412 can print e.g., a single "GEN configmake.h" line, rather than
10413 the 30+ statements that perform the job. If you want to see the
10414 actual commands, you can still run "make V=1".
10415 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10416 so that make output is abbreviated when those variables are defined
10418 * modules/argz: Likewise.
10419 * modules/arpa_inet: Likewise.
10420 * modules/byteswap: Likewise.
10421 * modules/configmake: Likewise.
10422 * modules/dirent: Likewise.
10423 * modules/errno: Likewise.
10424 * modules/fcntl: Likewise.
10425 * modules/float: Likewise.
10426 * modules/fnmatch: Likewise.
10427 * modules/getopt-posix: Likewise.
10428 * modules/glob: Likewise.
10429 * modules/iconv_open: Likewise.
10430 * modules/inttypes: Likewise.
10431 * modules/localcharset: Likewise.
10432 * modules/locale: Likewise.
10433 * modules/math: Likewise.
10434 * modules/netdb: Likewise.
10435 * modules/netinet_in: Likewise.
10436 * modules/poll: Likewise.
10437 * modules/posix_spawnp-tests: Likewise.
10438 * modules/sched: Likewise.
10439 * modules/search: Likewise.
10440 * modules/selinux-h: Likewise.
10441 * modules/signal: Likewise.
10442 * modules/spawn: Likewise.
10443 * modules/stdarg: Likewise.
10444 * modules/stdbool: Likewise.
10445 * modules/stddef: Likewise.
10446 * modules/stdint: Likewise.
10447 * modules/stdio: Likewise.
10448 * modules/stdlib: Likewise.
10449 * modules/string: Likewise.
10450 * modules/strings: Likewise.
10451 * modules/sys_file: Likewise.
10452 * modules/sys_ioctl: Likewise.
10453 * modules/sys_select: Likewise.
10454 * modules/sys_socket: Likewise.
10455 * modules/sys_stat: Likewise.
10456 * modules/sys_time: Likewise.
10457 * modules/sys_times: Likewise.
10458 * modules/sys_utsname: Likewise.
10459 * modules/sys_wait: Likewise.
10460 * modules/sysexits: Likewise.
10461 * modules/time: Likewise.
10462 * modules/unistd: Likewise.
10463 * modules/wchar: Likewise.
10464 * modules/wctype: Likewise.
10466 2009-08-22 Jim Meyering <meyering@redhat.com>
10468 announce-gen: detect write failure
10469 * build-aux/announce-gen: Add Coda at end.
10470 Remove equivalent-but-more-verbose block at top.
10472 2009-08-19 Akim Demaille <demaille@gostai.com>
10474 bootstrap: --help to stdout.
10475 * bootstrap (usage): Don't send --help to stderr.
10476 Use a here doc instead of a long string.
10478 2009-08-21 Eric Blake <ebb9@byu.net>
10480 test-popen-safer: split from test-popen
10481 * tests/test-popen.c (main): Move...
10482 * tests/test-popen.h: ...into new file.
10483 * tests/test-popen-safer2.c: New file.
10484 * modules/popen-tests (Files): Add test-popen.h.
10485 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10486 Suggested by Bruno Haible.
10488 test-fcntl-safer: split from test-open
10489 * tests/test-open.c (main): Move...
10490 * tests/test-open.h: ...into new file.
10491 * tests/test-fcntl-safer.c: New file.
10492 * modules/open-tests (Files): Add test-open.h.
10493 * modules/fcntl-safer-tests: New file.
10494 Suggested by Bruno Haible.
10496 test-fopen-safer: split from test-fopen
10497 * tests/test-fopen.c (main): Move...
10498 * tests/test-fopen.h: ...into new file.
10499 * tests/test-fopen-safer.c: New file.
10500 * modules/fopen-tests (Files): Add test-fopen.h.
10501 * modules/fopen-safer-tests: New file.
10502 Suggested by Bruno Haible.
10504 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10506 popen-safer: test O_CLOEXEC at run-time.
10507 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10509 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10511 fcntl: move more flags to the header
10512 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10513 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10514 * lib/fcntl.in.h: Do both things here.
10516 2009-08-21 Jim Meyering <meyering@redhat.com>
10518 consistently remove $@-t before redirecting to it
10519 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10520 * modules/alloca-opt: Likewise.
10521 * modules/byteswap: Likewise.
10522 * modules/fnmatch: Likewise.
10523 * modules/getopt-posix: Likewise.
10524 * modules/glob: Likewise.
10525 * modules/poll: Likewise.
10526 * modules/posix_spawnp-tests: Likewise.
10527 * modules/sys_socket: Likewise.
10528 * modules/sysexits: Likewise.
10530 2009-08-21 Eric Blake <ebb9@byu.net>
10532 popen: simplify access to original popen
10533 * lib/popen.c (rpl_popen): No need to worry about popen being a
10535 Reported by Bruno Haible.
10537 2009-08-20 Eric Blake <ebb9@byu.net>
10539 build: avoid some compiler warnings
10540 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10541 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10543 (new_exclude_segment, excluded_file_pattern_p)
10544 (excluded_file_name_p): Reduce scope.
10545 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10546 old-style declaration.
10548 2009-08-20 Simon Josefsson <simon@josefsson.org>
10550 * tests/test-exclude1.sh: Handle Windows EOL.
10551 * tests/test-exclude2.sh: Likewise.
10552 * tests/test-exclude3.sh: Likewise.
10553 * tests/test-exclude4.sh: Likewise.
10554 * tests/test-exclude5.sh: Likewise.
10555 * tests/test-exclude6.sh: Likewise.
10556 * tests/test-exclude7.sh: Likewise.
10558 2009-08-19 Akim Demaille <demaille@gostai.com>
10560 bootstrap: find sha1sum when named gsha1sum.
10561 * bootstrap (find_tool): New.
10565 2009-08-20 Jim Meyering <meyering@redhat.com>
10567 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10568 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10569 expression that converts "." in a file name to "\." in the resulting
10570 regexp. Start with a dummy statement, so that prior shell variable
10571 definitions are expanded portably. Reported by Simon Josefsson.
10573 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10575 Fix polling for writeability of a screen buffer.
10576 * lib/poll.c: Distinguish input and screen buffers for the
10577 Win32 implementation.
10578 * lib/select.c: Likewise.
10580 2009-08-19 Eric Blake <ebb9@byu.net>
10582 popen-safer: prevent popen from clobbering std descriptors
10583 * modules/popen-safer: New file.
10584 * lib/popen-safer.c: Likewise.
10585 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10586 * lib/stdio--.h (popen): Provide override.
10587 * lib/stdio-safer.h (popen_safer): Provide declaration.
10588 * tests/test-popen.c (includes): Partially test this.
10589 * modules/popen-safer-tests: New file, for more tests.
10590 * tests/test-popen-safer.c: Likewise.
10591 * MODULES.html.sh (file stream based Input/Output): Mention it.
10593 tests: test some of the *-safer modules
10594 * modules/fopen-safer (Depends-on): Add fopen.
10595 * modules/fcntl-safer (Depends-on): Add fcntl.
10596 * modules/stdlib-safer (Depends-on): Add stdlib.
10597 (configure.ac): Set indicator.
10598 * modules/unistd-safer (configure.ac): Likewise.
10599 * modules/tmpfile-safer (configure.ac): Likewise.
10600 (Depends-on): Add tmpfile.
10601 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10603 * tests/test-fopen.c (includes): Test safer versions when they are
10605 * tests/test-open.c (includes): Likewise.
10607 popen: fix cygwin 1.5 bug when stdin closed
10608 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10609 * modules/popen: New file.
10610 * modules/popen-tests: Likewise.
10611 * tests/test-popen.c: Likewise.
10612 * m4/popen.m4: Likewise.
10613 * lib/popen.c: Likewise.
10614 * lib/stdio.in.h (popen): New declaration.
10615 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10616 * modules/stdio (Makefile.am): Likewise.
10617 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10619 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10621 maint.mk: give full control over update-copyright exclusions
10622 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10623 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10624 (update-copyright): Don't force inclusion of top-level
10625 ChangeLog. Don't force exclusion of all COPYING files, but make
10626 them the default exclusion instead.
10628 2009-08-16 Bruno Haible <bruno@clisp.org>
10630 Fix test failures on Solaris 10.
10631 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10632 tests when Solaris iconv() is used.
10633 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10634 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10635 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10636 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10637 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10639 2009-08-16 Bruno Haible <bruno@clisp.org>
10641 Fix test failures on Solaris 10.
10642 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10643 'tr' program and pass it as first argument.
10644 * tests/test-pipe-filter-gi1.sh: Likewise.
10645 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10646 program as first argument.
10647 * tests/test-pipe-filter-gi1.c (main): Likewise.
10649 2009-08-16 Eric Blake <ebb9@byu.net>
10651 fpurge: fix previous commits
10652 * modules/fpurge (Makefile.am): Make replacement conditional,
10653 partially reverting 2007-04-29 change; missed in previous
10655 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10658 2009-08-16 Bruno Haible <bruno@clisp.org>
10660 Clarify fpurge's effect on the file position.
10661 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10662 * tests/test-fpurge.c (main): Make a second pass for checking the file
10665 2009-08-16 Bruno Haible <bruno@clisp.org>
10667 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10668 declaration of fpurge is missing.
10669 * tests/test-fpurge.c (main): Check that the file has not more contents
10670 than expected. Close the file before removing it.
10672 2009-08-15 Eric Blake <ebb9@byu.net>
10674 fpurge: don't wrap working cygwin implementation
10675 * lib/fpurge.c (fpurge): Fix comment typo.
10676 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10677 1.7 to avoid replacement.
10678 * tests/test-fpurge.c (main): Enhance test.
10680 2009-08-15 Eric Blake <ebb9@byu.net>
10681 and Jim Meyering <meyering@redhat.com>
10683 test-update-copyright: skip if perl is insufficient
10684 * tests/test-update-copyright.sh: Failure to run maintainer tool
10685 should not cause testsuite failure on cygwin 1.5.
10687 2009-08-14 Eric Blake <ebb9@byu.net>
10689 doc: mention more functions added in cygwin 1.7.0
10690 * doc/posix-headers/limits.texi (limits.h): Update for recent
10692 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10693 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10694 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10695 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10696 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10698 2009-08-14 Eric Blake <ebb9@byu.net>
10700 maint.mk: simplify update-copyright rule
10701 * top/maint.mk (update-copyright-local): Delete, and document how
10702 to do it in cfg.mk instead.
10703 (update-copyright-exclude-regexp): Delete, and document how to do
10704 it in .x-update-copyright instead.
10705 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10708 2009-08-14 Bruno Haible <bruno@clisp.org>
10710 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10712 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10714 maint.mk: support update-copyright-env
10715 * top/maint.mk (update-copyright-env): Define place-holder.
10716 (update-copyright): Expand $(update-copyright-env) before
10717 invoking update-copyright.
10719 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10721 update-copyright: implement forced reformatting
10722 * build-aux/update-copyright: Implement and document
10723 UPDATE_COPYRIGHT_FORCE.
10724 * tests/test-update-copyright.sh: Test it.
10726 2009-08-14 Eric Blake <ebb9@byu.net>
10727 and Bruno Haible <bruno@clisp.org>
10729 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10730 * tests/test-locale.c: Revert previous patch related to NULL.
10731 * tests/test-stdio.c: Likewise.
10732 * tests/test-stdlib.c: Likewise.
10733 * tests/test-string.c: Likewise.
10734 * tests/test-unistd.c: Likewise.
10735 * modules/time-tests (Depends-on): Add verify.
10736 * modules/wchar-tests (Depends-on): Likewise.
10737 * tests/test-time.c: Test for NULL compliance.
10738 * tests/test-wchar.c: Likewise.
10739 * modules/locale (Depends-on): Add stddef.
10740 * modules/stdio (Depends-on): Likewise.
10741 * modules/stdlib (Depends-on): Likewise.
10742 * modules/string (Depends-on): Likewise.
10743 * modules/time (Depends-on): Likewise.
10744 * modules/unistd (Depends-on): Likewise.
10745 * modules/wchar (Depends-on): Likewise.
10746 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10747 * lib/stdlib.in.h (includes): Likewise.
10748 * lib/string.in.h (includes): Likewise.
10749 * lib/time.in.h (includes): Likewise.
10750 * lib/unistd.in.h (includes): Likewise.
10751 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10753 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10754 * m4/stddef_h.m4: New file.
10755 * modules/stddef: Likewise.
10756 * lib/stddef.in.h: Likewise.
10757 * modules/stddef-tests: Likewise.
10758 * tests/test-stddef.c: Likewise.
10759 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10760 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10761 * doc/posix-headers/locale.texi (locale.h): Likewise.
10762 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10763 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10764 * doc/posix-headers/string.texi (string.h): Likewise.
10765 * doc/posix-headers/time.texi (time.h): Likewise.
10766 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10767 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10769 2009-08-14 Eric Blake <ebb9@byu.net>
10771 doc: improve git diff of texinfo files
10772 * .gitattributes: Add rule for *.texi files, with hint on how to
10774 Copied from m4, and based on a report by Bruno Haible.
10776 2009-08-14 Bruno Haible <bruno@clisp.org>
10778 Disable multithread support by default on Cygwin 1.5.x for real.
10779 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10781 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10783 update-copyright: much ado about intervals
10784 * build-aux/update-copyright: Implement and document
10785 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10786 of copyright year intervals.
10787 Also, document UPDATE_COPYRIGHT_YEAR.
10788 * tests/test-update-copyright.sh: Test it.
10790 update-copyright: convert 2-digit to 4-digit years
10791 * build-aux/update-copyright: Implement and document.
10792 * tests/test-update-copyright.sh: Update.
10794 2009-08-14 Jim Meyering <meyering@redhat.com>
10796 test-exclude: avoid coreutils "make check" failure
10797 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10798 just as in test-argmatch.c.
10800 2009-08-13 Eric Blake <ebb9@byu.net>
10802 test-dup2: fix bad assumption
10803 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10804 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10806 test-version-etc: fix CRLF portability issue
10807 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10809 * tests/test-argp-version-etc-1.sh: Likewise.
10811 getopt: update client modules
10812 * modules/argp (Depends-on): Use getopt-gnu.
10813 * modules/git-merge-changelog (Depends-on): Likewise.
10814 * modules/long-options (Depends-on): Likewise.
10815 * modules/xstrtol (Depends-on): Likewise.
10817 2009-08-13 Simon Josefsson <simon@josefsson.org>
10819 * tests/test-version-etc.sh: Don't fail on different
10820 project/version. Don't fail on CRLF differences. Rewrite to use
10821 multiple -e instead of multiple sed forks, suggested by Eric Blake
10823 * tests/test-argp-version-etc-1.sh: Likewise.
10825 2009-08-13 Simon Josefsson <simon@josefsson.org>
10827 * tests/test-version-etc.sh: Don't fail on different
10830 2009-08-12 Bruno Haible <bruno@clisp.org>
10832 Tests for modules 'getopt-posix', 'getopt-gnu'.
10833 * modules/getopt-posix-tests: New file.
10834 * tests/test-getopt.c: New file.
10835 * tests/test-getopt.h: New file.
10836 * tests/test-getopt_long.h: New file.
10838 New modules 'getopt-posix', 'getopt-gnu'.
10839 * modules/getopt-gnu: New file, renamed from modules/getopt.
10840 * modules/getopt-posix: New file.
10841 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10842 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10843 (gl_GETOPT): Remove macro.
10844 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10845 Disable the test against BSD systems that declare optreset. Test
10846 against mingw bug. Test against lack of support of optional arguments
10848 * doc/glibc-headers/getopt.texi: Update module name and list of
10849 relevant platforms.
10850 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10851 'getopt-gnu' and more portability problems.
10852 * NEWS: Mention the changes.
10854 2009-08-12 Bruno Haible <bruno@clisp.org>
10856 Ensure that optarg etc. get declared by <unistd.h>.
10857 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10858 AC_USE_SYSTEM_EXTENSIONS.
10859 * modules/getopt (Depends-on): Add 'extensions'.
10861 2009-08-12 Bruno Haible <bruno@clisp.org>
10863 Avoid test link errors.
10864 * modules/pipe-filter-ii-tests (Makefile.am): Define
10865 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10866 * modules/pipe-filter-gi-tests (Makefile.am): Define
10867 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10868 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10870 2009-08-12 Bruno Haible <bruno@clisp.org>
10872 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10873 gl_GETOPT_SUBSTITUTE before.
10874 (gl_GETOPT): Use it.
10875 * m4/argp.m4 (gl_ARGP): Update.
10876 Reported by Sergey Poznyakoff.
10878 * m4/getopt.m4: Reorder macros.
10879 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10880 (gl_GETOPT_SUBSTITUTE): Remove macro.
10882 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10884 Minor improvement in gitlog-to-changelog
10886 * build-aux/gitlog-to-changelog: New option `--format' makes
10887 output format string configurable.
10889 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10891 Optimize exclude: use hash tables for non-wildcard patterns.
10893 * lib/exclude.c: Include hash.h and mbuiter.h
10894 (struct exclude_pattern, exclude_segment): New data types.
10895 (struct exclude): Rewrite.
10896 (fnmatch_pattern_has_wildcards): New function.
10897 (new_exclude_segment, free_exclude_segment): New functions.
10898 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10899 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10900 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10901 * modules/exclude: Depend on hash and mbuiter.
10903 * modules/exclude-tests: New file.
10904 * tests/test-exclude.c: New file.
10905 * tests/test-exclude1.sh: New file.
10906 * tests/test-exclude2.sh: New file.
10907 * tests/test-exclude3.sh: New file.
10908 * tests/test-exclude4.sh: New file.
10909 * tests/test-exclude5.sh: New file.
10910 * tests/test-exclude6.sh: New file.
10911 * tests/test-exclude7.sh: New file.
10913 2009-08-12 Bruno Haible <bruno@clisp.org>
10915 Ensure that getopt() gets declared by <unistd.h>.
10916 * lib/unistd.in.h: Conditionally include getopt.h.
10917 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10918 Set GNULIB_UNISTD_H_GETOPT.
10919 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10920 GNULIB_UNISTD_H_GETOPT.
10921 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10923 2009-08-12 Bruno Haible <bruno@clisp.org>
10926 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10927 gl_replace_getopt instead of GETOPT_H.
10929 2009-08-12 Bruno Haible <bruno@clisp.org>
10931 * m4/getopt.m4: Add comments.
10933 2009-08-12 Bruno Haible <bruno@clisp.org>
10935 Disable multithread support by default on Cygwin 1.5.x.
10936 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10937 set gl_use_threads=no if not specified otherwise.
10939 2009-08-11 Bruno Haible <bruno@clisp.org>
10941 Avoid compilation error on NetBSD 5.0.
10942 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10943 * tests/test-stdio.c: Likewise.
10944 * tests/test-stdlib.c: Likewise.
10945 * tests/test-string.c: Likewise.
10946 * tests/test-unistd.c: Likewise.
10947 Reported by Greg Troxel <gdt@ir.bbn.com>
10948 at <https://savannah.gnu.org/support/?106973>.
10950 2009-08-11 Bruno Haible <bruno@clisp.org>
10952 * modules/dup2-tests (Depends-on): Remove close.
10954 Undo 2009-07-19 commit.
10955 * modules/acl-tests (Depends-on): Remove close.
10956 * modules/binary-io-tests (Depends-on): Likewise.
10957 * modules/closein-tests (Depends-on): Likewise.
10958 * modules/flock-tests (Depends-on): Likewise.
10959 * modules/fsync-tests (Depends-on): Likewise.
10960 * modules/lseek-tests (Depends-on): Likewise.
10961 * modules/pipe-tests (Depends-on): Likewise.
10962 * modules/posix_spawn-tests (Depends-on): Likewise.
10963 * modules/posix_spawnp-tests (Depends-on): Likewise.
10964 * modules/stat-time-tests (Depends-on): Likewise.
10965 * modules/yesno-tests (Depends-on): Likewise.
10967 2009-08-10 Bruno Haible <bruno@clisp.org>
10969 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10971 2009-08-10 Bruno Haible <bruno@clisp.org>
10974 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10976 2009-08-10 Bruno Haible <bruno@clisp.org>
10978 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10979 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10980 not only the first time.
10981 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10982 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10983 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10984 is 1, not only the the first time.
10986 2009-08-10 Bruno Haible <bruno@clisp.org>
10988 Make it possible to use module 'gethostname' without module 'close'.
10989 * lib/unistd.in.h (close): Evoke a link error only if
10990 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10991 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10992 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10993 * modules/unistd (Makefile.am): Substitute
10994 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10995 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10996 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10997 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10998 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10999 * modules/sys_ioctl (Makefile.am): Substitute
11000 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11001 * modules/socket (configure.ac): On native Windows, set
11002 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11003 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11004 Reported by Sam Steingold <sds@gnu.org>.
11006 2009-08-10 Bruno Haible <bruno@clisp.org>
11008 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11009 * modules/ioctl (configure.ac): Likewise.
11011 2009-08-10 Bruno Haible <bruno@clisp.org>
11013 Avoid collision between gnulib wrapper and libintl wrapper.
11014 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11015 already defined in intl/printf.c.
11016 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11017 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11019 2009-08-09 Bruno Haible <bruno@clisp.org>
11021 Make <sys/select.h> really self-contained, also on Solaris 10.
11022 * lib/sys_select.in.h: Include <string.h>.
11023 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11024 Solaris 10 problem.
11025 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11026 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11027 Reported by Jim Meyering.
11029 2009-08-09 Bruno Haible <bruno@clisp.org>
11031 Avoid warnings from 'aclocal' that are due to a use of macro name
11032 AM_XGETTEXT_OPTION that is not defined in automake.
11033 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11035 * modules/error (configure.ac): Likewise.
11036 * modules/propername (configure.ac): Likewise.
11037 * modules/vasprintf (configure.ac): Likewise.
11038 * modules/verror (configure.ac): Likewise.
11039 * modules/xprintf (configure.ac): Likewise.
11040 * modules/xvasprintf (configure.ac): Likewise.
11042 2009-08-08 Bruno Haible <bruno@clisp.org>
11044 Avoid compilation error in C++ mode.
11045 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11046 Reported by Sam Steingold <sds@gnu.org>.
11048 2009-08-08 Bruno Haible <bruno@clisp.org>
11050 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11051 for the various Unix platforms.
11052 * doc/posix-headers/limits.texi: Update platforms list regarding
11054 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11056 2009-08-07 Jim Meyering <meyering@redhat.com>
11058 selinux-at: fix typo in a comment
11059 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11060 Spotted by Paolo Bonzini.
11062 selinux-at: remove redundant m4 code, add documentation
11063 * modules/selinux-at (configure.ac): Remove redundant code.
11064 LIB_SELINUX is already set via the dependent module, selinux-h.
11065 (Include): Add quotes around selinux-at.h.
11066 * lib/selinux-at.h: Add documentation.
11067 Reported by Bruno Haible in
11068 http://marc.info/?l=gnulib-bug&m=124958988300749
11070 2009-08-07 Bruno Haible <bruno@clisp.org>
11072 Avoid link error on MacOS X 10.3 and 10.4.
11073 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11074 on non-ELF systems.
11075 * lib/argp-pv.c (argp_program_version): Likewise.
11076 Reported by Simon Josefsson.
11078 2009-08-07 Simon Josefsson <simon@josefsson.org>
11080 * tests/test-version-etc.sh: Use $EXEEXT.
11082 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11084 update-copyright: update documentation to point to maint.mk
11085 * build-aux/update-copyright: Here.
11087 2009-08-06 Jim Meyering <meyering@redhat.com>
11089 maint.mk: support update-copyright-local
11090 * top/maint.mk (update-copyright-local): Define place-holder.
11091 (update-copyright): Depend on $(update-copyright-local).
11093 2009-08-06 Jim Meyering <meyering@redhat.com>
11095 selinux-at: new module
11096 Initially written for coreutils, this module will soon be
11097 used by findutils, too.
11098 * MODULES.html.sh [Misc]: Add selinux-at.
11099 * lib/selinux-at.h: New file, from coreutils.
11100 * lib/selinux-at.c: Likewise.
11101 * modules/selinux-at: Likewise.
11102 (License): Change from LGPL to GPL, since it depends
11103 on the GPL'd openat module.
11106 * README: Remove references to cogito.
11107 Remove cvs-repo-updating instructions from 2007.
11108 Don't imply that CVS is better if you have limited disk space.
11110 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11112 update-copyright: support C-style comments
11113 * build-aux/update-copyright: Implement and document.
11114 * tests/test-update-copyright.sh: Test.
11116 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11118 update-copyright: support omitted "(C)"
11119 * build-aux/update-copyright: Implement and document. Also,
11120 allow variable whitespace before "(C)".
11121 * tests/test-update-copyright.sh: Test.
11123 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11125 update-copyright: don't trip on non-FSF copyright statements
11126 * build-aux/update-copyright: Fix so that the first correctly
11127 formatted FSF copyright statement is recognized no matter what
11128 appears before it. Update documentation.
11129 * tests/test-update-copyright.sh: Test that.
11131 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11133 update-copyright: clean up code a little
11134 * build-aux/update-copyright: Append "_re" to the name of any
11135 variable holding a regular expression.
11136 Replace "old" and "new" with "stmt" in variable names.
11137 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11139 Format code more consistently.
11141 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11143 update-copyright-tests: improve portability
11144 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11145 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11147 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11149 update-copyright: support @copyright{} and ©
11150 * build-aux/update-copyright: Implement and document.
11151 * tests/test-update-copyright.sh: Test.
11153 2009-08-04 Jim Meyering <meyering@redhat.com>
11155 update-copyright-tests: correctly test EOL=\r\n handling
11156 * tests/test-update-copyright.sh: Put \r at the end of some lines
11157 for the dos-eol tests. Based on a patch by Joel E. Denny.
11159 maint.mk: make update-copyright exclusion list more configurable
11160 * top/maint.mk (update-copyright): Default to excluding COPYING,
11161 but allow an override, in case someone does want to update that file.
11163 maint.mk: don't update copyright date in COPYING
11164 * top/maint.mk (update-copyright): Exclude COPYING.
11166 maint.mk: add a copyright-updating rule
11167 * top/maint.mk (update-copyright): New rule.
11168 Derived from coreutils/Makefile.am.
11170 update-copyright: rename some variables
11171 * build-aux/update-copyright: Rename a few variables for clarity.
11172 Tweak syntax. List Joel E. Denny as coauthor.
11174 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11176 update-copyright: fix bug for 2-digit last year and add tests
11177 * build-aux/update-copyright: Fix bug.
11178 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11180 * modules/update-copyright-tests: New
11181 * tests/test-update-copyright.sh: New.
11183 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11185 update-copyright: handle leading tabs in line prefix
11186 * build-aux/update-copyright: Count leading tabs as 8 spaces
11187 when computing margin. This helps with the formatting of
11188 ChangeLogs, for example.
11189 Fix documentation a little.
11191 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11193 update-copyright: support EOL=\r\n
11194 * build-aux/update-copyright: Implement that.
11196 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11198 update-copyright: automatically format copyright statements
11199 * build-aux/update-copyright: Implement that.
11200 Also, be a little more predictable and safer by always failing
11201 when the full copyright format is not perfectly recognized as an
11202 unbroken whole. Discussed at
11203 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11204 Rewrite documentation.
11206 2009-08-03 Bruno Haible <bruno@clisp.org>
11208 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11210 2009-08-02 Bruno Haible <bruno@clisp.org>
11212 Tests for module 'uname'.
11213 * modules/uname-tests: New file.
11214 * tests/test-uname.c: New file.
11216 New module 'uname'.
11217 * lib/uname.c: New file.
11218 * m4/uname.m4: New file.
11219 * modules/uname: New file.
11220 * doc/posix-functions/uname.texi: Mention the new module.
11222 2009-08-02 Bruno Haible <bruno@clisp.org>
11224 Tests for module 'sys_utsname'.
11225 * modules/sys_utsname-tests: New file.
11226 * tests/test-sys_utsname.c: New file.
11228 New module 'sys_utsname'.
11229 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11230 * m4/sys_utsname_h.m4: New file.
11231 * modules/sys_utsname: New file.
11232 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11234 2009-08-02 Bruno Haible <bruno@clisp.org>
11236 Implicitly initialize the sockets library.
11237 * lib/gethostname.c: Include sockets.h.
11238 (rpl_gethostname): Invoke gl_sockets_startup.
11239 * lib/socket.c: Include sockets.h.
11240 (rpl_socket): Invoke gl_sockets_startup.
11241 * modules/gethostname (Depends-on): Add sockets.
11242 * modules/socket (Depends-on): Likewise.
11243 * tests/test-poll.c: Don't include sockets.h.
11244 (main): Don't invoke gl_sockets_startup.
11245 * tests/test-select.c: Don't include sockets.h.
11246 (main): Don't invoke gl_sockets_startup.
11248 2009-08-02 Bruno Haible <bruno@clisp.org>
11250 Allow multiple calls to gl_sockets_startup.
11251 * lib/sockets.c (initialized_sockets_version): New variable.
11252 (gl_sockets_startup): Do nothing if already called for this or a higher
11254 (gl_sockets_cleanup): Reset initialized_sockets_version.
11256 2009-08-03 Simon Josefsson <simon@josefsson.org>
11258 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11259 different project/version.
11261 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11262 Bruno Haible <bruno@clisp.org>
11264 Tests for module 'pipe-filter-gi'.
11265 * modules/pipe-filter-gi-tests: New file.
11266 * tests/test-pipe-filter-gi1.sh: New file.
11267 * tests/test-pipe-filter-gi1.c: New file.
11268 * tests/test-pipe-filter-gi2.sh: New file.
11269 * tests/test-pipe-filter-gi2-main.c: New file.
11270 * tests/test-pipe-filter-gi2-child.c: New file.
11272 New module 'pipe-filter-gi'.
11273 * lib/pipe-filter-gi.c: New file.
11274 * modules/pipe-filter-gi: New file.
11276 2009-08-02 Bruno Haible <bruno@clisp.org>
11277 Paolo Bonzini <bonzini@gnu.org>
11279 Tests for module 'pipe-filter-ii'.
11280 * modules/pipe-filter-ii-tests: New file.
11281 * tests/test-pipe-filter-ii1.sh: New file.
11282 * tests/test-pipe-filter-ii1.c: New file.
11283 * tests/test-pipe-filter-ii2.sh: New file.
11284 * tests/test-pipe-filter-ii2-main.c: New file.
11285 * tests/test-pipe-filter-ii2-child.c: New file.
11287 New module 'pipe-filter-ii'.
11288 * lib/pipe-filter.h: New file.
11289 * lib/pipe-filter-ii.c: New file.
11290 * lib/pipe-filter-aux.h: New file.
11291 * modules/pipe-filter-ii: New file.
11293 2009-08-02 Simon Josefsson <simon@josefsson.org>
11295 * lib/gc-libgcrypt.c: Change copyright to FSF.
11296 * lib/gc-gnulib.c: Likewise.
11298 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11300 * lib/gethostname.c: Include limits.h.
11302 2009-08-02 Simon Josefsson <simon@josefsson.org>
11303 Bruno Haible <bruno@clisp.org>
11305 Ensure HOST_NAME_MAX as part of the gethostname module.
11306 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11307 define also HOST_NAME_MAX.
11308 * tests/test-gethostname.c: Include <limits.h>.
11309 (main): Check also HOST_NAME_MAX.
11310 * doc/posix-headers/limits.texi: Document the mingw problem.
11312 2009-08-02 Bruno Haible <bruno@clisp.org>
11314 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11317 2009-03-31 Simon Josefsson <simon@josefsson.org>
11319 * lib/gethostname.c: Add Windows wrapper.
11320 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11321 * modules/gethostname: Depend on sys_socket & errno, for also
11322 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11323 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11325 2009-07-31 Jim Meyering <meyering@redhat.com>
11327 getloadavg: fix symbol name in comment
11328 * lib/getloadavg.c: Correct a typo I introduced when adding
11329 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11330 Matt Kraai spotted the problem.
11332 2009-07-29 Matt Kraai <mkraai@beckman.com>
11334 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11335 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11336 code also if ! defined N_NAME_POINTER.
11337 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11338 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11339 but the n_name member is a 12-byte array.
11341 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11343 update-copyright: generalize comment handling
11344 * build-aux/update-copyright: Handle copyright statements
11345 within more comment styles.
11347 Report any file with an external copyright holder or parse failure.
11349 2009-07-29 Jim Meyering <meyering@redhat.com>
11351 mktime: correct setting of REPLACE_MKTIME
11352 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11354 update-copyright: new module
11355 * modules/update-copyright: New file.
11356 * build-aux/update-copyright: New file.
11357 * MODULES.html.sh (maint+release support): Add update-copyright.
11359 2009-07-27 Bruno Haible <bruno@clisp.org>
11361 Fix compilation error when <ctime> is used and mktime is replaced.
11362 * lib/time.in.h (mktime): New declaration.
11363 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11364 REPLACE_MKTIME instead of defining mktime in config.h.
11365 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11366 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11367 Reported by Ross McFarland <rwmcfa1@neces.com>.
11369 2009-07-27 Bruno Haible <bruno@clisp.org>
11371 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11372 Reported by Matt Kraai <mkraai@beckman.com>.
11374 2009-07-25 Jim Meyering <meyering@redhat.com>
11376 maint.mk: avoid warnings about missing files
11377 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11378 diagnostic when .prev-version does not exist.
11379 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11380 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11381 nonexistent cfg.mk.
11382 Suggestions from Simon Josefsson.
11384 2009-07-25 Bruno Haible <bruno@clisp.org>
11386 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11387 defined as macros. Needed on QNX 6.4.1.
11388 Reported by Matt Kraai <mkraai@beckman.com>.
11390 2009-07-23 Jim Meyering <meyering@redhat.com>
11392 maint.mk: invoke "make dist" with a working value of XZ_OPT
11393 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11395 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11397 Make fseeko.c compile on QNX.
11398 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11400 2009-07-22 Peter Simons <simons@cryp.to>
11402 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11403 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11404 * lib/md4.h: Likewise.
11405 * lib/md5.h: Likewise.
11406 * lib/sha1.h: Likewise.
11407 * lib/sha256.h: Likewise.
11408 * lib/sha512.h: Likewise.
11410 tests-sha1: don't assign literal string to 'char *' variable
11411 * tests/test-sha1.c (main): Declare locals with "const" to match
11412 attributes of the right hand side.
11414 2009-07-21 Eric Blake <ebb9@byu.net>
11416 dup2: fix more mingw problems
11417 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11419 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11420 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11421 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11422 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11423 care of mingw bugs.
11425 2009-07-21 Jim Meyering <meyering@redhat.com>
11427 vc-list-files: avoid failure when /bin/sh is dash
11428 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11429 On some Debian based systems, /bin/sh is a symlink to dash, and running
11430 this command would omit the "/" following each 'tests' prefix:
11431 dash -x build-aux/vc-list-files -C . tests
11432 That is because bash and dash work differently:
11433 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11437 2009-07-21 Eric Blake <ebb9@byu.net>
11439 dup2-tests: test previous patch
11440 * modules/dup2-tests: New file.
11441 * tests/test-dup2.c: Likewise.
11442 * tests/test-open.c (main): Avoid unspecified behavior.
11443 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11446 dup2: work around mingw and cygwin 1.5 bug
11447 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11448 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11449 * modules/unistd (Makefile.am): Substitute it.
11450 * lib/unistd.in.h (dup2): Declare the replacement.
11451 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11452 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11453 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11454 * modules/execute (Depends-on): Add dup2.
11455 * modules/fseterr (Depends-on): Likewise.
11456 * modules/pipe (Depends-on): Likewise.
11457 * modules/posix_spawn-internal (Depends-on): Likewise.
11459 2009-07-21 Bruno Haible <bruno@clisp.org>
11461 * modules/.gitattributes: New file.
11463 2009-07-20 Bruno Haible <bruno@clisp.org>
11465 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11468 2009-07-20 Eric Blake <ebb9@byu.net>
11470 test-pipe: make a bit more robust.
11471 * tests/test-pipe.c (myerr): Allow error messages regardless of
11472 what we do to stderr.
11473 (test_pipe): Rearrange to avoid deadlock.
11474 (child_main): Try a larger read, to ensure we avoided deadlock.
11475 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11476 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11479 2009-07-19 Jim Meyering <meyering@redhat.com>
11481 fts: avoid false-positive cycle-detection
11482 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11483 for each new command line argument.
11485 2009-07-19 Bruno Haible <bruno@clisp.org>
11487 Fix build error on mingw with the modules sys_select and unistd.
11488 * modules/acl-tests (Depends-on): Add close.
11489 * modules/binary-io-tests (Depends-on): Likewise.
11490 * modules/closein-tests (Depends-on): Likewise.
11491 * modules/flock-tests (Depends-on): Likewise.
11492 * modules/fsync-tests (Depends-on): Likewise.
11493 * modules/lseek-tests (Depends-on): Likewise.
11494 * modules/pipe-tests (Depends-on): Likewise.
11495 * modules/posix_spawn-tests (Depends-on): Likewise.
11496 * modules/posix_spawnp-tests (Depends-on): Likewise.
11497 * modules/stat-time-tests (Depends-on): Likewise.
11498 * modules/yesno-tests (Depends-on): Likewise.
11500 2009-07-19 Bruno Haible <bruno@clisp.org>
11502 Unify conditionals.
11503 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11504 macros, not at the compiler macros.
11505 * lib/pipe.c: Likewise.
11506 * lib/execute.c: Likewise.
11507 * lib/spawni.c: Likewise.
11509 2009-07-19 Bruno Haible <bruno@clisp.org>
11511 Fix handling of closed stdin/stdout/stderr on mingw.
11512 * lib/w32spawn.h: Include unistd.h.
11513 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11514 file descriptor with O_NOINHERIT flag.
11515 (fd_safer_noinherit): New function, based on fd-safer.c.
11516 (dup_safer_noinherit): New function, based on dup-safer.c.
11517 (undup_safer_noinherit): New function.
11518 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11519 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11520 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11521 instead of fd_safer.
11522 * tests/test-pipe.c: Include <windows.h>.
11523 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11525 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11527 (test_pipe): Pass an extra argument for disambiguation.
11528 (main): Invoke parent_main or child_main.
11530 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11533 2009-07-18 Eric Blake <ebb9@byu.net>
11535 test-pipe: fix mingw build
11536 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11538 2009-07-18 Bruno Haible <bruno@clisp.org>
11540 * modules/pipe-tests (Makefile.am): Fix typo.
11542 2009-07-18 Eric Blake <ebb9@byu.net>
11544 error: fix mingw build
11545 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11546 Reported by Bruno Haible.
11548 error: avoid undefined use of stdout
11549 * lib/error.c (error, error_at_line): Check that fd 1 is open
11550 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11551 is handling faults and the close_stdout module wants to report the
11552 detection of closed stdout as an error.
11554 2009-07-17 Eric Blake <ebb9@byu.net>
11556 pipe: be robust in face of closed fds
11557 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11558 should cause child to misbehave.
11559 * modules/pipe-tests: New module.
11560 * tests/test-pipe.c: New file.
11561 * tests/test-pipe.sh: New file.
11562 Reported by Akim Demaille.
11564 2009-07-14 Bruno Haible <bruno@clisp.org>
11566 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11567 Reported by anonymous kc.
11569 2009-07-07 Jim Meyering <meyering@redhat.com>
11571 maint.mk: don't look for translatable strings in *.m4 or *.mk
11572 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11573 when searching for translatable strings.
11575 2009-07-05 Jim Meyering <meyering@redhat.com>
11577 remove superfluous parentheses in STREQ definition
11578 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11579 * lib/getugroups.c (STREQ): Likewise.
11580 * lib/fnmatch.c (STREQ): Likewise.
11581 Spotted by Bruno Haible.
11583 2009-07-04 Jim Meyering <meyering@redhat.com>
11585 argv-iter: new module
11586 * MODULES.html.sh: Add argv-iter.
11587 * lib/argv-iter.c, lib/argv-iter.h: New files.
11588 * modules/argv-iter: New file.
11589 * modules/argv-iter-tests: New file.
11590 * tests/test-argv-iter.c: Test it.
11592 2009-07-04 Bruno Haible <bruno@clisp.org>
11595 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11596 contains more exact copies of a given entry than file2, leave the extra
11597 copies unpaired rather than aborting.
11598 Reported by Eric Blake.
11600 2009-07-02 Bruno Haible <bruno@clisp.org>
11602 Speedup git-merge-changelog for git cherry-pick.
11603 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11604 (entries_mapping_get): New function, extracted from compute_mapping.
11605 (entries_mapping_reverse_get): New function.
11606 (compute_mapping): Add a 'full' argument. Return the result in a
11607 'struct entries_mapping'.
11608 (main): Update. Access the mappings through entries_mapping_get.
11609 Reported by Eric Blake.
11611 2009-07-02 Bruno Haible <bruno@clisp.org>
11613 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11616 2009-07-02 Bruno Haible <bruno@clisp.org>
11618 Speed up approximate search for matching ChangeLog entries.
11619 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11620 argument. Call fstrcmp_bounded instead of fstrcmp.
11621 (compute_mapping, try_split_merged_entry, main): Update callers.
11623 2009-07-02 Bruno Haible <bruno@clisp.org>
11625 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11627 2009-06-30 Bruno Haible <bruno@clisp.org>
11629 Reduce the number of uc_is_cased calls.
11630 * lib/unicase.h (casing_suffix_context_t): Add
11631 'first_char_except_ignorable' field.
11632 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11633 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11634 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11635 Update initializer.
11636 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11637 case-ignorable characters.
11638 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11639 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11640 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11641 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11642 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11644 2009-06-30 Bruno Haible <bruno@clisp.org>
11646 Tests for module 'unicase/ignorable'.
11647 * modules/unicase/ignorable-tests: New file.
11648 * tests/unicase/test-ignorable.c: New file, generated by
11651 Tests for module 'unicase/cased'.
11652 * modules/unicase/cased-tests: New file.
11653 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11654 * tests/unicase/test-predicate-part1.h: New file, derived from
11655 tests/unictype/test-predicate-part1.h.
11656 * tests/unicase/test-predicate-part2.h: New file, same as
11657 tests/unictype/test-predicate-part2.h.
11659 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11660 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11661 (output_casing_properties): New function.
11663 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11664 * lib/unicase/cased.c: Include unictype/bitmap.h.
11665 (uc_is_cased): Define through a bitmap lookup.
11666 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11667 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11668 (uc_is_case_ignorable): Define through a bitmap lookup.
11669 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11670 lib/unictype/bitmap.h.
11671 (Depends-on): Add inline. Clean up.
11672 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11673 lib/unictype/bitmap.h.
11674 (Depends-on): Add inline. Clean up.
11675 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11677 * tests/unicase/test-u16-tolower.c (main): Likewise.
11678 * tests/unicase/test-u32-tolower.c (main): Likewise.
11680 2009-06-30 Bruno Haible <bruno@clisp.org>
11682 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11683 * lib/unicase/u16-casemap.c: Likewise.
11684 * lib/unicase/u32-casemap.c: Likewise.
11686 2009-06-29 Bruno Haible <bruno@clisp.org>
11688 Define u32_casefold as a wrapper around u32_ct_casefold.
11689 * lib/unicase/u32-casefold.c: Update.
11690 * modules/unicase/u32-casefold (Depends-on): Add
11691 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11692 unicase/empty-suffix-context. Clean up.
11694 Define u16_casefold as a wrapper around u16_ct_casefold.
11695 * lib/unicase/u16-casefold.c: Update.
11696 * modules/unicase/u16-casefold (Depends-on): Add
11697 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11698 unicase/empty-suffix-context. Clean up.
11700 Define u8_casefold as a wrapper around u8_ct_casefold.
11701 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11702 * lib/unicase/u8-casefold.c: Update.
11703 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11704 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11706 Define u32_totitle as a wrapper around u32_ct_totitle.
11707 * lib/unicase/u32-totitle.c: Update.
11708 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11709 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11711 Define u16_totitle as a wrapper around u16_ct_totitle.
11712 * lib/unicase/u16-totitle.c: Update.
11713 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11714 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11716 Define u8_totitle as a wrapper around u8_ct_totitle.
11717 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11719 (FUNC): Delegate to U_CT_TOTITLE.
11720 * lib/unicase/u8-totitle.c: Update.
11721 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11722 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11724 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11726 * modules/unicase/u32-tolower (Depends-on): Add
11727 unicase/empty-prefix-context, unicase/empty-suffix-context.
11729 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11731 * modules/unicase/u16-tolower (Depends-on): Add
11732 unicase/empty-prefix-context, unicase/empty-suffix-context.
11734 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11735 * modules/unicase/u8-tolower (Depends-on): Add
11736 unicase/empty-prefix-context, unicase/empty-suffix-context.
11738 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11740 * modules/unicase/u32-toupper (Depends-on): Add
11741 unicase/empty-prefix-context, unicase/empty-suffix-context.
11743 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11745 * modules/unicase/u16-toupper (Depends-on): Add
11746 unicase/empty-prefix-context, unicase/empty-suffix-context.
11748 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11749 * modules/unicase/u8-toupper (Depends-on): Add
11750 unicase/empty-prefix-context, unicase/empty-suffix-context.
11752 New module 'unicase/u32-ct-casefold'.
11753 * lib/unicase/u32-ct-casefold.c: New file.
11754 * modules/unicase/u32-ct-casefold: New file.
11756 New module 'unicase/u16-ct-casefold'.
11757 * lib/unicase/u16-ct-casefold.c: New file.
11758 * modules/unicase/u16-ct-casefold: New file.
11760 New module 'unicase/u8-ct-casefold'.
11761 * lib/unicase/u8-ct-casefold.c: New file.
11762 * lib/unicase/u-ct-casefold.h: New file, derived from
11763 lib/unicase/u-casefold.h.
11764 * modules/unicase/u8-ct-casefold: New file.
11766 New module 'unicase/u32-ct-totitle'.
11767 * lib/unicase/u32-ct-totitle.c: New file.
11768 * modules/unicase/u32-ct-totitle: New file.
11770 New module 'unicase/u16-ct-totitle'.
11771 * lib/unicase/u16-ct-totitle.c: New file.
11772 * modules/unicase/u16-ct-totitle: New file.
11774 New module 'unicase/u8-ct-totitle'.
11775 * lib/unicase/u8-ct-totitle.c: New file.
11776 * lib/unicase/u-ct-totitle.h: New file, derived from
11777 lib/unicase/u-totitle.h.
11778 * modules/unicase/u8-ct-totitle: New file.
11780 New module 'unicase/u32-ct-tolower'.
11781 * lib/unicase/u32-ct-tolower.c: New file.
11782 * modules/unicase/u32-ct-tolower: New file.
11784 New module 'unicase/u16-ct-tolower'.
11785 * lib/unicase/u16-ct-tolower.c: New file.
11786 * modules/unicase/u16-ct-tolower: New file.
11788 New module 'unicase/u8-ct-tolower'.
11789 * lib/unicase/u8-ct-tolower.c: New file.
11790 * modules/unicase/u8-ct-tolower: New file.
11792 New module 'unicase/u32-ct-toupper'.
11793 * lib/unicase/u32-ct-toupper.c: New file.
11794 * modules/unicase/u32-ct-toupper: New file.
11796 New module 'unicase/u16-ct-toupper'.
11797 * lib/unicase/u16-ct-toupper.c: New file.
11798 * modules/unicase/u16-ct-toupper: New file.
11800 New module 'unicase/u8-ct-toupper'.
11801 * lib/unicase/u8-ct-toupper.c: New file.
11802 * modules/unicase/u8-ct-toupper: New file.
11804 Add context arguments to u*_casemap functions.
11805 * lib/unicase/unicasemap.h: Include unicase.h.
11806 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11807 suffix_context arguments.
11808 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11810 (FUNC): Add prefix_context and suffix_context arguments. Use
11811 uc_is_cased and uc_is_case_ignorable.
11812 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11813 * lib/unicase/u16-casemap.c: Likewise.
11814 * lib/unicase/u32-casemap.c: Likewise.
11815 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11816 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11817 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11818 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11819 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11820 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11822 New module 'unicase/u32-suffix-context'.
11823 * lib/unicase/u32-suffix-context.c: New file.
11824 * modules/unicase/u32-suffix-context: New file.
11826 New module 'unicase/u16-suffix-context'.
11827 * lib/unicase/u16-suffix-context.c: New file.
11828 * modules/unicase/u16-suffix-context: New file.
11830 New module 'unicase/u8-suffix-context'.
11831 * lib/unicase/u8-suffix-context.c: New file.
11832 * lib/unicase/u-suffix-context.h: New file.
11833 * modules/unicase/u8-suffix-context: New file.
11835 New module 'unicase/empty-suffix-context'.
11836 * lib/unicase/empty-suffix-context.c: New file.
11837 * modules/unicase/empty-suffix-context: New file.
11839 New module 'unicase/u32-prefix-context'.
11840 * lib/unicase/u32-prefix-context.c: New file.
11841 * modules/unicase/u32-prefix-context: New file.
11843 New module 'unicase/u16-prefix-context'.
11844 * lib/unicase/u16-prefix-context.c: New file.
11845 * modules/unicase/u16-prefix-context: New file.
11847 New module 'unicase/u8-prefix-context'.
11848 * lib/unicase/u8-prefix-context.c: New file.
11849 * lib/unicase/u-prefix-context.h: New file.
11850 * lib/unicase/context.h: New file.
11851 * modules/unicase/u8-prefix-context: New file.
11853 New module 'unicase/empty-prefix-context'.
11854 * lib/unicase/empty-prefix-context.c: New file.
11855 * modules/unicase/empty-prefix-context: New file.
11857 New module 'unicase/ignorable'.
11858 * lib/unicase/ignorable.c: New file.
11859 * modules/unicase/ignorable: New file.
11861 New module 'unicase/cased'.
11862 * lib/unicase/caseprop.h: New file.
11863 * lib/unicase/cased.c: New file.
11864 * modules/unicase/cased: New file.
11866 New functions for case mapping of substrings.
11867 * lib/unicase.h (casing_prefix_context_t): New type.
11868 (unicase_empty_prefix_context): New variable.
11869 (u8_casing_prefix_context, u16_casing_prefix_context,
11870 u32_casing_prefix_context, u8_casing_prefixes_context,
11871 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11873 (casing_suffix_context_t): New type.
11874 (unicase_empty_suffix_context): New variable.
11875 (u8_casing_suffix_context, u16_casing_suffix_context,
11876 u32_casing_suffix_context, u8_casing_suffixes_context,
11877 u16_casing_suffixes_context, u32_casing_suffixes_context,
11878 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11879 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11880 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11883 2009-06-28 Jim Meyering <meyering@redhat.com>
11885 boostrap: indent only with spaces
11886 * build-aux/bootstrap: Indent only with spaces, never TABs.
11888 bootstrap: split long lines
11889 * build-aux/bootstrap: Keep line length < 80.
11891 bootstrap: sync from coreutils
11892 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11893 just as autoreconf does. Verify a list of prerequisite
11894 package-name,version-number pairs if defined in bootstrap.conf.
11895 Refer to README-prereq, if prerequisites are not satisfied.
11897 2009-06-27 Eric Blake <ebb9@byu.net>
11899 tests: add test for bogus NULL definition
11900 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11901 * tests/test-stdlib.c: Likewise.
11902 * tests/test-string.c: Likewise.
11903 * tests/test-locale.c: Likewise.
11904 * tests/test-unistd.c: Likewise.
11905 * modules/stdio-tests (Depends-on): Add verify.
11906 * modules/stdlib-tests (Depends-on): Likewise.
11907 * modules/string-tests (Depends-on): Likewise.
11908 * modules/locale-tests (Depends-on): Likewise.
11909 * modules/unistd-tests (Depends-on): Likewise.
11911 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11913 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11914 self-explaining comment.
11915 * m4/selinux-selinux-h: Update serial.
11916 (gl_LIBSELINUX): New macro, adding a warning for missing development
11917 packages to code extracted from...
11918 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11919 Add warning for missing development packages here, too.
11921 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11923 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11925 2009-06-25 Eric Blake <ebb9@byu.net>
11927 version-etc: fix regression
11928 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11930 (version_etc): Use it, to catch bugs with trailing NULL.
11931 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11932 (version_etc_va): Fix logic bug.
11933 * modules/version-etc-tests: Add test.
11934 * tests/test-version-etc.c: New file.
11935 * tests/test-version-etc.sh: Likewise.
11937 2009-06-25 Sam Steingold <sds@gnu.org>
11939 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11940 mbtowc declaration.
11942 2009-06-25 Eric Blake <ebb9@byu.net>
11944 fpurge: migrate into <stdio.h>
11945 * lib/fpurge.h: Delete...
11946 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11947 * lib/fpurge.c (fpurge): Change declaring header.
11948 * modules/fpurge (Files): Drop deleted file.
11949 (Depends-on): Add stdio.
11950 (configure.ac): Set witness.
11951 * modules/stdio (Makefile.am): Support fpurge macros.
11952 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11953 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11954 * lib/fflush.c: Update client.
11955 * tests/test-fpurge.c: Likewise.
11956 * NEWS: Mention the change.
11958 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11960 * lib/argp-version-etc.c (program_authors): Add const
11962 * lib/version-etc.c: Fix typos in the comments.
11963 * modules/argp-version-etc: Depends on version-etc.
11965 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11967 argp-version-etc: new module.
11969 * lib/argp-version-etc.c: New file.
11970 * lib/argp-version-etc.h: New file.
11971 * modules/argp-version-etc: New file.
11972 * modules/argp-version-etc-tests: New file.
11973 * tests/test-argp-version-etc.c: New test.
11974 * tests/test-argp-version-etc-1.sh: New test.
11976 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11978 Provide additional interfaces and documentation for version-etc
11981 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11983 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11986 2009-06-24 Bruno Haible <bruno@clisp.org>
11988 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11989 HAVE_LIB${NAME} macro.
11990 Reported by Sam Steingold <sds@gnu.org>.
11992 2009-06-23 Simon Josefsson <simon@josefsson.org>
11994 * modules/hash-tests (test_hash_LDADD): Link to libintl when
11997 2009-06-21 Bruno Haible <bruno@clisp.org>
11999 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12001 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12002 together with LIB${NAME}, LTLIB${NAME}.
12003 Reported by Sam Steingold <sds@gnu.org>.
12005 2009-06-20 Jim Meyering <meyering@redhat.com>
12007 tests: make sc_require_test_exit_idiom more generic
12008 * top/maint.mk (Exit_witness_file): New overridable variable.
12009 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12010 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12012 2009-06-19 Jim Meyering <meyering@redhat.com>
12014 hash: reverse order of src/dst parameters in an internal interface
12015 * lib/hash.c (transfer_entries): Reverse order of parameters to
12016 put DST before SRC. Adjust callers.
12018 tests: test-hash: avoid wholesale duplication
12019 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12020 Instead, use a loop and add a single conditional.
12022 tests: test-hash: allow seed selection via a command line argument
12023 * tests/test-hash.c (get_seed): New function.
12026 2009-06-19 Eric Blake <ebb9@byu.net>
12028 hash: avoid memory leak on allocation failure
12029 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12030 failure. Factor repeated algorithm...
12031 (transfer_entries): ...into new helper routine.
12032 (hash_delete): React to hash_rehash return value.
12034 hash: reduce memory pressure in hash_rehash no-op case
12035 * lib/hash.c (next_prime): Avoid overflow.
12036 (hash_initialize): Factor bucket size computation...
12037 (compute_bucket_size): ...into new helper function.
12038 (hash_rehash): Use new function and open coding to reduce memory
12039 pressure, and avoid a memory leak in USE_OBSTACK code.
12040 Reported by Jim Meyering.
12042 2009-06-18 Eric Blake <ebb9@byu.net>
12044 hash: make rotation more obvious
12045 * modules/hash (Depends-on): Add bitrotate and stdint.
12046 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12047 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12048 (SIZE_MAX): Rely on headers for definition.
12049 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12050 (raw_hasher): Use rotr_sz.
12051 Suggested by Jim Meyering.
12053 hash: fix memory leak in last patch
12054 * lib/hash.c (hash_rehash): Avoid memory leak.
12056 hash: avoid no-op rehashing
12057 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12059 hash: provide default callback functions
12060 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12061 (hash_initialize): Use them as defaults.
12062 * tests/test-hash.c (main): Test this.
12064 hash: minor optimization
12065 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12067 (hash_initialize): Document this promise.
12068 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12069 * tests/test-hash.c (hash_compare_strings): Test this.
12071 2009-06-18 Bruno Haible <bruno@clisp.org>
12073 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12074 going to be replaced anyway.
12076 2009-06-18 Bruno Haible <bruno@clisp.org>
12078 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12080 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12081 be replaced anyway.
12083 2009-06-18 Eric Blake <ebb9@byu.net>
12085 hash: check for resize before insertion
12086 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12087 threshold before insertion, so that a pathological hash_rehash
12088 that fills every bucket can still trigger another rehash.
12090 2009-06-18 Jim Meyering <meyering@redhat.com>
12092 hash-tests: add a loop around the small tests
12093 * tests/test-hash.c (main): Repeat small tests with selected
12094 small initial table sizes.
12096 2009-06-17 Eric Blake <ebb9@byu.net>
12098 hash: minor cleanups
12099 * lib/hash.h (hash_entry): Make opaque, by moving...
12100 * lib/hash.c (hash_entry): ...here.
12101 (hash_insert): Clarify restrictions on what can be inserted.
12102 (hash_get_next): Clarify when it is safe to remove an element
12104 (check_tuning): Skip verification when tuning is known safe.
12105 (hash_initialize): Clarify restrictions on tuning.
12107 2009-06-17 Jim Meyering <jim@meyering.net>
12108 and Eric Blake <ebb9@byu.net>
12110 hash-tests: new module
12111 * modules/hash-tests: New file.
12112 * tests/test-hash.c: New file.
12114 2009-06-17 Eric Blake <ebb9@byu.net>
12116 strstr-simple: document new module
12117 * MODULES.html.sh: Document new module.
12119 strstr, strcasestr: replace on platforms with broken memchr
12120 * modules/strstr: Split into...
12121 * modules/strstr-simple: ...new module that does not care about
12122 performance, but does care about glibc bug.
12123 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12124 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12125 if platform memchr is broken, per Debian bug 521737.
12126 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12128 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12129 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12130 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12131 * modules/mountlist (Depends-on): Add strstr-simple.
12132 * modules/gen-uni-tables (Depends-on): Likewise.
12133 * modules/argz (Depends-on): Add strstr.
12135 2009-06-17 Bruno Haible <bruno@clisp.org>
12137 * modules/posix_spawn-internal (Depends-on): Add errno.
12139 2009-06-17 Bruno Haible <bruno@clisp.org>
12141 Define missing ESTALE on Interix 3.5.
12142 * lib/errno.in.h (ESTALE): Assign a value if missing.
12143 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12144 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12146 * doc/posix-headers/errno.texi: Mention the Interix bug.
12147 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12149 2009-06-15 Eric Blake <ebb9@byu.net>
12151 memchr, memchr2: add valgrind exception
12152 * lib/memchr.valgrind: New file.
12153 * lib/memchr2.valgrind: New file.
12154 * modules/memchr (Files): Distribute valgrind file.
12155 * modules/memchr2 (Files): Likewise.
12157 docs: memchr is no longer obsolete
12158 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12159 * lib/string.in.h (memchr): Simplify logic.
12161 2009-06-14 Jim Meyering <meyering@redhat.com>
12163 link-follow: fix the "checking..." message to not mention trailing slash
12164 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12165 never considered trailing slashes.
12167 2009-06-14 Bruno Haible <bruno@clisp.org>
12169 * m4/memchr.m4: Mention also the bug on IA-64.
12170 * doc/posix-functions/memchr.texi: Likewise.
12172 2009-06-12 Eric Blake <ebb9@byu.net>
12174 memchr: detect broken x86_64 and alpha implementations
12175 * modules/memchr-tests (Depends-on): Move mmap detection...
12176 * modules/memchr (Depends-on): ...here.
12177 (configure.ac): Set indicator.
12178 * lib/string.in.h (memchr): Declare replacement.
12179 * modules/string (Makefile.am): Trigger replacement.
12180 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12181 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12183 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12184 * modules/getpagesize (License): Relax license.
12186 2009-06-11 Bruno Haible <bruno@clisp.org>
12188 * lib/idpriv.h: Add more references.
12190 2009-06-08 Bruno Haible <bruno@clisp.org>
12192 Tests for module 'idpriv-droptemp'.
12193 * modules/idpriv-droptemp-tests: New file.
12194 * tests/test-idpriv-droptemp.sh: New file.
12195 * tests/test-idpriv-droptemp.su.sh: New file.
12196 * tests/test-idpriv-droptemp.c: New file.
12198 New module 'idpriv-droptemp'.
12199 * lib/idpriv-droptemp.c: New file.
12200 * modules/idpriv-droptemp: New file.
12202 2009-06-08 Bruno Haible <bruno@clisp.org>
12204 Tests for module 'idpriv-drop'.
12205 * modules/idpriv-drop-tests: New file.
12206 * tests/test-idpriv-drop.sh: New file.
12207 * tests/test-idpriv-drop.su.sh: New file.
12208 * tests/test-idpriv-drop.c: New file.
12210 New module 'idpriv-drop'.
12211 * lib/idpriv.h: New file.
12212 * lib-idpriv-drop.c: New file.
12213 * m4/idpriv.m4: New file.
12214 * modules/idpriv-drop: New file.
12216 2009-06-08 Bruno Haible <bruno@clisp.org>
12218 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12219 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12220 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12221 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12222 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12223 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12224 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12226 2009-06-08 Eric Blake <ebb9@byu.net>
12228 test-strstr: use memory fence, when possible
12229 * tests/test-strstr.c (main): Use memory fence, in order to be
12230 more likely to trigger Debian bug 521737.
12231 * modules/strstr-tests (Files): Pull in additional files.
12233 memchr: no longer obsolete, for wider field testing
12234 * modules/memchr (Status, Notice): Delete, this module is no
12236 * modules/vasnprintf (Depends-on): Add memchr.
12238 2009-06-07 Jim Meyering <meyering@redhat.com>
12240 hash: declare some functions with the warn_unused_result attribute
12241 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12243 2009-06-07 Bruno Haible <bruno@clisp.org>
12245 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12246 Reported by Eric Blake.
12248 2009-06-06 Eric Blake <ebb9@byu.net>
12250 test-alignof: fix typo with long double
12251 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12254 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12256 Escape non-texinfo { and }s.
12257 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12260 2009-06-04 Jim Meyering <meyering@redhat.com>
12262 gitlog-to-changelog: don't infloop on an empty commit log
12263 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12264 Reported by Boris Petersen <transacid@centerim.org>.
12266 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12268 version-etc: extend for packagers
12269 Add three new configure options, intended for packagers:
12270 --with-packager="packager name"
12271 --with-packager-version="packager-specific version"
12272 --with-packager-bug-reports="packager bug reporting"
12273 An example with coreutils:
12275 --with-packager=Gentoo \
12276 --with-packager-bug-report=http://bugs.gentoo.org/ \
12277 --with-packager-version="patchset 1.6"
12278 $ ./src/ls --version | head -n2
12279 ls (GNU coreutils) 7.1-dirty
12280 Packaged by Gentoo (patchset 1.6)
12281 Note that the bug reporting info via --help doesn't show up because
12282 coreutils uses its own custom emit_bug_reporting_address() implementation
12283 in src/system.h. If it didn't, it'd look like:
12284 $ ./src/ls --help | tail -n4
12285 Report bugs to <bug-coreutils@gnu.org>.
12286 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12287 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12288 General help using GNU software: <http://www.gnu.org/gethelp/>.
12289 * lib/version-etc.c: Print new information, if provided.
12290 * m4/version-etc.m4: New file.
12291 * modules/version-etc (Files): Add m4/version-etc.m4.
12292 (configure.ac): Add gl_VERSION_ETC.
12294 2009-05-31 Bruno Haible <bruno@clisp.org>
12296 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12298 * modules/alignof-tests (Dependencies): Add stdint.
12299 Reported by Eric Blake.
12301 2009-05-31 Bruno Haible <bruno@clisp.org>
12303 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12304 restriction due to compiler bugs.
12305 Reported by Eric Blake.
12307 2009-05-31 Simon Josefsson <simon@josefsson.org>
12308 Bruno Haible <bruno@clisp.org>
12310 Fix test-alignof failure.
12311 * lib/alignof.h (alignof_slot): New macro.
12312 (alignof_type): New macro, with the same semantics as the previous
12314 (alignof): Alias to alignof_slot.
12315 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12316 check that the results are usable as constant expressions.
12318 2009-05-31 Bruno Haible <bruno@clisp.org>
12320 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12321 * tests/test-memchr.c (main): Check that memchr does not read past the
12322 first occurrence of the byte.
12323 * tests/test-strstr.c (main): Update comment.
12324 Suggested by Eric Blake.
12326 2009-05-30 Bruno Haible <bruno@clisp.org>
12328 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12329 detail how to use dumpbin.
12330 Reported by David Byron <dbyron@dbyron.com>.
12332 2009-06-02 Simon Josefsson <simon@josefsson.org>
12334 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12336 2009-06-02 Simon Josefsson <simon@josefsson.org>
12338 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12340 2009-05-28 Bruno Haible <bruno@clisp.org>
12342 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12345 2009-05-28 Simon Josefsson <simon@josefsson.org>
12347 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12349 2009-05-27 Simon Josefsson <simon@josefsson.org>
12351 * gnulib-tool (sed_transform_main_lib_file)
12352 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12355 2009-05-26 Simon Josefsson <simon@josefsson.org>
12357 * tests/test-strstr.c: Add another self-test.
12358 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12359 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12361 2009-05-23 Bruno Haible <bruno@clisp.org>
12363 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12366 2009-05-21 Bruno Haible <bruno@clisp.org>
12368 Simplify use of mode_t varargs.
12369 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12370 uses 'mode_t' or 'int'.
12371 * lib/openat.c (openat): Likewise.
12372 * lib/open-safer.c (open_safer): Likewise.
12373 * m4/mode_t.m4: New file.
12374 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12375 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12376 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12377 * modules/open (Files): Add m4/mode_t.m4.
12378 * modules/openat (Files): Likewise.
12379 * modules/fcntl-safer (Files): Likewise.
12380 Suggested by Eric Blake.
12382 2009-05-21 Pádraig Brady <P@draigbrady.com>
12384 * doc/glibc-functions/fallocate.texi: New file.
12385 * doc/gnulib.texi: Include it.
12387 2009-05-21 Eric Blake <ebb9@byu.net>
12388 Bruno Haible <bruno@clisp.org>
12390 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12392 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12394 2009-05-21 Eric Blake <ebb9@byu.net>
12395 Bruno Haible <bruno@clisp.org>
12397 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12398 include_next. Fix of 2008-11-20 commit.
12399 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12400 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12401 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12403 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12404 instead of NEXT_MATH_H.
12406 2009-05-21 Bruno Haible <bruno@clisp.org>
12408 Avoid redefinition warnings for SIZE_MAX.
12409 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12410 Reported by Simon Josefsson.
12412 2009-05-21 Bruno Haible <bruno@clisp.org>
12414 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12417 2009-05-20 Bruno Haible <bruno@clisp.org>
12419 Make zeroptr.h work on mingw.
12420 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12422 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12423 * modules/memchr2-tests (configure.ac): Likewise.
12424 * modules/memcmp-tests (configure.ac): Likewise.
12425 * modules/memmem-tests (configure.ac): Likewise.
12426 * modules/memrchr-tests (configure.ac): Likewise.
12427 Reported by Simon Josefsson.
12429 2009-05-20 Simon Josefsson <simon@josefsson.org>
12431 * tests/test-glob.c: Include string.h for strcmp prototype.
12433 2009-05-20 Simon Josefsson <simon@josefsson.org>
12435 * modules/getdelim (Depends-on): Add explicit stdint, although it
12436 was implicitly already pulled in via realloc-posix.
12437 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12439 2009-05-20 Simon Josefsson <simon@josefsson.org>
12441 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12442 G. Christensen" <tgc@jupiterrise.com>.
12443 * m4/sys_socket_h.m4: Check for sa_family_t.
12444 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12445 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12446 * tests/test-sys_socket.c: Check that sa_family_t works.
12448 2009-05-18 Eric Blake <ebb9@byu.net>
12450 maint.mk: allow gnulib_dir in VPATH build
12451 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12453 2009-05-15 Jim Meyering <meyering@redhat.com>
12455 maint.mk: Give gnulib_dir a default definition.
12456 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12457 Thus, most packages no longer need to specify this variable in cfg.mk
12459 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12461 rename.m4: fix typos that would make non-mingw cross-configure fail
12462 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12464 2009-05-13 Eric Blake <ebb9@byu.net>
12466 mmap-anon: avoid out-of-order autoconf expansion
12467 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12468 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12469 * modules/memchr-tests (Depends-on): Add extensions.
12470 * modules/memchr2-tests (Depends-on): Add extensions.
12471 * modules/memcmp-tests (Depends-on): Add extensions.
12472 * modules/memmem-tests (Depends-on): Add extensions.
12473 * modules/memrchr-tests (Depends-on): Add extensions.
12475 2009-05-13 Bruno Haible <bruno@clisp.org>
12477 Make some tests ISO C 99 compliant.
12478 * tests/zerosize-ptr.h: New file.
12479 * tests/test-memchr.c: Include zerosize-ptr.h.
12480 (main): Use a zero-size object pointer instead of NULL.
12481 * tests/test-memchr2.c: Include zerosize-ptr.h.
12482 (main): Use a zero-size object pointer instead of NULL.
12483 * tests/test-memcmp.c: Include zerosize-ptr.h.
12484 (main): Use a zero-size object pointer instead of NULL.
12485 * tests/test-memmem.c: Include zerosize-ptr.h.
12486 (main): Use a zero-size object pointer instead of NULL.
12487 * tests/test-memrchr.c: Include zerosize-ptr.h.
12488 (main): Use a zero-size object pointer instead of NULL.
12489 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12491 (Depends-on): Add getpagesize.
12492 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12493 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12495 (Depends-on): Add getpagesize.
12496 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12497 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12499 (Depends-on): Add getpagesize.
12500 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12501 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12503 (Depends-on): Add getpagesize.
12504 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12505 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12507 (Depends-on): Add getpagesize.
12508 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12510 2009-05-12 Bruno Haible <bruno@clisp.org>
12512 Tests for module 'alignof'.
12513 * modules/alignof-tests: New file.
12514 * tests/test-alignof.c: New file.
12516 2009-05-12 Bruno Haible <bruno@clisp.org>
12519 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12520 vendor compilers that are always correct.
12522 2009-05-12 Bruno Haible <bruno@clisp.org>
12524 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12525 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12526 not whether its fully works.
12528 2009-05-12 Bruno Haible <bruno@clisp.org>
12530 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12532 2009-05-12 Jim Meyering <meyering@redhat.com>
12534 * top/maint.mk: Adjust backslash alignment.
12536 2009-05-11 Simon Josefsson <simon@josefsson.org>
12538 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12540 2009-05-11 Eric Blake <ebb9@byu.net>
12542 argp: avoid undefined behavior
12543 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12546 2009-05-08 Simon Josefsson <simon@josefsson.org>
12548 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12549 user.name to prevent git commit from complaining.
12551 2009-05-10 Bruno Haible <bruno@clisp.org>
12553 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12554 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12555 it rewrites every file name only once.
12556 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12558 2009-05-08 Bruno Haible <bruno@clisp.org>
12560 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12563 2009-05-08 Simon Josefsson <simon@josefsson.org>
12565 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12566 sockaddr_storage test.
12568 2009-05-07 Simon Josefsson <simon@josefsson.org>
12570 * modules/sys_socket (Makefile.am): Substitute
12571 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12572 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12573 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12574 * tests/test-sys_socket.c: Check sockaddr_storage.
12576 2009-05-08 Bruno Haible <bruno@clisp.org>
12578 New module 'alignof'.
12579 * lib/alignof.h: New file.
12580 * modules/alignof: New file.
12582 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12583 Bruno Haible <bruno@clisp.org>
12585 Fix test-file-has-acl on FreeBSD.
12586 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12587 mask is implicitly added.
12588 * tests/test-file-has-acl.c: Include <signal.h>.
12589 (main): Terminate the test after 5 seconds.
12590 * modules/acl-tests (configure.ac): Check for alarm function.
12592 2009-05-04 Bruno Haible <bruno@clisp.org>
12594 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12595 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12596 * modules/errno (configure.ac): Drop AC_REQUIRE.
12597 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12598 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12600 2009-05-04 Simon Josefsson <simon@josefsson.org>
12602 * modules/glob-tests: New module.
12603 * tests/test-glob.c: Add.
12605 2009-05-04 Simon Josefsson <simon@josefsson.org>
12607 * modules/fnmatch-tests: New module.
12608 * tests/test-fnmatch.c: Add.
12610 2009-05-04 Eric Blake <ebb9@byu.net>
12612 maint: make the new no-submodule-changes rule VPATH-safe
12613 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12615 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12616 Bruno Haible <bruno@clisp.org>
12618 acl: Fix infinite loop on FreeBSD.
12619 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12620 of return value from acl_get_entry.
12621 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12624 2009-05-03 Bruno Haible <bruno@clisp.org>
12626 * lib/acl-internal.h (acl_entries): Clarify return value.
12627 * lib/acl_entries.c (acl_entries): Likewise.
12629 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12631 Bug fix in acl module.
12632 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12634 2009-05-03 Bruno Haible <bruno@clisp.org>
12636 Create gperf-generated file in the source dir, not in the build dir.
12637 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12638 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12639 * modules/unicase/locale-language (unicase/locale-languages.h):
12641 * modules/unicase/special-casing (unicase/special-casing-table.h):
12643 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12644 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12645 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12646 Reported by Ralf Wildenhues.
12648 2009-05-03 Bruno Haible <bruno@clisp.org>
12650 * modules/fnmatch (Description, configure.ac): Taken from
12652 * modules/fnmatch-posix: Turn into a symbolic reference to the
12653 'fnmatch' module, and deprecate.
12654 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12656 2009-05-03 Bruno Haible <bruno@clisp.org>
12658 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12659 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12660 Reported by Ralf Wildenhues.
12662 2009-05-04 Simon Josefsson <simon@josefsson.org>
12664 * m4/fnmatch.m4: Fix fnmatch re-define.
12666 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12668 priv-set: new module and tests; adapt write-any-file
12669 * lib/priv-set.c: New file.
12670 * lib/priv-set.h: New file.
12671 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12672 * lib/write-any-file.c: Simplify by using priv-set module.
12673 * m4/priv-set.m4: New file.
12674 * modules/priv-set: New file.
12675 * modules/unlinkdir: Add dependency on priv-set module.
12676 * modules/write-any-file: Likewise.
12678 Tests for module 'priv-set'.
12679 * modules/priv-set-tests: New file.
12680 * tests/test-priv-set.c: New file.
12682 2009-05-03 Jim Meyering <meyering@redhat.com>
12683 Bruno Haible <bruno@clisp.org>
12685 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12686 use the converted UTF-8 variant of the name instead.
12688 2009-05-03 Jim Meyering <meyering@redhat.com>
12690 tests: tighten some getdate tests
12691 * tests/test-getdate.c (main): Tighten tests: require equality,
12692 not just greater than. Set TZ envvar to UTC0.
12694 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12696 getdate: correctly interpret "next monday" when run on a Monday
12697 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12698 that e.g., "next tues" (when run on a tuesday) results in a date
12699 that is one week in the future, and not today's date.
12700 I.e., add a week when the wday is the same as the current one.
12701 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12702 and earlier by Martin Bernreuther and Jan Minář.
12703 * tests/test-getdate.c (main): Check that "next DAY" is always in
12704 the future and that "last DAY" is always in the past.
12706 2009-05-02 Jim Meyering <meyering@redhat.com>
12708 build: ensure that a release build fails when a submodule is unclean
12709 * top/maint.mk (no-submodule-changes): New rule.
12710 (alpha beta major): Depend on it.
12712 2009-05-02 Bruno Haible <bruno@clisp.org>
12714 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12715 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12716 shell variable gl_fnmatch_required to detect which variant is
12718 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12719 gl_FUNC_FNMATCH_POSIX.
12720 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12721 exclude fnmatch-posix.
12723 2009-05-02 Bruno Haible <bruno@clisp.org>
12725 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12726 * modules/mbsrtowcs (License): Change to LGPLv2+.
12727 * modules/strnlen1 (License): Likewise.
12728 Reported by Simon Josefsson.
12730 2009-05-02 Bruno Haible <bruno@clisp.org>
12732 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12734 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12735 gnulib-tool was called with option --source-base=lib.
12737 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12739 Use automake *-local hooks without commands, for extensibility.
12740 * modules/localcharset (Makefile.am): Rename install-exec-local
12741 rule to install-exec-localcharset, and make it a prerequisite of
12742 install-exec-local. Likewise, rename the uninstall-local rule to
12743 uninstall-localcharset, and make it a prerequisite of the former.
12745 2009-05-01 Bruno Haible <bruno@clisp.org>
12747 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12748 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12749 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12750 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12751 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12752 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12753 m4/locale-zh.m4, m4/codeset.m4.
12755 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12756 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12757 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12760 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12761 REPLACE_WCRTOMB if mbstate_t must be replaced.
12762 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12763 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12765 2009-05-01 Bruno Haible <bruno@clisp.org>
12767 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12768 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12769 dngettext, dcngettext, textdomain, bindtextdomain,
12770 bind_textdomain_codeset): Undefine before redefining.
12772 2009-04-30 Bruno Haible <bruno@clisp.org>
12774 Fix bug introduced on 2009-04-25.
12775 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12776 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12777 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12779 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12781 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12783 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12785 2009-04-28 Bruno Haible <bruno@clisp.org>
12788 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12789 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12790 * lib/unicase.h (u*_casexfrm): Likewise.
12791 Reported by Paolo Bonzini.
12793 2009-04-28 Bruno Haible <bruno@clisp.org>
12795 Fix a compilation error.
12796 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12797 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12798 Reported by Jim Meyering.
12800 2009-04-27 Bruno Haible <bruno@clisp.org>
12802 New module 'libunistring'.
12803 * modules/libunistring: New file.
12804 * m4/libunistring.m4: New file.
12805 * MODULES.html.sh (Unicode string functions): Add it.
12807 2009-04-27 Eric Blake <ebb9@byu.net>
12809 maint.mk: allow package-specific header to provide <config.h>
12810 * top/maint.mk (sc_require_config_h): New variable.
12811 (sc_require_config_h, sc_require_config_h_first): Use it.
12813 2009-04-27 Simon Josefsson <simon@josefsson.org>
12815 * top/maint.mk (sc_avoid_if_before_free): Except
12816 useless-if-before-free script.
12818 2009-04-27 Eric Blake <ebb9@byu.net>
12820 maintainer-makefile: depend on all required helper scripts
12821 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12822 useless-if-before-free.
12823 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12824 version, rather than assuming gnulib checkout is available.
12825 Reported by Simen Josefsson.
12827 2009-04-26 Bruno Haible <bruno@clisp.org>
12829 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12830 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12833 2009-04-26 Bruno Haible <bruno@clisp.org>
12835 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12836 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12837 AC_LIB_HAVE_LINKFLAGS.
12839 2009-04-26 Bruno Haible <bruno@clisp.org>
12841 Simplify calling convention of u*_conv_from_encoding.
12842 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12843 u32_conv_from_encoding): Expect a resultbuf argument and return the
12844 result directly as a pointer.
12845 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12846 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12847 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12848 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12849 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12850 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12852 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12853 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12854 * lib/vasnprintf.c (VASNPRINTF): Update.
12855 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12856 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12857 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12858 * NEWS: Mention the change.
12860 2009-04-26 Bruno Haible <bruno@clisp.org>
12862 Simplify calling convention of u*_conv_to_encoding.
12863 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12864 u32_conv_to_encoding): Expect a resultbuf argument and return the
12865 result directly as a pointer.
12866 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12867 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12868 freeing scaled_offsets if mem_iconveha failed.
12869 * lib/unicase/u-casexfrm.h (FUNC): Update.
12870 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12871 * lib/vasnprintf.c (VASNPRINTF): Update.
12872 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12873 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12874 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12875 * NEWS: Mention the change.
12877 2009-04-26 Bruno Haible <bruno@clisp.org>
12879 Avoid test failures on AIX and OSF/1.
12880 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12882 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12883 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12885 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12886 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12887 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12888 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12889 * doc/posix-functions/malloc.texi: Document the portability problem
12890 related to malloc(0).
12892 2009-04-26 Bruno Haible <bruno@clisp.org>
12894 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12895 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12896 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12898 2009-04-25 Bruno Haible <bruno@clisp.org>
12900 Avoid link error when creating a namespace clean library.
12901 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12902 as macro with arguments if already defined as an alias.
12903 * lib/signbitf.c (gl_signbitf): Don't undefine.
12904 * lib/signbitd.c (gl_signbitd): Don't undefine.
12905 * lib/signbitl.c (gl_signbitl): Don't undefine.
12907 2009-04-25 Jim Meyering <meyering@redhat.com>
12909 vc-list-files: fix another quoting bug
12910 * build-aux/vc-list-files: Avoid sed backslash expansion
12911 of pathological directory names.
12913 2009-04-25 Eric Blake <ebb9@byu.net>
12915 vc-list-files: fix shell quoting error
12916 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12919 2009-04-25 Jim Meyering <meyering@redhat.com>
12921 vc-list-files: restore lost functionality with subdir argument
12922 * build-aux/vc-list-files: When given a non-"." sub-directory
12923 argument, substitute the $dir/ prefix back onto each resulting name.
12924 Otherwise, coreutils' root_tests check would fail.
12926 2009-04-24 Eric Blake <ebb9@byu.net>
12928 vc-list-files: ignore git symlinks
12929 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12930 than ls-files, to ignore git symlinks.
12932 maint.mk: import improvements from m4
12933 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12934 (move_if_change): Delete unused macro.
12935 (news-date-check, vc-diff-check): Support VPATH builds.
12936 (announcement): Likewise. Split --bootstrap-tools list...
12937 (boostrap-tools): ...into separate list, which can be overridden
12939 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12940 requiring dependency on useless-if-before-free module.
12941 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12942 Support VPATH builds.
12944 2009-04-24 Jim Meyering <meyering@redhat.com>
12946 maint.mk: remove coreutils-specific rules and variables
12947 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12948 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12949 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12951 maint.mk: remove obsolete rule
12952 * top/maint.mk (rel-check): Remove rule.
12953 (WGET, WGETFLAGS): Remove now-unused variables.
12955 2009-04-24 Simon Josefsson <simon@josefsson.org>
12957 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12960 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12961 '$(PATH_SEPARATOR)' instead of ':'.
12963 2009-04-24 Simon Josefsson <simon@josefsson.org>
12965 * lib/getopt1.c (main): Use 'const' for static array.
12967 2009-04-24 Simon Josefsson <simon@josefsson.org>
12969 * top/maint.mk: Sync with coreutils.
12970 * NEWS: Explain incompatibilities.
12972 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12973 Bruno Haible <bruno@clisp.org>
12975 Fix cross-compilation results.
12976 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12977 statement, as third argument of AC_TRY_RUN.
12978 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12979 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12981 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12982 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12984 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12985 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12986 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12988 2009-04-20 Bruno Haible <bruno@clisp.org>
12990 Avoid test failure on mingw.
12991 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12993 2009-04-20 Bruno Haible <bruno@clisp.org>
12995 Avoid compilation error on mingw.
12996 * modules/localename-tests (Depends-on): Add locale.
12998 2009-04-19 Bruno Haible <bruno@clisp.org>
13000 Support for building a shared library on Windows platforms.
13001 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13002 (main): Test the presence of UNINORM_NFC here.
13003 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13004 (main): Test the presence of UNINORM_NFD here.
13005 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13006 (main): Test the presence of UNINORM_NFKC here.
13007 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13008 (main): Test the presence of UNINORM_NFKD here.
13010 2009-04-19 Bruno Haible <bruno@clisp.org>
13012 Avoid a compiler warning.
13013 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13014 Change type of variable 'sequence'.
13016 2009-04-19 Bruno Haible <bruno@clisp.org>
13018 * modules/configmake (Makefile.am): When the contents of configmake.h
13019 does not change, arrange to preserve its modification time.
13021 2009-04-17 Simon Josefsson <simon@josefsson.org>
13023 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13026 2009-04-16 Jim Meyering <meyering@redhat.com>
13028 useless-if-before-free: improve conversion code
13029 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13030 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13032 2009-04-14 Bruno Haible <bruno@clisp.org>
13034 * modules/fcntl (Depends-on): Add extensions.
13035 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13037 2009-04-12 Ben Pfaff <blp@gnu.org>
13039 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13040 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13042 2009-03-20 Ben Pfaff <blp@gnu.org>
13044 Make rename replace existing destinations on Windows.
13045 * m4/rename.m4: Add test for Mingw.
13046 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13047 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13048 * doc/posix-functions/rename.texi: Document.
13050 2009-04-10 Bruno Haible <bruno@clisp.org>
13052 New include file "iconveh.h".
13053 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13054 * lib/striconveh.h: Include it.
13055 (enum iconv_ilseq_handler): Remove definition.
13056 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13058 * lib/striconveha.c: Include striconveh.h.
13059 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13060 * modules/striconveh (Files): Add lib/iconveh.h.
13061 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13064 2009-04-10 Bruno Haible <bruno@clisp.org>
13066 * lib/uniconv.h: Update comment.
13068 2009-04-10 Bruno Haible <bruno@clisp.org>
13070 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13072 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13073 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13074 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13075 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13076 "unistring-notinline.h", so that the function gets defined always.
13077 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13078 * lib/unistr/u8-uctomb.c: Likewise.
13079 * lib/unistr/u16-mbtouc.c: Likewise.
13080 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13081 * lib/unistr/u16-uctomb.c: Likewise.
13082 * lib/unistr/u32-mbtouc.c: Likewise.
13083 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13084 * lib/unistr/u32-uctomb.c: Likewise.
13086 2009-04-10 Bruno Haible <bruno@clisp.org>
13088 Mark 'utime' obsolete.
13089 * modules/utime (Status, Notice): New sections.
13090 Suggested by Jim Meyering.
13092 Fix cross-compile guess for utime test.
13093 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13095 * doc/posix-functions/utime.texi: Give more precisions.
13096 Reported by Jan <ipif@ymail.com>.
13098 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13100 filevercmp: correct today's change
13101 * lib/filevercmp.c: Also handle coreutils' test inputs.
13102 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13104 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13106 * lib/filevercmp.c: Special handle for "", "." and "..".
13107 * tests/test-filevercmp.c: Enlarge the set suite.
13109 2009-04-07 Jim Meyering <meyering@redhat.com>
13111 useless-if-before-free: show how to remove braced useless free, too
13112 * build-aux/useless-if-before-free: still only in a comment, though.
13114 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13116 maint.mk: import changes to syntax-check macros from coreutils
13117 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13118 Use them in the relevant macros.
13120 2009-04-06 Bruno Haible <bruno@clisp.org>
13122 Fix unportable use of bit-fields.
13123 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13124 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13125 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13127 2009-04-06 Bruno Haible <bruno@clisp.org>
13129 Avoid test failures on AIX and OSF/1.
13130 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13131 that malloc(0) = NULL.
13132 * tests/unicase/test-u8-tolower.c (check): Likewise.
13133 * tests/unicase/test-u8-totitle.c (check): Likewise.
13134 * tests/unicase/test-u8-toupper.c (check): Likewise.
13135 * tests/unicase/test-u16-casefold.c (check): Likewise.
13136 * tests/unicase/test-u16-tolower.c (check): Likewise.
13137 * tests/unicase/test-u16-totitle.c (check): Likewise.
13138 * tests/unicase/test-u16-toupper.c (check): Likewise.
13139 * tests/unicase/test-u32-casefold.c (check): Likewise.
13140 * tests/unicase/test-u32-tolower.c (check): Likewise.
13141 * tests/unicase/test-u32-totitle.c (check): Likewise.
13142 * tests/unicase/test-u32-toupper.c (check): Likewise.
13143 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13144 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13145 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13146 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13147 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13148 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13149 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13150 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13151 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13152 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13153 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13154 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13156 2009-04-05 Bruno Haible <bruno@clisp.org>
13158 Work around an autoconf limitation.
13159 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13160 comment line if it would be longer than 3 KB.
13162 2009-04-05 Bruno Haible <bruno@clisp.org>
13164 Avoid test failure with libiconv-1.13.
13165 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13166 of the expected test results.
13168 2009-04-05 Bruno Haible <bruno@clisp.org>
13170 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13171 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13172 that it should be installed.
13174 2009-04-05 Bruno Haible <bruno@clisp.org>
13176 * gnulib-tool: New option --copy-file.
13177 (func_usage): Document it.
13178 (func_dest_tmpfilename): Moved out of func_import.
13179 (func_add_file, func_update_file): New functions, extracted from
13181 (func_import): Update.
13183 2009-04-05 Karl Berry <karl@gnu.org>
13185 * README: prominently mention gnulib-tool.
13186 Rearrange sections so getting the code is near the top.
13188 2009-04-05 Bruno Haible <bruno@clisp.org>
13190 * lib/unicase.h: Mention u*_cmp2.
13191 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13192 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13193 * lib/unicase/ulc-casecmp.c: Likewise.
13194 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13195 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13196 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13198 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13199 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13201 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13204 * lib/uninorm.h: Mention u*_cmp2.
13205 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13206 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13207 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13208 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13209 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13211 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13213 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13216 New module 'unistr/u32-cmp2'.
13217 * lib/unistr/u32-cmp2.c: New file.
13218 * modules/unistr/u32-cmp2: New file.
13220 New module 'unistr/u16-cmp2'.
13221 * lib/unistr/u16-cmp2.c: New file.
13222 * modules/unistr/u16-cmp2: New file.
13224 New module 'unistr/u8-cmp2'.
13225 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13226 * lib/unistr/u8-cmp2.c: New file.
13227 * lib/unistr/u-cmp2.h: New file.
13228 * modules/unistr/u8-cmp2: New file.
13230 2009-04-05 Bruno Haible <bruno@clisp.org>
13232 * lib/unictype.h (uc_property_is_valid): New macro.
13233 * tests/unictype/test-pr_byname.c (main): Use it.
13235 * lib/unistr.h: Doc fixes.
13236 * lib/uniconv.h: Doc fixes.
13237 * lib/unictype.h: Doc fixes.
13239 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13241 Port coreutils 7.2 to Solaris 8.
13243 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13244 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13245 for Solaris 8. This is a bit of a hack, as it means it's the
13246 caller's responsibility to add -lnsl if needed, but most likely it
13247 won't be needed since only getaddrinfo uses this and getaddrinfo
13248 isn't needed on Solaris 8.
13250 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13251 problem to Solaris 8 encountered with coreutils 7.2, which
13252 resulted in a message "fnmatch.c:292: warning: passing argument 4
13253 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13254 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13256 2009-04-03 Simon Josefsson <simon@josefsson.org>
13258 * m4/ld-version-script.m4: Add FIXME comment.
13260 2009-04-02 Simon Josefsson <simon@josefsson.org>
13262 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13263 SOVERSION variable.
13265 2009-04-02 Bruno Haible <bruno@clisp.org>
13267 * Makefile (info, html, dvi, pdf): Combine the rules.
13268 Suggested by Jim Meyering.
13270 2009-04-01 Bruno Haible <bruno@clisp.org>
13272 * Makefile (info, html, dvi, pdf): New targets.
13273 Reported by Reuben Thomas <rrt@sc3d.org>.
13275 2009-04-01 Bruno Haible <bruno@clisp.org>
13277 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13278 can be put into PATH.
13279 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13281 2009-04-01 Bruno Haible <bruno@clisp.org>
13283 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13285 2009-04-01 Bruno Haible <bruno@clisp.org>
13287 Rename module 'visibility'.
13288 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13289 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13290 * doc/gnulib.texi: Update.
13291 * MODULES.html.sh (Misc): Update.
13292 * NEWS: Mention the change.
13294 2009-04-01 Simon Josefsson <simon@josefsson.org>
13296 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13297 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13298 Eric Blake <ebb9@byu.net> for review.
13299 * MODULES.html.sh: Add lib-msvc-compat.
13300 * doc/gnulib.texi: Link to new section.
13301 * m4/ld-output-def.m4: New file.
13302 * doc/ld-output-def.texi: New file.
13304 2009-04-01 Simon Josefsson <simon@josefsson.org>
13306 Rename ld-version-script to lib-symbol-versions. Suggested by
13307 Bruno Haible <bruno@clisp.org>.
13308 * modules/ld-version-script: Renamed to lib-symbol-versions.
13309 * doc/ld-version-script.texi: Fix module name.
13310 * MODULES.html.sh: Add lib-symbol-versions.
13312 2009-03-31 Simon Josefsson <simon@josefsson.org>
13314 * modules/u64-tests: New file.
13315 * tests/test-u64.c: New file.
13317 2009-03-04 Simon Josefsson <simon@josefsson.org>
13319 * MODULES.html.sh: Mention u64.
13320 * modules/u64: New module.
13321 * modules/crypto/sha512: Depend on u64 module instead of providing
13324 2009-03-27 Eric Blake <ebb9@byu.net>
13326 test-strerror: make debugging EAI_SYSTEM easier
13327 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13328 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13329 failure was EAI_SYSTEM.
13331 2009-03-25 Bruno Haible <bruno@clisp.org>
13333 Fix a problem with --enable-relocatable on Solaris 7.
13334 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13337 2009-03-25 Eric Blake <ebb9@byu.net>
13339 test-sockets: avoid gcc warning
13340 * tests/test-sockets.c (main): Silence compiler warning.
13342 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13344 New modules nproc, pthread, contributed by Glen Lenker.
13346 * MODULES.html.sh: Add pthread, nproc.
13347 * lib/nproc.c: New file.
13348 * lib/nproc.h: New file.
13349 * lib/pthread.in.h: New file.
13350 * m4/pthread.m4: New file.
13351 * modules/nproc: New file.
13352 * modules/pthread: New file.
13354 2009-03-24 Simon Josefsson <simon@josefsson.org>
13356 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13359 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13361 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13362 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13363 * tests/test-filevercmp.c: Add tests for backup suffixes.
13365 2009-03-24 Simon Josefsson <simon@josefsson.org>
13367 * modules/stdlib (Depends-on): Add stdint, needed when defining
13368 struct random_data on, for example, HP-UX 10.20. Reported by
13369 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13371 2009-03-24 Simon Josefsson <simon@josefsson.org>
13373 * lib/readline.c (readline): Call fflush on stdout after printing
13376 2009-03-20 Bruno Haible <bruno@clisp.org>
13378 Remove dependency from 'close' module to -lws2_32 on native Windows.
13379 * lib/close-hook.h: New file.
13380 * lib/close-hook.c: New file.
13381 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13383 (_gl_close_fd_maybe_socket): Remove function.
13384 (rpl_close): Invoke execute_all_close_hooks instead of
13385 _gl_close_fd_maybe_socket.
13386 * lib/sockets.c: Include close-hook.h, w32sock.h.
13387 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13388 (close_sockets_hook): New variable.
13389 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13390 (gl_sockets_cleanup): Unregister it.
13391 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13392 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13393 * modules/close-hook: New file.
13394 * modules/close (Files): Remove lib/w32sock.h.
13395 (Depends-on): Add close-hook.
13396 (Link): Remove section.
13397 * modules/sockets (Files): Add lib/w32sock.h.
13398 (Depends-on): Add close-hook.
13399 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13401 * NEWS: Mention that LIB_CLOSE is gone.
13403 2009-03-23 Eric Blake <ebb9@byu.net>
13405 signal-tests: test previous patch
13406 * tests/test-signal.c: New file.
13407 * modules/signal-tests: Likewise.
13409 signal.h: always support 'volatile sig_atomic_t'
13410 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13411 (gl_SIGNAL_H_DEFAULTS): Add a default.
13412 * modules/signal (Makefile.am): Substitute if needed.
13413 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13414 users can blindly add volatile.
13415 * doc/posix-headers/signal.texi (signal.h): Document it.
13416 Reported by Matthew Woehlke.
13418 2009-03-23 Jim Meyering <meyering@redhat.com>
13420 pathmax: PATH_MAX: use pathconf only when available
13421 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13422 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13423 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13424 This avoids a link failure in a PSP cross-compilation environment
13425 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13427 * lib/vasnprintf.c (divide): Fix typo in comment.
13429 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13431 * gnulib-tool (func_filter_filelist): Fix comment.
13433 2009-03-20 Bruno Haible <bruno@clisp.org>
13435 Make sockets.h self-contained.
13436 * lib/sockets.c: Include sockets.h first.
13437 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13439 2009-03-19 Eric Blake <ebb9@byu.net>
13441 doc: mention more functions added in cygwin 1.7.0
13442 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13444 * doc/posix-functions/log2f.texi: Likewise.
13446 2009-03-19 Jim Meyering <meyering@redhat.com>
13448 fsusage: avoid syntax error due to statement-before-declaration
13449 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13450 after all declarations. Reported by Matthew Woehlke in
13451 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13453 2009-03-18 Eric Blake <ebb9@byu.net>
13455 build-aux/compile: sync from automake
13456 * build-aux/compile: New file, from automake.
13457 * config/srclist.txt: Mention build-aux/compile.
13459 2009-03-17 Bruno Haible <bruno@clisp.org>
13461 * lib/git-merge-changelog.c: Fix typo in comment.
13462 Reported by Reuben Thomas <rrt@sc3d.org>.
13464 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13466 * m4/regex.m4: update and improve help for
13467 --without-included-regex.
13469 2009-03-17 Simon Josefsson <simon@josefsson.org>
13471 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13472 failure on missing include files.
13474 2009-03-17 Eric Blake <ebb9@byu.net>
13476 doc: mention more functions added in cygwin 1.7.0
13477 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13479 * doc/posix-functions/fwscanf.texi: Likewise.
13480 * doc/posix-functions/swprintf.texi: Likewise.
13481 * doc/posix-functions/swscanf.texi: Likewise.
13482 * doc/posix-functions/vfwprintf.texi: Likewise.
13483 * doc/posix-functions/vfwscanf.texi: Likewise.
13484 * doc/posix-functions/vswprintf.texi: Likewise.
13485 * doc/posix-functions/vswscanf.texi: Likewise.
13486 * doc/posix-functions/vwprintf.texi: Likewise.
13487 * doc/posix-functions/vwscanf.texi: Likewise.
13488 * doc/posix-functions/wcscasecmp.texi: Likewise.
13489 * doc/posix-functions/wcsdup.texi: Likewise.
13490 * doc/posix-functions/wcsftime.texi: Likewise.
13491 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13492 * doc/posix-functions/wprintf.texi: Likewise.
13493 * doc/posix-functions/wscanf.texi: Likewise.
13494 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13496 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13498 maint.mk: really add $(AM_MAKEFLAGS)
13499 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13500 was inadvertently omitted in the last commit.
13501 Spotted by Bruno Haible.
13503 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13504 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13505 $(AM_MAKEFLAGS)' rather than plain `make'.
13507 gnulib-tool: execute $MAKE not make
13508 * gnulib-tool: Default $MAKE to 'make'.
13509 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13510 than make. Initialize $MAKE in the do-autobuild script.
13512 gnulib-tool: use $MAKE not make in generated files
13513 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13514 make, in generated files. Initialize $MAKE in the do-autobuild
13517 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13519 GNUmakefile: disable parallelism only for multiple, recursive targets
13520 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13521 additions in the Makefile.
13522 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13524 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13525 are listed on the command line and at least one of them is
13526 listed in $(ALL_RECURSIVE_TARGETS).
13528 2009-03-14 Bruno Haible <bruno@clisp.org>
13530 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13531 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13532 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13533 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13534 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13535 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13536 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13538 * modules/unistr/u8-strchr (Depends-on): Likewise.
13539 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13540 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13542 * modules/unistr/u16-strchr (Depends-on): Likewise.
13543 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13545 2009-03-12 Bruno Haible <bruno@clisp.org>
13547 Work around select() bug on Interix 3.5.
13548 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13549 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13550 * m4/select.m4: New file.
13551 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13552 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13553 * modules/select (Files): Add m4/select.m4.
13554 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13555 * modules/nanosleep (Depends-on): Add select.
13556 * modules/poll (Depends-on): Likewise.
13557 * doc/posix-functions/select.texi: Mention the Interix bug.
13558 Reported by Markus Duft <mduft@gentoo.org>.
13560 * lib/select.c: Renamed from lib/winsock-select.c.
13561 * modules/select (Files): Add lib/select.c, remove
13562 lib/winsock-select.c.
13563 (configure.ac): Update.
13565 2009-03-12 Jim Meyering <meyering@redhat.com>
13567 avoid gcc warnings about unused macro definitions
13568 * lib/readtokens.c (STREQ): Remove unused definition.
13569 * lib/xmalloc.c (SIZE_MAX): Likewise.
13570 * lib/openat-die.c (N_): Likewise.
13571 * lib/mountlist.c (SIZE_MAX): Remove definition.
13572 Instead, include <stdint.h>.
13573 * lib/readutmp.c: Likewise.
13574 * modules/readutmp (Depends-on): Add stdint.
13575 * modules/mountlist (Depends-on): Add stdint.
13576 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13578 2009-03-10 Bruno Haible <bruno@clisp.org>
13580 Tests for module 'mbmemcasecoll'.
13581 * modules/mbmemcasecoll-tests: New file.
13582 * tests/test-mbmemcasecoll1.sh: New file.
13583 * tests/test-mbmemcasecoll2.sh: New file.
13584 * tests/test-mbmemcasecoll3.sh: New file.
13585 * tests/test-mbmemcasecoll.c: New file.
13587 New module 'mbmemcasecoll'.
13588 * lib/mbmemcasecoll.h: New file.
13589 * lib/mbmemcasecoll.c: New file.
13590 * modules/mbmemcasecoll: New file.
13592 * tests/test-mbmemcasecmp.h: New file, extracted from
13593 tests/test-mbmemcasecmp.c.
13594 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13595 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13597 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13599 2009-03-09 Bruno Haible <bruno@clisp.org>
13601 Tests for module 'mbmemcasecmp'.
13602 * modules/mbmemcasecmp-tests: New file.
13603 * tests/test-mbmemcasecmp1.sh: New file.
13604 * tests/test-mbmemcasecmp2.sh: New file.
13605 * tests/test-mbmemcasecmp3.sh: New file.
13606 * tests/test-mbmemcasecmp.c: New file.
13608 New module 'mbmemcasecmp'.
13609 * lib/mbmemcasecmp.h: New file.
13610 * lib/mbmemcasecmp.c: New file.
13611 * modules/mbmemcasecmp: New file.
13613 2009-03-09 Bruno Haible <bruno@clisp.org>
13615 Tests for module 'unicase/ulc-casecoll'.
13616 * modules/unicase/ulc-casecoll-tests: New file.
13617 * tests/unicase/test-ulc-casecoll1.sh: New file.
13618 * tests/unicase/test-ulc-casecoll2.sh: New file.
13619 * tests/unicase/test-ulc-casecoll.c: New file.
13621 New module 'unicase/ulc-casecoll'.
13622 * lib/unicase.h (ulc_casecoll): New declaration.
13623 * lib/unicase/ulc-casecoll.c: New file.
13624 * modules/unicase/ulc-casecoll: New file.
13626 New module 'unicase/ulc-casexfrm'.
13627 * lib/unicase.h (ulc_casexfrm): New declaration.
13628 * lib/unicase/ulc-casexfrm.c: New file.
13629 * modules/unicase/ulc-casexfrm: New file.
13631 2009-03-09 Bruno Haible <bruno@clisp.org>
13633 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13636 * m4/mbscasecmp.m4: Remove file.
13637 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13638 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13640 * m4/mbscasestr.m4: Remove file.
13641 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13642 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13644 * m4/mbschr.m4: Remove file.
13645 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13646 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13648 * m4/mbscspn.m4: Remove file.
13649 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13650 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13652 * m4/mbslen.m4: Remove file.
13653 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13654 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13656 * m4/mbsncasecmp.m4: Remove file.
13657 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13658 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13660 * m4/mbsnlen.m4: Remove file.
13661 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13662 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13664 * m4/mbspbrk.m4: Remove file.
13665 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13666 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13668 * m4/mbspcasecmp.m4: Remove file.
13669 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13670 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13672 * m4/mbsrchr.m4: Remove file.
13673 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13674 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13676 * m4/mbssep.m4: Remove file.
13677 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13678 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13680 * m4/mbsspn.m4: Remove file.
13681 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13682 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13684 * m4/mbsstr.m4: Remove file.
13685 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13686 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13688 * m4/mbstok_r.m4: Remove file.
13689 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13690 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13692 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13694 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13695 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13697 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13699 2009-03-08 Bruno Haible <bruno@clisp.org>
13701 Tests for module 'unicase/ulc-casecmp'.
13702 * modules/unicase/ulc-casecmp-tests: New file.
13703 * tests/unicase/test-ulc-casecmp1.sh: New file.
13704 * tests/unicase/test-ulc-casecmp2.sh: New file.
13705 * tests/unicase/test-ulc-casecmp.c: New file.
13707 New module 'unicase/ulc-casecmp'.
13708 * lib/unicase.h (ulc_casecmp): New declaration.
13709 * lib/unicase/ulc-casecmp.c: New file.
13710 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13711 'const SRC_UNIT *'.
13712 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13713 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13714 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13715 * modules/unicase/ulc-casecmp: New file.
13717 Tests for module 'unicase/u32-is-cased'.
13718 * modules/unicase/u32-is-cased-tests: New file.
13719 * tests/unicase/test-u32-is-cased.c: New file.
13721 Tests for module 'unicase/u16-is-cased'.
13722 * modules/unicase/u16-is-cased-tests: New file.
13723 * tests/unicase/test-u16-is-cased.c: New file.
13725 Tests for module 'unicase/u8-is-cased'.
13726 * modules/unicase/u8-is-cased-tests: New file.
13727 * tests/unicase/test-u8-is-cased.c: New file.
13728 * tests/unicase/test-is-cased.h: New file.
13730 New module 'unicase/u32-is-cased'.
13731 * lib/unicase/u32-is-cased.c: New file.
13732 * modules/unicase/u32-is-cased: New file.
13734 New module 'unicase/u16-is-cased'.
13735 * lib/unicase/u16-is-cased.c: New file.
13736 * modules/unicase/u16-is-cased: New file.
13738 New module 'unicase/u8-is-cased'.
13739 * lib/unicase/u8-is-cased.c: New file.
13740 * lib/unicase/u-is-cased.h: New file.
13741 * modules/unicase/u8-is-cased: New file.
13743 Tests for module 'unicase/u32-is-casefolded'.
13744 * modules/unicase/u32-is-casefolded-tests: New file.
13745 * tests/unicase/test-u32-is-casefolded.c: New file.
13747 Tests for module 'unicase/u16-is-casefolded'.
13748 * modules/unicase/u16-is-casefolded-tests: New file.
13749 * tests/unicase/test-u16-is-casefolded.c: New file.
13751 Tests for module 'unicase/u8-is-casefolded'.
13752 * modules/unicase/u8-is-casefolded-tests: New file.
13753 * tests/unicase/test-u8-is-casefolded.c: New file.
13754 * tests/unicase/test-is-casefolded.h: New file.
13756 New module 'unicase/u32-is-casefolded'.
13757 * lib/unicase/u32-is-casefolded.c: New file.
13758 * modules/unicase/u32-is-casefolded: New file.
13760 New module 'unicase/u16-is-casefolded'.
13761 * lib/unicase/u16-is-casefolded.c: New file.
13762 * modules/unicase/u16-is-casefolded: New file.
13764 New module 'unicase/u8-is-casefolded'.
13765 * lib/unicase/u8-is-casefolded.c: New file.
13766 * modules/unicase/u8-is-casefolded: New file.
13768 Tests for module 'unicase/u32-is-titlecase'.
13769 * modules/unicase/u32-is-titlecase-tests: New file.
13770 * tests/unicase/test-u32-is-titlecase.c: New file.
13772 Tests for module 'unicase/u16-is-titlecase'.
13773 * modules/unicase/u16-is-titlecase-tests: New file.
13774 * tests/unicase/test-u16-is-titlecase.c: New file.
13776 Tests for module 'unicase/u8-is-titlecase'.
13777 * modules/unicase/u8-is-titlecase-tests: New file.
13778 * tests/unicase/test-u8-is-titlecase.c: New file.
13779 * tests/unicase/test-is-titlecase.h: New file.
13781 New module 'unicase/u32-is-titlecase'.
13782 * lib/unicase/u32-is-titlecase.c: New file.
13783 * modules/unicase/u32-is-titlecase: New file.
13785 New module 'unicase/u16-is-titlecase'.
13786 * lib/unicase/u16-is-titlecase.c: New file.
13787 * modules/unicase/u16-is-titlecase: New file.
13789 New module 'unicase/u8-is-titlecase'.
13790 * lib/unicase/u8-is-titlecase.c: New file.
13791 * modules/unicase/u8-is-titlecase: New file.
13793 Tests for module 'unicase/u32-is-lowercase'.
13794 * modules/unicase/u32-is-lowercase-tests: New file.
13795 * tests/unicase/test-u32-is-lowercase.c: New file.
13797 Tests for module 'unicase/u16-is-lowercase'.
13798 * modules/unicase/u16-is-lowercase-tests: New file.
13799 * tests/unicase/test-u16-is-lowercase.c: New file.
13801 Tests for module 'unicase/u8-is-lowercase'.
13802 * modules/unicase/u8-is-lowercase-tests: New file.
13803 * tests/unicase/test-u8-is-lowercase.c: New file.
13804 * tests/unicase/test-is-lowercase.h: New file.
13806 New module 'unicase/u32-is-lowercase'.
13807 * lib/unicase/u32-is-lowercase.c: New file.
13808 * modules/unicase/u32-is-lowercase: New file.
13810 New module 'unicase/u16-is-lowercase'.
13811 * lib/unicase/u16-is-lowercase.c: New file.
13812 * modules/unicase/u16-is-lowercase: New file.
13814 New module 'unicase/u8-is-lowercase'.
13815 * lib/unicase/u8-is-lowercase.c: New file.
13816 * modules/unicase/u8-is-lowercase: New file.
13818 Tests for module 'unicase/u32-is-uppercase'.
13819 * modules/unicase/u32-is-uppercase-tests: New file.
13820 * tests/unicase/test-u32-is-uppercase.c: New file.
13822 Tests for module 'unicase/u16-is-uppercase'.
13823 * modules/unicase/u16-is-uppercase-tests: New file.
13824 * tests/unicase/test-u16-is-uppercase.c: New file.
13826 Tests for module 'unicase/u8-is-uppercase'.
13827 * modules/unicase/u8-is-uppercase-tests: New file.
13828 * tests/unicase/test-u8-is-uppercase.c: New file.
13829 * tests/unicase/test-is-uppercase.h: New file.
13831 New module 'unicase/u32-is-uppercase'.
13832 * lib/unicase/u32-is-uppercase.c: New file.
13833 * modules/unicase/u32-is-uppercase: New file.
13835 New module 'unicase/u16-is-uppercase'.
13836 * lib/unicase/u16-is-uppercase.c: New file.
13837 * modules/unicase/u16-is-uppercase: New file.
13839 New module 'unicase/u8-is-uppercase'.
13840 * lib/unicase/u8-is-uppercase.c: New file.
13841 * modules/unicase/u8-is-uppercase: New file.
13843 New module 'unicase/u32-is-invariant'.
13844 * lib/unicase/u32-is-invariant.c: New file.
13845 * modules/unicase/u32-is-invariant: New file.
13847 New module 'unicase/u16-is-invariant'.
13848 * lib/unicase/u16-is-invariant.c: New file.
13849 * modules/unicase/u16-is-invariant: New file.
13851 New module 'unicase/u8-is-invariant'.
13852 * lib/unicase/u8-is-invariant.c: New file.
13853 * lib/unicase/invariant.h: New file.
13854 * lib/unicase/u-is-invariant.h: New file.
13855 * modules/unicase/u8-is-invariant: New file.
13857 Tests for module 'unicase/u32-casecoll'.
13858 * modules/unicase/u32-casecoll-tests: New file.
13859 * tests/unicase/test-u32-casecoll.c: New file.
13861 Tests for module 'unicase/u16-casecoll'.
13862 * modules/unicase/u16-casecoll-tests: New file.
13863 * tests/unicase/test-u16-casecoll.c: New file.
13865 Tests for module 'unicase/u8-casecoll'.
13866 * modules/unicase/u8-casecoll-tests: New file.
13867 * tests/unicase/test-u8-casecoll.c: New file.
13869 New module 'unicase/u32-casecoll'.
13870 * lib/unicase/u32-casecoll.c: New file.
13871 * modules/unicase/u32-casecoll: New file.
13873 New module 'unicase/u16-casecoll'.
13874 * lib/unicase/u16-casecoll.c: New file.
13875 * modules/unicase/u16-casecoll: New file.
13877 New module 'unicase/u8-casecoll'.
13878 * lib/unicase/u8-casecoll.c: New file.
13879 * lib/unicase/u-casecoll.h: New file.
13880 * modules/unicase/u8-casecoll: New file.
13882 New module 'unicase/u32-casexfrm'.
13883 * lib/unicase/u32-casexfrm.c: New file.
13884 * modules/unicase/u32-casexfrm: New file.
13886 New module 'unicase/u16-casexfrm'.
13887 * lib/unicase/u16-casexfrm.c: New file.
13888 * modules/unicase/u16-casexfrm: New file.
13890 New module 'unicase/u8-casexfrm'.
13891 * lib/unicase/u8-casexfrm.c: New file.
13892 * lib/unicase/u-casexfrm.h: New file.
13893 * modules/unicase/u8-casexfrm: New file.
13895 Tests for module 'unicase/u32-casecmp'.
13896 * modules/unicase/u32-casecmp-tests: New file.
13897 * tests/unicase/test-u32-casecmp.c: New file.
13899 Tests for module 'unicase/u16-casecmp'.
13900 * modules/unicase/u16-casecmp-tests: New file.
13901 * tests/unicase/test-u16-casecmp.c: New file.
13903 Tests for module 'unicase/u8-casecmp'.
13904 * modules/unicase/u8-casecmp-tests: New file.
13905 * tests/unicase/test-u8-casecmp.c: New file.
13906 * tests/unicase/test-casecmp.h: New file.
13908 New module 'unicase/u32-casecmp'.
13909 * lib/unicase/u32-casecmp.c: New file.
13910 * modules/unicase/u32-casecmp: New file.
13912 New module 'unicase/u16-casecmp'.
13913 * lib/unicase/u16-casecmp.c: New file.
13914 * modules/unicase/u16-casecmp: New file.
13916 New module 'unicase/u8-casecmp'.
13917 * lib/unicase/u8-casecmp.c: New file.
13918 * lib/unicase/u-casecmp.h: New file.
13919 * modules/unicase/u8-casecmp: New file.
13921 Tests for module 'unicase/u32-casefold'.
13922 * modules/unicase/u32-casefold-tests: New file.
13923 * tests/unicase/test-u32-casefold.c: New file.
13925 Tests for module 'unicase/u16-casefold'.
13926 * modules/unicase/u16-casefold-tests: New file.
13927 * tests/unicase/test-u16-casefold.c: New file.
13929 Tests for module 'unicase/u8-casefold'.
13930 * modules/unicase/u8-casefold-tests: New file.
13931 * tests/unicase/test-u8-casefold.c: New file.
13933 New module 'unicase/u32-casefold'.
13934 * lib/unicase/u32-casefold.c: New file.
13935 * modules/unicase/u32-casefold: New file.
13937 New module 'unicase/u16-casefold'.
13938 * lib/unicase/u16-casefold.c: New file.
13939 * modules/unicase/u16-casefold: New file.
13941 New module 'unicase/u8-casefold'.
13942 * lib/unicase/u8-casefold.c: New file.
13943 * lib/unicase/u-casefold.h: New file.
13944 * modules/unicase/u8-casefold: New file.
13946 New module 'unicase/tocasefold'.
13947 * lib/unicase/casefold.h: New file.
13948 * lib/unicase/tocasefold.c: New file.
13949 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13950 * modules/unicase/tocasefold: New file.
13952 Tests for module 'unicase/u32-totitle'.
13953 * modules/unicase/u32-totitle-tests: New file.
13954 * tests/unicase/test-u32-totitle.c: New file.
13956 Tests for module 'unicase/u16-totitle'.
13957 * modules/unicase/u16-totitle-tests: New file.
13958 * tests/unicase/test-u16-totitle.c: New file.
13960 Tests for module 'unicase/u8-totitle'.
13961 * modules/unicase/u8-totitle-tests: New file.
13962 * tests/unicase/test-u8-totitle.c: New file.
13964 New module 'unicase/u32-totitle'.
13965 * lib/unicase/u32-totitle.c: New file.
13966 * modules/unicase/u32-totitle: New file.
13968 New module 'unicase/u16-totitle'.
13969 * lib/unicase/u16-totitle.c: New file.
13970 * modules/unicase/u16-totitle: New file.
13972 New module 'unicase/u8-totitle'.
13973 * lib/unicase/u8-totitle.c: New file.
13974 * lib/unicase/u-totitle.h: New file.
13975 * modules/unicase/u8-totitle: New file.
13977 Tests for module 'unicase/u32-tolower'.
13978 * modules/unicase/u32-tolower-tests: New file.
13979 * tests/unicase/test-u32-tolower.c: New file.
13981 Tests for module 'unicase/u16-tolower'.
13982 * modules/unicase/u16-tolower-tests: New file.
13983 * tests/unicase/test-u16-tolower.c: New file.
13985 Tests for module 'unicase/u8-tolower'.
13986 * modules/unicase/u8-tolower-tests: New file.
13987 * tests/unicase/test-u8-tolower.c: New file.
13989 New module 'unicase/u32-tolower'.
13990 * lib/unicase/u32-tolower.c: New file.
13991 * modules/unicase/u32-tolower: New file.
13993 New module 'unicase/u16-tolower'.
13994 * lib/unicase/u16-tolower.c: New file.
13995 * modules/unicase/u16-tolower: New file.
13997 New module 'unicase/u8-tolower'.
13998 * lib/unicase/u8-tolower.c: New file.
13999 * modules/unicase/u8-tolower: New file.
14001 Tests for module 'unicase/u32-toupper'.
14002 * modules/unicase/u32-toupper-tests: New file.
14003 * tests/unicase/test-u32-toupper.c: New file.
14005 Tests for module 'unicase/u16-toupper'.
14006 * modules/unicase/u16-toupper-tests: New file.
14007 * tests/unicase/test-u16-toupper.c: New file.
14009 Tests for module 'unicase/u8-toupper'.
14010 * modules/unicase/u8-toupper-tests: New file.
14011 * tests/unicase/test-u8-toupper.c: New file.
14013 New module 'unicase/u32-toupper'.
14014 * lib/unicase/u32-toupper.c: New file.
14015 * modules/unicase/u32-toupper: New file.
14017 New module 'unicase/u16-toupper'.
14018 * lib/unicase/u16-toupper.c: New file.
14019 * modules/unicase/u16-toupper: New file.
14021 New module 'unicase/u8-toupper'.
14022 * lib/unicase/u8-toupper.c: New file.
14023 * modules/unicase/u8-toupper: New file.
14025 New module 'unicase/u32-casemap'.
14026 * lib/unicase/u32-casemap.c: New file.
14027 * modules/unicase/u32-casemap: New file.
14029 New module 'unicase/u16-casemap'.
14030 * lib/unicase/u16-casemap.c: New file.
14031 * modules/unicase/u16-casemap: New file.
14033 New module 'unicase/u8-casemap'.
14034 * lib/unicase/unicasemap.h: New file.
14035 * lib/unicase/u8-casemap.c: New file.
14036 * lib/unicase/u-casemap.h: New file.
14037 * modules/unicase/u8-casemap: New file.
14039 New module 'unicase/special-casing'.
14040 * lib/unicase/special-casing.h: New file.
14041 * lib/unicase/special-casing.c: New file.
14042 * lib/unicase/special-casing-table.gperf: New file, generated by
14044 * modules/unicase/special-casing: New file.
14046 Tests for module 'unicase/locale-language'.
14047 * modules/unicase/locale-language-tests: New file.
14048 * tests/unicase/test-locale-language.sh: New file.
14049 * tests/unicase/test-locale-language.c: New file.
14051 New module 'unicase/locale-language'.
14052 * lib/unicase/locale-language.c: New file.
14053 * lib/unicase/locale-languages.gperf: New file.
14054 * modules/unicase/locale-language: New file.
14056 Generate more tables for case conversion and case folding.
14057 * lib/gen-uni-tables.c (SCC_*): New enum items.
14058 (struct special_casing_rule): New type.
14059 (casing_rules, num_casing_rules, allocated_casing_rules): New
14061 (add_casing_rule, fill_casing_rules): New functions.
14062 (struct casefold_rule): New type.
14063 (casefolding_rules, num_casefolding_rules,
14064 allocated_casefolding_rules): New variables.
14065 (fill_casefolding_rules): New function.
14066 (unicode_casefold): New variable.
14067 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14068 sort_casing_rules, output_casing_rules): New functions.
14069 (main): Accept to more arguments: SpecialCasing.txt and
14070 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14071 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14072 Output mapping for casefolding.
14074 * lib/unicase.h: Include stdbool.h, uninorm.h.
14075 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14076 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14077 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14079 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14081 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14082 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14084 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14085 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14086 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14087 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14089 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14091 2009-03-08 Bruno Haible <bruno@clisp.org>
14093 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14094 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14095 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14096 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14098 2009-03-07 Bruno Haible <bruno@clisp.org>
14100 Adjust u*_normcmp, u*_normcoll API.
14101 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14102 u16_normcoll, u32_normcoll): Change failure conventions.
14103 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14104 errno and return -1.
14105 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14107 2009-03-07 Bruno Haible <bruno@clisp.org>
14109 Tests for module 'uninorm/u32-normcoll'.
14110 * modules/uninorm/u32-normcoll-tests: New file.
14111 * tests/uninorm/test-u32-normcoll.c: New file.
14113 Tests for module 'uninorm/u16-normcoll'.
14114 * modules/uninorm/u16-normcoll-tests: New file.
14115 * tests/uninorm/test-u16-normcoll.c: New file.
14117 Tests for module 'uninorm/u8-normcoll'.
14118 * modules/uninorm/u8-normcoll-tests: New file.
14119 * tests/uninorm/test-u8-normcoll.c: New file.
14121 2009-03-07 Bruno Haible <bruno@clisp.org>
14123 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14124 tests/uninorm/test-u32-normcmp.c.
14125 * tests/uninorm/test-u32-normcmp.c: Include it.
14126 (test_nonascii): New function, extracted from main. Add some more
14128 (main): Invoke test_ascii and test_nonascii.
14129 * modules/uninorm/u32-normcmp-tests (Files): Add
14130 tests/uninorm/test-u32-normcmp.h.
14131 (Depends-on): Remove uninorm/u32-normcmp.
14133 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14134 tests/uninorm/test-u16-normcmp.c.
14135 * tests/uninorm/test-u16-normcmp.c: Include it.
14136 (test_nonascii): New function, extracted from main. Add some more
14138 (main): Invoke test_ascii and test_nonascii.
14139 * modules/uninorm/u16-normcmp-tests (Files): Add
14140 tests/uninorm/test-u16-normcmp.h.
14141 (Depends-on): Remove uninorm/u16-normcmp.
14143 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14144 tests/uninorm/test-u8-normcmp.c.
14145 * tests/uninorm/test-u8-normcmp.c: Include it.
14146 (test_nonascii): New function, extracted from main. Add some more
14148 (main): Invoke test_ascii and test_nonascii.
14149 * modules/uninorm/u8-normcmp-tests (Files): Add
14150 tests/uninorm/test-u8-normcmp.h.
14151 (Depends-on): Remove uninorm/u8-normcmp.
14153 2009-03-07 Bruno Haible <bruno@clisp.org>
14155 New module 'uninorm/u32-normcoll'.
14156 * lib/uninorm/u32-normcoll.c: New file.
14157 * modules/uninorm/u32-normcoll: New file.
14159 New module 'uninorm/u16-normcoll'.
14160 * lib/uninorm/u16-normcoll.c: New file.
14161 * modules/uninorm/u16-normcoll: New file.
14163 New module 'uninorm/u8-normcoll'.
14164 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14166 * lib/uninorm/u8-normcoll.c: New file.
14167 * lib/uninorm/u-normcoll.h: New file.
14168 * modules/uninorm/u8-normcoll: New file.
14170 New module 'uninorm/u32-normxfrm'.
14171 * lib/uninorm/u32-normxfrm.c: New file.
14172 * modules/uninorm/u32-normxfrm: New file.
14174 New module 'uninorm/u16-normxfrm'.
14175 * lib/uninorm/u16-normxfrm.c: New file.
14176 * modules/uninorm/u16-normxfrm: New file.
14178 New module 'uninorm/u8-normxfrm'.
14179 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14181 * lib/uninorm/u8-normxfrm.c: New file.
14182 * lib/uninorm/u-normxfrm.h: New file.
14183 * modules/uninorm/u8-normxfrm: New file.
14185 2009-03-07 Bruno Haible <bruno@clisp.org>
14187 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14188 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14189 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14191 2009-03-07 Bruno Haible <bruno@clisp.org>
14193 New module 'memxfrm'.
14194 * lib/memxfrm.h: New file.
14195 * lib/memxfrm.c: New file.
14196 * modules/memxfrm: New file.
14198 2009-03-07 Bruno Haible <bruno@clisp.org>
14200 New module 'memcmp2'.
14201 * lib/memcmp2.h: New file.
14202 * lib/memcmp2.c: New file.
14203 * modules/memcmp2: New file.
14205 2009-03-07 Bruno Haible <bruno@clisp.org>
14207 Tests for module 'uninorm/decomposing-form'.
14208 * modules/uninorm/decomposing-form-tests: New file.
14209 * tests/uninorm/test-decomposing-form.c: New file.
14211 New module 'uninorm/decomposing-form'.
14212 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14213 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14214 Add 'decomposing_variant' field.
14215 * lib/uninorm/decomposing-form.c: New file.
14216 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14217 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14218 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14219 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14220 * modules/uninorm/decomposing-form: New file.
14221 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14222 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14224 2009-03-07 Bruno Haible <bruno@clisp.org>
14226 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14229 2009-03-06 Bruno Haible <bruno@clisp.org>
14231 Tests for module 'uninorm/u32-normcmp'.
14232 * tests/uninorm/test-u32-normcmp.c: New file.
14233 * modules/uninorm/u32-normcmp-tests: New file.
14235 Tests for module 'uninorm/u16-normcmp'.
14236 * tests/uninorm/test-u16-normcmp.c: New file.
14237 * modules/uninorm/u16-normcmp-tests: New file.
14239 Tests for module 'uninorm/u8-normcmp'.
14240 * tests/uninorm/test-u8-normcmp.c: New file.
14241 * modules/uninorm/u8-normcmp-tests: New file.
14243 New module 'uninorm/u32-normcmp'.
14244 * lib/uninorm/u32-normcmp.c: New file.
14245 * modules/uninorm/u32-normcmp: New file.
14247 New module 'uninorm/u16-normcmp'.
14248 * lib/uninorm/u16-normcmp.c: New file.
14249 * modules/uninorm/u16-normcmp: New file.
14251 New module 'uninorm/u8-normcmp'.
14252 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14254 * lib/uninorm/u8-normcmp.c: New file.
14255 * lib/uninorm/u-normcmp.h: New file.
14256 * modules/uninorm/u8-normcmp: New file.
14258 2009-03-06 Bruno Haible <bruno@clisp.org>
14260 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14261 Reported by Eric Blake.
14263 2009-03-06 Eric Blake <ebb9@byu.net>
14264 Bruno Haible <bruno@clisp.org>
14266 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14267 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14269 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14270 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14272 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14274 2009-03-06 Eric Blake <ebb9@byu.net>
14276 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14277 to avoid compiler warnings.
14278 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14280 2009-03-05 Bruno Haible <bruno@clisp.org>
14282 * tests/test-ftell.c (main): Disable test beyond end of file on
14284 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14286 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14288 * lib/filevercmp.c: Move hidden files up in ordering.
14289 * tests/test-filevercmp.c: Add tests for hidden files.
14291 2009-03-04 Bruno Haible <bruno@clisp.org>
14293 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14294 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14296 Reported by Simon Josefsson.
14298 2009-03-03 Bruno Haible <bruno@clisp.org>
14300 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14301 Reported by Simon Josefsson.
14303 * doc/ld-version-script.texi: Update node reference.
14305 2009-03-03 Bruno Haible <bruno@clisp.org>
14307 * modules/visibility (License): Change to 'unlimited'.
14308 Suggested by Simon Josefsson.
14310 2009-03-03 Jim Meyering <meyering@redhat.com>
14312 unlinkdir: cannot_unlink_dir may modify process state
14313 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14314 it's neither thread-safe nor appropriate for use in a library.
14316 2009-03-03 Eric Blake <ebb9@byu.net>
14318 test-closein: silence test under Darwin
14319 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14320 care if it dies from EPIPE or EBADF.
14322 2009-03-03 Bruno Haible <bruno@clisp.org>
14324 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14326 * doc/visibility.texi: Fix @node and @section.
14328 2009-03-03 Simon Josefsson <simon@josefsson.org>
14330 * doc/gnulib.texi: Link to sections for ld version script and
14332 * doc/visibility.texi: Add @node and @section.
14333 * modules/ld-version-script: New module.
14334 * m4/ld-version-script.m4: New file.
14335 * doc/ld-version-script.texi: New file.
14337 2009-03-02 David Lutterkort <lutter@redhat.com>
14339 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14340 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14342 2009-03-02 Bruno Haible <bruno@clisp.org>
14344 * doc/visibility.texi: Mention libtool's -export-symbols option.
14346 2009-03-02 Jim Meyering <meyering@redhat.com>
14348 announce-gen: new option: --no-print-checksums
14349 * build-aux/announce-gen (usage): Describe it.
14350 (print_checksums): Print a newline here, not in the [*] footnote.
14353 2009-03-01 Bruno Haible <bruno@clisp.org>
14355 Use socklen_t in the native Windows replacements prototypes.
14356 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14358 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14359 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14360 * modules/getsockopt (Depends-on): Add socklen.
14361 * modules/setsockopt (Depends-on): Add socklen.
14363 2009-03-01 Bruno Haible <bruno@clisp.org>
14365 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14368 2009-03-01 Eric Blake <ebb9@byu.net>
14369 Bruno Haible <bruno@clisp.org>
14371 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14373 * lib/wait-process.c (wait_subprocess): Omit error message about
14374 deadly signal sent to the child of termsigp != NULL.
14376 2009-03-01 Eric Blake <ebb9@byu.net>
14378 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14380 2009-03-01 Bruno Haible <bruno@clisp.org>
14382 Avoid a gcc warning.
14383 * tests/test-sched.c (b): Make global.
14384 Reported by Eric Blake.
14386 2009-01-19 Martin Lambers <marlam@marlam.de>
14388 Provide POSIX semantics for socket timeout options on W32.
14389 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14390 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14391 * modules/setsockopt: Depend on sys_time module for struct timeval.
14392 * modules/getsockopt: Depend on sys_time module for struct timeval.
14394 2009-03-01 Simon Josefsson <simon@josefsson.org>
14396 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14397 __USE_GNU, for consistency with netdb.in.h.
14398 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14400 2009-03-01 Bruno Haible <bruno@clisp.org>
14402 More support for FreeMiNT.
14403 * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
14410 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14412 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14414 Fix unportable awk script in vc-list-files.
14415 * build-aux/vc-list-files: In the replacement awk script, use
14416 substr with a second argument of 1, not zero.
14417 Report by Simon Josefsson.
14419 2009-02-28 Bruno Haible <bruno@clisp.org>
14421 More support for FreeMiNT.
14422 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14424 * lib/fwriting.c (fwriting): Likewise.
14425 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14427 2009-02-28 Bruno Haible <bruno@clisp.org>
14429 * tests/test-freadseek.c (main): Disable test beyond end of file on
14431 * tests/test-ftello.c (main): Likewise.
14432 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14434 2009-02-28 Bruno Haible <bruno@clisp.org>
14436 Add tentative support for FreeMiNT.
14437 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14438 * lib/fpurge.c (fpurge): Likewise.
14439 * lib/freadable.c (freadable): Likewise.
14440 * lib/freading.c (freading): Likewise.
14441 * lib/freadptr.c (freadptr): Likewise.
14442 * lib/freadseek.c (freadptrinc): Likewise.
14443 * lib/fseeko.c (rpl_fseeko): Likewise.
14444 * lib/fseterr.c (fseterr): Likewise.
14445 * lib/fwritable.c (fwritable): Likewise.
14446 * lib/fwriting.c (fwriting): Likewise.
14447 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14449 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14451 2009-02-28 Bruno Haible <bruno@clisp.org>
14453 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14455 Reported by Jim Meyering.
14457 2009-02-28 Bruno Haible <bruno@clisp.org>
14459 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14460 Mention the results of these tests on various platforms.
14461 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14463 * doc/posix-functions/printf.texi: Likewise.
14464 * doc/posix-functions/snprintf.texi: Likewise.
14465 * doc/posix-functions/sprintf.texi: Likewise.
14466 * doc/posix-functions/vfprintf.texi: Likewise.
14467 * doc/posix-functions/vprintf.texi: Likewise.
14468 * doc/posix-functions/vsnprintf.texi: Likewise.
14469 * doc/posix-functions/vsprintf.texi: Likewise.
14470 * doc/glibc-functions/obstack_printf.texi: Likewise.
14471 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14473 2009-02-28 Bruno Haible <bruno@clisp.org>
14475 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14476 Reported by Loïc Minier <lool@dooz.org>.
14478 2009-02-27 Bruno Haible <bruno@clisp.org>
14480 * gnulib-tool (func_import): Make the sed expression used to create the
14481 sed script for updating the .gitignore file POSIX compliant.
14482 Reported by Eric Blake.
14484 2009-02-27 Bruno Haible <bruno@clisp.org>
14486 * gnulib-tool (sed): Don't alias as "sed --posix".
14487 Reported by Eric Blake.
14489 2009-02-27 Bruno Haible <bruno@clisp.org>
14491 Avoid test link errors.
14492 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14493 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14494 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14495 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14496 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14498 2009-02-27 Bruno Haible <bruno@clisp.org>
14500 Avoid spurious "(cached)" in configure output.
14501 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14502 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14503 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14504 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14505 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14506 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14507 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14508 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14509 Reported by Eric Blake.
14511 2009-02-27 Eric Blake <ebb9@byu.net>
14513 printf: fix regression in previous patch
14514 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14516 2009-02-27 Bruno Haible <bruno@clisp.org>
14518 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14520 * lib/stdint.in.h: Likewise.
14521 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14523 2009-02-27 Eric Blake <ebb9@byu.net>
14525 doc: mention more functions added in cygwin 1.7.0
14526 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14528 * doc/posix-functions/open_wmemstream.texi: Likewise.
14529 * doc/posix-functions/wcsnlen.texi: Likewise.
14530 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14531 * doc/posix-functions/wcstod.texi: Likewise.
14532 * doc/posix-functions/wcstof.texi: Likewise.
14533 * doc/posix-functions/wcstoimax.texi: Likewise.
14534 * doc/posix-functions/wcstok.texi: Likewise.
14535 * doc/posix-functions/wcstoumax.texi: Likewise.
14537 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14538 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14539 * doc/posix-functions/fprintf.texi: Update.
14540 * doc/posix-functions/printf.texi: Update.
14541 * doc/posix-functions/snprintf.texi: Update.
14542 * doc/posix-functions/sprintf.texi: Update.
14543 * doc/posix-functions/vfprintf.texi: Update.
14544 * doc/posix-functions/vprintf.texi: Update.
14545 * doc/posix-functions/vsnprintf.texi: Update.
14546 * doc/posix-functions/vsprintf.texi: Update.
14547 * doc/glibc-functions/obstack_printf.texi: Update.
14548 * doc/glibc-functions/obstack_vprintf.texi: Update.
14550 2009-02-26 Eric Blake <ebb9@byu.net>
14552 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14553 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14554 compilation bug by using runtime conversion.
14555 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14556 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14557 * modules/ceill-tests (Files): Use nan.h.
14558 * modules/floorl-tests (Files): Likewise.
14559 * modules/frexpl-tests (Files): Likewise.
14560 * modules/isnanl-tests (Files): Likewise.
14561 * modules/ldexpl-tests (Files): Likewise.
14562 * modules/roundl-tests (Files): Likewise.
14563 * modules/truncl-tests (Files): Likewise.
14564 * tests/test-ceill.c (main): Use a working NaN.
14565 * tests/test-floorl.c (main): Likewise.
14566 * tests/test-frexpl.c (main): Likewise.
14567 * tests/test-isnan.c (test_long_double): Likewise.
14568 * tests/test-isnanl.h (main): Likewise.
14569 * tests/test-ldexpl.h (main): Likewise.
14570 * tests/test-roundl.h (main): Likewise.
14571 * tests/test-truncl.h (main): Likewise.
14572 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14574 2009-02-26 Eric Blake <ebb9@byu.net>
14575 Bruno Haible <bruno@clisp.org>
14577 Work around a *printf bug with %ls on Solaris.
14578 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14579 precision is specified, sprintf stops converting the wide string
14580 argument when the number of bytes that have been produced by this
14581 conversion equals or exceeds the precision.
14582 * doc/posix-functions/fprintf.texi: Update.
14583 * doc/posix-functions/printf.texi: Update.
14584 * doc/posix-functions/snprintf.texi: Update.
14585 * doc/posix-functions/sprintf.texi: Update.
14586 * doc/posix-functions/vfprintf.texi: Update.
14587 * doc/posix-functions/vprintf.texi: Update.
14588 * doc/posix-functions/vsnprintf.texi: Update.
14589 * doc/posix-functions/vsprintf.texi: Update.
14590 * doc/glibc-functions/obstack_printf.texi: Update.
14591 * doc/glibc-functions/obstack_vprintf.texi: Update.
14593 2009-02-26 Eric Blake <ebb9@byu.net>
14595 stdlib: favor compiler check of random.h
14596 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14597 to avoid an ObjC random.h installed by Swarm.
14599 2009-02-26 Bruno Haible <bruno@clisp.org>
14601 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14602 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14603 Reported by Gary V. Vaughan <gary@gnu.org>.
14605 2009-02-26 Bruno Haible <bruno@clisp.org>
14607 Fix *printf behaviour regarding the %ls directive.
14608 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14609 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14610 NEED_PRINTF_DIRECTIVE_LS.
14611 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14612 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14613 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14614 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14615 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14616 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14617 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14618 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14619 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14620 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14621 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14622 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14623 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14624 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14625 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14626 * doc/posix-functions/fprintf.texi: Update.
14627 * doc/posix-functions/printf.texi: Update.
14628 * doc/posix-functions/snprintf.texi: Update.
14629 * doc/posix-functions/sprintf.texi: Update.
14630 * doc/posix-functions/vfprintf.texi: Update.
14631 * doc/posix-functions/vprintf.texi: Update.
14632 * doc/posix-functions/vsnprintf.texi: Update.
14633 * doc/posix-functions/vsprintf.texi: Update.
14634 * doc/glibc-functions/obstack_printf.texi: Update.
14635 * doc/glibc-functions/obstack_vprintf.texi: Update.
14636 Reported by Eric Blake.
14638 2009-02-25 Bruno Haible <bruno@clisp.org>
14640 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14642 Reported by Gary V. Vaughan <gary@gnu.org>.
14644 2009-02-25 Bruno Haible <bruno@clisp.org>
14646 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14647 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14648 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14649 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14650 Reported by Gary V. Vaughan <gary@gnu.org>.
14652 2009-02-25 Bruno Haible <bruno@clisp.org>
14654 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14655 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14656 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14657 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14658 Reported by Gary V. Vaughan <gary@gnu.org>.
14660 2009-02-25 Eric Blake <ebb9@byu.net>
14662 tests: skip fseek/ftell tests if ungetc is broken
14663 * m4/ungetc.m4: New file.
14664 * modules/fseek-tests: Split test, so ungetc dependency is
14665 separate from rest of test.
14666 * modules/fseeko-tests: Likewise.
14667 * modules/ftell-tests: Likewise.
14668 * modules/ftello-tests: Likewise.
14669 * tests/test-fseek.c (main): Isolate ungetc dependency.
14670 * tests/test-fseeko.c (main): Likewise.
14671 * tests/test-ftell.c (main): Likewise.
14672 * tests/test-ftello.c (main): Likewise.
14673 * tests/test-fseek2.sh: New file.
14674 * tests/test-fseeko2.sh: Likewise.
14675 * tests/test-ftell2.sh: Likewise.
14676 * tests/test-ftello2.sh: Likewise.
14678 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
14680 test-getaddrinfo: fix usage of skip return code 77
14681 * tests/test-gettaddrinfo.c: Return skip code 77 only
14682 for first occurance of skip (4x77 is not 77)
14684 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14686 strtod: avoid C99 decl-after-statement
14687 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14689 2009-02-24 Eric Blake <ebb9@byu.net>
14691 strtod: detect HP-UX 11.31 bug
14692 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14693 Reported by Gary V. Vaughan.
14695 2009-02-23 Bruno Haible <bruno@clisp.org>
14697 Fix invalid read past end of memory block.
14698 * lib/vasnprintf.c (DCHAR_SET): Define.
14699 (local_wcslen): Define only when needed.
14700 (local_strnlen, local_wcsnlen): New functions.
14701 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14702 directives that involve a conversion ourselves.
14703 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14704 wcsnlen, mbrtowc, wcrtomb.
14705 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14706 * tests/test-vasprintf-posix.c (test_function): Likewise.
14707 * tests/test-snprintf-posix.h (test_function): Likewise.
14708 * tests/test-sprintf-posix.h (test_function): Likewise.
14709 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14711 2009-02-22 Bruno Haible <bruno@clisp.org>
14713 Implement new clarified decomposition of Hangul syllables.
14714 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14715 of type LTV, return only a pairwise decomposition.
14716 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14718 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14719 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14720 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14722 2009-02-22 Bruno Haible <bruno@clisp.org>
14724 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14725 zero-length results and shrink excess allocated memory.
14726 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14727 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14728 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14729 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14730 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14731 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14732 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14733 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14734 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14735 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14736 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14737 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14739 2009-02-21 Bruno Haible <bruno@clisp.org>
14741 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14742 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14743 spaces after a period. Put a space between a macro name and its
14744 argument list. Trivial rewordings.
14745 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14746 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14747 (main): Return 0 explicitly.
14749 2009-02-21 Bruno Haible <bruno@clisp.org>
14751 Tests for module 'uninorm/filter'.
14752 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14753 * modules/uninorm/filter-tests: New file.
14755 New module 'uninorm/filter'.
14756 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14757 uninorm_filter_flush, uninorm_filter_free): New declarations.
14758 * lib/uninorm/uninorm-filter.c: New file.
14759 * modules/uninorm/filter: New file.
14761 2009-02-21 Bruno Haible <bruno@clisp.org>
14763 Tests for module 'uninorm/nfkc'.
14764 * tests/uninorm/test-nfkc.c: New file.
14765 * tests/uninorm/test-u8-nfkc.c: New file.
14766 * tests/uninorm/test-u16-nfkc.c: New file.
14767 * tests/uninorm/test-u32-nfkc.c: New file.
14768 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14769 * tests/uninorm/test-u32-nfkc-big.c: New file.
14770 * modules/uninorm/nfkc-tests: New file.
14772 New module 'uninorm/nfkc'.
14773 * lib/uninorm/nfkc.c: New file.
14774 * modules/uninorm/nfkc: New file.
14776 Tests for module 'uninorm/nfkd'.
14777 * tests/uninorm/test-nfkd.c: New file.
14778 * tests/uninorm/test-u8-nfkd.c: New file.
14779 * tests/uninorm/test-u16-nfkd.c: New file.
14780 * tests/uninorm/test-u32-nfkd.c: New file.
14781 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14782 * tests/uninorm/test-u32-nfkd-big.c: New file.
14783 * modules/uninorm/nfkd-tests: New file.
14785 New module 'uninorm/nfkd'.
14786 * lib/uninorm/nfkd.c: New file.
14787 * modules/uninorm/nfkd: New file.
14789 Tests for module 'uninorm/nfc'.
14790 * tests/uninorm/test-nfc.c: New file.
14791 * tests/uninorm/test-u8-nfc.c: New file.
14792 * tests/uninorm/test-u16-nfc.c: New file.
14793 * tests/uninorm/test-u32-nfc.c: New file.
14794 * tests/uninorm/test-u32-nfc-big.sh: New file.
14795 * tests/uninorm/test-u32-nfc-big.c: New file.
14796 * modules/uninorm/nfc-tests: New file.
14798 New module 'uninorm/nfc'.
14799 * lib/uninorm/nfc.c: New file.
14800 * modules/uninorm/nfc: New file.
14802 Tests for module 'uninorm/nfd'.
14803 * tests/uninorm/test-nfd.c: New file.
14804 * tests/uninorm/test-u8-nfd.c: New file.
14805 * tests/uninorm/test-u16-nfd.c: New file.
14806 * tests/uninorm/test-u32-nfd.c: New file.
14807 * tests/uninorm/test-u32-nfd-big.sh: New file.
14808 * tests/uninorm/test-u32-nfd-big.c: New file.
14809 * tests/uninorm/test-u32-normalize-big.h: New file.
14810 * tests/uninorm/test-u32-normalize-big.c: New file.
14811 * tests/uninorm/NormalizationTest.txt: New file, created from
14812 Unicode 5.1.0 NormalizationTest.txt.
14813 * modules/uninorm/nfd-tests: New file.
14815 New module 'uninorm/nfd'.
14816 * lib/uninorm/nfd.c: New file.
14817 * modules/uninorm/nfd: New file.
14819 New module 'uninorm/u32-normalize'.
14820 * lib/uninorm/u32-normalize.c: New file.
14821 * modules/uninorm/u32-normalize: New file.
14823 New module 'uninorm/u16-normalize'.
14824 * lib/uninorm/u16-normalize.c: New file.
14825 * modules/uninorm/u16-normalize: New file.
14827 New module 'uninorm/u8-normalize'.
14828 * lib/uninorm/u8-normalize.c: New file.
14829 * lib/uninorm/normalize-internal.h: New file.
14830 * lib/uninorm/u-normalize-internal.h: New file.
14831 * modules/uninorm/u8-normalize: New file.
14833 New module 'uninorm/decompose-internal'.
14834 * lib/uninorm/decompose-internal.c: New file.
14835 * modules/uninorm/decompose-internal: New file.
14837 Tests for module 'uninorm/composition'.
14838 * tests/uninorm/test-composition.c: New file.
14839 * modules/uninorm/composition-tests: New file.
14841 New module 'uninorm/composition'.
14842 * lib/uninorm/composition.c: New file.
14843 * lib/uninorm/composition-table.gperf: New file, generated by
14845 * modules/uninorm/composition: New file.
14847 Tests for module 'uninorm/compat-decomposition'.
14848 * tests/uninorm/test-compat-decomposition.c: New file.
14849 * modules/uninorm/compat-decomposition-tests: New file.
14851 New module 'uninorm/compat-decomposition'.
14852 * lib/uninorm/decompose-internal.h: New file.
14853 * lib/uninorm/compat-decomposition.c: New file.
14854 * modules/uninorm/compat-decomposition: New file.
14856 Tests for module 'uninorm/canonical-decomposition'.
14857 * tests/uninorm/test-canonical-decomposition.c: New file.
14858 * modules/uninorm/canonical-decomposition-tests: New file.
14860 New module 'uninorm/canonical-decomposition'.
14861 * lib/uninorm/canonical-decomposition.c: New file.
14862 * modules/uninorm/canonical-decomposition: New file.
14864 Tests for module 'uninorm/decomposition'.
14865 * tests/uninorm/test-decomposition.c: New file.
14866 * modules/uninorm/decomposition-tests: New file.
14868 New module 'uninorm/decomposition'.
14869 * lib/uninorm/decomposition.c: New file.
14870 * modules/uninorm/decomposition: New file.
14872 New module 'uninorm/decomposition-table'.
14873 * lib/uninorm/decomposition-table.h: New file.
14874 * lib/uninorm/decomposition-table.c: New file.
14875 * lib/uninorm/decomposition-table1.h: New file, generated by
14877 * lib/uninorm/decomposition-table2.h: New file, generated by
14879 * modules/uninorm/decomposition-table: New file.
14881 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14882 (UC_DECOMP_*): New enumeration items.
14883 (get_decomposition): New function.
14884 (struct decomp_table): New type.
14885 (output_decomposition, output_decomposition_tables): New functions.
14886 (unicode_composition_exclusions): New variable.
14887 (fill_composition_exclusions, debug_output_composition_tables): New
14889 (main): Accept one more argument. Invoke fill_composition_exclusions.
14890 Output decomposition and composition tables.
14892 New module 'uninorm/base'.
14893 * lib/uninorm.h: New file.
14894 * lib/unictype.h: Update comment.
14895 * modules/uninorm/base: New file.
14897 2009-02-21 David Lutterkort <lutter@redhat.com>
14899 Tests for module 'safe-alloc'.
14900 * tests/test-safe-alloc.c: New file.
14901 * modules/safe-alloc-tests: New file.
14903 New module 'safe-alloc'.
14904 * lib/safe-alloc.h: New file.
14905 * lib/safe-alloc.c: New file.
14906 * m4/safe-alloc.m4: New file.
14907 * modules/safe-alloc: New file.
14908 * doc/safe-alloc.texi: New file.
14909 * doc/gnulib.texi: Include it.
14910 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14913 2009-02-18 Bruno Haible <bruno@clisp.org>
14915 Fix link error on non-glibc systems.
14916 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14918 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14920 2009-02-18 Jim Meyering <meyering@redhat.com>
14922 fts: avoid used-uninitialized error due to recent change
14923 * lib/fts.c (fts_read): Guard uses of the new member,
14924 parent->fts_n_dirs_remaining, since it's not relevant for
14925 the parent of a directory specified on the command-line.
14927 2009-02-17 James Youngman <jay@gnu.org>
14928 Bruno Haible <bruno@clisp.org>
14930 * m4/include_next.m4: Reformulate comment.
14932 2009-02-16 Jim Meyering <meyering@redhat.com>
14934 fts: add #if guards so that the fts_lgpl module still builds
14935 * lib/fts.c: Guard just-added hash-table-using parts with
14936 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14937 Reported by Simon Josefsson.
14939 2009-02-15 Bruno Haible <bruno@clisp.org>
14941 * modules/array-mergesort-tests: New file.
14942 * tests/test-array-mergesort.c: New file.
14944 New module 'array-mergesort'.
14945 * modules/array-mergesort: New file.
14946 * lib/array-mergesort.h: New file.
14948 2009-02-15 Bruno Haible <bruno@clisp.org>
14950 Fix 2009-02-07 commit.
14951 * lib/gen-uni-tables.c (output_predicate, output_category,
14952 output_combclass, output_bidi_category, output_decimal_digit,
14953 output_digit, output_numeric, output_mirror, output_scripts,
14954 output_ident_category, output_simple_mapping): Fix format directives.
14955 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14957 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14959 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14960 fixes are available from IBM.
14962 2009-02-13 Jim Meyering <meyering@redhat.com>
14964 fts: arrange not to stat non-directories in more cases
14965 This makes GNU find (when it doesn't need to stat each file)
14966 *much* more efficient at traversing reiserfs file systems.
14967 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14968 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14969 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14970 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14971 (leaf_optimization_applies): New function.
14972 (LCO_hash, LCO_compare): New helper functions.
14973 (link_count_optimize_ok): New function.
14974 (fts_stat): Initialize new member (if dir).
14975 (fts_read): Decrement parent's fts_n_dirs_remaining count if
14976 we've just stat'ed a directory. Skip the stat call when possible.
14978 Note this AFS-related exchange:
14979 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14980 and note find's pioctl call in find/fstype.c.
14981 But that is necessary only if you want to enable the
14982 optimization for AFS, and for now, I don't.
14984 fts: move a function definition "up" (no semantic change)
14985 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14986 "up" to precede upcoming use of a related function.
14988 2009-02-11 Jim Meyering <meyering@redhat.com>
14990 fts: correct internal computation of nlinks (optimization-related)
14991 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14992 whether the current entry is a directory, so don't test it.
14994 2009-02-10 Bruno Haible <bruno@clisp.org>
14996 Tests for module 'uniwbrk/ulc-wordbreaks'.
14997 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14998 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14999 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15001 Tests for module 'uniwbrk/u32-wordbreaks'.
15002 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15003 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15005 Tests for module 'uniwbrk/u16-wordbreaks'.
15006 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15007 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15009 Tests for module 'uniwbrk/u8-wordbreaks'.
15010 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15011 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15013 2009-02-10 Bruno Haible <bruno@clisp.org>
15015 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15017 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15018 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15019 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15021 2009-02-10 Simon Josefsson <simon@josefsson.org>
15023 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15024 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15026 2009-02-10 Bruno Haible <bruno@clisp.org>
15028 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15029 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15030 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15031 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15032 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15033 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15035 2009-02-09 Simon Josefsson <simon@josefsson.org>
15037 * lib/sockets.h (gl_fd_to_handle): New function.
15039 * tests/test-sockets.c: Call gl_fd_to_handle.
15041 2009-02-09 Bruno Haible <bruno@clisp.org>
15043 * doc/havelib.texi: Document the conventions on bi-arch systems.
15045 2009-02-08 Bruno Haible <bruno@clisp.org>
15047 Document the AC_LIB_LINKFLAGS macro.
15048 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15049 * doc/gnulib.texi: Include it.
15051 2009-02-08 Bruno Haible <bruno@clisp.org>
15053 Fix wrong order of sections, compared to TOC.
15054 * doc/gnulib.texi: Include relocatable-maint.texi after the
15055 "Regular expressions" node, not before.
15057 2009-02-08 Bruno Haible <bruno@clisp.org>
15059 Tests for module 'unicase/totitle'.
15060 * modules/unicase/totitle-tests: New file.
15062 Tests for module 'unicase/tolower'.
15063 * modules/unicase/tolower-tests: New file.
15065 Tests for module 'unicase/toupper'.
15066 * modules/unicase/toupper-tests: New file.
15067 * tests/unicase/test-mapping-part1.h: New file.
15068 * tests/unicase/test-mapping-part2.h: New file.
15070 New module 'unicase/totitle'.
15071 * modules/unicase/totitle: New file.
15072 * lib/unicase/totitle.c: New file.
15074 New module 'unicase/tolower'.
15075 * modules/unicase/tolower: New file.
15076 * lib/unicase/tolower.c: New file.
15078 New module 'unicase/toupper'.
15079 * modules/unicase/toupper: New file.
15080 * lib/unicase/toupper.c: New file.
15081 * lib/unicase/simple-mapping.h: New file.
15083 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15084 (mapping_table): New structure.
15085 (output_simple_mapping): New function.
15086 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15087 * modules/gen-uni-tables (Description): Update.
15088 * lib/unicase/toupper.h: New file, automatically generated by
15090 * lib/unicase/tolower.h: New file, automatically generated by
15092 * lib/unicase/totitle.h: New file, automatically generated by
15094 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15096 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15098 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15101 New module 'unicase/base'.
15102 * modules/unicase/base: New file.
15103 * lib/unicase.h: New file.
15105 2009-02-08 Bruno Haible <bruno@clisp.org>
15107 New module 'uniwbrk/ulc-wordbreaks'.
15108 * modules/uniwbrk/ulc-wordbreaks: New file.
15109 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15111 New module 'uniwbrk/u32-wordbreaks'.
15112 * modules/uniwbrk/u32-wordbreaks: New file.
15113 * lib/uniwbrk/u32-wordbreaks.c: New file.
15115 New module 'uniwbrk/u16-wordbreaks'.
15116 * modules/uniwbrk/u16-wordbreaks: New file.
15117 * lib/uniwbrk/u16-wordbreaks.c: New file.
15119 New module 'uniwbrk/u8-wordbreaks'.
15120 * modules/uniwbrk/u8-wordbreaks: New file.
15121 * lib/uniwbrk/u8-wordbreaks.c: New file.
15122 * lib/uniwbrk/u-wordbreaks.h: New file.
15124 New module 'uniwbrk/table'.
15125 * modules/uniwbrk/table: New file.
15126 * lib/uniwbrk/wbrktable.h: New file.
15127 * lib/uniwbrk/wbrktable.c: New file.
15129 New module 'uniwbrk/wordbreak-property'.
15130 * modules/uniwbrk/wordbreak-property: New file.
15131 * lib/uniwbrk/wordbreak-property.c: New file.
15133 * lib/gen-uni-tables.c (WBP_*): New enum items.
15134 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15135 (unicode_org_wbp): New variable.
15136 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15138 (wbp_table): New structure.
15139 (output_wbp, output_wbrk_tables): New functions.
15140 (main): Accept additional argument. Invoke fill_org_wbp,
15141 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15142 output_wbrk_tables.
15143 * modules/gen-uni-tables (Description): Update.
15144 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15147 New module 'uniwbrk/base'.
15148 * modules/uniwbrk/base: New file.
15149 * lib/uniwbrk.h: New file.
15151 2009-02-08 Bruno Haible <bruno@clisp.org>
15153 Update to Unicode 5.1.0.
15154 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15156 (is_property_default_ignorable_code_point): Don't include characters
15157 of category Cc or Cs and not-a-characters.
15158 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15159 U+0D79, U+109E, U+109F, U+A60C.
15160 * lib/unictype/bidi_of.h: Regenerated.
15161 * lib/unictype/blocks.h: Regenerated.
15162 * lib/unictype/categ_C.h: Regenerated.
15163 * lib/unictype/categ_Cf.h: Regenerated.
15164 * lib/unictype/categ_Cn.h: Regenerated.
15165 * lib/unictype/categ_L.h: Regenerated.
15166 * lib/unictype/categ_Ll.h: Regenerated.
15167 * lib/unictype/categ_Lm.h: Regenerated.
15168 * lib/unictype/categ_Lo.h: Regenerated.
15169 * lib/unictype/categ_Lu.h: Regenerated.
15170 * lib/unictype/categ_M.h: Regenerated.
15171 * lib/unictype/categ_Mc.h: Regenerated.
15172 * lib/unictype/categ_Me.h: Regenerated.
15173 * lib/unictype/categ_Mn.h: Regenerated.
15174 * lib/unictype/categ_N.h: Regenerated.
15175 * lib/unictype/categ_Nd.h: Regenerated.
15176 * lib/unictype/categ_Nl.h: Regenerated.
15177 * lib/unictype/categ_No.h: Regenerated.
15178 * lib/unictype/categ_P.h: Regenerated.
15179 * lib/unictype/categ_Pd.h: Regenerated.
15180 * lib/unictype/categ_Pe.h: Regenerated.
15181 * lib/unictype/categ_Pf.h: Regenerated.
15182 * lib/unictype/categ_Pi.h: Regenerated.
15183 * lib/unictype/categ_Po.h: Regenerated.
15184 * lib/unictype/categ_Ps.h: Regenerated.
15185 * lib/unictype/categ_S.h: Regenerated.
15186 * lib/unictype/categ_Sk.h: Regenerated.
15187 * lib/unictype/categ_Sm.h: Regenerated.
15188 * lib/unictype/categ_So.h: Regenerated.
15189 * lib/unictype/categ_of.h: Regenerated.
15190 * lib/unictype/combining.h: Regenerated.
15191 * lib/unictype/ctype_alnum.h: Regenerated.
15192 * lib/unictype/ctype_alpha.h: Regenerated.
15193 * lib/unictype/ctype_graph.h: Regenerated.
15194 * lib/unictype/ctype_lower.h: Regenerated.
15195 * lib/unictype/ctype_print.h: Regenerated.
15196 * lib/unictype/ctype_punct.h: Regenerated.
15197 * lib/unictype/ctype_upper.h: Regenerated.
15198 * lib/unictype/decdigit.h: Regenerated.
15199 * lib/unictype/digit.h: Regenerated.
15200 * lib/unictype/mirror.h: Regenerated.
15201 * lib/unictype/numeric.h: Regenerated.
15202 * lib/unictype/pr_alphabetic.h: Regenerated.
15203 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15204 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15205 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15206 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15207 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15208 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15209 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15210 * lib/unictype/pr_combining.h: Regenerated.
15211 * lib/unictype/pr_dash.h: Regenerated.
15212 * lib/unictype/pr_decimal_digit.h: Regenerated.
15213 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15214 * lib/unictype/pr_deprecated.h: Regenerated.
15215 * lib/unictype/pr_diacritic.h: Regenerated.
15216 * lib/unictype/pr_extender.h: Regenerated.
15217 * lib/unictype/pr_format_control.h: Regenerated.
15218 * lib/unictype/pr_grapheme_base.h: Regenerated.
15219 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15220 * lib/unictype/pr_grapheme_link.h: Regenerated.
15221 * lib/unictype/pr_id_continue.h: Regenerated.
15222 * lib/unictype/pr_id_start.h: Regenerated.
15223 * lib/unictype/pr_ideographic.h: Regenerated.
15224 * lib/unictype/pr_ignorable_control.h: Regenerated.
15225 * lib/unictype/pr_lowercase.h: Regenerated.
15226 * lib/unictype/pr_math.h: Regenerated.
15227 * lib/unictype/pr_numeric.h: Regenerated.
15228 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15229 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15230 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15231 * lib/unictype/pr_other_id_continue.h: Regenerated.
15232 * lib/unictype/pr_other_lowercase.h: Regenerated.
15233 * lib/unictype/pr_other_math.h: Regenerated.
15234 * lib/unictype/pr_punctuation.h: Regenerated.
15235 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15236 * lib/unictype/pr_soft_dotted.h: Regenerated.
15237 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15238 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15239 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15240 * lib/unictype/pr_uppercase.h: Regenerated.
15241 * lib/unictype/pr_xid_continue.h: Regenerated.
15242 * lib/unictype/pr_xid_start.h: Regenerated.
15243 * lib/unictype/pr_zero_width.h: Regenerated.
15244 * lib/unictype/scripts.h: Regenerated.
15245 * lib/unictype/scripts_byname.gperf: Regenerated.
15246 * lib/unictype/sy_java_ident.h: Regenerated.
15247 * lib/unilbrk/lbrkprop1.h: Regenerated.
15248 * lib/unilbrk/lbrkprop2.h: Regenerated.
15249 * tests/unictype/test-categ_C.c: Regenerated.
15250 * tests/unictype/test-categ_Cf.c: Regenerated.
15251 * tests/unictype/test-categ_Cn.c: Regenerated.
15252 * tests/unictype/test-categ_L.c: Regenerated.
15253 * tests/unictype/test-categ_Ll.c: Regenerated.
15254 * tests/unictype/test-categ_Lm.c: Regenerated.
15255 * tests/unictype/test-categ_Lo.c: Regenerated.
15256 * tests/unictype/test-categ_Lu.c: Regenerated.
15257 * tests/unictype/test-categ_M.c: Regenerated.
15258 * tests/unictype/test-categ_Mc.c: Regenerated.
15259 * tests/unictype/test-categ_Me.c: Regenerated.
15260 * tests/unictype/test-categ_Mn.c: Regenerated.
15261 * tests/unictype/test-categ_N.c: Regenerated.
15262 * tests/unictype/test-categ_Nd.c: Regenerated.
15263 * tests/unictype/test-categ_Nl.c: Regenerated.
15264 * tests/unictype/test-categ_No.c: Regenerated.
15265 * tests/unictype/test-categ_P.c: Regenerated.
15266 * tests/unictype/test-categ_Pd.c: Regenerated.
15267 * tests/unictype/test-categ_Pe.c: Regenerated.
15268 * tests/unictype/test-categ_Pf.c: Regenerated.
15269 * tests/unictype/test-categ_Pi.c: Regenerated.
15270 * tests/unictype/test-categ_Po.c: Regenerated.
15271 * tests/unictype/test-categ_Ps.c: Regenerated.
15272 * tests/unictype/test-categ_S.c: Regenerated.
15273 * tests/unictype/test-categ_Sk.c: Regenerated.
15274 * tests/unictype/test-categ_Sm.c: Regenerated.
15275 * tests/unictype/test-categ_So.c: Regenerated.
15276 * tests/unictype/test-ctype_alnum.c: Regenerated.
15277 * tests/unictype/test-ctype_alpha.c: Regenerated.
15278 * tests/unictype/test-ctype_graph.c: Regenerated.
15279 * tests/unictype/test-ctype_lower.c: Regenerated.
15280 * tests/unictype/test-ctype_print.c: Regenerated.
15281 * tests/unictype/test-ctype_punct.c: Regenerated.
15282 * tests/unictype/test-ctype_upper.c: Regenerated.
15283 * tests/unictype/test-decdigit.h: Regenerated.
15284 * tests/unictype/test-digit.h: Regenerated.
15285 * tests/unictype/test-numeric.h: Regenerated.
15286 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15287 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15288 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15289 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15290 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15291 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15292 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15293 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15294 * tests/unictype/test-pr_combining.c: Regenerated.
15295 * tests/unictype/test-pr_dash.c: Regenerated.
15296 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15297 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15298 * tests/unictype/test-pr_deprecated.c: Regenerated.
15299 * tests/unictype/test-pr_diacritic.c: Regenerated.
15300 * tests/unictype/test-pr_extender.c: Regenerated.
15301 * tests/unictype/test-pr_format_control.c: Regenerated.
15302 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15303 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15304 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15305 * tests/unictype/test-pr_id_continue.c: Regenerated.
15306 * tests/unictype/test-pr_id_start.c: Regenerated.
15307 * tests/unictype/test-pr_ideographic.c: Regenerated.
15308 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15309 * tests/unictype/test-pr_lowercase.c: Regenerated.
15310 * tests/unictype/test-pr_math.c: Regenerated.
15311 * tests/unictype/test-pr_numeric.c: Regenerated.
15312 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15313 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15315 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15316 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15317 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15318 * tests/unictype/test-pr_other_math.c: Regenerated.
15319 * tests/unictype/test-pr_punctuation.c: Regenerated.
15320 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15321 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15322 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15323 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15324 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15325 * tests/unictype/test-pr_uppercase.c: Regenerated.
15326 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15327 * tests/unictype/test-pr_xid_start.c: Regenerated.
15328 * tests/unictype/test-pr_zero_width.c: Regenerated.
15330 Update to Unicode 5.1.0.
15331 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15332 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15333 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15334 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15335 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15336 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15337 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15338 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15339 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15340 (nonspacing_table_ind): Update.
15341 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15343 Update to Unicode 5.1.0.
15344 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15346 * lib/uniname/uniname.c (unicode_character_name,
15347 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15348 * lib/uniname/uninames.h: Regenerated.
15349 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15351 2009-02-07 Bruno Haible <bruno@clisp.org>
15353 Merge gen-ctype and gen-lbrk into a single program.
15354 * lib/gen-uni-tables.c: New file, incorporating
15355 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15356 Add directory prefixes to the names of the generated files.
15357 * lib/unictype/gen-ctype.c: Remove file.
15358 * lib/unilbrk/gen-lbrk.c: Remove file.
15359 * modules/gen-uni-tables: New file.
15360 * modules/unictype/gen-ctype: Remove file.
15361 * modules/unilbrk/gen-lbrk: Remove file.
15363 2009-02-07 Bruno Haible <bruno@clisp.org>
15365 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15367 New module 'unistr/u32-strcoll'.
15368 * modules/unistr/u32-strcoll: New file.
15369 * lib/unistr/u32-strcoll.c: New file.
15371 New module 'unistr/u16-strcoll'.
15372 * modules/unistr/u16-strcoll: New file.
15373 * lib/unistr/u16-strcoll.c: New file.
15375 New module 'unistr/u8-strcoll'.
15376 * modules/unistr/u8-strcoll: New file.
15377 * lib/unistr/u8-strcoll.c: New file.
15378 * lib/unistr/u-strcoll.h: New file.
15380 2009-02-07 Bruno Haible <bruno@clisp.org>
15382 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15383 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15384 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15385 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15386 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15387 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15389 2009-02-07 Bruno Haible <bruno@clisp.org>
15392 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15393 output_combclass, output_bidi_category, output_decimal_digit,
15394 output_digit, output_numeric, output_mirror, output_scripts,
15395 output_ident_category): Use proper width specifier in format strings.
15397 2009-02-07 Bruno Haible <bruno@clisp.org>
15399 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15402 2009-02-07 Jim Meyering <meyering@redhat.com>
15404 regex: avoid compilation failure with upcoming gcc-4.4
15405 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15406 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15407 "... error: integer overflow in preprocessor expression".
15409 2009-02-05 Ben Pfaff <blp@gnu.org>
15411 Fix link errors on Windows when close module is used.
15412 * modules/close: Add $(LIB_CLOSE) to Link section.
15413 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15414 $(LIB_CLOSE) on Windows.
15416 2009-02-05 Jim Meyering <meyering@redhat.com>
15418 still avoid unused-parameter warnings, but do it cleanly
15419 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15420 (get_fs_usage): Cast to void instead.
15421 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15422 (dev_from_mount_options, read_file_system_list): Cast to void.
15423 Prompted by Bruno Haible.
15425 2009-02-04 Jim Meyering <meyering@redhat.com>
15427 fsusage.c: correct copyright year
15428 * lib/fsusage.c: Reflect year in which the change is pushed into
15430 avoid misc. warnings
15431 * lib/fsusage.c (UNUSED_PARAM): Define.
15432 (get_fs_usage): Mark parameter "disk" as unused.
15433 * lib/getugroups.c (getgrent): Use "void" in prototype.
15434 * lib/mountlist.c: Mark unused parameters.
15435 (read_file_system_list): Declare a local with "const".
15436 * lib/nanosleep.c (getnow): Declare static.
15437 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15439 dirfd: set errno upon failure
15440 * lib/dirfd.c: Include <errno.h>.
15441 Set errno to ENOTSUP when returning -1.
15442 * modules/dirfd (Depends-on): Add errno.
15443 Suggested by John Kodis <kodis@comcast.net>.
15445 2009-02-01 Bruno Haible <bruno@clisp.org>
15447 Don't assume sizeof (long) >= sizeof (void *).
15448 * lib/memcmp.c: Include stdint.h.
15449 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15450 srcp2 to 'const byte *'.
15451 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15452 types to uintptr_t.
15453 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15454 * modules/memcmp (Depends-on): Add stdint.
15455 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15457 2009-01-30 Eric Blake <ebb9@byu.net>
15459 fix more require-before-expand issues
15460 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15461 expand, AC_PROG_AWK.
15462 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15464 2009-01-28 Eric Blake <ebb9@byu.net>
15466 version-etc: use consistent URL formatting
15467 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15468 Improve formatting. Use fputs for string without %.
15470 2009-01-28 Jim Meyering <meyering@redhat.com>
15472 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15473 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15474 "underquoted definition of NAME" from autoconf-2.59.
15476 2009-01-28 Bruno Haible <bruno@clisp.org>
15478 * doc/gnulib.texi: Add "Obsolete modules" to index.
15480 2009-01-28 Jim Meyering <meyering@redhat.com>
15482 useless-if-before-free: recognize more variants
15483 * build-aux/useless-if-before-free: Also recognize e.g.,
15484 if (NULL != p) free (p);
15486 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15488 test-getaddrinfo: skip (don't fail) this test when there's no network
15489 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15490 on the presumption that it means you lack network access.
15492 2009-01-26 Jim Meyering <meyering@redhat.com>
15494 fflush: avoid warnings on modern systems
15495 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15496 pos and result, into scopes where they're used.
15498 2009-01-26 Eric Blake <ebb9@byu.net>
15500 Silence warning reintroduced by recent extensions patch.
15501 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15502 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15505 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15506 * m4/00gnulib.m4: New file.
15507 * gnulib-tool (func_get_filelist): Always use it.
15508 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15509 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15511 2009-01-25 Bruno Haible <bruno@clisp.org>
15513 Make test-quotearg work on MacOS X and AIX.
15514 * tests/test-quotearg.sh: New file.
15515 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15516 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15517 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15518 include <libintl.h>.
15519 (fake_locale): Remove variable.
15520 (gettext, dgettext, dcgettext): Remove functions.
15521 (main): Instead of setting a fake locale, set a real locale. Call
15522 textdomain and bindtextdomain.
15523 * modules/quotearg-tests (Files): Add the new files.
15524 (Depends-on): Add gettext, setenv, unsetenv.
15525 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15526 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15527 Augment TESTS_ENVIRONMENT.
15529 2009-01-25 Bruno Haible <bruno@clisp.org>
15531 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15532 fr_FR.ISO8859-1 locale on MacOS X.
15533 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15534 ja_JP.eucJP locale on MacOS X.
15535 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15536 zh_CN.GB18030 locale on MacOS X.
15538 2009-01-25 Bruno Haible <bruno@clisp.org>
15540 Avoid link errors on MacOS X 10.3.
15541 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15542 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15544 2009-01-25 Bruno Haible <bruno@clisp.org>
15546 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15547 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15548 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15549 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15550 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15551 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15552 posix_spawnattr_init, posix_spawnattr_setsigmask,
15553 posix_spawnattr_setflags, posix_spawnattr_destroy.
15555 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15556 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15557 * modules/execute (Files): Remove m4/posix_spawn.m4.
15558 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15559 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15560 posix_spawnattr_init, posix_spawnattr_setsigmask,
15561 posix_spawnattr_setflags, posix_spawnattr_destroy.
15563 2009-01-25 Bruno Haible <bruno@clisp.org>
15565 * lib/glthread/threadlib.c: Include <stdlib.h>.
15567 2009-01-25 Bruno Haible <bruno@clisp.org>
15569 * lib/glthread/threadlib.c (dummy): New declaration.
15571 2009-01-25 Bruno Haible <bruno@clisp.org>
15573 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15574 multibyte characters also for the GB18030 encoding. Don't crash when
15575 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15577 2009-01-25 Bruno Haible <bruno@clisp.org>
15579 Avoid redefining 'struct random_data' on OSF/1 5.1.
15580 * lib/stdlib.in.h: Include <random.h> if it exists.
15581 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15582 HAVE_RANDOM_H. Include <random.h> when testing whether
15583 'struct random_data' exists.
15584 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15586 2009-01-25 Bruno Haible <bruno@clisp.org>
15588 Don't install charset.alias on MacOS X >= 10.3.
15589 * lib/localcharset.c (DARWIN7): New macro.
15590 (get_charset_aliases): Hardcode the result for Darwin7.
15591 * modules/localcharset (install-exec-local): Don't install
15592 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15594 2009-01-25 Bruno Haible <bruno@clisp.org>
15596 Don't install charset.alias on mingw and Cygwin.
15597 * modules/localcharset (install-exec-local): Don't install
15598 charset.alias on mingw and Cygwin, if the file does not yet exist.
15599 The result for these platforms is hardcoded in localcharset.c.
15601 2009-01-25 Bruno Haible <bruno@clisp.org>
15603 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15604 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15605 before requiring AC_USE_SYSTEM_EXTENSIONS.
15607 2009-01-25 Jim Meyering <meyering@redhat.com>
15609 c-strtod: avoid warnings
15610 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15611 "assignment discards qualifiers from pointer target type" warnings.
15613 2009-01-24 Bruno Haible <bruno@clisp.org>
15615 Add support for non-UTF-8 locales on MacOS X.
15616 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15617 canonical encodings. For Darwin 7 and newer, don't map traditional
15618 encodings to UTF-8.
15619 Reported by Vincent Lefevre <vincent@vinc17.org>
15620 at <http://savannah.gnu.org/bugs/?25235>.
15622 2009-01-24 Bruno Haible <bruno@clisp.org>
15624 * doc/gnulib.texi (Obsolete modules): New section.
15625 Reported by Mike Frysinger <vapier@gentoo.org>.
15627 2009-01-24 Bruno Haible <bruno@clisp.org>
15629 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15632 2009-01-24 Bruno Haible <bruno@clisp.org>
15634 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15635 Reported by Eric Blake.
15637 2009-01-24 Bruno Haible <bruno@clisp.org>
15639 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15640 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15641 Reported by Gary V. Vaughan <gary@gnu.org>.
15643 2009-01-24 Bruno Haible <bruno@clisp.org>
15645 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15647 2009-01-23 Bruno Haible <bruno@clisp.org>
15649 Make c-strtod, c-strtold usable in libraries.
15650 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15651 (C_STRTOD): Call strdup instead of xstrdup.
15652 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15653 * modules/c-strtold (Depends-on): Likewise.
15654 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15655 * NEWS: Mention the change.
15656 Reported by Michael Gold <mgold@ncf.ca>.
15658 2009-01-23 Jim Meyering <meyering@redhat.com>
15660 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15661 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15662 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15664 2009-01-23 Simon Josefsson <simon@josefsson.org>
15666 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15668 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15669 * modules/version-etc (Description): Update.
15671 2009-01-22 Bruno Haible <bruno@clisp.org>
15673 Cache the C locale object.
15674 * lib/c-strtod.c (c_locale_cache): New variable.
15675 (c_locale): New function.
15676 (C_STRTOD): Use it, and don't call freelocale.
15677 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15678 Suggested by Paolo Bonzini.
15680 2009-01-21 Bruno Haible <bruno@clisp.org>
15682 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15683 conditions other than overflow.
15685 2009-01-21 Bruno Haible <bruno@clisp.org>
15687 * lib/c-strtod.c: Include errno.h.
15688 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15689 value from STRTOD_L and STRTOD.
15691 2009-01-21 Bruno Haible <bruno@clisp.org>
15692 and Jim Meyering <meyering@redhat.com>
15694 nanosleep: skip configure test (fail it) for apple universal builds
15695 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15696 universal builds, assume that nanosleep does not work.
15697 * modules/nanosleep (Depends-on): Add multiarch.
15699 mktime: skip configure test (fail it) for apple universal builds
15700 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15701 universal builds, assume that mktime does not work.
15702 * modules/mktime (Depends-on): Add multiarch.
15704 2009-01-21 Eric Blake <ebb9@byu.net>
15706 multiarch: avoid expand-before-require warning
15707 * modules/multiarch (configure.ac): Require, rather than expand,
15709 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15710 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15711 enforce that all clients require it. Partial reversion of
15714 error: avoid expand-before-require warning
15715 * modules/errno (configure.ac): Require, rather than expand,
15717 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15718 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15719 enforce that all clients require it.
15721 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15722 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15723 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15724 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15726 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15729 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15731 regex: do not depend on obsolete modules.
15732 * modules/regex: Remove memcmp and memmove.
15734 2009-01-20 Bruno Haible <bruno@clisp.org>
15736 Make the 'link' module link on Windows NT 4.
15737 * lib/link.c (_WIN32_WINNT): Don't define.
15738 (CreateHardLinkFuncType): New type.
15739 (CreateHardLinkFunc, initialized): New variables.
15740 (initialize): New function.
15741 (link): Invoke CreateHardLink indirectly through the function pointer.
15743 2009-01-20 Bruno Haible <bruno@clisp.org>
15745 Fix compilation failure on mingw.
15746 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15748 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15750 * doc/c-strtod.texi: Mention a couple of restrictions.
15752 2009-01-20 Jim Meyering <meyering@redhat.com>
15754 gettimeofday: move more declarations out of functions
15755 * lib/gettimeofday.c: Move extern declarations of tzset and
15756 gmtime out of containing functions. Prompted by Bruno Haible.
15758 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15760 regex: do not depend on obsolete modules.
15761 * modules/regex: Remove memcmp and memmove.
15763 2009-01-19 Bruno Haible <bruno@clisp.org>
15765 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15766 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15767 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15768 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15769 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15771 2009-01-19 Bruno Haible <bruno@clisp.org>
15773 * tests/test-link.c: Include <errno.h>.
15774 (main): Exit with code 77 when a hard link cannot be created due to
15776 * tests/test-link.sh: Skip test when a hard link cannot be created due
15777 to the file system.
15778 Suggested by Eric Blake.
15780 2009-01-19 Martin Lambers <marlam@marlam.de>
15782 * modules/link-tests: New file.
15783 * tests/test-link.sh: New file.
15784 * tests/test-link.c: New file.
15786 2009-01-19 Eric Blake <ebb9@byu.net>
15788 doc: mention another function added in cygwin 1.7.0
15789 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15790 Another new function in cygwin 1.7.
15792 2009-01-19 Bruno Haible <bruno@clisp.org>
15794 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15795 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15796 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15797 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15798 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15799 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15800 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15801 * m4/md4.m4 (gl_MD4): Likewise.
15802 * m4/md5.m4 (gl_MD5): Likewise.
15803 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15804 * m4/sha1.m4 (gl_SHA1): Likewise.
15805 * m4/sha256.m4 (gl_SHA256): Likewise.
15806 * m4/sha512.m4 (gl_SHA512): Likewise.
15808 2009-01-19 Bruno Haible <bruno@clisp.org>
15810 * modules/uniname/uniname-tests (Depends-on): Add progname.
15811 * tests/uniname/test-uninames.c: Include progname.h.
15812 (main): Call set_program_name.
15814 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15815 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15816 (main): Call set_program_name.
15818 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15819 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15820 (main): Call set_program_name.
15822 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15823 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15824 (main): Call set_program_name.
15826 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15827 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15828 (main): Call set_program_name.
15830 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15831 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15832 (main): Call set_program_name.
15834 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15835 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15836 (main): Call set_program_name.
15838 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15839 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15840 (main): Call set_program_name.
15842 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15843 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15844 (main): Call set_program_name.
15846 2009-01-19 Eric Blake <ebb9@byu.net>
15848 test-unistd: test previous patch
15849 * tests/test-unistd.c: Test *_FILENO macros.
15851 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15852 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15853 Guarantee a definition.
15854 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15855 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15856 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15857 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15858 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15860 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15861 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15862 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15864 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15865 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15866 (STDERR_FILENO): Likewise.
15867 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15868 (STDERR_FILENO): Likewise.
15869 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15870 (STDERR_FILENO): Likewise.
15871 Reported by Elbert Pol.
15873 2009-01-19 Eric Blake <ebb9@byu.net>
15875 doc: mention more functions added in cygwin 1.7.0
15876 * doc/posix-functions/abort.texi (abort): Update wording related
15878 * doc/posix-functions/daylight.texi (daylight): Likewise.
15879 * doc/posix-functions/optarg.texi (optarg): Likewise.
15880 * doc/posix-functions/optarg.texi (opterr): Likewise.
15881 * doc/posix-functions/optarg.texi (optind): Likewise.
15882 * doc/posix-functions/optarg.texi (optopt): Likewise.
15883 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15884 worked in 1.5.x, and was withdrawn in 1.7.
15885 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15886 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15888 * doc/posix-functions/perror.texi (perror): Likewise.
15889 * doc/posix-functions/printf.texi (printf): Likewise.
15890 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15891 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15892 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15893 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15894 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15895 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15896 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15898 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15900 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15902 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15903 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15905 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15906 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15907 * doc/posix-functions/confstr.texi (confstr): Likewise.
15908 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15909 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15910 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15911 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15912 * doc/posix-functions/fputws.texi (fputws): Likewise.
15913 * doc/posix-functions/fwide.texi (fwide): Likewise.
15914 * doc/posix-functions/getwc.texi (getwc): Likewise.
15915 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15916 * doc/posix-functions/putwc.texi (putwc): Likewise.
15917 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15918 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15919 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15920 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15921 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15922 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15923 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15924 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15925 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15926 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15927 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15929 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15931 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15932 * lib/ioctl.c: Include <sys/ioctl.h>.
15934 2009-01-19 Simon Josefsson <simon@josefsson.org>
15936 * modules/getdate-tests (Depends-on): Add progname.
15937 * tests/test-getdate.c: Use progname module, to avoid link errors
15938 on non-glibc systems.
15940 2009-01-18 Simon Josefsson <simon@josefsson.org>
15942 * modules/filenamecat-tests (Depends-on): Add progname.
15943 * modules/fstrcmp-tests (Depends-on): Likewise.
15945 * tests/test-filenamecat.c: Use progname module, to avoid link
15946 errors on non-glibc systems.
15947 * tests/test-fstrcmp.c: Likewise.
15949 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15951 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15952 * lib/gettimeofday.c: Move extern declaration out of function.
15954 2009-01-18 Bruno Haible <bruno@clisp.org>
15956 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15957 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15958 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15960 2009-01-18 Bruno Haible <bruno@clisp.org>
15962 * lib/strftime.c (MEMPCPY): Remove unused macro.
15963 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15965 2009-01-18 Martin Lambers <marlam@marlam.de>
15968 * lib/unistd.in.h (link): New declaration.
15969 * lib/link.c: New file.
15970 * m4/link.m4: New file.
15971 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15973 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15974 * modules/link: New file.
15975 * doc/posix-functions/link.texi: Mention the new module.
15977 2009-01-18 Bruno Haible <bruno@clisp.org>
15979 * tests/test-avltree_list.c (main): Call set_program_name.
15980 * tests/test-avltree_oset.c (main): Likewise.
15981 * tests/test-obstack-printf.c: Include progname.h.
15982 (main): Call set_program_name.
15983 * tests/test-quotearg.c: Include progname.h.
15984 (main): Call set_program_name.
15985 * tests/test-xmemdup0.c: Include progname.h.
15986 (main): Call set_program_name.
15988 2009-01-18 Bruno Haible <bruno@clisp.org>
15990 New module 'alphasort'.
15991 * lib/dirent.in.h (alphasort): New declaration.
15992 * lib/alphasort.c: New file, from glibc with modifications.
15993 * m4/alphasort.m4: New file.
15994 * modules/alphasort: New file.
15995 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15997 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15999 * doc/posix-functions/alphasort.texi: Mention the new module and the
16000 portability problems.
16002 2009-01-18 Bruno Haible <bruno@clisp.org>
16004 New module 'scandir'.
16005 * lib/dirent.in.h (scandir): New declaration.
16006 * lib/scandir.c: New file, from glibc with modifications.
16007 * m4/scandir.m4: New file.
16008 * modules/scandir: New file.
16009 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16011 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16013 * doc/posix-functions/scandir.texi: Mention the new module and the
16014 portability problems.
16016 2009-01-17 Bruno Haible <bruno@clisp.org>
16018 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16019 Update documentation.
16020 (func_remove_suffix): Escape all dots in the suffix. Update
16022 (func_filter_filelist): Update documentation.
16023 Reported by Ralf Wildenhues.
16025 2009-01-17 Bruno Haible <bruno@clisp.org>
16027 * modules/dprintf-posix-tests: New file.
16028 * tests/test-dprintf-posix.sh: New file.
16029 * tests/test-dprintf-posix.c: New file.
16031 New modules 'dprintf', 'dprintf-posix'.
16032 * lib/stdio.in.h (dprintf): New declaration.
16033 * lib/dprintf.c: New file.
16034 * m4/dprintf.m4: New file.
16035 * m4/dprintf-posix.m4: New file.
16036 * modules/dprintf: New file.
16037 * modules/dprintf-posix: New file.
16038 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16039 HAVE_DPRINTF, REPLACE_DPRINTF.
16040 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16041 HAVE_DPRINTF, REPLACE_DPRINTF.
16042 * doc/posix-functions/dprintf.texi: Mention the new modules.
16044 2009-01-17 Bruno Haible <bruno@clisp.org>
16046 * modules/vdprintf-posix-tests: New file.
16047 * tests/test-vdprintf-posix.sh: New file.
16048 * tests/test-vdprintf-posix.c: New file.
16050 New modules 'vdprintf', 'vdprintf-posix'.
16051 * lib/stdio.in.h (vdprintf): New declaration.
16052 * lib/vdprintf.c: New file.
16053 * m4/vdprintf.m4: New file.
16054 * m4/vdprintf-posix.m4: New file.
16055 * modules/vdprintf: New file.
16056 * modules/vdprintf-posix: New file.
16057 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16058 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16059 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16060 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16061 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16063 2009-01-17 Bruno Haible <bruno@clisp.org>
16065 Fix replacement of fopen on mingw.
16066 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16069 2009-01-17 Bruno Haible <bruno@clisp.org>
16071 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16072 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16074 2009-01-17 Bruno Haible <bruno@clisp.org>
16076 Avoid test-fflush2.sh failure on mingw.
16077 * tests/test-fflush2.c: Include binary-io.h.
16078 (main): Put standard input into binary mode.
16079 * modules/fflush-tests (Depends-on): Add binary-io.
16081 2009-01-17 Bruno Haible <bruno@clisp.org>
16083 * lib/wchar.in.h: In another particular situation, include only the
16084 system's <wchar.h> file.
16085 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16086 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16087 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16089 2009-01-17 Bruno Haible <bruno@clisp.org>
16091 Support for stripping executables in --enable-relocatable.
16092 * build-aux/install-reloc: Expect one more argument, or an environment
16093 variable RELOC_STRIP_PROG. If set, strip the destination program and
16095 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16097 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16098 to set RELOCATABLE_STRIP.
16099 * NEWS: Mention the new Makefile requirement.
16101 2009-01-17 Bruno Haible <bruno@clisp.org>
16103 * build-aux/install-reloc: Remove debugging information left over by
16104 C compiler on MacOS X.
16106 2009-01-17 Bruno Haible <bruno@clisp.org>
16108 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16109 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16110 _NSGetExecutablePath.
16112 2009-01-16 Jim Meyering <meyering@redhat.com>
16114 strerror: avoid warnings about discarding "const"
16115 * lib/strerror.c (rpl_strerror): Instead of returning a const
16116 string from each and every "case", use a variable, and add a single
16117 cast after the switch.
16119 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16121 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16123 2009-01-16 Bruno Haible <bruno@clisp.org>
16125 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16126 array initializer syntax that also works in C++ mode.
16127 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16129 2009-01-16 Jim Meyering <meyering@redhat.com>
16131 poll: suppress a warning
16132 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16133 to ignore "...unsigned expression < 0 is always false" warnings.
16135 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16137 poll: remove declarations of unused variables
16138 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16139 sockbuf and optlen.
16141 2009-01-15 Bruno Haible <bruno@clisp.org>
16143 Make fflush-after-ungetc POSIX compliant on BSD systems.
16144 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16145 (clear_ungetc_buffer): Implement also for other systems.
16146 (rpl_fflush): On glibc systems, invoke
16147 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16148 clear_ungetc_buffer after fetching the stream's position, not before.
16150 2009-01-15 Bruno Haible <bruno@clisp.org>
16152 Make fflush-after-ungetc POSIX compliant on glibc systems.
16153 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16155 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16156 (rpl_fflush): On glibc systems, simply call the system's fflush
16157 function after clearing the ungetc buffer.
16158 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16159 Instead, lseek only to the end of file, then use the system's fseeko
16160 for the rest. On glibc systems, reset the EOF indicator bit.
16162 2009-01-15 Jim Meyering <meyering@redhat.com>
16164 openmp.m4: revert quote-adding change, for portability to older autoconf
16165 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16166 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16167 Simon Josefsson noticed the problem when using autoconf-2.61.
16169 2009-01-15 Bruno Haible <bruno@clisp.org>
16171 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16172 * tests/test-fflush2.c (ASSERT): Always fail.
16173 (main): Add two tests for fflush() after ungetc(), taking into account
16174 the Austin Group's clarification.
16175 Suggested by Eric Blake.
16177 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16179 mktime.m4: remove K&R-style function prototypes
16180 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16181 for the Sun C++ compiler.
16183 2009-01-14 Bruno Haible <bruno@clisp.org>
16185 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16186 while including <wchar.h>.
16187 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16188 the system's <wchar.h> file.
16189 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16191 2009-01-14 Bruno Haible <bruno@clisp.org>
16193 * m4/csharp.m4: Don't mention gettext on the serial number line.
16194 * m4/csharpexec.m4: Likewise.
16195 * m4/eaccess.m4: Likewise.
16196 * m4/javaexec.m4: Likewise.
16197 * m4/sig_atomic_t.m4: Likewise.
16198 * m4/tmpdir.m4: Likewise.
16199 * m4/intldir.m4: Bump gettext version.
16200 * m4/lib-ld.m4: Likewise.
16202 2009-01-14 Bruno Haible <bruno@clisp.org>
16204 * lib/progname.c (set_program_name): Add more comments.
16205 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16207 2009-01-14 Simon Josefsson <simon@josefsson.org>
16209 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16210 were sys/stat.h does not define it.
16212 2009-01-14 Jim Meyering <meyering@redhat.com>
16214 many *.m4 files: improve m4 quoting
16215 99% of this change was performed by running the following commands:
16216 git ls-files | grep '\.m4$' | xargs perl -pi \
16217 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16218 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16219 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16220 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16221 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16222 The remainder were to add Copyright dates, increment serial numbers,
16223 undo some changes in comments, exclude m4/intl.m4, and add quotes
16224 around the "1" in ",1" where the unusual spacing prohibited the
16225 above regexps from doing the job. For more details, see
16226 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16227 * m4/acl.m4: Modified.
16228 * m4/afs.m4: Likewise.
16229 * m4/alloca.m4: Likewise.
16230 * m4/argp.m4: Likewise.
16231 * m4/argz.m4: Likewise.
16232 * m4/atexit.m4: Likewise.
16233 * m4/bison-i18n.m4: Likewise.
16234 * m4/bison.m4: Likewise.
16235 * m4/byteswap.m4: Likewise.
16236 * m4/c-stack.m4: Likewise.
16237 * m4/c-strtod.m4: Likewise.
16238 * m4/calloc.m4: Likewise.
16239 * m4/canonicalize-lgpl.m4: Likewise.
16240 * m4/chown.m4: Likewise.
16241 * m4/clock_time.m4: Likewise.
16242 * m4/codeset.m4: Likewise.
16243 * m4/copy-file.m4: Likewise.
16244 * m4/csharp.m4: Likewise.
16245 * m4/csharpcomp.m4: Likewise.
16246 * m4/csharpexec.m4: Likewise.
16247 * m4/d-ino.m4: Likewise.
16248 * m4/d-type.m4: Likewise.
16249 * m4/dirfd.m4: Likewise.
16250 * m4/double-slash-root.m4: Likewise.
16251 * m4/eaccess.m4: Likewise.
16252 * m4/eealloc.m4: Likewise.
16253 * m4/environ.m4: Likewise.
16254 * m4/errno_h.m4: Likewise.
16255 * m4/euidaccess.m4: Likewise.
16256 * m4/execute.m4: Likewise.
16257 * m4/fatal-signal.m4: Likewise.
16258 * m4/fchdir.m4: Likewise.
16259 * m4/fcntl_h.m4: Likewise.
16260 * m4/fileblocks.m4: Likewise.
16261 * m4/filenamecat.m4: Likewise.
16262 * m4/findprog.m4: Likewise.
16263 * m4/flexmember.m4: Likewise.
16264 * m4/fnmatch.m4: Likewise.
16265 * m4/fopen.m4: Likewise.
16266 * m4/fpending.m4: Likewise.
16267 * m4/fprintf-posix.m4: Likewise.
16268 * m4/free.m4: Likewise.
16269 * m4/frexp.m4: Likewise.
16270 * m4/frexpl.m4: Likewise.
16271 * m4/fsusage.m4: Likewise.
16272 * m4/ftruncate.m4: Likewise.
16273 * m4/gc-camellia.m4: Likewise.
16274 * m4/gc-random.m4: Likewise.
16275 * m4/gc.m4: Likewise.
16276 * m4/getaddrinfo.m4: Likewise.
16277 * m4/getcwd-abort-bug.m4: Likewise.
16278 * m4/getcwd-path-max.m4: Likewise.
16279 * m4/getdate.m4: Likewise.
16280 * m4/getdomainname.m4: Likewise.
16281 * m4/getgroups.m4: Likewise.
16282 * m4/gethostname.m4: Likewise.
16283 * m4/gethrxtime.m4: Likewise.
16284 * m4/getline.m4: Likewise.
16285 * m4/getloadavg.m4: Likewise.
16286 * m4/getndelim2.m4: Likewise.
16287 * m4/getpass.m4: Likewise.
16288 * m4/gettext.m4: Likewise.
16289 * m4/gettime.m4: Likewise.
16290 * m4/gettimeofday.m4: Likewise.
16291 * m4/gnulib-common.m4: Likewise.
16292 * m4/group-member.m4: Likewise.
16293 * m4/host-os.m4: Likewise.
16294 * m4/iconv.m4: Likewise.
16295 * m4/iconv_open.m4: Likewise.
16296 * m4/inet_ntop.m4: Likewise.
16297 * m4/inet_pton.m4: Likewise.
16298 * m4/inline.m4: Likewise.
16299 * m4/intldir.m4: Likewise.
16300 * m4/intlmacosx.m4: Likewise.
16301 * m4/intmax.m4: Likewise.
16302 * m4/intmax_t.m4: Likewise.
16303 * m4/inttypes.m4: Likewise.
16304 * m4/inttypes_h.m4: Likewise.
16305 * m4/inttypes-pri.m4: Likewise.
16306 * m4/isapipe.m4: Likewise.
16307 * m4/isnand.m4: Likewise.
16308 * m4/isnanf.m4: Likewise.
16309 * m4/isnanl.m4: Likewise.
16310 * m4/javacomp.m4: Likewise.
16311 * m4/javaexec.m4: Likewise.
16312 * m4/jm-winsz1.m4: Likewise.
16313 * m4/jm-winsz2.m4: Likewise.
16314 * m4/lchown.m4: Likewise.
16315 * m4/lcmessage.m4: Likewise.
16316 * m4/ldexpl.m4: Likewise.
16317 * m4/lib-ld.m4: Likewise.
16318 * m4/lib-link.m4: Likewise.
16319 * m4/libsigsegv.m4: Likewise.
16320 * m4/link-follow.m4: Likewise.
16321 * m4/localcharset.m4: Likewise.
16322 * m4/locale-fr.m4: Likewise.
16323 * m4/locale-ja.m4: Likewise.
16324 * m4/locale-tr.m4: Likewise.
16325 * m4/locale-zh.m4: Likewise.
16326 * m4/lock.m4: Likewise.
16327 * m4/longlong.m4: Likewise.
16328 * m4/ls-mntd-fs.m4: Likewise.
16329 * m4/lstat.m4: Likewise.
16330 * m4/malloc.m4: Likewise.
16331 * m4/mathl.m4: Likewise.
16332 * m4/mbrtowc.m4: Likewise.
16333 * m4/mbstate_t.m4: Likewise.
16334 * m4/mbswidth.m4: Likewise.
16335 * m4/memchr.m4: Likewise.
16336 * m4/memcmp.m4: Likewise.
16337 * m4/memcpy.m4: Likewise.
16338 * m4/memmem.m4: Likewise.
16339 * m4/memmove.m4: Likewise.
16340 * m4/mempcpy.m4: Likewise.
16341 * m4/memrchr.m4: Likewise.
16342 * m4/memset.m4: Likewise.
16343 * m4/minmax.m4: Likewise.
16344 * m4/mkdir-slash.m4: Likewise.
16345 * m4/mkdtemp.m4: Likewise.
16346 * m4/mktime.m4: Likewise.
16347 * m4/mmap-anon.m4: Likewise.
16348 * m4/mountlist.m4: Likewise.
16349 * m4/nanosleep.m4: Likewise.
16350 * m4/nls.m4: Likewise.
16351 * m4/nocrash.m4: Likewise.
16352 * m4/open.m4: Likewise.
16353 * m4/openat.m4: Likewise.
16354 * m4/openmp.m4: Likewise.
16355 * m4/pathmax.m4: Likewise.
16356 * m4/perl.m4: Likewise.
16357 * m4/physmem.m4: Likewise.
16358 * m4/pipe.m4: Likewise.
16359 * m4/po.m4: Likewise.
16360 * m4/poll.m4: Likewise.
16361 * m4/posixtm.m4: Likewise.
16362 * m4/posixver.m4: Likewise.
16363 * m4/printf-frexp.m4: Likewise.
16364 * m4/printf-frexpl.m4: Likewise.
16365 * m4/printf-posix.m4: Likewise.
16366 * m4/printf-posix-rpl.m4: Likewise.
16367 * m4/printf.m4: Likewise.
16368 * m4/progtest.m4: Likewise.
16369 * m4/putenv.m4: Likewise.
16370 * m4/readline.m4: Likewise.
16371 * m4/readlink.m4: Likewise.
16372 * m4/readutmp.m4: Likewise.
16373 * m4/realloc.m4: Likewise.
16374 * m4/regex.m4: Likewise.
16375 * m4/relocatable.m4: Likewise.
16376 * m4/relocatable-lib.m4: Likewise.
16377 * m4/rename-dest-slash.m4: Likewise.
16378 * m4/rename.m4: Likewise.
16379 * m4/rmdir-errno.m4: Likewise.
16380 * m4/rmdir.m4: Likewise.
16381 * m4/roundf.m4: Likewise.
16382 * m4/roundl.m4: Likewise.
16383 * m4/rpmatch.m4: Likewise.
16384 * m4/save-cwd.m4: Likewise.
16385 * m4/selinux-selinux-h.m4: Likewise.
16386 * m4/setenv.m4: Likewise.
16387 * m4/settime.m4: Likewise.
16388 * m4/sig2str.m4: Likewise.
16389 * m4/sig_atomic_t.m4: Likewise.
16390 * m4/signalblocking.m4: Likewise.
16391 * m4/signbit.m4: Likewise.
16392 * m4/sigpipe.m4: Likewise.
16393 * m4/sockets.m4: Likewise.
16394 * m4/sockpfaf.m4: Likewise.
16395 * m4/st_dm_mode.m4: Likewise.
16396 * m4/stat-time.m4: Likewise.
16397 * m4/stdbool.m4: Likewise.
16398 * m4/stdint.m4: Likewise.
16399 * m4/stdint_h.m4: Likewise.
16400 * m4/stpcpy.m4: Likewise.
16401 * m4/stpncpy.m4: Likewise.
16402 * m4/strcase.m4: Likewise.
16403 * m4/strchrnul.m4: Likewise.
16404 * m4/strcspn.m4: Likewise.
16405 * m4/strdup.m4: Likewise.
16406 * m4/strftime.m4: Likewise.
16407 * m4/strndup.m4: Likewise.
16408 * m4/strnlen.m4: Likewise.
16409 * m4/strpbrk.m4: Likewise.
16410 * m4/strptime.m4: Likewise.
16411 * m4/strsep.m4: Likewise.
16412 * m4/strtod.m4: Likewise.
16413 * m4/strtoimax.m4: Likewise.
16414 * m4/strtok_r.m4: Likewise.
16415 * m4/strtol.m4: Likewise.
16416 * m4/strtoll.m4: Likewise.
16417 * m4/strtoul.m4: Likewise.
16418 * m4/strtoull.m4: Likewise.
16419 * m4/strtoumax.m4: Likewise.
16420 * m4/strverscmp.m4: Likewise.
16421 * m4/threadlib.m4: Likewise.
16422 * m4/timegm.m4: Likewise.
16423 * m4/tm_gmtoff.m4: Likewise.
16424 * m4/tmpdir.m4: Likewise.
16425 * m4/tmpfile.m4: Likewise.
16426 * m4/tzset.m4: Likewise.
16427 * m4/uintmax_t.m4: Likewise.
16428 * m4/unlinkdir.m4: Likewise.
16429 * m4/unlocked-io.m4: Likewise.
16430 * m4/uptime.m4: Likewise.
16431 * m4/userspec.m4: Likewise.
16432 * m4/utimbuf.m4: Likewise.
16433 * m4/utime.m4: Likewise.
16434 * m4/utimes-null.m4: Likewise.
16435 * m4/utimes.m4: Likewise.
16436 * m4/vararrays.m4: Likewise.
16437 * m4/vasnprintf.m4: Likewise.
16438 * m4/vfprintf-posix.m4: Likewise.
16439 * m4/vprintf-posix.m4: Likewise.
16440 * m4/wait-process.m4: Likewise.
16441 * m4/wchar_t.m4: Likewise.
16442 * m4/wint_t.m4: Likewise.
16443 * m4/write-any-file.m4: Likewise.
16444 * m4/yield.m4: Likewise.
16446 2009-01-13 Bruno Haible <bruno@clisp.org>
16448 Avoid test-copy-file.sh failures when ACL support insufficient.
16449 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16451 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16452 Reported by Jim Meyering.
16454 2009-01-13 Bruno Haible <bruno@clisp.org>
16456 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16457 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16458 * modules/unistdio/u8-printf-parse (Files): Likewise.
16459 * modules/unistdio/u32-printf-parse (Files): Likewise.
16460 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16462 2009-01-13 Simon Josefsson <simon@josefsson.org>
16464 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16465 and m4/inttypes_h.m4 too.
16467 2009-01-12 Eric Blake <ebb9@byu.net>
16469 tests: IRIX 6.2 cc can't compile -0.0 into .data
16470 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16471 rather than at compile-time.
16472 * tests/test-floorl.c (minus_zero): Likewise.
16473 * tests/test-frexpl.c (minus_zero): Likewise.
16474 * tests/test-isnan.c (minus_zerol): Likewise.
16475 * tests/test-isnanl.h (minus_zero): Likewise.
16476 * tests/test-ldexpl.c (minus_zero): Likewise.
16477 * tests/test-roundl.c (minus_zero): Likewise.
16478 * tests/test-signbit.c (minus_zerol): Likewise.
16479 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16480 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16481 * tests/test-truncl.c (minus_zero): Likewise.
16482 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16483 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16484 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16486 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16488 regex: fix glibc bug 9697
16489 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16492 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16494 regex: fix glibc bug 697
16495 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16496 being NULL also if there are no backreferences.
16498 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16500 regex: merge glibc changes
16501 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16502 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16503 re_string_skip_chars, re_string_reconstruct): Likewise.
16504 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16506 2009-01-07 Jim Meyering <meyering@redhat.com>
16508 poll: filter through cppi
16509 * lib/poll.c: Indent cpp directives to reflect nesting.
16511 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16513 poll: don't return uninitialized
16514 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16516 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16518 avoid compile failure on AIX 6.1
16519 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16520 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16522 2009-01-04 Jim Meyering <meyering@redhat.com>
16524 remove duplicate inclusion of <stdio.h>
16525 * tests/test-fprintf-posix.c: Likewise.
16526 * tests/test-printf-posix.c: Likewise.
16527 * tests/test-snprintf-posix.c: Likewise.
16528 * tests/test-sprintf-posix.c: Likewise.
16529 * tests/test-vasprintf-posix.c: Likewise.
16530 * tests/test-vfprintf-posix.c: Likewise.
16531 * tests/test-vprintf-posix.c: Likewise.
16532 * tests/test-vsnprintf-posix.c: Likewise.
16533 * tests/test-vsprintf-posix.c: Likewise.
16535 2009-01-03 Jim Meyering <meyering@redhat.com>
16537 gnulib-tool: fix sed-based filtering
16538 * gnulib-tool (func_filter_filelist): Remove extra backslash
16539 in sed_fff_filter definition.
16541 2009-01-02 Jim Meyering <meyering@redhat.com>
16543 strftime: avoid compilation failure on Solaris 2.6
16544 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16545 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16546 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16547 be available. Reported by Tom G. Christensen. Details in
16548 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16550 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16551 Bruno Haible <bruno@clisp.org>
16553 Speed up gnulib-tool by doing more string processing through shell
16555 * gnulib-tool (fast_func_append): New variable.
16556 (func_remove_prefix, func_remove_suffix): New functions.
16557 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16558 (func_filter_filelist): New function.
16559 (func_get_dependencies): Use func_remove_suffix instead of sed.
16560 (func_get_automake_snippet): Use func_filter_filelist instead of a
16561 subshell and sed invocation.
16563 2009-01-01 Bruno Haible <bruno@clisp.org>
16565 Fix a security bug.
16566 * gnulib-tool (func_import, import, update): Don't allow the characters
16567 '"', '$', '`', '\' in macro arguments that become part of commands that
16570 2009-01-01 Bruno Haible <bruno@clisp.org>
16572 * gnulib-tool (func_reset_sigpipe): Add more comments.
16574 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16576 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16577 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16578 already know the answer.
16580 2009-01-01 Jim Meyering <meyering@redhat.com>
16582 * lib/version-etc.c (version_etc_va): Update copyright year.
16584 2008-12-30 Bruno Haible <bruno@clisp.org>
16586 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16587 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16588 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16590 2008-12-29 Eric Blake <ebb9@byu.net>
16592 multiarch: avoid autoconf AC_REQUIRE bug
16593 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16594 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16596 Reported by Bruno Haible, and analyzed in
16597 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16599 2008-12-29 Bruno Haible <bruno@clisp.org>
16601 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16602 files in subdirectories correctly.
16603 Reported by Ralf Wildenhues.
16605 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16607 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16608 rather than 'join FILE -', for Solaris join.
16610 2008-12-29 Bruno Haible <bruno@clisp.org>
16612 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16614 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16615 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16616 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16617 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16618 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16619 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16620 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16621 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16622 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16623 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16624 * m4/nls.m4 (AM_NLS): Likewise.
16625 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16626 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16627 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16628 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16629 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16630 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16631 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16632 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16633 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16634 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16635 * m4/xsize.m4 (gl_XSIZE): Likewise.
16636 Suggested by Jim Meyering.
16638 2008-11-17 Bruce Korb <bkorb@gnu.org>
16640 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16641 * lib/parse-duration.c: use a switch instead of cascading if's.
16643 2008-12-29 Eric Blake <ebb9@byu.net>
16645 wchar.h: supply WEOF on Irix 5.3
16646 * lib/wchar.in.h (wint_t): Also supply WEOF.
16647 * lib/wctype.in.h (wint_t): Likewise.
16648 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16649 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16650 Reported by Tom G. Christensen.
16652 2008-12-26 Bruno Haible <bruno@clisp.org>
16654 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16657 2008-12-26 Bruno Haible <bruno@clisp.org>
16659 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16661 2008-12-26 Bruno Haible <bruno@clisp.org>
16663 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16664 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16665 not __STDC_CONSTANT_MACROS.
16666 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16668 2008-12-25 Bruno Haible <bruno@clisp.org>
16670 Add support for universal builds to vasnprintf.
16671 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16672 universal builds, guess no.
16673 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16674 * modules/vasprintf-posix (Depends-on): Likewise.
16675 * modules/fprintf-posix (Depends-on): Likewise.
16676 * modules/vfprintf-posix (Depends-on): Likewise.
16677 * modules/snprintf-posix (Depends-on): Likewise.
16678 * modules/vsnprintf-posix (Depends-on): Likewise.
16679 * modules/sprintf-posix (Depends-on): Likewise.
16680 * modules/vsprintf-posix (Depends-on): Likewise.
16681 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16682 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16683 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16684 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16685 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16686 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16687 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16689 Add support for universal builds to <inttypes.h>.
16690 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16691 _SCNu64_PREFIX): In Apple
16692 universal builds, define directly, using _LP64.
16693 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16694 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16695 * modules/inttypes (Depends-on): Add multiarch.
16696 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16698 Add support for universal builds to <stdint.h>.
16699 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16700 universal builds, define directly, using _LP64.
16701 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16702 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16704 * modules/stdint (Depends-on): Add multiarch.
16705 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16707 New module 'multiarch'.
16708 * modules/multiarch: New file.
16709 * m4/multiarch.m4: New file.
16711 2008-12-25 Bruno Haible <bruno@clisp.org>
16713 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16715 2008-12-25 Bruno Haible <bruno@clisp.org>
16717 * modules/btowc (License): Relicense under LGPLv2+.
16718 * modules/mbsinit (License): Likewise.
16719 * modules/mbrtowc (License): Likewise.
16720 * modules/wcrtomb (License): Likewise.
16721 * modules/streq (License): Likewise.
16722 Reported by David Lutterkort <lutter@redhat.com>.
16724 2008-12-23 Bruno Haible <bruno@clisp.org>
16726 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16728 2008-12-23 Bruno Haible <bruno@clisp.org>
16730 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16731 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16732 GETADDRINFO_LIB, not in LIBS.
16733 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16734 * modules/canon-host (Link): Likewise.
16735 * NEWS: Mention the change.
16736 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16739 2008-12-22 Bruno Haible <bruno@clisp.org>
16741 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16742 * doc/posix-functions/iswalpha_l.texi: Likewise.
16743 * doc/posix-functions/iswblank_l.texi: Likewise.
16744 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16745 * doc/posix-functions/iswctype_l.texi: Likewise.
16746 * doc/posix-functions/iswdigit_l.texi: Likewise.
16747 * doc/posix-functions/iswgraph_l.texi: Likewise.
16748 * doc/posix-functions/iswlower_l.texi: Likewise.
16749 * doc/posix-functions/iswprint_l.texi: Likewise.
16750 * doc/posix-functions/iswpunct_l.texi: Likewise.
16751 * doc/posix-functions/iswspace_l.texi: Likewise.
16752 * doc/posix-functions/iswupper_l.texi: Likewise.
16753 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16754 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16755 * doc/posix-functions/open_wmemstream.texi: Likewise.
16756 * doc/posix-functions/swscanf.texi: Likewise.
16757 * doc/posix-functions/towctrans_l.texi: Likewise.
16758 * doc/posix-functions/towlower.texi: Likewise.
16759 * doc/posix-functions/towlower_l.texi: Likewise.
16760 * doc/posix-functions/towupper.texi: Likewise.
16761 * doc/posix-functions/towupper_l.texi: Likewise.
16762 * doc/posix-functions/vfwprintf.texi: Likewise.
16763 * doc/posix-functions/vfwscanf.texi: Likewise.
16764 * doc/posix-functions/vswscanf.texi: Likewise.
16765 * doc/posix-functions/vwprintf.texi: Likewise.
16766 * doc/posix-functions/vwscanf.texi: Likewise.
16767 * doc/posix-functions/wcpcpy.texi: Likewise.
16768 * doc/posix-functions/wcpncpy.texi: Likewise.
16769 * doc/posix-functions/wcscasecmp.texi: Likewise.
16770 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16771 * doc/posix-functions/wcscoll_l.texi: Likewise.
16772 * doc/posix-functions/wcsdup.texi: Likewise.
16773 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16774 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16775 * doc/posix-functions/wcsnlen.texi: Likewise.
16776 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16777 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16778 * doc/posix-functions/wctrans_l.texi: Likewise.
16779 * doc/posix-functions/wctype_l.texi: Likewise.
16780 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16781 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16782 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16783 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16784 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16785 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16786 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16787 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16788 * doc/glibc-functions/wcschrnul.texi: Likewise.
16789 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16790 * doc/glibc-functions/wcstod_l.texi: Likewise.
16791 * doc/glibc-functions/wcstof_l.texi: Likewise.
16792 * doc/glibc-functions/wcstol_l.texi: Likewise.
16793 * doc/glibc-functions/wcstold_l.texi: Likewise.
16794 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16795 * doc/glibc-functions/wcstoq.texi: Likewise.
16796 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16797 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16798 * doc/glibc-functions/wcstouq.texi: Likewise.
16799 * doc/glibc-functions/wmempcpy.texi: Likewise.
16801 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16802 Eric Blake <ebb9@byu.net>
16803 Paolo Bonzini <bonzini@gnu.org>
16804 Bruno Haible <bruno@clisp.org>
16806 Make c-stack work on Haiku.
16807 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16808 (c_stack_action): Use SA_ONSTACK flag.
16810 2008-12-22 Bruno Haible <bruno@clisp.org>
16812 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16814 2008-12-22 Bruno Haible <bruno@clisp.org>
16816 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16817 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16819 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16821 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16822 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16823 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16824 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16826 2008-12-22 Bruno Haible <bruno@clisp.org>
16828 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16831 2008-12-22 Eric Blake <ebb9@byu.net>
16833 Avoid gcc warnings on cygwin.
16834 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16835 Avoid unused variable.
16836 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16839 2008-12-22 Bruno Haible <bruno@clisp.org>
16841 Remove HAVE_MBRTOWC conditionals.
16842 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16843 (mbscasecmp): Assume mbrtowc function.
16844 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16845 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16846 * lib/mbschr.c: Include mbuiter.h unconditionally.
16847 (mbschr): Assume mbrtowc function.
16848 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16849 (mbscspn): Assume mbrtowc function.
16850 * lib/mbslen.c: Include mbuiter.h unconditionally.
16851 (mbslen): Assume mbrtowc function.
16852 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16853 (mbsncasecmp): Assume mbrtowc function.
16854 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16855 (mbsnlen): Assume mbrtowc function.
16856 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16857 (mbspbrk): Assume mbrtowc function.
16858 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16859 (mbspcasecmp): Assume mbrtowc function.
16860 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16861 (mbsrchr): Assume mbrtowc function.
16862 * lib/mbssep.c: Include mbuiter.h unconditionally.
16863 (mbssep): Assume mbrtowc function.
16864 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16865 (mbsspn): Assume mbrtowc function.
16866 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16867 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16868 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16869 (mbstok_r): Assume mbrtowc function.
16870 * lib/propername.c: Include mbuiter.h unconditionally.
16871 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16872 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16873 (trim2): Assume mbrtowc function.
16874 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16875 (mbsnwidth): Assume mbrtowc function.
16876 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16877 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16878 fallback definitions.
16879 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16881 2008-12-22 Bruno Haible <bruno@clisp.org>
16883 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16885 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16887 * modules/regex: Request emulations for the mb*/wc* functions we need.
16888 * m4/regex.m4: Don't look for those functions here.
16889 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16891 2008-12-22 Bruno Haible <bruno@clisp.org>
16893 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16895 2008-12-21 Bruno Haible <bruno@clisp.org>
16897 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16898 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16899 (Include): Remove conditionalization.
16900 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16901 (Include): Remove conditionalization.
16902 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16903 (Include): Remove conditionalization.
16904 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16905 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16906 * NEWS: Mention the change.
16907 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16908 via Sergey Poznyakoff <gray@gnu.org.ua>.
16910 2008-12-21 Bruno Haible <bruno@clisp.org>
16912 * MODULES.html.sh (Extended multibyte and wide character utilities
16913 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16914 wcrtomb, wcsrtombs.
16915 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16916 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16917 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16918 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16920 2008-12-21 Bruno Haible <bruno@clisp.org>
16922 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16924 2008-12-21 Bruno Haible <bruno@clisp.org>
16926 * modules/wcsnrtombs-tests: New file.
16927 * tests/test-wcsnrtombs1.sh: New file.
16928 * tests/test-wcsnrtombs2.sh: New file.
16929 * tests/test-wcsnrtombs3.sh: New file.
16930 * tests/test-wcsnrtombs4.sh: New file.
16931 * tests/test-wcsnrtombs.c: New file.
16933 New module 'wcsnrtombs'.
16934 * lib/wchar.in.h (wcsnrtombs): New declaration.
16935 * lib/wcsnrtombs.c: New file.
16936 * lib/wcsrtombs-state.c: New file.
16937 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16938 (internal_state): Remove variable.
16939 * m4/wcsnrtombs.m4: New file.
16940 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16942 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16944 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16946 * modules/wcsnrtombs: New file.
16947 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16948 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16950 2008-12-21 Bruno Haible <bruno@clisp.org>
16952 * modules/wcsrtombs-tests: New file.
16953 * tests/test-wcsrtombs1.sh: New file.
16954 * tests/test-wcsrtombs2.sh: New file.
16955 * tests/test-wcsrtombs3.sh: New file.
16956 * tests/test-wcsrtombs4.sh: New file.
16957 * tests/test-wcsrtombs.c: New file.
16959 New module 'wcsrtombs'.
16960 * lib/wchar.in.h (wcsrtombs): New declaration.
16961 * lib/wcsrtombs.c: New file.
16962 * m4/wcsrtombs.m4: New file.
16963 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16964 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16965 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16966 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16967 * modules/wcsrtombs: New file.
16968 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16971 2008-12-21 Bruno Haible <bruno@clisp.org>
16973 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16974 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16975 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16976 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16978 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16979 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16980 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16981 m4/locale-zh.m4, m4/codeset.m4.
16982 * doc/posix-functions/wcrtomb.texi: Document the bug.
16984 2008-12-21 Bruno Haible <bruno@clisp.org>
16986 Work around a btowc() bug on IRIX 6.5.
16987 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16988 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16989 REPLACE_WTOBC if not.
16990 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16991 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16992 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16994 2008-12-21 Bruno Haible <bruno@clisp.org>
16996 * modules/wcrtomb-tests: New file.
16997 * tests/test-wcrtomb.sh: New file.
16998 * tests/test-wcrtomb.c: New file.
17000 New module 'wcrtomb'.
17001 * lib/wchar.in.h (wcrtomb): New declaration.
17002 * lib/wcrtomb.c: New file.
17003 * m4/wcrtomb.m4: New file.
17004 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17006 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17008 * modules/wcrtomb: New file.
17009 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17011 2008-12-21 Bruno Haible <bruno@clisp.org>
17013 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17014 * modules/mbsrtowcs (Files): Likewise.
17015 * modules/wctob (Files): Likewise.
17016 * modules/c-strcase-tests (Files): Likewise.
17017 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17018 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17019 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17020 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17021 * modules/vasnprintf-posix-tests (Files): Likewise.
17023 2008-12-21 William Pursell <bill.pursell@gmail.com>
17025 gitlog-to-changelog: pass all command-line arguments to git-log
17026 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17027 it is sometimes convenient to filter the commits in various ways.
17028 gitlog-to-changelog only allows --since to specify a start date,
17029 but git-log itself supports many other filtering mechanisms.
17030 At the moment, I want to filter by branch name. Rather than
17031 adding a --branch option to gitlog-to-changelog, it seems more
17032 flexible to simply pass all options directly to git-log and let
17033 git do the work. Notice that this effectively makes --since a
17034 redundant option for gitlog-to-changelog, but removing it would
17035 require current usage to change since calls would then require
17036 an additional '--'.
17038 2008-12-21 Bruno Haible <bruno@clisp.org>
17040 * modules/mbsnrtowcs-tests: New file.
17041 * tests/test-mbsnrtowcs1.sh: New file.
17042 * tests/test-mbsnrtowcs2.sh: New file.
17043 * tests/test-mbsnrtowcs3.sh: New file.
17044 * tests/test-mbsnrtowcs4.sh: New file.
17045 * tests/test-mbsnrtowcs.c: New file.
17047 New module 'mbsnrtowcs'.
17048 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17049 * lib/mbsnrtowcs.c: New file.
17050 * lib/mbsrtowcs-state.c: New file.
17051 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17052 (internal_state): Remove variable.
17053 * m4/mbsnrtowcs.m4: New file.
17054 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17056 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17057 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17058 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17059 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17060 * modules/mbsnrtowcs: New file.
17061 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17062 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17063 portability problem.
17065 2008-12-21 Bruno Haible <bruno@clisp.org>
17067 Work around mbsrtowcs bug.
17068 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17069 (gl_FUNC_MBSRTOWCS): Invoke it.
17070 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17072 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17074 2008-12-21 Bruno Haible <bruno@clisp.org>
17076 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17078 2008-12-21 Bruno Haible <bruno@clisp.org>
17080 Update doc for AIX.
17081 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17082 16-bit wchar_t type.
17083 * doc/posix-functions/btowc.texi: Likewise.
17084 * doc/posix-functions/fgetwc.texi: Likewise.
17085 * doc/posix-functions/fgetws.texi: Likewise.
17086 * doc/posix-functions/fputwc.texi: Likewise.
17087 * doc/posix-functions/fputws.texi: Likewise.
17088 * doc/posix-functions/fwide.texi: Likewise.
17089 * doc/posix-functions/fwprintf.texi: Likewise.
17090 * doc/posix-functions/fwscanf.texi: Likewise.
17091 * doc/posix-functions/getwchar.texi: Likewise.
17092 * doc/posix-functions/getwc.texi: Likewise.
17093 * doc/posix-functions/iswalnum.texi: Likewise.
17094 * doc/posix-functions/iswalpha.texi: Likewise.
17095 * doc/posix-functions/iswblank.texi: Likewise.
17096 * doc/posix-functions/iswcntrl.texi: Likewise.
17097 * doc/posix-functions/iswctype.texi: Likewise.
17098 * doc/posix-functions/iswdigit.texi: Likewise.
17099 * doc/posix-functions/iswgraph.texi: Likewise.
17100 * doc/posix-functions/iswlower.texi: Likewise.
17101 * doc/posix-functions/iswprint.texi: Likewise.
17102 * doc/posix-functions/iswpunct.texi: Likewise.
17103 * doc/posix-functions/iswspace.texi: Likewise.
17104 * doc/posix-functions/iswupper.texi: Likewise.
17105 * doc/posix-functions/iswxdigit.texi: Likewise.
17106 * doc/posix-functions/mbrtowc.texi: Likewise.
17107 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17108 * doc/posix-functions/mbstowcs.texi: Likewise.
17109 * doc/posix-functions/mbtowc.texi: Likewise.
17110 * doc/posix-functions/putwchar.texi: Likewise.
17111 * doc/posix-functions/putwc.texi: Likewise.
17112 * doc/posix-functions/swprintf.texi: Likewise.
17113 * doc/posix-functions/tolower.texi: Likewise.
17114 * doc/posix-functions/toupper.texi: Likewise.
17115 * doc/posix-functions/towctrans.texi: Likewise.
17116 * doc/posix-functions/ungetwc.texi: Likewise.
17117 * doc/posix-functions/vswprintf.texi: Likewise.
17118 * doc/posix-functions/wcrtomb.texi: Likewise.
17119 * doc/posix-functions/wcscat.texi: Likewise.
17120 * doc/posix-functions/wcschr.texi: Likewise.
17121 * doc/posix-functions/wcscmp.texi: Likewise.
17122 * doc/posix-functions/wcscoll.texi: Likewise.
17123 * doc/posix-functions/wcscpy.texi: Likewise.
17124 * doc/posix-functions/wcscspn.texi: Likewise.
17125 * doc/posix-functions/wcsftime.texi: Likewise.
17126 * doc/posix-functions/wcslen.texi: Likewise.
17127 * doc/posix-functions/wcsncat.texi: Likewise.
17128 * doc/posix-functions/wcsncmp.texi: Likewise.
17129 * doc/posix-functions/wcsncpy.texi: Likewise.
17130 * doc/posix-functions/wcspbrk.texi: Likewise.
17131 * doc/posix-functions/wcsrchr.texi: Likewise.
17132 * doc/posix-functions/wcsrtombs.texi: Likewise.
17133 * doc/posix-functions/wcsspn.texi: Likewise.
17134 * doc/posix-functions/wcsstr.texi: Likewise.
17135 * doc/posix-functions/wcstod.texi: Likewise.
17136 * doc/posix-functions/wcstof.texi: Likewise.
17137 * doc/posix-functions/wcstoimax.texi: Likewise.
17138 * doc/posix-functions/wcstok.texi: Likewise.
17139 * doc/posix-functions/wcstold.texi: Likewise.
17140 * doc/posix-functions/wcstoll.texi: Likewise.
17141 * doc/posix-functions/wcstol.texi: Likewise.
17142 * doc/posix-functions/wcstombs.texi: Likewise.
17143 * doc/posix-functions/wcstoull.texi: Likewise.
17144 * doc/posix-functions/wcstoul.texi: Likewise.
17145 * doc/posix-functions/wcstoumax.texi: Likewise.
17146 * doc/posix-functions/wcswidth.texi: Likewise.
17147 * doc/posix-functions/wcsxfrm.texi: Likewise.
17148 * doc/posix-functions/wctob.texi: Likewise.
17149 * doc/posix-functions/wctomb.texi: Likewise.
17150 * doc/posix-functions/wctrans.texi: Likewise.
17151 * doc/posix-functions/wctype.texi: Likewise.
17152 * doc/posix-functions/wcwidth.texi: Likewise.
17153 * doc/posix-functions/wmemchr.texi: Likewise.
17154 * doc/posix-functions/wmemcmp.texi: Likewise.
17155 * doc/posix-functions/wmemcpy.texi: Likewise.
17156 * doc/posix-functions/wmemmove.texi: Likewise.
17157 * doc/posix-functions/wmemset.texi: Likewise.
17158 * doc/posix-functions/wprintf.texi: Likewise.
17159 * doc/posix-functions/wscanf.texi: Likewise.
17161 2008-12-21 Bruno Haible <bruno@clisp.org>
17163 Update doc for HP-UX 11.11.
17164 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17165 in HP-UX version 11.00, not in all versions of HP-UX 11.
17166 * doc/posix-functions/fwide.texi: Likewise.
17167 * doc/posix-functions/fwprintf.texi: Likewise.
17168 * doc/posix-functions/fwscanf.texi: Likewise.
17169 * doc/posix-functions/inet_ntop.texi: Likewise.
17170 * doc/posix-functions/inet_pton.texi: Likewise.
17171 * doc/posix-functions/mbrlen.texi: Likewise.
17172 * doc/posix-functions/mbrtowc.texi: Likewise.
17173 * doc/posix-functions/mbsinit.texi: Likewise.
17174 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17175 * doc/posix-functions/swprintf.texi: Likewise.
17176 * doc/posix-functions/swscanf.texi: Likewise.
17177 * doc/posix-functions/towctrans.texi: Likewise.
17178 * doc/posix-functions/vfwprintf.texi: Likewise.
17179 * doc/posix-functions/vswprintf.texi: Likewise.
17180 * doc/posix-functions/vwprintf.texi: Likewise.
17181 * doc/posix-functions/wcrtomb.texi: Likewise.
17182 * doc/posix-functions/wcsrtombs.texi: Likewise.
17183 * doc/posix-functions/wcsstr.texi: Likewise.
17184 * doc/posix-functions/wctob.texi: Likewise.
17185 * doc/posix-functions/wctrans.texi: Likewise.
17186 * doc/posix-functions/wmemchr.texi: Likewise.
17187 * doc/posix-functions/wmemcmp.texi: Likewise.
17188 * doc/posix-functions/wmemcpy.texi: Likewise.
17189 * doc/posix-functions/wmemmove.texi: Likewise.
17190 * doc/posix-functions/wmemset.texi: Likewise.
17191 * doc/posix-functions/wprintf.texi: Likewise.
17192 * doc/posix-functions/wscanf.texi: Likewise.
17194 2008-12-21 Bruno Haible <bruno@clisp.org>
17196 Work around a portability problem.
17197 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17198 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17200 2008-12-20 Bruno Haible <bruno@clisp.org>
17202 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17203 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17204 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17205 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17206 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17208 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17209 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17211 (GNULIB_defined_mbstate_t): New macro.
17212 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17213 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17214 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17215 reuses the system's mbrtowc function but works around the bugs.
17216 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17217 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17219 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17220 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17221 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17222 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17223 REPLACE_MBSINIT if mbsinit needs to be overridden.
17224 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17225 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17226 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17227 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17228 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17230 (Depends): Add mbsinit.
17231 * modules/mbsinit (Depends): Add mbrtowc.
17232 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17234 2008-12-20 Bruno Haible <bruno@clisp.org>
17236 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17237 so that there are no conversion errors on AIX.
17238 * tests/test-mbsrtowcs.c (main): LIkewise.
17240 2008-12-20 Bruno Haible <bruno@clisp.org>
17242 Work around wctob bug on Solaris <= 9.
17243 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17244 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17245 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17246 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17247 * modules/wctob (Files): Add m4/locale-fr.m4.
17248 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17250 2008-12-20 Bruno Haible <bruno@clisp.org>
17252 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17254 * tests/test-select-in.sh: Likewise.
17255 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17257 2008-12-20 Bruno Haible <bruno@clisp.org>
17259 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17260 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17263 2008-12-20 Bruno Haible <bruno@clisp.org>
17265 Ensure mbstate_t is defined on HP-UX 11.11.
17266 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17267 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17268 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17269 AC_USE_SYSTEM_EXTENSIONS.
17270 * modules/fnmatch (Depends-on): Add extensions.
17271 * modules/mbrlen (Depends-on): Likewise.
17272 * modules/mbrtowc (Depends-on): Likewise.
17273 * modules/mbsinit (Depends-on): Likewise.
17274 * modules/mbsrtowcs (Depends-on): Likewise.
17275 * modules/mbswidth (Depends-on): Likewise.
17276 * modules/quotearg (Depends-on): Likewise.
17277 * modules/strftime (Depends-on): Likewise.
17279 2008-12-20 Bruno Haible <bruno@clisp.org>
17281 Ensure wctob is declared on IRIX 6.5.
17282 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17283 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17284 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17285 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17287 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17289 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17291 2008-12-19 Bruno Haible <bruno@clisp.org>
17293 * modules/mbsrtowcs-tests: New file.
17294 * tests/test-mbsrtowcs1.sh: New file.
17295 * tests/test-mbsrtowcs2.sh: New file.
17296 * tests/test-mbsrtowcs3.sh: New file.
17297 * tests/test-mbsrtowcs4.sh: New file.
17298 * tests/test-mbsrtowcs.c: New file.
17300 New module 'mbsrtowcs'.
17301 * lib/wchar.in.h (mbsrtowcs): New declaration.
17302 * lib/mbsrtowcs.c: New file.
17303 * m4/mbsrtowcs.m4: New file.
17304 * modules/mbsrtowcs: New file.
17305 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17307 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17309 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17311 2008-12-19 Bruno Haible <bruno@clisp.org>
17313 New module 'mbrlen'.
17314 * lib/wchar.in.h (mbrlen): New declaration.
17315 * lib/mbrlen.c: New file.
17316 * m4/mbrlen.m4: New file.
17317 * modules/mbrlen: New file.
17318 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17320 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17322 * doc/posix-functions/mbrlen.texi: Document the new module.
17324 2008-12-19 Bruno Haible <bruno@clisp.org>
17326 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17327 * modules/mbrtowc (Depends-on): Add verify.
17328 Suggested by Paul Eggert.
17330 2008-12-18 Bruno Haible <bruno@clisp.org>
17332 * modules/mbsinit-tests: New file.
17333 * tests/test-mbsinit.sh: New file.
17334 * tests/test-mbsinit.c: New file.
17336 2008-12-18 Bruno Haible <bruno@clisp.org>
17338 * modules/mbrtowc-tests: New file.
17339 * tests/test-mbrtowc1.sh: New file.
17340 * tests/test-mbrtowc2.sh: New file.
17341 * tests/test-mbrtowc3.sh: New file.
17342 * tests/test-mbrtowc4.sh: New file.
17343 * tests/test-mbrtowc.c: New file.
17345 New module 'mbrtowc'.
17346 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17347 mbsinit and mbrtowc.
17348 (mbrtowc): New declaration.
17349 * lib/mbrtowc.c: New file.
17350 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17351 * modules/mbrtowc: New file.
17352 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17354 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17356 * doc/posix-functions/mbrtowc.texi: Document the new module.
17358 2008-12-18 Bruno Haible <bruno@clisp.org>
17360 New module 'wctob'.
17361 * lib/wchar.in.h (wctob): New declaration.
17362 * lib/wctob.c: New file.
17363 * m4/wctob.m4: New file.
17364 * modules/wctob: New file.
17365 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17367 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17368 * doc/posix-functions/wctob.texi: Document the new module.
17370 2008-12-18 Bruno Haible <bruno@clisp.org>
17372 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17373 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17375 2008-12-18 Simon Josefsson <simon@josefsson.org>
17377 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17378 G. Christensen" <tgc@jupiterrise.com>.
17380 * lib/flock.c: Need to include errno.h. Reported by "Tom
17381 G. Christensen" <tgc@jupiterrise.com>.
17383 * lib/flock.c: Need to include string.h. Reported by "Tom
17384 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17387 2008-12-18 Bruno Haible <bruno@clisp.org>
17389 * m4/locale-ja.m4: New file, from GNU gettext.
17391 2008-12-17 Bruno Haible <bruno@clisp.org>
17393 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17394 Suggested by Eric Blake.
17396 2008-12-17 Bruno Haible <bruno@clisp.org>
17398 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17400 2008-12-17 Bruno Haible <bruno@clisp.org>
17402 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17403 * modules/mbsinit (Depends-on): Add verify.
17404 Suggested by Paul Eggert.
17406 2008-12-17 Bruno Haible <bruno@clisp.org>
17408 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17409 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17411 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17412 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17413 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17414 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17415 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17416 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17417 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17418 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17419 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17420 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17421 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17422 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17423 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17424 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17425 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17426 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17427 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17428 * modules/trim (configure.ac): Likewise.
17430 2008-12-17 Bruno Haible <bruno@clisp.org>
17432 * modules/btowc-tests: New file.
17433 * tests/test-btowc1.sh: New file.
17434 * tests/test-btowc2.sh: New file.
17435 * tests/test-btowc.c: New file.
17437 New module 'btowc'.
17438 * lib/wchar.in.h (btowc): New declaration.
17439 * lib/btowc.c: New file.
17440 * m4/btowc.m4: New file.
17441 * modules/btowc: New file.
17442 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17444 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17445 * doc/posix-functions/btowc.texi: Document the new module.
17447 2008-12-17 Bruno Haible <bruno@clisp.org>
17449 New module 'mbsinit'.
17450 * lib/wchar.in.h (mbsinit): New declaration.
17451 * lib/mbsinit.c: New file.
17452 * m4/mbsinit.m4: New file.
17453 * modules/mbsinit: New file.
17454 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17456 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17458 * doc/posix-functions/mbsinit.texi: Document the new module.
17460 2008-12-16 Bruno Haible <bruno@clisp.org>
17462 * lib/unistd.in.h: Add comment.
17463 * tests/test-environ.c: Don't include <stdlib.h>.
17465 2008-12-16 Bruno Haible <bruno@clisp.org>
17467 * lib/parse-duration.h (parse_duration): Document return value
17469 * lib/parse-duration.c: Include specification header first. Add
17472 (parse_year_month_day, parse_hour_minute_second): Move side effects
17473 outside of strchr call.
17474 (parse_non_iso8601): Move side effects outside of isspace call.
17475 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17478 2008-12-16 Bruno Haible <bruno@clisp.org>
17480 * tests/test-parse-duration.sh: Produce no output when the test
17483 2008-12-16 Bruno Haible <bruno@clisp.org>
17485 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17488 2008-12-15 Bruno Haible <bruno@clisp.org>
17490 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17491 * doc/glibc-functions/flistxattr.texi: Likewise.
17492 * doc/glibc-functions/fopencookie.texi: Likewise.
17493 * doc/glibc-functions/fremovexattr.texi: Likewise.
17494 * doc/glibc-functions/fsetxattr.texi: Likewise.
17495 * doc/glibc-functions/getxattr.texi: Likewise.
17496 * doc/glibc-functions/lgetxattr.texi: Likewise.
17497 * doc/glibc-functions/listxattr.texi: Likewise.
17498 * doc/glibc-functions/llistxattr.texi: Likewise.
17499 * doc/glibc-functions/lremovexattr.texi: Likewise.
17500 * doc/glibc-functions/lsetxattr.texi: Likewise.
17501 * doc/glibc-functions/removexattr.texi: Likewise.
17502 * doc/glibc-functions/setxattr.texi: Likewise.
17503 * doc/posix-functions/open_memstream.texi: Likewise.
17505 2008-12-15 Eric Blake <ebb9@byu.net>
17507 Update doc for cygwin 1.7.
17508 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17510 * doc/posix-functions/fchmodat.texi: Likewise.
17511 * doc/posix-functions/fchownat.texi: Likewise.
17512 * doc/posix-functions/fdopendir.texi: Likewise.
17513 * doc/posix-functions/fmemopen.texi: Likewise.
17514 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17515 * doc/posix-functions/fstatat.texi: Likewise.
17516 * doc/posix-functions/futimens.texi: Likewise.
17517 * doc/posix-functions/gai_strerror.texi: Likewise.
17518 * doc/posix-functions/getaddrinfo.texi: Likewise.
17519 * doc/posix-functions/getnameinfo.texi: Likewise.
17520 * doc/posix-functions/if_freenameindex.texi: Likewise.
17521 * doc/posix-functions/if_indextoname.texi: Likewise.
17522 * doc/posix-functions/if_nameindex.texi: Likewise.
17523 * doc/posix-functions/if_nametoindex.texi: Likewise.
17524 * doc/posix-functions/insque.texi: Likewise.
17525 * doc/posix-functions/linkat.texi: Likewise.
17526 * doc/posix-functions/llrint.texi: Likewise.
17527 * doc/posix-functions/llrintf.texi: Likewise.
17528 * doc/posix-functions/llrintl.texi: Likewise.
17529 * doc/posix-functions/lockf.texi: Likewise.
17530 * doc/posix-functions/lrintl.texi: Likewise.
17531 * doc/posix-functions/mkdirat.texi: Likewise.
17532 * doc/posix-functions/mkfifoat.texi: Likewise.
17533 * doc/posix-functions/mknodat.texi: Likewise.
17534 * doc/posix-functions/mq_close.texi: Likewise.
17535 * doc/posix-functions/mq_getattr.texi: Likewise.
17536 * doc/posix-functions/mq_notify.texi: Likewise.
17537 * doc/posix-functions/mq_open.texi: Likewise.
17538 * doc/posix-functions/mq_receive.texi: Likewise.
17539 * doc/posix-functions/mq_send.texi: Likewise.
17540 * doc/posix-functions/mq_setattr.texi: Likewise.
17541 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17542 * doc/posix-functions/mq_timedsend.texi: Likewise.
17543 * doc/posix-functions/mq_unlink.texi: Likewise.
17544 * doc/posix-functions/open_memstream.texi: Likewise.
17545 * doc/posix-functions/openat.texi: Likewise.
17546 * doc/posix-functions/posix_fadvise.texi: Likewise.
17547 * doc/posix-functions/posix_fallocate.texi: Likewise.
17548 * doc/posix-functions/posix_madvise.texi: Likewise.
17549 * doc/posix-functions/posix_memalign.texi: Likewise.
17550 * doc/posix-functions/posix_openpt.texi: Likewise.
17551 * doc/posix-functions/readlinkat.texi: Likewise.
17552 * doc/posix-functions/remque.texi: Likewise.
17553 * doc/posix-functions/renameat.texi: Likewise.
17554 * doc/posix-functions/rintl.texi: Likewise.
17555 * doc/posix-functions/sem_unlink.texi: Likewise.
17556 * doc/posix-functions/shm_open.texi: Likewise.
17557 * doc/posix-functions/shm_unlink.texi: Likewise.
17558 * doc/posix-functions/signgam.texi: Likewise.
17559 * doc/posix-functions/sigset.texi: Likewise.
17560 * doc/posix-functions/stpcpy.texi: Likewise.
17561 * doc/posix-functions/stpncpy.texi: Likewise.
17562 * doc/posix-functions/strerror.texi: Likewise.
17563 * doc/posix-functions/strtod.texi: Likewise.
17564 * doc/posix-functions/symlinkat.texi: Likewise.
17565 * doc/posix-functions/unlinkat.texi: Likewise.
17566 * doc/posix-functions/utimensat.texi: Likewise.
17567 * doc/glibc-functions/bindresvport.texi: Likewise.
17568 * doc/glibc-functions/dn_expand.texi: Likewise.
17569 * doc/glibc-functions/exp10.texi: Likewise.
17570 * doc/glibc-functions/exp10f.texi: Likewise.
17571 * doc/glibc-functions/fgetxattr.texi: Likewise.
17572 * doc/glibc-functions/flistxattr.texi: Likewise.
17573 * doc/glibc-functions/fopencookie.texi: Likewise.
17574 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17575 * doc/glibc-functions/fremovexattr.texi: Likewise.
17576 * doc/glibc-functions/fsetxattr.texi: Likewise.
17577 * doc/glibc-functions/getifaddrs.texi: Likewise.
17578 * doc/glibc-functions/getxattr.texi: Likewise.
17579 * doc/glibc-functions/lgetxattr.texi: Likewise.
17580 * doc/glibc-functions/listxattr.texi: Likewise.
17581 * doc/glibc-functions/llistxattr.texi: Likewise.
17582 * doc/glibc-functions/lremovexattr.texi: Likewise.
17583 * doc/glibc-functions/lsetxattr.texi: Likewise.
17584 * doc/glibc-functions/pow10.texi: Likewise.
17585 * doc/glibc-functions/pow10f.texi: Likewise.
17586 * doc/glibc-functions/rcmd_af.texi: Likewise.
17587 * doc/glibc-functions/removexattr.texi: Likewise.
17588 * doc/glibc-functions/res_init.texi: Likewise.
17589 * doc/glibc-functions/res_mkquery.texi: Likewise.
17590 * doc/glibc-functions/res_query.texi: Likewise.
17591 * doc/glibc-functions/res_querydomain.texi: Likewise.
17592 * doc/glibc-functions/res_send.texi: Likewise.
17593 * doc/glibc-functions/rresvport_af.texi: Likewise.
17594 * doc/glibc-functions/setxattr.texi: Likewise.
17595 * doc/glibc-functions/strcasestr.texi: Likewise.
17597 2008-12-15 Bruno Haible <bruno@clisp.org>
17599 Fix compilation error on OSF/1 4.0.
17600 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17601 <sys/time.h>, simply delegate to the system header.
17602 Reported by Daniel Richard G. <oss@teragram.com>.
17604 2008-12-15 Bruno Haible <bruno@clisp.org>
17606 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17607 * doc/posix-functions/fchmodat.texi: Likewise.
17608 * doc/posix-functions/fchownat.texi: Likewise.
17609 * doc/posix-functions/fdopendir.texi: Likewise.
17610 * doc/posix-functions/fstatat.texi: Likewise.
17611 * doc/posix-functions/mkdirat.texi: Likewise.
17612 * doc/posix-functions/unlinkat.texi: Likewise.
17614 2008-12-14 Bruno Haible <bruno@clisp.org>
17616 Update doc for POSIX:2008.
17617 * doc/posix-functions/faccessat.texi: New file.
17618 * doc/posix-functions/fchmodat.texi: New file.
17619 * doc/posix-functions/fchownat.texi: New file.
17620 * doc/posix-functions/fdopendir.texi: New file.
17621 * doc/posix-functions/fstatat.texi: New file.
17622 * doc/posix-functions/futimens.texi: New file.
17623 * doc/posix-functions/linkat.texi: New file.
17624 * doc/posix-functions/mkdirat.texi: New file.
17625 * doc/posix-functions/mkfifoat.texi: New file.
17626 * doc/posix-functions/mknodat.texi: New file.
17627 * doc/posix-functions/open_wmemstream.texi: New file.
17628 * doc/posix-functions/openat.texi: New file.
17629 * doc/posix-functions/psiginfo.texi: New file.
17630 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17631 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17632 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17633 * doc/posix-functions/readlinkat.texi: New file.
17634 * doc/posix-functions/renameat.texi: New file.
17635 * doc/posix-functions/strerror_l.texi: New file.
17636 * doc/posix-functions/symlinkat.texi: New file.
17637 * doc/posix-functions/unlinkat.texi: New file.
17638 * doc/posix-functions/utimensat.texi: New file.
17639 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17641 2008-12-14 Bruno Haible <bruno@clisp.org>
17643 Update doc for POSIX:2008.
17644 * doc/posix-functions/alphasort.texi: Renamed from
17645 doc/glibc-functions/alphasort.texi.
17646 * doc/posix-functions/dirfd.texi: Renamed from
17647 doc/glibc-functions/dirfd.texi.
17648 * doc/posix-functions/dprintf.texi: Renamed from
17649 doc/glibc-functions/dprintf.texi.
17650 * doc/posix-functions/duplocale.texi: Renamed from
17651 doc/glibc-functions/duplocale.texi.
17652 * doc/posix-functions/fexecve.texi: Renamed from
17653 doc/glibc-functions/fexecve.texi.
17654 * doc/posix-functions/fmemopen.texi: Renamed from
17655 doc/glibc-functions/fmemopen.texi.
17656 * doc/posix-functions/freelocale.texi: Renamed from
17657 doc/glibc-functions/freelocale.texi.
17658 * doc/posix-functions/getdate_err.texi: Renamed from
17659 doc/glibc-functions/getdate_err.texi.
17660 * doc/posix-functions/isalnum_l.texi: Renamed from
17661 doc/glibc-functions/isalnum_l.texi.
17662 * doc/posix-functions/isalpha_l.texi: Renamed from
17663 doc/glibc-functions/isalpha_l.texi.
17664 * doc/posix-functions/isblank_l.texi: Renamed from
17665 doc/glibc-functions/isblank_l.texi.
17666 * doc/posix-functions/iscntrl_l.texi: Renamed from
17667 doc/glibc-functions/iscntrl_l.texi.
17668 * doc/posix-functions/isdigit_l.texi: Renamed from
17669 doc/glibc-functions/isdigit_l.texi.
17670 * doc/posix-functions/isgraph_l.texi: Renamed from
17671 doc/glibc-functions/isgraph_l.texi.
17672 * doc/posix-functions/islower_l.texi: Renamed from
17673 doc/glibc-functions/islower_l.texi.
17674 * doc/posix-functions/isprint_l.texi: Renamed from
17675 doc/glibc-functions/isprint_l.texi.
17676 * doc/posix-functions/ispunct_l.texi: Renamed from
17677 doc/glibc-functions/ispunct_l.texi.
17678 * doc/posix-functions/isspace_l.texi: Renamed from
17679 doc/glibc-functions/isspace_l.texi.
17680 * doc/posix-functions/isupper_l.texi: Renamed from
17681 doc/glibc-functions/isupper_l.texi.
17682 * doc/posix-functions/iswalnum_l.texi: Renamed from
17683 doc/glibc-functions/iswalnum_l.texi.
17684 * doc/posix-functions/iswalpha_l.texi: Renamed from
17685 doc/glibc-functions/iswalpha_l.texi.
17686 * doc/posix-functions/iswblank_l.texi: Renamed from
17687 doc/glibc-functions/iswblank_l.texi.
17688 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17689 doc/glibc-functions/iswcntrl_l.texi.
17690 * doc/posix-functions/iswctype_l.texi: Renamed from
17691 doc/glibc-functions/iswctype_l.texi.
17692 * doc/posix-functions/iswdigit_l.texi: Renamed from
17693 doc/glibc-functions/iswdigit_l.texi.
17694 * doc/posix-functions/iswgraph_l.texi: Renamed from
17695 doc/glibc-functions/iswgraph_l.texi.
17696 * doc/posix-functions/iswlower_l.texi: Renamed from
17697 doc/glibc-functions/iswlower_l.texi.
17698 * doc/posix-functions/iswprint_l.texi: Renamed from
17699 doc/glibc-functions/iswprint_l.texi.
17700 * doc/posix-functions/iswpunct_l.texi: Renamed from
17701 doc/glibc-functions/iswpunct_l.texi.
17702 * doc/posix-functions/iswspace_l.texi: Renamed from
17703 doc/glibc-functions/iswspace_l.texi.
17704 * doc/posix-functions/iswupper_l.texi: Renamed from
17705 doc/glibc-functions/iswupper_l.texi.
17706 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17707 doc/glibc-functions/iswxdigit_l.texi.
17708 * doc/posix-functions/isxdigit_l.texi: Renamed from
17709 doc/glibc-functions/isxdigit_l.texi.
17710 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17711 doc/glibc-functions/mbsnrtowcs.texi.
17712 * doc/posix-functions/mkdtemp.texi: Renamed from
17713 doc/glibc-functions/mkdtemp.texi.
17714 * doc/posix-functions/newlocale.texi: Renamed from
17715 doc/glibc-functions/newlocale.texi.
17716 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17717 doc/glibc-functions/nl_langinfo_l.texi.
17718 * doc/posix-functions/open_memstream.texi: Renamed from
17719 doc/glibc-functions/open_memstream.texi.
17720 * doc/posix-functions/opterr.texi: Renamed from
17721 doc/glibc-functions/opterr.texi.
17722 * doc/posix-functions/optind.texi: Renamed from
17723 doc/glibc-functions/optind.texi.
17724 * doc/posix-functions/optopt.texi: Renamed from
17725 doc/glibc-functions/optopt.texi.
17726 * doc/posix-functions/psignal.texi: Renamed from
17727 doc/glibc-functions/psignal.texi.
17728 * doc/posix-functions/scandir.texi: Renamed from
17729 doc/glibc-functions/scandir.texi.
17730 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17731 doc/glibc-functions/sched_get_priority_min.texi.
17732 * doc/posix-functions/signgam.texi: Renamed from
17733 doc/glibc-functions/signgam.texi.
17734 * doc/posix-functions/stpcpy.texi: Renamed from
17735 doc/glibc-functions/stpcpy.texi.
17736 * doc/posix-functions/stpncpy.texi: Renamed from
17737 doc/glibc-functions/stpncpy.texi.
17738 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17739 doc/glibc-functions/strcasecmp_l.texi.
17740 * doc/posix-functions/strcoll_l.texi: Renamed from
17741 doc/glibc-functions/strcoll_l.texi.
17742 * doc/posix-functions/strfmon_l.texi: Renamed from
17743 doc/glibc-functions/strfmon_l.texi.
17744 * doc/posix-functions/strftime_l.texi: Renamed from
17745 doc/glibc-functions/strftime_l.texi.
17746 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17747 doc/glibc-functions/strncasecmp_l.texi.
17748 * doc/posix-functions/strndup.texi: Renamed from
17749 doc/glibc-functions/strndup.texi.
17750 * doc/posix-functions/strnlen.texi: Renamed from
17751 doc/glibc-functions/strnlen.texi.
17752 * doc/posix-functions/strsignal.texi: Renamed from
17753 doc/glibc-functions/strsignal.texi.
17754 * doc/posix-functions/strxfrm_l.texi: Renamed from
17755 doc/glibc-functions/strxfrm_l.texi.
17756 * doc/posix-functions/timer_gettime.texi: Renamed from
17757 doc/glibc-functions/timer_gettime.texi.
17758 * doc/posix-functions/tolower_l.texi: Renamed from
17759 doc/glibc-functions/tolower_l.texi.
17760 * doc/posix-functions/toupper_l.texi: Renamed from
17761 doc/glibc-functions/toupper_l.texi.
17762 * doc/posix-functions/towctrans_l.texi: Renamed from
17763 doc/glibc-functions/towctrans_l.texi.
17764 * doc/posix-functions/towlower_l.texi: Renamed from
17765 doc/glibc-functions/towlower_l.texi.
17766 * doc/posix-functions/towupper_l.texi: Renamed from
17767 doc/glibc-functions/towupper_l.texi.
17768 * doc/posix-functions/uselocale.texi: Renamed from
17769 doc/glibc-functions/uselocale.texi.
17770 * doc/posix-functions/vdprintf.texi: Renamed from
17771 doc/glibc-functions/vdprintf.texi.
17772 * doc/posix-functions/wcpcpy.texi:
17773 Renamed from doc/glibc-functions/wcpcpy.texi.
17774 * doc/posix-functions/wcpncpy.texi: Renamed from
17775 doc/glibc-functions/wcpncpy.texi.
17776 * doc/posix-functions/wcscasecmp.texi: Renamed from
17777 doc/glibc-functions/wcscasecmp.texi.
17778 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17779 doc/glibc-functions/wcscasecmp_l.texi.
17780 * doc/posix-functions/wcscoll_l.texi: Renamed from
17781 doc/glibc-functions/wcscoll_l.texi.
17782 * doc/posix-functions/wcsdup.texi: Renamed from
17783 doc/glibc-functions/wcsdup.texi.
17784 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17785 doc/glibc-functions/wcsncasecmp.texi.
17786 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17787 doc/glibc-functions/wcsncasecmp_l.texi.
17788 * doc/posix-functions/wcsnlen.texi: Renamed from
17789 doc/glibc-functions/wcsnlen.texi.
17790 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17791 doc/glibc-functions/wcsnrtombs.texi.
17792 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17793 doc/glibc-functions/wcsxfrm_l.texi.
17794 * doc/posix-functions/wctrans_l.texi: Renamed from
17795 doc/glibc-functions/wctrans_l.texi.
17796 * doc/posix-functions/wctype_l.texi: Renamed from
17797 doc/glibc-functions/wctype_l.texi.
17798 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17799 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17800 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17801 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17803 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17806 2008-12-14 Bruno Haible <bruno@clisp.org>
17808 Update doc for POSIX:2008.
17809 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17811 2008-12-14 Bruno Haible <bruno@clisp.org>
17813 Update doc for POSIX:2008.
17814 * doc/pastposix-functions/bcmp.texi: Renamed from
17815 doc/posix-functions/bcmp.texi.
17816 * doc/pastposix-functions/bcopy.texi: Renamed from
17817 doc/posix-functions/bcopy.texi.
17818 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17819 doc/posix-functions/bsd_signal.texi.
17820 * doc/pastposix-functions/bzero.texi: Renamed from
17821 doc/posix-functions/bzero.texi.
17822 * doc/pastposix-functions/ecvt.texi: Renamed from
17823 doc/posix-functions/ecvt.texi.
17824 * doc/pastposix-functions/fcvt.texi: Renamed from
17825 doc/posix-functions/fcvt.texi.
17826 * doc/pastposix-functions/ftime.texi: Renamed from
17827 doc/posix-functions/ftime.texi.
17828 * doc/pastposix-functions/gcvt.texi: Renamed from
17829 doc/posix-functions/gcvt.texi.
17830 * doc/pastposix-functions/getcontext.texi: Renamed from
17831 doc/posix-functions/getcontext.texi.
17832 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17833 doc/posix-functions/gethostbyaddr.texi.
17834 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17835 doc/posix-functions/gethostbyname.texi.
17836 * doc/pastposix-functions/getwd.texi: Renamed from
17837 doc/posix-functions/getwd.texi.
17838 * doc/pastposix-functions/h_errno.texi: Renamed from
17839 doc/posix-functions/h_errno.texi.
17840 * doc/pastposix-functions/index.texi: Renamed from
17841 doc/posix-functions/index.texi.
17842 * doc/pastposix-functions/makecontext.texi: Renamed from
17843 doc/posix-functions/makecontext.texi.
17844 * doc/pastposix-functions/mktemp.texi: Renamed from
17845 doc/posix-functions/mktemp.texi.
17846 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17847 doc/posix-functions/pthread_attr_getstackaddr.texi.
17848 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17849 doc/posix-functions/pthread_attr_setstackaddr.texi.
17850 * doc/pastposix-functions/rindex.texi: Renamed from
17851 doc/posix-functions/rindex.texi.
17852 * doc/pastposix-functions/scalb.texi: Renamed from
17853 doc/posix-functions/scalb.texi.
17854 * doc/pastposix-functions/setcontext.texi: Renamed from
17855 doc/posix-functions/setcontext.texi.
17856 * doc/pastposix-functions/swapcontext.texi: Renamed from
17857 doc/posix-functions/swapcontext.texi.
17858 * doc/pastposix-functions/ualarm.texi: Renamed from
17859 doc/posix-functions/ualarm.texi.
17860 * doc/pastposix-functions/usleep.texi: Renamed from
17861 doc/posix-functions/usleep.texi.
17862 * doc/pastposix-functions/vfork.texi: Renamed from
17863 doc/posix-functions/vfork.texi.
17864 * doc/pastposix-functions/wcswcs.texi: Renamed from
17865 doc/posix-functions/wcswcs.texi.
17866 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17867 (Function Substitutes): Update.
17869 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17871 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17874 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17875 Bruno Haible <bruno@clisp.org>
17877 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17879 2008-12-13 Bruno Haible <bruno@clisp.org>
17881 * modules/strtoull (Depends-on): Remove unistd.
17883 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17885 * modules/strtoull (Depends-on): Add stdlib.
17887 2008-12-11 Simon Josefsson <simon@josefsson.org>
17889 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17891 2008-12-10 Jim Meyering <meyering@redhat.com>
17893 gl_ASSERT: don't say assertions are disabled when they're not
17894 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17895 "checking whether to enable assertions... no", when they are in
17896 fact enabled. This is solely a bug in the output of configure.
17897 In spite of saying "no", NDEBUG was not defined in that case.
17898 Also, as noted by Eric Blake, leave assertions enabled upon
17899 --enable-assert=INVALID.
17901 2008-12-10 Bruno Haible <bruno@clisp.org>
17903 Change MODULES.html to refer to POSIX:2008 where possible.
17904 * MODULES.html.sh (POSIX2008_URL): New variable.
17905 (posix_headers): Remove sys/timeb, ucontext.
17906 (posix2001_headers): New variable.
17907 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17908 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17909 index, makecontext, mktemp, pthread_attr_getstackaddr,
17910 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17911 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17912 (posix2001_functions): New variable.
17913 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17916 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17918 add missing include to parse-duration.c
17919 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17920 * modules/parse-duration (Depends-on): Add xalloc.
17922 fix sed script reading maint.mk
17923 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17924 (syntax-check-rules): Use it.
17926 2008-12-09 Bruno Haible <bruno@clisp.org>
17928 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17929 MacOS X 10.4/PowerPC.
17930 Reported by Simon Josefsson.
17932 2008-12-08 Jim Meyering <meyering@redhat.com>
17934 work around mingw's lack of some S_IF definitions
17935 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17936 Reported by Simon Josefsson.
17938 2008-12-08 Bruno Haible <bruno@clisp.org>
17940 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17941 applied to variables. Needed on MacOS X 10.4/PowerPC.
17942 Reported by Simon Josefsson.
17944 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17945 and Eric Blake <ebb9@byu.net>
17947 assert: honor --enable-assert
17948 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17949 order to honor --enable-assert, rather than treating it as a
17950 synonym for --disable-assert.
17952 2008-12-08 Jim Meyering <meyering@redhat.com>
17954 * lib/posixtm.c: Remove now-useless declaration of mktime.
17956 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17958 2008-12-07 Bruno Haible <bruno@clisp.org>
17960 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17961 test_once): Mark functions as static.
17962 * tests/test-tls.c (test_tls): Likewise.
17964 2008-12-07 Bruno Haible <bruno@clisp.org>
17966 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17967 iconv_register_autodetect.
17969 2008-12-07 Jim Meyering <meyering@redhat.com>
17971 posixtm.c: avoid a warning
17972 * lib/posixtm.c (posixtime): Don't initialize tm0.
17973 It's no longer needed to placate gcc4's -Wuninitialized,
17974 and the attempt to placate would elicit a new warning.
17976 unicodeio.c: mark unused parameters
17977 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17978 (fallback_failure_callback): Likewise.
17980 2008-12-07 Bruno Haible <bruno@clisp.org>
17982 * gnulib-tool (func_create_testdir): When building the tests
17983 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17984 Reported by Simon Josefsson.
17986 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17988 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17990 2008-12-06 Bruno Haible <bruno@clisp.org>
17992 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17993 Suggested by Eric Blake.
17995 2008-12-06 Bruno Haible <bruno@clisp.org>
17997 Fix a c-stack test failure on MacOS X.
17998 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17999 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18000 handler for SIGBUS as well.
18001 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18002 install a signal handler for SIGBUS as well.
18003 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18005 2008-12-06 Bruno Haible <bruno@clisp.org>
18007 Advocacy documentation.
18008 * doc/gnulib-intro.texi (Benefits): New section.
18009 * doc/gnulib.texi: Update.
18011 2008-12-06 Bruno Haible <bruno@clisp.org>
18013 Document the 'manywarnings' module.
18014 * doc/manywarnings.texi: New file.
18015 * doc/gnulib.texi: Include it.
18017 2008-12-05 Eric Blake <ebb9@byu.net>
18019 tests: silence some gcc warnings
18020 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18021 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18024 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18025 Bruno Haible <bruno@clisp.org>
18027 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18029 2008-11-29 Jim Meyering <meyering@redhat.com>
18031 unicodeio.c: mark unused parameters
18032 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18033 (fallback_failure_callback): Likewise.
18036 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18037 (set_stat_type): Return S_IF*-valued "type" directly.
18038 Prompted by James Youngman's spotting a related bug.
18039 Confirmed by further testing through find.
18041 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18042 * lib/fts.c (D_TYPE): Define.
18043 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18044 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18045 (s_ifmt_shift_bits): New function.
18046 (set_stat_type): New function.
18047 (fts_build): When not calling fts_stat, call set_stat_type
18048 to propagate dirent.d_type info to fts_read caller.
18049 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18050 fts_statp->st_mode type information may be valid.
18052 2008-11-28 Simon Josefsson <simon@josefsson.org>
18054 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18055 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18058 2008-11-20 Bruno Haible <bruno@clisp.org>
18060 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18061 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18063 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18064 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18065 * modules/math (Makefile.am): Substitute
18066 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18067 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18069 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18070 Bruno Haible <bruno@clisp.org>
18072 * lib/stdint.in.h: Define all type macros so that their expansion is
18073 a single typedef'ed token. Fixes a compilation failure in Boost which
18074 does "using ::int8_t;".
18076 2008-11-18 Simon Josefsson <simon@josefsson.org>
18078 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18079 gl_MANYWARN_ALL_GCC.
18080 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18081 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18082 * modules/manywarnings: New file.
18083 * MODULES.html.sh: Mention manywarnings module.
18085 2008-11-18 Bruno Haible <bruno@clisp.org>
18087 * doc/gnulib-tool.texi (Unit tests): New section.
18089 2008-11-18 Simon Josefsson <simon@josefsson.org>
18091 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18092 paths like 'lib/po/foo.po'.
18094 2008-11-17 Simon Josefsson <simon@josefsson.org>
18096 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18097 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18099 2008-11-17 Simon Josefsson <simon@josefsson.org>
18101 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18104 2008-11-17 Simon Josefsson <simon@josefsson.org>
18106 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18108 2008-11-17 Bruce Korb <bkorb@gnu.org>
18110 * modules/parse-duration-tests: New file.
18111 * tests/test-parse-duration.sh: New file.
18112 * tests/test-parse-duration.c: New file.
18114 New module 'parse-duration'.
18115 * lib/parse-duration.h: New file.
18116 * lib/parse-duration.c: New file.
18117 * modules/parse-duration: New file.
18119 2008-11-17 Bruno Haible <bruno@clisp.org>
18121 * tests/test-select-out.sh: Comment out the first pipe test.
18122 Reported by Simon Josefsson.
18124 2008-11-17 Bruno Haible <bruno@clisp.org>
18126 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18127 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18130 2008-11-17 Bruno Haible <bruno@clisp.org>
18132 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18133 -lnetwork and -lnet. Needed for Haiku and BeOS.
18135 2008-11-16 Bruno Haible <bruno@clisp.org>
18137 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18139 2008-11-16 Bruno Haible <bruno@clisp.org>
18141 Avoid test failure on Haiku.
18142 * tests/test-fsync.c: Include <errno.h>.
18143 (main): Don't require that fsync (0) fails.
18145 2008-11-15 Bruno Haible <bruno@clisp.org>
18147 New module 'hostent'.
18148 * modules/hostent: New file.
18149 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18151 2008-11-15 Bruno Haible <bruno@clisp.org>
18153 New module 'servent'.
18154 * modules/servent: New file.
18155 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18157 2008-11-15 Bruno Haible <bruno@clisp.org>
18159 Avoid generating same test program with two different rules.
18160 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18161 test-frexp to test-frexp-nolibm.
18162 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18163 test-frexpl to test-frexpl-nolibm.
18165 2008-11-15 Bruno Haible <bruno@clisp.org>
18167 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18170 2008-11-15 Bruno Haible <bruno@clisp.org>
18172 * lib/netdb.in.h: Activate the definitions also when the system's
18173 <netdb.h> has 'struct addrinfo'.
18174 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18175 EAI_OVERFLOW or AI_NUMERICSERV.
18176 * doc/posix-headers/netdb.texi: Document the problem.
18178 2008-11-15 Bruno Haible <bruno@clisp.org>
18180 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18182 Make the 'sched' module work on platforms where <sched.h> exists but
18183 is incomplete (such as Haiku).
18184 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18185 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18186 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18187 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18188 HAVE_STRUCT_SCHED_PARAM.
18189 * modules/sched (Depends-on): Add include_next.
18190 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18191 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18192 * doc/posix-headers/sched.texi: Document the issue.
18194 2008-11-13 Jim Meyering <meyering@redhat.com>
18196 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18197 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18198 test would fail due to the difference in the Report bugs to ...
18199 line. The expected address is empty, "<>", while the actual
18200 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18202 2008-11-12 Bruno Haible <bruno@clisp.org>
18204 lstat: don't compile lstat.c on systems lacking lstat
18205 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18206 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18207 Reported by Daniel P. Berrange via Jim Meyering.
18209 2008-11-12 Jim Meyering <meyering@redhat.com>
18211 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18213 2008-11-12 Simon Josefsson <simon@josefsson.org>
18215 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18218 2008-11-12 Bruno Haible <bruno@clisp.org>
18220 * lib/unicodeio.c: Include unistr.h.
18221 (utf8_wctomb): Remove function.
18222 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18224 2008-11-12 Simon Josefsson <simon@josefsson.org>
18226 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18227 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18229 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18231 2008-11-12 Simon Josefsson <simon@josefsson.org>
18233 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18234 * doc/gnulib.texi: Add section for warnings.
18236 2008-11-11 Bruno Haible <bruno@clisp.org>
18238 * lib/sockets.h: Add a comment.
18240 2008-11-11 Karl Berry <karl@gnu.org>
18242 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18244 2008-11-11 Eric Blake <ebb9@byu.net>
18246 fdl.texi: avoid git symlinks
18247 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18249 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18251 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18253 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18255 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18256 (gl_WARN_ADD): Substitute $2 if literal.
18258 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18260 * m4/warning.m4: Remove.
18262 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18264 * m4/warnings.m4: Almost complete rewrite. :-)
18266 2008-11-10 Simon Josefsson <simon@josefsson.org>
18268 * modules/warnings: New module.
18269 * m4/warnings.m4: New file.
18270 * MODULES.html.sh: Mention warnings module.
18271 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18272 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18274 2008-11-10 Eric Blake <ebb9@byu.net>
18276 fdl.texi: make a symlink to the latest version
18277 * doc/standards.texi: Revert today's earlier change.
18278 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18279 * doc/fdl.texi: ...and replace this with a symlink to the newer
18282 2008-11-10 Bruno Haible <bruno@clisp.org>
18284 * tests/test-select-fd.c (main): Accept the result file name as fourth
18286 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18287 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18289 2008-11-10 Bruno Haible <bruno@clisp.org>
18291 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18292 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18293 as autoconf-substituted macros.
18294 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18295 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18296 gl_NETDB_H_DEFAULTS. Set these variables.
18297 * modules/netdb (Makefile.am): Substitute these variables.
18299 2008-11-10 Eric Blake <ebb9@byu.net>
18301 standards.texi: include correct file for FDL 1.3
18302 * doc/standards.texi (GNU Free Documentation License): Change
18303 include file to pull in FDL 1.3, not 1.2.
18305 fdl.texi: revert accidental change to license
18306 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18308 2008-11-10 Bruno Haible <bruno@clisp.org>
18310 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18311 cross-compiling guesses also when the native compile gives no result.
18313 2008-11-10 Bruno Haible <bruno@clisp.org>
18315 * lib/spawni.c (__spawni): Force variable into the stack.
18317 2008-11-10 Bruno Haible <bruno@clisp.org>
18319 Add support for Haiku.
18320 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18321 glibc and BeOS, but also on Haiku.
18322 * lib/fpurge.c (fpurge): Likewise.
18323 * lib/freadable.c (freadable): Likewise.
18324 * lib/freadahead.c (freadahead): Likewise.
18325 * lib/freading.c (freading): Likewise.
18326 * lib/freadptr.c (freadptr): Likewise.
18327 * lib/freadseek.c (freadptrinc): Likewise.
18328 * lib/fseeko.c (rpl_fseeko): Likewise.
18329 * lib/fseterr.c (fseterr): Likewise.
18330 * lib/fwritable.c (fwritable): Likewise.
18331 * lib/fwriting.c (fwriting): Likewise.
18332 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18334 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18336 * lib/config.charset: Treat Haiku like BeOS.
18338 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18340 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18341 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18343 2008-11-08 Bruno Haible <bruno@clisp.org>
18345 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18348 2008-11-08 Bruno Haible <bruno@clisp.org>
18350 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18352 2008-11-08 Bruno Haible <bruno@clisp.org>
18354 * tests/test-select-fd.c: New file.
18355 * tests/test-select-in.sh: New file.
18356 * tests/test-select-out.sh: New file.
18357 * tests/test-select-stdin.c: New file.
18358 * modules/select-tests (Files): Add the new files.
18359 (Depends-on): Add gettimeofday.
18360 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18361 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18362 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18364 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18365 Bruno Haible <bruno@clisp.org>
18367 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18369 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18371 * build-aux/pmccabe2html: Added support for C++ source files.
18373 2008-11-05 Ben Pfaff <blp@gnu.org>
18375 Fix lib/close.c build on Windows.
18376 * modules/close (Files): Add lib/w32sock.h.
18378 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18380 Accept Bison's NEWS format.
18381 * build-aux/announce-gen (print_news_deltas): Tweak
18384 2008-11-04 Bruno Haible <bruno@clisp.org>
18386 * modules/random_r (Maintainer): Add glibc.
18388 2008-11-04 Simon Josefsson <simon@josefsson.org>
18390 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18391 by karl@freefriends.org (Karl Berry).
18392 * doc/alloca.texi: Likewise.
18393 * doc/c-ctype.texi: Likewise.
18394 * doc/c-strcase.texi: Likewise.
18395 * doc/c-strcaseeq.texi: Likewise.
18396 * doc/c-strcasestr.texi: Likewise.
18397 * doc/c-strstr.texi: Likewise.
18398 * doc/c-strtod.texi: Likewise.
18399 * doc/c-strtold.texi: Likewise.
18400 * doc/ctime.texi: Likewise.
18401 * doc/error.texi: Likewise.
18402 * doc/fdl.texi: Likewise.
18403 * doc/gcd.texi: Likewise.
18404 * doc/getdate.texi: Likewise.
18405 * doc/gnulib-intro.texi: Likewise.
18406 * doc/gnulib-tool.texi: Likewise.
18407 * doc/gnulib.texi: Likewise.
18408 * doc/inet_ntoa.texi: Likewise.
18409 * doc/maintain.texi: Likewise.
18410 * doc/make-stds.texi: Likewise.
18411 * doc/quote.texi: Likewise.
18412 * doc/regexprops-generic.texi: Likewise.
18413 * doc/standards.texi: Likewise.
18414 * doc/verify.texi: Likewise.
18415 * doc/visibility.texi: Likewise.
18416 * doc/gnulib.texi (GNU Free Documentation License): Include
18417 fdl-1.3.texi instead of fdl.texi.
18419 2008-11-04 Simon Josefsson <simon@josefsson.org>
18421 * doc/fdl-1.3.texi: New file, from
18422 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18423 * modules/fdl-1.3: Add.
18424 * MODULES.html.sh: Add fdl-1.3.
18426 2008-11-03 Bruno Haible <bruno@clisp.org>
18428 Make determination of absolute name of header file work with AIX xlc.
18429 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18430 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18432 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18433 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18435 2008-11-03 Simon Josefsson <simon@josefsson.org>
18437 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18438 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18441 2008-11-02 Bruno Haible <bruno@clisp.org>
18443 Mark 'strpbrk' obsolete.
18444 * modules/strpbrk (Status, Notice): New sections.
18445 * modules/strtok_r (Depends-on): Add strpbrk.
18447 2008-11-02 Bruno Haible <bruno@clisp.org>
18449 Mark 'strdup' obsolete.
18450 * modules/strdup (Status, Notice): New sections.
18451 * modules/findprog (Depends-on): Add strdup.
18452 * modules/getaddrinfo (Depends-on): Likewise.
18453 * modules/localename (Depends-on): Likewise.
18454 * modules/relocatable-lib (Depends-on): Likewise.
18455 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18456 * modules/relocatable-prog (Depends-on): Likewise.
18457 * modules/trim (Depends-on): Likewise.
18458 * modules/unictype/gen-ctype (Depends-on): Likewise.
18459 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18461 2008-11-02 Bruno Haible <bruno@clisp.org>
18463 Mark 'strcspn' obsolete.
18464 * modules/strcspn (Status, Notice): New sections.
18466 2008-11-02 Bruno Haible <bruno@clisp.org>
18468 Mark 'rmdir' obsolete.
18469 * modules/rmdir (Status, Notice): New sections.
18470 * modules/clean-temp (Depends-on): Add rmdir.
18471 * modules/openat (Depends-on): Likewise.
18473 2008-11-02 Bruno Haible <bruno@clisp.org>
18475 Mark 'raise' obsolete.
18476 * modules/raise (Status, Notice): New sections.
18477 (Include): Specify <signal.h>.
18478 * modules/stdio (Depends-on): Add raise.
18479 * modules/write (Depends-on): Likewise.
18481 2008-11-02 Bruno Haible <bruno@clisp.org>
18483 Mark 'memset' obsolete.
18484 * modules/memset (Status, Notice): New sections.
18486 2008-11-02 Bruno Haible <bruno@clisp.org>
18488 Mark 'memmove' obsolete.
18489 * modules/memmove (Status, Notice): New sections.
18490 * modules/argp (Depends-on): Add memmove.
18491 * modules/argz (Depends-on): Likewise.
18492 * modules/canonicalize (Depends-on): Likewise.
18493 * modules/canonicalize-lgpl (Depends-on): Likewise.
18494 * modules/fts (Depends-on): Likewise.
18495 * modules/getcwd (Depends-on): Likewise.
18496 * modules/human (Depends-on): Likewise.
18497 * modules/regex (Depends-on): Likewise.
18498 * modules/striconveh (Depends-on): Likewise.
18499 * modules/trim (Depends-on): Likewise.
18500 * modules/unistr/u8-move (Depends-on): Likewise.
18501 * modules/unistr/u16-move (Depends-on): Likewise.
18502 * modules/unistr/u32-move (Depends-on): Likewise.
18504 2008-11-02 Bruno Haible <bruno@clisp.org>
18506 Mark 'memcpy' obsolete.
18507 * modules/memcpy (Status, Notice): New sections.
18509 2008-11-02 Bruno Haible <bruno@clisp.org>
18511 Mark 'memcmp' obsolete.
18512 * modules/memcmp (Status, Notice): New sections.
18513 * modules/argmatch (Depends-on): Add memchr.
18514 * modules/backupfile (Depends-on): Likewise.
18515 * modules/c-strcasestr (Depends-on): Likewise.
18516 * modules/crypto/des (Depends-on): Likewise.
18517 * modules/csharpcomp (Depends-on): Likewise.
18518 * modules/fnmatch (Depends-on): Likewise.
18519 * modules/git-merge-changelog (Depends-on): Likewise.
18520 * modules/isnand (Depends-on): Likewise.
18521 * modules/isnand-nolibm (Depends-on): Likewise.
18522 * modules/isnanf (Depends-on): Likewise.
18523 * modules/isnanf-nolibm (Depends-on): Likewise.
18524 * modules/isnanl (Depends-on): Likewise.
18525 * modules/isnanl-nolibm (Depends-on): Likewise.
18526 * modules/mbchar (Depends-on): Likewise.
18527 * modules/memcoll (Depends-on): Likewise.
18528 * modules/quotearg (Depends-on): Likewise.
18529 * modules/regex (Depends-on): Likewise.
18530 * modules/relocatable-prog (Depends-on): Likewise.
18531 * modules/same (Depends-on): Likewise.
18532 * modules/signbit (Depends-on): Likewise.
18533 * modules/strcasestr-simple (Depends-on): Likewise.
18534 * modules/unictype/gen-ctype (Depends-on): Likewise.
18535 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18536 * modules/uniname/uniname (Depends-on): Likewise.
18537 * modules/unistr/u8-cmp (Depends-on): Likewise.
18539 2008-11-02 Bruno Haible <bruno@clisp.org>
18541 Mark 'memchr' obsolete.
18542 * modules/memchr (Status, Notice): New sections.
18543 * modules/argp (Depends-on): Add memchr.
18544 * modules/base64 (Depends-on): Likewise.
18545 * modules/c-strcasestr (Depends-on): Likewise.
18546 * modules/chdir-long (Depends-on): Likewise.
18547 * modules/fnmatch (Depends-on): Likewise.
18548 * modules/getsubopt (Depends-on): Likewise.
18549 * modules/git-merge-changelog (Depends-on): Likewise.
18550 * modules/glob (Depends-on): Likewise.
18551 * modules/strcasestr-simple (Depends-on): Likewise.
18552 * modules/strnlen (Depends-on): Likewise.
18554 2008-11-02 Bruno Haible <bruno@clisp.org>
18556 Mark 'atexit' obsolete.
18557 * modules/atexit (Status, Notice): New sections.
18558 * modules/chdir-long (Depends-on): Add atexit.
18559 * modules/wait-process (Depends-on): Likewise.
18561 2008-11-02 Bruno Haible <bruno@clisp.org>
18563 * gnulib-tool: New option --with-obsolete.
18564 (func_usage): Document it.
18565 (func_modules_transitive_closure): Drop obsolete dependencies if
18566 incobsolete is not true.
18567 (func_import): Read and save the incobsolete variable to the cache.
18569 2008-11-02 Bruno Haible <bruno@clisp.org>
18571 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18572 * gnulib-tool: New option --extract-status.
18573 (func_usage): Document it.
18574 (sed_extract_prog): Recognize it.
18575 (func_get_status): New function.
18577 2008-10-30 Simon Josefsson <simon@josefsson.org>
18579 * modules/sockets (License): Change from LGPL to LGPLv2+.
18581 2008-10-28 Simon Josefsson <simon@josefsson.org>
18583 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18585 2008-10-28 Simon Josefsson <simon@josefsson.org>
18587 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18588 Mention times and sys_times.
18589 * modules/sys_times, modules/sys_times-tests: New modules.
18590 * modules/times, modules/times-tests: Likewise
18591 * m4/sys_times_h.m4: New file.
18592 * lib/sys_times.in.h: Likewise
18593 * lib/times.c: Likewise.
18594 * tests/test-sys_times.c: Likewise.
18595 * tests/test-times.c: Likewise.
18596 * doc/posix-headers/sys_times.texi: Update.
18597 * doc/posix-functions/times.texi: Update.
18599 2008-10-28 Jim Meyering <meyering@redhat.com>
18601 * modules/tempname (Depends-on): Add lstat.
18603 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18605 2008-10-28 Simon Josefsson <simon@josefsson.org>
18607 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18608 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18609 using idiom used elsewhere in gnulib.
18611 2008-10-27 Jim Meyering <meyering@redhat.com>
18613 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18615 2008-10-27 Simon Josefsson <simon@josefsson.org>
18617 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18618 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18620 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18622 2008-10-27 Simon Josefsson <simon@josefsson.org>
18624 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18626 2008-10-27 Bruno Haible <bruno@clisp.org>
18628 * tests/test-lstat.c: Include <stdio.h>.
18630 2008-10-27 Simon Josefsson <simon@josefsson.org>
18632 * modules/lstat-tests: New module.
18633 * tests/test-lstat.c: New file.
18635 2008-10-26 Jim Meyering <meyering@redhat.com>
18637 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18639 2008-10-26 Simon Josefsson <simon@josefsson.org>
18640 Bruno Haible <bruno@clisp.org>
18642 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18643 * modules/configmake (Include): Add a note that the include must come
18644 after all system headers.
18645 * lib/javaversion.c: Include configmake.h after all other includes.
18647 2008-10-26 Bruno Haible <bruno@clisp.org>
18649 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18650 HAVE_STRUCT_RANDOM_DATA to 1.
18651 (gl_STDLIB_H): Simplify.
18653 2008-10-26 Simon Josefsson <simon@josefsson.org>
18655 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18656 substitute HAVE_STRUCT_RANDOM_DATA.
18657 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18659 * modules/stdlib (Makefile.am): Substitute
18660 HAVE_STRUCT_RANDOM_DATA.
18662 2008-10-26 Simon Josefsson <simon@josefsson.org>
18664 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18665 * doc/gnulib-intro.texi (Copyright): Likewise.
18667 2008-10-26 Simon Josefsson <simon@josefsson.org>
18669 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18672 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18673 Bruno Haible <bruno@clisp.org>
18675 * lib/unistd.in.h: Include <winsock2.h>.
18676 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18677 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18678 Provide dummy declarations.
18679 (gethostname): Override.
18680 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18681 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18682 gl_PREREQ_SYS_H_WINSOCK2.
18683 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18684 * doc/posix-functions/gethostname.texi: More details.
18686 2008-10-25 Bruno Haible <bruno@clisp.org>
18688 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18689 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18690 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18692 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18694 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18695 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18696 gl_UNISTD_H_DEFAULTS.
18698 2008-10-25 Eric Blake <ebb9@byu.net>
18700 signbit: avoid spurious compiler failure
18701 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18702 declarations inside function.
18704 2008-10-24 Simon Josefsson <simon@josefsson.org>
18705 Bruno Haible <bruno@clisp.org>
18707 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18708 * modules/random_r (Depends-on): Add stdint.
18710 2008-10-24 Bruno Haible <bruno@clisp.org>
18712 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18714 * modules/strerror (License): Likewise.
18716 2008-10-24 Jim Meyering <meyering@redhat.com>
18718 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18719 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18721 2008-10-24 Eric Blake <ebb9@byu.net>
18723 getgroups: fix compilation when getgroups is available
18724 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18725 but with <config.h> override of getgroups disabled.
18727 2008-10-24 Simon Josefsson <simon@josefsson.org>
18729 * doc/gnulib.texi (Header files): Add note about C++ problems.
18730 Explained by Bruno Haible <bruno@clisp.org>.
18732 2008-10-23 Bruno Haible <bruno@clisp.org>
18734 Define a dummy SA_NODEFER macro on Interix.
18735 * lib/signal.in.h (SA_NODEFER): Define fallback.
18736 Reported by Aleksey Cheusov <cheusov@tut.by> via
18737 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18739 2008-10-23 Bruno Haible <bruno@clisp.org>
18741 * modules/freadahead (License): Change to LGPLv2+.
18742 Suggested by Simon Josefsson.
18744 2008-10-23 Jim Meyering <meyering@redhat.com>
18746 random_r: new module
18747 * modules/random_r: New file.
18748 * m4/random_r.m4: New file.
18749 * lib/random_r.c: New file, from glibc.
18750 * modules/random_r-tests: New file.
18751 * tests/test-random_r.c: New file.
18752 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18754 (RAND_MAX): Define.
18755 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18756 * modules/stdlib: Substitute them, too.
18757 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18758 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18759 * doc/glibc-functions/random_r.texi: Likewise.
18760 * doc/glibc-functions/setstate_r.texi: Likewise.
18761 * doc/glibc-functions/srandom_r.texi: Likewise.
18762 * config/srclist.txt: Mention it.
18764 2008-10-23 David Lutterkort <lutter@redhat.com>
18766 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18769 2008-10-23 Jim Meyering <meyering@redhat.com>
18771 selinux-h: mark parameters of stub functions as intentionally unused
18772 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18773 * lib/se-context.in.h: Likewise.
18775 2008-10-22 Simon Josefsson <simon@josefsson.org>
18777 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18779 2008-10-22 Simon Josefsson <simon@josefsson.org>
18781 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18783 2008-10-22 Eric Blake <ebb9@byu.net>
18785 glthread/thread: avoid compiler warning
18786 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18787 Add unreachable abort to silence compiler.
18789 2008-10-22 Eric Blake <ebb9@byu.net>
18791 netdb: also supply struct addrinfo for cygwin 1.5.x
18792 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18794 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18796 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18798 2008-10-22 Bruno Haible <bruno@clisp.org>
18800 * users.txt: Update entry about pspp.
18802 2008-10-21 Bruno Haible <bruno@clisp.org>
18805 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18806 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18809 * lib/ioctl.c (ioctl): Don't undefine.
18810 * lib/socket.c (socket): Don't undefine.
18812 Remove unused module indicator macros.
18813 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18814 GNULIB_$1 as a C macro.
18816 * doc/posix-functions/close.texi: Undo last change.
18817 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18820 2008-10-21 Bruno Haible <bruno@clisp.org>
18822 Add gethostname() declaration to <unistd.h>.
18823 * lib/unistd.in.h (gethostname): New declaration.
18824 * lib/gethostname.c: Include <unistd.h>.
18825 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18826 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18827 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18828 and HAVE_GETHOSTNAME.
18829 * modules/gethostname (Depends-on): Add unistd.
18830 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18831 (Include): Specify <unistd.h>.
18832 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18834 * tests/test-gethostname.c: Include <unistd.h> first.
18836 2008-10-21 Bruno Haible <bruno@clisp.org>
18838 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18839 * modules/select-tests (Depends-on): Likewise.
18840 Reported by Simon Josefsson.
18842 2008-10-21 Simon Josefsson <simon@josefsson.org>
18844 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18845 * lib/accept.c: New file, based on winsock.c.
18846 * lib/bind.c: New file, based on winsock.c.
18847 * lib/connect.c: New file, based on winsock.c.
18848 * lib/getpeername.c: New file, based on winsock.c.
18849 * lib/getsockname.c: New file, based on winsock.c.
18850 * lib/getsockopt.c: New file, based on winsock.c.
18851 * lib/ioctl.c: New file, based on winsock.c.
18852 * lib/listen.c: New file, based on winsock.c.
18853 * lib/recv.c: New file, based on winsock.c.
18854 * lib/recvfrom.c: New file, based on winsock.c.
18855 * lib/send.c: New file, based on winsock.c.
18856 * lib/sendto.c: New file, based on winsock.c.
18857 * lib/setsockopt.c: New file, based on winsock.c.
18858 * lib/shutdown.c: New file, based on winsock.c.
18859 * lib/socket.c: New file, based on winsock.c.
18860 * lib/w32sock.h: New file, based on winsock.c.
18861 * lib/winsock.c: Remove file.
18862 * modules/accept: Likewise.
18863 * modules/bind: Likewise.
18864 * modules/connect: Likewise.
18865 * modules/getpeername: Likewise.
18866 * modules/getsockname: Likewise.
18867 * modules/getsockopt: Likewise.
18868 * modules/ioctl: Likewise.
18869 * modules/listen: Likewise.
18870 * modules/recv: Likewise.
18871 * modules/recvfrom: Likewise.
18872 * modules/send: Likewise.
18873 * modules/sendto: Likewise.
18874 * modules/setsockopt: Likewise.
18875 * modules/shutdown: Likewise.
18876 * modules/socket: Use socket.c instead of winsock.c.
18877 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18878 * doc/posix-functions/accept.texi: Doc fix.
18879 * doc/posix-functions/bind.texi: Doc fix.
18880 * doc/posix-functions/close.texi: Doc fix.
18881 * doc/posix-functions/connect.texi: Doc fix.
18882 * doc/posix-functions/getpeername.texi: Doc fix.
18883 * doc/posix-functions/getsockname.texi: Doc fix.
18884 * doc/posix-functions/getsockopt.texi: Doc fix.
18885 * doc/posix-functions/ioctl.texi: Doc fix.
18886 * doc/posix-functions/listen.texi: Doc fix.
18887 * doc/posix-functions/recv.texi: Doc fix.
18888 * doc/posix-functions/recvfrom.texi: Doc fix.
18889 * doc/posix-functions/send.texi: Doc fix.
18890 * doc/posix-functions/sendto.texi: Doc fix.
18891 * doc/posix-functions/setsockopt.texi: Doc fix.
18892 * doc/posix-functions/shutdown.texi: Doc fix.
18893 * doc/posix-functions/socket.texi: Doc fix.
18895 2008-10-20 Bruno Haible <bruno@clisp.org>
18897 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18898 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18899 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18900 as an alias for SIGABRT.
18901 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18902 (sigaction): Map it to SIGABRT.
18903 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18905 2008-10-20 Bruno Haible <bruno@clisp.org>
18907 * lib/fts.c: Don't include lstat.h.
18908 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18910 Move the lstat() declaration to <sys/stat.h>.
18911 * lib/lstat.h: Remove file.
18912 * lib/sys_stat.in.h: Add special invocation convention.
18913 (lstat): New declaration.
18914 * lib/lstat.c (orig_lstat): New function.
18915 (rpl_lstat): Use orig_lstat instead of lstat.
18916 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18917 AC_C_INLINE. Set REPLACE_LSTAT.
18918 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18920 * modules/lstat (Files): Remove lib/lstat.h.
18921 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18922 (Include): Specify <sys/stat.h> instead of lstat.h.
18923 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18925 * NEWS: Mention the change.
18927 2008-10-20 Bruno Haible <bruno@clisp.org>
18929 * modules/posix_spawn-tests: New file.
18930 * tests/test-posix_spawn3.c: New file.
18932 2008-10-20 Bruno Haible <bruno@clisp.org>
18934 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18935 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18936 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18937 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18938 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18940 2008-10-20 Bruno Haible <bruno@clisp.org>
18942 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18943 of posix_spawn on AIX 5.3.
18945 2008-10-20 Bruno Haible <bruno@clisp.org>
18947 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18949 2008-10-20 Bruno Haible <bruno@clisp.org>
18951 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18952 of AC_LANG_PROGRAM.
18954 2008-10-20 Simon Josefsson <simon@josefsson.org>
18956 * lib/netdb.in.h: Don't define GNU specific constants until they
18957 are supported or needed. Reported by Bruno Haible
18960 2008-10-20 Simon Josefsson <simon@josefsson.org>
18962 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18964 2008-10-20 Simon Josefsson <simon@josefsson.org>
18966 * lib/getaddrinfo.h: Remove file.
18967 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18968 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18969 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18970 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18971 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18972 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18973 * tests/test-getaddrinfo.c: Likewise.
18974 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18975 * NEWS: Mention change.
18977 2008-10-19 Bruno Haible <bruno@clisp.org>
18979 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18981 2008-10-19 Bruno Haible <bruno@clisp.org>
18983 * lib/wait-process.c: Include simply <sys/wait.h>.
18984 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18985 WIFSTOPPED): Remove fallback definitions.
18986 * modules/wait-process (Depends-on): Add sys_wait.
18988 New module 'sys_wait'.
18989 * modules/sys_wait: New file.
18990 * lib/sys_wait.in.h: New file, partially copied from
18991 lib/wait-process.c.
18992 * m4/sys_wait_h.m4: New file.
18993 * doc/posix-headers/sys_wait.texi: Mention the new module.
18995 2008-10-19 Bruno Haible <bruno@clisp.org>
18997 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18999 2008-10-19 Bruno Haible <bruno@clisp.org>
19001 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19002 * lib/wait-process.c (WAIT_T): Remove type.
19003 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19004 (wait_subprocess): Update.
19006 2008-10-19 Bruno Haible <bruno@clisp.org>
19008 New module 'atoll'.
19009 * modules/atoll: New file.
19010 * lib/stdlib.in.h (atoll): New declaration.
19011 * lib/atoll.c: New file, from glibc with modifications.
19012 * m4/atoll.m4: New file.
19013 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19015 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19016 * doc/posix-functions/atoll.texi: Mention the new module.
19018 2008-10-19 Bruno Haible <bruno@clisp.org>
19020 Add strtoull() declaration to <stdlib.h>.
19021 * lib/stdlib.in.h (strtoull): New declaration.
19022 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19024 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19026 * modules/strtoull (Depends-on): Add stdlib.
19027 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19028 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19031 2008-10-19 Bruno Haible <bruno@clisp.org>
19033 Add strtoll() declaration to <stdlib.h>.
19034 * lib/stdlib.in.h (strtoll): New declaration.
19035 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19037 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19039 * modules/strtoll (Depends-on): Add stdlib.
19040 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19041 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19043 2008-10-19 Bruno Haible <bruno@clisp.org>
19045 * modules/bcopy (Depends-on): Add strings.
19046 (Include): Specify <strings.h>.
19048 2008-10-19 Bruno Haible <bruno@clisp.org>
19050 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19052 2008-10-19 Bruno Haible <bruno@clisp.org>
19054 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19055 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19058 2008-10-19 Bruno Haible <bruno@clisp.org>
19060 * lib/atanl.c: Don't include isnanl.h.
19061 * lib/cosl.c: Likewise.
19062 * lib/ldexpl.c: Likewise.
19063 * lib/logl.c: Likewise.
19064 * lib/sinl.c: Likewise.
19065 * lib/sqrtl.c: Likewise.
19066 * lib/tanl.c: Likewise.
19068 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19069 * lib/isnanf.h: Remove file.
19070 * lib/isnand.h: Remove file.
19071 * lib/isnanl.h: Remove file.
19072 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19073 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19075 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19076 HAVE_ISNANF, don't define it as a C macro.
19077 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19078 HAVE_ISNAND, don't define it as a C macro.
19079 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19080 HAVE_ISNANL, don't define it as a C macro.
19081 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19083 * modules/isnanf (Files): Remove lib/isnanf.h.
19084 (Depends-on): Add math.
19085 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19086 (Include): Specify <math.h> instead of isnanf.h.
19087 * modules/isnand (Files): Remove lib/isnand.h.
19088 (Depends-on): Add math.
19089 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19090 (Include): Specify <math.h> instead of isnand.h.
19091 * modules/isnanl (Files): Remove lib/isnanl.h.
19092 (Depends-on): Add math.
19093 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19094 (Include): Specify <math.h> instead of isnanl.h.
19095 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19097 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19098 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19099 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19100 * NEWS: Mention the change.
19102 2008-10-18 Bruno Haible <bruno@clisp.org>
19104 Add getusershell(), setusershell(), endusershell() declarations to
19106 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19108 * lib/getusershell.c: Include unistd.h.
19109 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19110 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19112 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19113 and HAVE_GETUSERSHELL.
19114 * modules/getusershell (Depends-on): Add unistd, extensions.
19115 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19116 (Include): Specify <unistd.h>.
19117 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19120 2008-10-18 Bruno Haible <bruno@clisp.org>
19122 Add a getloadavg() declaration to <stdlib.h>.
19123 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19124 getloadavg declaration.
19125 (getloadavg): New declaration.
19126 * lib/getloadavg.c: Include <stdlib.h> first.
19127 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19128 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19129 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19130 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19131 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19132 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19133 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19134 (Include): Specify <stdlib.h>.
19135 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19136 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19138 2008-10-18 Bruno Haible <bruno@clisp.org>
19140 * lib/dirchownmod.c: Don't include lchmod.h.
19142 Move the lchmod() declaration to <sys/stat.h>.
19143 * lib/lchmod.h: Remove file.
19144 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19145 (lchmod): New declaration, moved here from lib/lchown.h.
19146 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19147 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19148 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19150 * modules/lchmod (Files): Remove lib/lchmod.h.
19151 (Depends-on): Add sys_stat, extensions.
19152 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19153 (Include): Specify <sys/stat.h> instead of lchmod.h.
19154 * modules/sys_stat (Depends-on): Add link-warning.
19155 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19156 definition of GL_LINK_WARNING.
19157 * NEWS: Mention the change.
19159 2008-10-18 Bruno Haible <bruno@clisp.org>
19161 * lib/fchdir.c: Don't include dirfd.h.
19162 * lib/fts.c: Likewise.
19163 * lib/getcwd.c: Likewise.
19164 * lib/glob.c: Likewise.
19166 Move the dirfd() declaration to <dirent.h>.
19167 * lib/dirfd.h: Remove file.
19168 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19169 (dirfd): New declaration.
19170 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19171 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19172 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19174 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19176 * modules/dirfd (Files): Remove lib/dirfd.h.
19177 (Depends-on): Add dirent, extensions.
19178 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19179 (Include): Specify <dirent.h> instead of dirfd.h.
19180 * modules/dirent (Depends-on): Add link-warning.
19181 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19182 definition of GL_LINK_WARNING.
19183 * NEWS: Mention the change.
19185 2008-10-18 Bruno Haible <bruno@clisp.org>
19187 Move the euidaccess() declaration to <unistd.h>.
19188 * lib/euidaccess.h: Remove file.
19189 * lib/unistd.in.h (euidaccess): New declaration.
19190 * lib/euidaccess.c: Don't include euidaccess.h.
19191 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19192 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19193 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19194 and HAVE_EUIDACCESS.
19195 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19196 (Depends-on): Add unistd.
19197 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19198 (Include): Specify <unistd.h> instead of euidaccess.h.
19199 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19201 * NEWS: Mention the change.
19203 2008-10-18 Bruno Haible <bruno@clisp.org>
19205 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19207 Move the getdomainname() declaration to <unistd.h>.
19208 * lib/getdomainname.h: Remove file.
19209 * lib/unistd.in.h (getdomainname): New declaration.
19210 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19211 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19212 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19213 HAVE_GETDOMAINNAME.
19214 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19215 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19216 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19217 (Depends-on): Add unistd, extensions.
19218 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19219 (Includes): Specify <unistd.h> instead of getdomainname.h.
19220 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19221 HAVE_GETDOMAINNAME.
19222 * NEWS: Mention the change.
19224 2008-10-18 Bruno Haible <bruno@clisp.org>
19226 * modules/dirent: New file.
19227 * m4/dirent_h.m4: New file.
19228 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19229 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19230 * modules/fchdir (Files): Remove lib/dirent.in.h.
19231 (Depends-on): Add dirent.
19232 (Makefile.am): Move rules to modules/dirent.
19233 * doc/posix-headers/dirent.texi: Mention the new module.
19235 2008-10-18 Bruno Haible <bruno@clisp.org>
19237 Avoid -Wunused-parameter warnings in public gnulib header files.
19238 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19240 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19242 2008-10-18 Bruno Haible <bruno@clisp.org>
19244 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19245 * doc/glibc-functions/error.texi: Mention the module 'error'.
19246 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19247 * doc/glibc-functions/getdomainname.texi: Mention the module
19249 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19250 * doc/glibc-functions/getpagesize.texi: Mention the module
19252 * doc/glibc-functions/getusershell.texi: Mention the module
19254 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19255 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19256 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19257 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19258 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19259 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19260 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19261 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19262 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19263 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19264 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19265 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19266 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19267 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19269 2008-10-17 Bruno Haible <bruno@clisp.org>
19271 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19272 HP-UX and IRIX, use -0.0L.
19273 * tests/test-ceill.c (minus_zero): Likewise.
19274 * tests/test-floorl.c (minus_zero): Likewise.
19275 * tests/test-frexpl.c (minus_zero): Likewise.
19276 * tests/test-isnan.c (minus_zerol): Likewise.
19277 * tests/test-isnanl.h (minus_zero): Likewise.
19278 * tests/test-ldexpl.c (minus_zero): Likewise.
19279 * tests/test-roundl.c (minus_zero): Likewise.
19280 * tests/test-signbit.c (minus_zerol): Likewise.
19281 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19282 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19283 * tests/test-truncl.c (minus_zero): Likewise.
19284 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19285 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19286 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19287 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19289 2008-10-17 Bruno Haible <bruno@clisp.org>
19291 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19292 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19293 that it gets activated only for gcc >= 3.0.
19294 * lib/dirent.in.h: Likewise.
19295 * lib/errno.in.h: Likewise.
19296 * lib/fcntl.in.h: Likewise.
19297 * lib/float.in.h: Likewise.
19298 * lib/iconv.in.h: Likewise.
19299 * lib/inttypes.in.h: Likewise.
19300 * lib/locale.in.h: Likewise.
19301 * lib/math.in.h: Likewise.
19302 * lib/netdb.in.h: Likewise.
19303 * lib/netinet_in.in.h: Likewise.
19304 * lib/search.in.h: Likewise.
19305 * lib/signal.in.h: Likewise.
19306 * lib/spawn.in.h: Likewise.
19307 * lib/stdarg.in.h: Likewise.
19308 * lib/stdint.in.h: Likewise.
19309 * lib/stdio.in.h: Likewise.
19310 * lib/stdlib.in.h: Likewise.
19311 * lib/string.in.h: Likewise.
19312 * lib/strings.in.h: Likewise.
19313 * lib/sys_file.in.h: Likewise.
19314 * lib/sys_ioctl.in.h: Likewise.
19315 * lib/sys_select.in.h: Likewise.
19316 * lib/sys_socket.in.h: Likewise.
19317 * lib/sys_stat.in.h: Likewise.
19318 * lib/sys_time.in.h: Likewise.
19319 * lib/sysexits.in.h: Likewise.
19320 * lib/time.in.h: Likewise.
19321 * lib/unistd.in.h: Likewise.
19322 * lib/wchar.in.h: Likewise.
19323 * lib/wctype.in.h: Likewise.
19324 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19326 2008-10-17 Jim Meyering <meyering@redhat.com>
19328 ignore-value: don't depend on inline module
19329 * modules/ignore-value (Depends-on): Remove 'inline'.
19330 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19331 Suggestion from Bruno Haible.
19333 2008-10-17 Bruno Haible <bruno@clisp.org>
19335 New implementation of condition variables for Win32.
19336 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19337 (gl_linked_waitqueue_t): New type.
19338 (gl_cond_t): Use it.
19339 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19340 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19341 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19342 (glthread_cond_init_func, glthread_cond_wait_func,
19343 glthread_cond_timedwait_func, glthread_cond_signal_func,
19344 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19345 Reimplemented on the basis of gl_linked_waitqueue_t.
19346 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19348 (gl_rwlock_t): Update.
19349 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19351 2008-10-17 Simon Josefsson <simon@josefsson.org>
19353 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19354 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19356 2008-10-17 Jim Meyering <meyering@redhat.com>
19358 ignore-value: new module
19359 * modules/ignore-value: New file.
19360 * lib/ignore-value.h: New file.
19361 * MODULES.html.sh (Compiler warning management): New section,
19362 just for this module. More to come.
19364 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19366 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19367 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19368 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19370 2008-10-16 Jim Meyering <meyering@redhat.com>
19372 openat-die.c: avoid 'no previous prototype' warning
19373 * lib/openat-die.c: Include "openat.h".
19374 Reported by Reuben Thomas <rrt@sc3d.org>.
19376 2008-10-16 Simon Josefsson <simon@josefsson.org>
19378 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19379 * lib/netdb.in.h: Fix typo.
19380 Reported by Bruno Haible <bruno@clisp.org>
19382 * lib/netdb.in.h: Include sys/socket.h for platforms without
19383 netdb.h, to get structures like hostent on MinGW.
19384 * modules/netdb (Depends-on): Add sys_socket.
19386 2008-10-15 Simon Josefsson <simon@josefsson.org>
19388 * modules/netdb, modules/netdb-tests: New file.
19389 * m4/netdb_h.m4: New file.
19390 * lib/netdb.in.h: Add, currently just an empty file pending
19392 * tests/test-netdb.c: New file.
19393 * doc/posix-headers/netdb.texi: Mention that we replace it if
19395 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19398 2008-10-15 Simon Josefsson <simon@josefsson.org>
19400 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19403 2008-10-13 Bruno Haible <bruno@clisp.org>
19405 * lib/glthread/cond.c (glthread_cond_wait_func,
19406 glthread_cond_timedwait_func): Add a comment.
19408 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19410 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19411 * tests/test-select.c: Likewise,
19413 2008-10-13 Bruno Haible <bruno@clisp.org>
19415 * lib/glthread/cond.c (glthread_cond_wait_func,
19416 glthread_cond_timedwait_func): Fix variable name.
19417 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19419 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19421 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19422 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19423 struct sockaddr.sa_len.
19424 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19426 2008-10-13 Simon Josefsson <simon@josefsson.org>
19428 * build-aux/pmccabe2html: Add css and css_url parameters.
19430 2008-10-12 Bruno Haible <bruno@clisp.org>
19432 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19434 Reported by Rainer Tammer <tammer@tammer.net>.
19436 2008-10-12 Bruno Haible <bruno@clisp.org>
19438 Use msvcrt aware primitives for creation/termination of Win32 threads.
19439 * lib/glthread/thread.c: Include <process.h>.
19440 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19441 (wrapper_func): Update signature.
19442 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19444 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19445 Bruno Haible <bruno@clisp.org>
19447 Provide a Win32 implementation of the 'cond' module.
19448 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19449 * lib/glthread/cond.c (glthread_cond_init_func,
19450 glthread_cond_wait_func, glthread_cond_timedwait_func,
19451 glthread_cond_signal_func, glthread_cond_broadcast_func,
19452 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19453 * modules/cond (Dependencies): Add gettimeofday.
19455 2008-10-11 Bruno Haible <bruno@clisp.org>
19457 Make sleep work on older versions of mingw.
19458 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19459 only whether it exists.
19460 * doc/posix-functions/sleep.texi: Mention the problem with older
19463 2008-10-11 Bruno Haible <bruno@clisp.org>
19465 New module 'shutdown'.
19466 * modules/shutdown: New file.
19467 * lib/sys_socket.in.h (shutdown): New declaration.
19468 * lib/winsock.c (shutdown): New function.
19469 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19471 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19472 * doc/posix-functions/shutdown.texi: Document the new module.
19474 2008-10-11 Jim Meyering <meyering@redhat.com>
19476 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19478 2008-10-11 Bruno Haible <bruno@clisp.org>
19480 New module 'fclose'.
19481 * modules/fclose: New file.
19482 * lib/stdio.in.h (fclose): New declaration.
19483 * lib/fclose.c: New file.
19484 * m4/fclose.m4: New file.
19485 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19487 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19488 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19490 * modules/close (Depends-on): fclose.
19491 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19493 2008-10-11 Bruno Haible <bruno@clisp.org>
19495 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19496 set errno and don't call _close.
19498 2008-10-10 Bruno Haible <bruno@clisp.org>
19500 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19501 ACL, not afterwards. Fixes test failure on Cygwin.
19503 2008-10-09 Ben Pfaff <blp@gnu.org>
19505 * build-aux/announce-gen: Fix gnulib version related part of usage
19506 message. Die with a useful error message if no tarballs are
19509 2008-10-10 Jim Meyering <meyering@redhat.com>
19511 bootstrap: use git's --depth=N option only if it's supported
19512 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19513 recognize the --depth option. Reported by Pádraig Brady.
19515 2008-10-09 Bruno Haible <bruno@clisp.org>
19517 New module 'ioctl'.
19518 * modules/ioctl: New file.
19519 * lib/sys_socket.in.h (ioctl): Remove declaration.
19520 * lib/winsock.c: Include <sys/ioctl.h>.
19521 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19522 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19523 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19524 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19525 * doc/posix-functions/ioctl.texi: Mention the new module.
19527 2008-10-09 Bruno Haible <bruno@clisp.org>
19529 New module 'sys_ioctl'.
19530 * lib/sys_ioctl.in.h: New file.
19531 * m4/sys_ioctl_h.m4: New file.
19532 * modules/sys_ioctl: New file.
19533 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19535 2008-10-09 Bruno Haible <bruno@clisp.org>
19537 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19538 * lib/winsock.c: Include <stdarg.h>.
19539 (rpl_ioctl): Change to second argument 'int' and then varargs.
19541 2008-10-09 Bruno Haible <bruno@clisp.org>
19543 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19544 when the sys_socket module is present and the system has <winsock2.h>.
19546 2008-10-09 Bruno Haible <bruno@clisp.org>
19548 * doc/posix-functions/close.texi: Mention module 'close' instead of
19549 module 'sys_socket'.
19551 2008-10-09 Bruno Haible <bruno@clisp.org>
19553 * doc/glibc-headers/sys_ioctl.texi: New file.
19554 * doc/gnulib.texi: Include it.
19556 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19557 Bruno Haible <bruno@clisp.org>
19559 Combine the two replacements of 'close'.
19560 * lib/sys_socket.in.h (close): Define to a reminder to include
19562 (_gl_close_fd_maybe_socket): New declaration.
19563 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19564 * lib/winsock.c (close): Remove undefinition.
19565 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19566 needed for the gnulib module 'close'.
19567 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19568 define to an error symbol or to a warning, if suitable.
19569 * lib/close.c: Include <sys/socket.h>.
19570 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19571 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19572 UNISTD_H_HAVE_WINSOCK2_H.
19573 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19574 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19575 UNISTD_H_HAVE_WINSOCK2_H.
19576 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19577 (configure.ac): Set a module indicator.
19578 (Makefile.am): Substitute GNULIB_CLOSE.
19579 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19580 * modules/poll-tests (Depends-on): Add close.
19581 * modules/select-tests (Depends-on): Likewise.
19583 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19584 Bruno Haible <bruno@clisp.org>
19586 New module 'close'.
19587 * modules/close: New file.
19588 * lib/unistd.in.h (close): Move declaration out of the
19589 FCHDIR_REPLACEMENT scope.
19590 (_gl_unregister_fd): New declaration.
19591 * lib/close.c: New file.
19592 * lib/fchdir.c (rpl_close): Remove function.
19593 * m4/close.m4: New file.
19594 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19596 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19598 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19600 * modules/fchdir (Depends-on): Add close.
19602 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19603 Bruno Haible <bruno@clisp.org>
19605 * lib/fcntl.in.h (open): Simplify conditionals.
19606 (_gl_register_fd): New declaration.
19607 * lib/fchdir.c (rpl_open): Remove function.
19608 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19610 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19611 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19614 2008-10-09 Jim Meyering <meyering@redhat.com>
19616 GNUmakefile: use the more name-space-friendly "_version"
19617 * top/GNUmakefile (_dummy): Update.
19618 (_version): Rename from "version".
19620 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19621 Bruno Haible <bruno@clisp.org>
19623 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19625 (_gl_register_fd): New function, extracted from rpl_open.
19626 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19627 (rpl_open, rpl_opendir): Use _gl_register_fd.
19629 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19631 Fix organization of 'open' replacement.
19632 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19633 (gl_FUNC_OPEN): Use it.
19634 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19636 2008-10-08 Bruno Haible <bruno@clisp.org>
19638 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19640 2008-10-08 Simon Josefsson <simon@josefsson.org>
19642 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19643 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19646 2008-10-08 Eric Blake <ebb9@byu.net>
19648 GNUmakefile: add 'make version' target
19649 * top/GNUmakefile (_curr-ver): Split version update rules...
19650 (version): ...into a target.
19652 2008-10-07 Bruno Haible <bruno@clisp.org>
19654 Use a more portable replacement expression for -0.0L.
19655 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19656 instead of -0.0L. Fix m4 quotation.
19658 * tests/test-signbit.c: Include <float.h>.
19659 (minus_zero): New variable.
19660 (test_signbitl): Use minus_zero instead of -zero.
19661 * modules/signbit-tests (Depends-on): Add float.
19663 * tests/test-ceill.c: Include <float.h>.
19664 (zero): Remove variable.
19665 (minus_zero): New variable.
19666 (main): Use minus_zero instead of -zero.
19667 * modules/ceill-tests (Depends-on): Add float.
19669 * tests/test-floorl.c: Include <float.h>.
19670 (zero): Remove variable.
19671 (minus_zero): New variable.
19672 (main): Use minus_zero instead of -zero.
19673 * modules/floorl-tests (Depends-on): Add float.
19675 * tests/test-roundl.c: Include <float.h>.
19676 (zero): Remove variable.
19677 (minus_zero): New variable.
19678 (main): Use minus_zero instead of -zero.
19679 * modules/roundl-tests (Depends-on): Add float.
19681 * tests/test-truncl.c: Include <float.h>.
19682 (zero): Remove variable.
19683 (minus_zero): New variable.
19684 (main): Use minus_zero instead of -zero.
19685 * modules/truncl-tests (Depends-on): Add float.
19687 * tests/test-frexpl.c (zero): Remove variable.
19688 (minus_zero): New variable.
19689 (main): Use minus_zero instead of -zero.
19690 * modules/frexpl-tests (Depends-on): Add float.
19692 * tests/test-isnan.c (zerol): Remove variable.
19693 (minus_zerol): New variable.
19694 (test_long_double): Use minus_zerol instead of -zerol.
19695 * modules/isnan-tests (Depends-on): Add float.
19697 * tests/test-isnanl.h (zero): Remove variable.
19698 (minus_zero): New variable.
19699 (main): Use minus_zero instead of -zero.
19700 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19701 * modules/isnanl-tests (Depends-on): Add float.
19703 * tests/test-ldexpl.c (zero): Remove variable.
19704 (minus_zero): New variable.
19705 (main): Use minus_zero instead of -zero.
19706 * modules/ldexpl-tests (Depends-on): Add float.
19708 * tests/test-snprintf-posix.h (zerol): Remove variable.
19709 (minus_zerol): New variable.
19710 (test_function): Use minus_zerol instead of -zerol.
19711 * modules/snprintf-posix-tests (Depends-on): Add float.
19712 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19714 * tests/test-sprintf-posix.h (zerol): Remove variable.
19715 (minus_zerol): New variable.
19716 (test_function): Use minus_zerol instead of -zerol.
19717 * modules/sprintf-posix-tests (Depends-on): Add float.
19718 * modules/vsprintf-posix-tests (Depends-on): Add float.
19720 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19721 (minus_zerol): New variable.
19722 (test_function): Use minus_zerol instead of -zerol.
19723 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19725 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19726 (minus_zerol): New variable.
19727 (test_function): Use minus_zerol instead of -zerol.
19728 * modules/vasprintf-posix-tests (Depends-on): Add float.
19730 2008-10-07 Simon Josefsson <simon@josefsson.org>
19732 * MODULES.html.sh (Support for building documentation): Mention
19733 pmccabe2html. Sort entries.
19735 Add pmccabe2html module, from gnupdf.
19736 * build-aux/pmccabe.css: New file.
19737 * build-aux/pmccabe2html: New file.
19738 * m4/pmccabe2html.m4: New file.
19739 * modules/pmccabe2html: New file.
19741 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19744 * MODULES.html.sh: Add to list of modules.
19745 * lib/flock.c: flock implementation for Windows and Unix systems
19747 * doc/glibc-functions/flock.texi: Update documentation.
19748 * lib/sys_file.in.h: <sys/file.h> header file.
19749 * m4/flock.m4: M4 macros.
19750 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19751 * modules/flock: flock module.
19752 * modules/flock-tests: flock tests module.
19753 * modules/sys_file: sys/file.h module.
19754 * tests/test-flock.c: test suite for flock.
19756 2008-10-06 Jim Meyering <meyering@redhat.com>
19758 bootstrap: check for LT_INIT more portably still ;-)
19759 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19760 Spotted by Bruno Haible.
19762 2008-10-06 Eric Blake <ebb9@byu.net>
19764 test-signbit: avoid tripping Irix cc bug on -0.0L
19765 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19766 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19767 entire testsuite consistent and avoids an Irix 6.2 bug.
19769 2008-10-05 Bruno Haible <bruno@clisp.org>
19770 Jim Meyering <jim@meyering.net>
19772 Add an option for ignoring EPIPE during close_stdout.
19773 * lib/closeout.h: Include <stdbool.h>.
19774 (close_stdout_set_ignore_EPIPE): New declaration.
19775 * lib/closeout.c: Include <stdbool.h>.
19776 (ignore_EPIPE): New variable.
19777 (close_stdout_set_ignore_EPIPE): New function.
19778 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19779 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19781 * modules/closeout (Depends-on): Add stdbool.
19783 2008-10-05 Bruno Haible <bruno@clisp.org>
19785 * modules/accept: New file.
19786 * modules/bind: New file.
19787 * modules/connect: New file.
19788 * modules/getpeername: New file.
19789 * modules/getsockname: New file.
19790 * modules/getsockopt: New file.
19791 * modules/listen: New file.
19792 * modules/recv: New file.
19793 * modules/recvfrom: New file.
19794 * modules/send: New file.
19795 * modules/sendto: New file.
19796 * modules/setsockopt: New file.
19797 * modules/socket: New file.
19798 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19799 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19800 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19801 the particular module is requested. Add a link warning when the
19802 particular module is not requested.
19803 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19804 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19805 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19806 the particular module is requested.
19807 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19808 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19809 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19810 * modules/sys_socket (Depends-on): Add link-warning.
19811 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19812 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19813 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19814 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19816 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19817 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19818 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19819 * doc/posix-functions/getpeername.texi: Mention the new module
19821 * doc/posix-functions/getsockname.texi: Mention the new module
19823 * doc/posix-functions/getsockopt.texi: Mention the new module
19825 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19826 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19827 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19828 * doc/posix-functions/send.texi: Mention the new module 'send'.
19829 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19830 * doc/posix-functions/setsockopt.texi: Mention the new module
19832 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19833 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19834 listen, connect, accept.
19835 * modules/select-tests (Depends-on): Likewise.
19837 2008-10-05 Bruno Haible <bruno@clisp.org>
19839 * lib/winsock.c (strerror): Remove unused #undef.
19840 (rpl_close): Remove unused local variable.
19842 * modules/sys_socket (Depends-on); Add errno.
19844 2008-10-05 Bruno Haible <bruno@clisp.org>
19846 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19847 (select): Add a link warning when the 'select' module is not used.
19848 * modules/sys_select (Depends-on): Add link-warning.
19849 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19850 Suggested by Paolo Bonzini.
19852 2008-10-05 Jim Meyering <meyering@redhat.com>
19854 bootstrap: check for LT_INIT more portably
19855 * build-aux/bootstrap: Avoid using grep -E, since it's not
19856 portable enough. Suggestion from Bruno Haible.
19858 2008-10-05 Bruno Haible <bruno@clisp.org>
19860 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19861 as being fixed by gnulib.
19863 2008-10-05 Bruno Haible <bruno@clisp.org>
19865 * modules/select-tests: New file, mostly copied from
19866 modules/sys_select-tests.
19867 * tests/test-select.c: New file, mostly copied from
19868 tests/test-sys_select.c.
19869 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19870 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19871 (Makefile.am): Remove test_sys_select_LDADD.
19873 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19874 to an undefined symbol, for an error message.
19875 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19876 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19877 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19878 winsock-select.c here.
19879 * modules/sys_select (Files): Remove lib/winsock-select.c.
19880 (Depends-on): Remove alloca.
19881 (Makefile.am): Substitute GNULIB_SELECT.
19882 * modules/select: New file.
19883 * doc/posix-functions/select.texi: Update.
19885 2008-10-05 Bruno Haible <bruno@clisp.org>
19887 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19888 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19889 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19890 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19892 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19893 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19895 2008-10-05 Bruno Haible <bruno@clisp.org>
19897 * modules/getdtablesize-tests: New file.
19898 * tests/test-getdtablesize.c: New file.
19900 New module 'getdtablesize'.
19901 * lib/unistd.in.h (getdtablesize): New declaration.
19902 * lib/getdtablesize.c: New file.
19903 * m4/getdtablesize.m4: New file.
19904 * modules/getdtablesize: New file.
19905 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19906 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19907 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19908 HAVE_GETDTABLESIZE.
19909 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19911 2008-10-05 Bruno Haible <bruno@clisp.org>
19913 * modules/sched (Makefile.am): Fix typo.
19914 Reported by Simon Josefsson.
19916 2008-10-05 Jim Meyering <meyering@redhat.com>
19918 bootstrap: check for LT_INIT, too
19919 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19920 are deprecated. Suggestion from Ralf Wildenhues.
19922 2008-10-05 Bruno Haible <bruno@clisp.org>
19924 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19925 overriding them by ours.
19926 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19928 2008-10-05 Jim Meyering <meyering@redhat.com>
19930 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19931 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19932 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19934 2008-10-04 Bruno Haible <bruno@clisp.org>
19936 * modules/dup2 (License): Change to LGPLv2+.
19937 * modules/sleep (License): Likewise.
19938 * modules/perror (License): Likewise.
19939 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19941 * modules/signal (License): Likewise.
19942 * modules/sigprocmask (License): Likewise.
19943 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19946 2008-10-04 Bruno Haible <bruno@clisp.org>
19948 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19949 Reported by Rainer Tammer <tammer@tammer.net>.
19951 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19952 Bruno Haible <bruno@clisp.org>
19954 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19955 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19956 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19958 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19960 filevercmp: new module
19961 * lib/filevercmp.h: New function filevercmp comparing version strings.
19962 * lib/filevercmp.c: Implementation of filevercmp function.
19963 * modules/filevercmp: Module metadata.
19964 * tests/test-filevercmp.c: Unit test for new module.
19965 * modules/filevercmp-tests: Unit test metadata.
19966 * MODULES.html.sh: Add filevercmp module.
19968 2008-10-03 Bruno Haible <bruno@clisp.org>
19970 * lib/c-ctype.h: Add comment.
19971 Reported by Jim Meyering.
19973 2008-10-02 Bruno Haible <bruno@clisp.org>
19975 * modules/posix_spawn-internal (Depends-on): Add 'open'.
19977 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19979 * build-aux/bootstrap: Allow renaming bootstrap, and change the
19980 name of bootstrap.conf accordingly.
19982 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19984 * build-aux/bootstrap: Install git-merge-changelog configuration
19985 items into .gitconfig if needed.
19987 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19989 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19990 git repository, and initialize/update it accordingly.
19992 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
19994 * modules/fsync-tests: New file.
19995 * tests/test-fsync.c: New file.
19997 New module 'fsync'.
19998 * lib/fsync.c: New file.
19999 * m4/fsync.m4: New file.
20000 * modules/fsync: New file.
20001 * lib/unistd.in.h (fsync): New declaration.
20002 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20003 GNULIB_FSYNC and HAVE_FSYNC.
20004 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20005 * MODULES.html.sh (posix_functions): Add fsync.
20006 * doc/posix-functions/fsync.texi: Mention the new module.
20008 2008-10-02 Jim Meyering <meyering@redhat.com>
20010 fts.c: sync with similar code from coreutils' remove.c
20011 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20012 Guard also with "#if defined __linux__", since for now at least,
20013 this code is Linux-kernel-specific.
20015 2008-10-02 Jim Meyering <meyering@redhat.com>
20018 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20019 Include <sys/vfs.h>, not <sys/statfs.h>.
20021 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20022 Include <sys/vfs.h>, not <sys/statfs.h>.
20024 2008-10-01 Bruno Haible <bruno@clisp.org>
20026 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20027 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20028 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20029 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20030 * doc/posix-functions/posix_spawnp.texi: Likewise.
20031 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20032 whether posix_spawn actually works.
20033 * m4/pipe.m4 (gl_PIPE): Likewise.
20034 * modules/execute (Files): Add m4/posix_spawn.m4.
20035 * modules/pipe (Files): Add m4/posix_spawn.m4.
20036 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20038 2008-10-01 Jim Meyering <meyering@redhat.com>
20040 remove trailing spaces
20042 * lib/poll.c (poll): Likewise.
20043 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20044 * lib/winsock.c (rpl_close): Likewise.
20045 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20046 * modules/yield: Likewise.
20047 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20048 * tests/test-sys_select.c (connect_to_socket): Likewise.
20050 fts.c: adjust a new interface to be more generally useful
20051 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20052 (fts_build): Adjust caller.
20054 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20056 * modules/cond-tests: New file.
20057 * tests/test-cond.c: New file.
20059 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20060 Bruno Haible <bruno@clisp.org>
20062 * modules/cond (Dependencies): Add errno, time.
20063 * lib/glthread/cond.h: Include <time.h>.
20064 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20067 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20068 Bruno Haible <bruno@clisp.org>
20070 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20072 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20073 Bruno Haible <bruno@clisp.org>
20075 * modules/tls-tests (Depends-on): Add thread, yield.
20076 (configure.ac): Remove all checks.
20077 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20078 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20079 gl_thread_self): Remove definitions. Include glthread/thread.h and
20080 glthread/yield.h instead.
20081 (test_tls): Pass an additional NULL argument to gl_thread_join.
20083 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20084 Bruno Haible <bruno@clisp.org>
20086 * modules/lock-tests (Depends-on): Add thread, yield.
20087 (configure.ac): Remove all checks.
20088 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20089 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20090 gl_thread_self): Remove definitions. Include glthread/thread.h and
20091 glthread/yield.h instead.
20092 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20093 additional NULL argument to gl_thread_join.
20095 2008-09-30 Bruno Haible <bruno@clisp.org>
20097 Fix the Win32 implementation of the 'thread' module.
20098 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20100 (gl_thread_self): Invoke gl_thread_self_func.
20101 (gl_thread_self_func): New declaration.
20102 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20103 (do_init_self_key, init_self_key): New functions.
20104 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20105 Remove some fields.
20106 (running_threads, running_lock): Remove variables.
20107 (get_current_thread_handle): New function.
20108 (gl_thread_self_func, wrapper_func, glthread_create_func,
20109 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20112 2008-09-30 Bruno Haible <bruno@clisp.org>
20114 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20117 2008-09-30 Jim Meyering <meyering@redhat.com>
20119 fts.m4: correct the test for statfs.f_type
20120 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20121 when checking for statfs.f_type.
20123 2008-09-15 Simon Josefsson <simon@josefsson.org>
20125 tests: avoid some compiler warnings
20126 * tests/test-memchr.c (main): Pass NULL indirectly.
20127 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20129 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
20131 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20132 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20133 exactly specified dayshifts.
20134 (dayshift): New rule.
20135 (rel): Add dayshift.
20136 (relative_time_table) [tomorrow, yesterday, today, now]:
20137 Use tDAY_SHIFT in place of tDAY_UNIT.
20138 * tests/test-getdate.c: Add tests for now-disallowed countable
20139 dayshifts, e.g., "4 yesterday ago".
20141 2008-09-29 Bruno Haible <bruno@clisp.org>
20143 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20144 * tests/test-posix_spawn1.in.sh: Renamed from
20145 tests/test-posix_spawn.in.sh.
20146 * tests/test-posix_spawn2.c: New file.
20147 * tests/test-posix_spawn2.in.sh: New file.
20148 * modules/posix_spawnp-tests (Files): Update.
20149 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20151 2008-09-29 Bruno Haible <bruno@clisp.org>
20153 Propagate effects of putenv/setenv/unsetenv to child processes.
20154 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20155 * lib/pipe.c (create_pipe): Likewise.
20157 2008-09-29 Bruno Haible <bruno@clisp.org>
20159 Enable use of shell scripts as executables in mingw.
20160 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20161 run the program as a shell script.
20162 * lib/pipe.c (create_pipe): Likewise.
20163 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20166 2008-09-29 Eric Blake <ebb9@byu.net>
20168 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20170 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20172 * doc/posix-functions/accept.texi: Update mingw problems.
20173 * doc/posix-functions/bind.texi: Update mingw problems.
20174 * doc/posix-functions/close.texi: Update mingw problems.
20175 * doc/posix-functions/connect.texi: Update mingw problems.
20176 * doc/posix-functions/getpeername.texi: Update mingw problems.
20177 * doc/posix-functions/getsockname.texi: Update mingw problems.
20178 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20179 * doc/posix-functions/ioctl.texi: Update mingw problems.
20180 * doc/posix-functions/listen.texi: Update mingw problems.
20181 * doc/posix-functions/recv.texi: Update mingw problems.
20182 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20183 * doc/posix-functions/select.texi: Update mingw problems.
20184 * doc/posix-functions/send.texi: Update mingw problems.
20185 * doc/posix-functions/sendto.texi: Update mingw problems.
20186 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20187 * doc/posix-functions/socket.texi: Update mingw problems.
20189 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20190 Bruno Haible <bruno@clisp.org>
20192 * lib/sys_select.in.h: Include sys/time.h.
20193 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20194 * modules/sys_select: Depend on sys_time.
20195 * tests/test-sys_select.c: Test that sys/select.h defines struct
20198 2008-09-29 Bruno Haible <bruno@clisp.org>
20200 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20201 * lib/sys_select.in.h: Likewise.
20203 2008-09-29 Bruno Haible <bruno@clisp.org>
20205 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20207 2008-09-29 Bruno Haible <bruno@clisp.org>
20209 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20210 Set LIBSOCKET instead of augmenting LIBS.
20211 * modules/sockets (Link): New section.
20212 * modules/sockets-tests (test_sockets_LDADD): New variable.
20213 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20214 * modules/poll-tests (test_poll_LDADD): New variable.
20215 * NEWS: Document the change.
20217 2008-09-29 Bruno Haible <bruno@clisp.org>
20219 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20220 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20221 ARPA_INET_H directly.
20222 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20224 2008-09-28 Bruno Haible <bruno@clisp.org>
20226 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20227 from gl_HEADER_SYS_SOCKET.
20228 (gl_HEADER_SYS_SOCKET): Invoke it.
20229 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20231 2008-09-28 Bruno Haible <bruno@clisp.org>
20233 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20234 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20235 Needed on OSF/1 4.0.
20237 2008-09-28 Bruno Haible <bruno@clisp.org>
20239 Override open more carefully.
20240 * lib/open.c (orig_open): New function.
20241 (rpl_open): Use orig_open instead of open.
20242 * lib/fcntl.in.h: Add special invocation convention.
20243 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20244 (gl_FUNC_OPEN): Invoke it.
20246 Override freopen more carefully.
20247 * lib/freopen.c (orig_freopen): New function.
20248 (rpl_freopen): Use orig_freopen instead of freopen.
20249 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20250 (gl_FUNC_FREOPEN): Invoke it.
20252 Override fopen more carefully.
20253 * lib/fopen.c (orig_fopen): New function.
20254 (rpl_fopen): Use orig_fopen instead of fopen.
20255 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20256 (gl_FUNC_FOPEN): Invoke it.
20257 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20259 2008-09-28 Bruno Haible <bruno@clisp.org>
20261 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20264 2008-09-28 Bruno Haible <bruno@clisp.org>
20266 * tests/test-sigaction.c (handler, main): Disable the check whether
20267 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20268 glibc systems with LinuxThreads.
20270 2008-09-28 Bruno Haible <bruno@clisp.org>
20272 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20274 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20276 * lib/fcntl.in.h (open): Likewise.
20277 Reported by Rainer Tammer <tammer@tammer.net>.
20279 2008-09-28 Bruno Haible <bruno@clisp.org>
20281 * modules/posix_spawnp-tests: New file.
20282 * tests/test-posix_spawn.c: New file.
20283 * tests/test-posix_spawn.in.sh: New file.
20285 New module 'posix_spawnp'.
20286 * modules/posix_spawnp: New file.
20287 * lib/spawnp.c: New file, from GNU libc with modifications.
20288 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20290 New module 'posix_spawn'.
20291 * modules/posix_spawn: New file.
20292 * lib/spawn.c: New file, from GNU libc with modifications.
20293 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20295 New module 'posix_spawnattr_destroy'.
20296 * modules/posix_spawnattr_destroy: New file.
20297 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20298 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20301 New module 'posix_spawnattr_setsigmask'.
20302 * modules/posix_spawnattr_setsigmask: New file.
20303 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20305 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20308 New module 'posix_spawnattr_getsigmask'.
20309 * modules/posix_spawnattr_getsigmask: New file.
20310 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20312 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20315 New module 'posix_spawnattr_setsigdefault'.
20316 * modules/posix_spawnattr_setsigdefault: New file.
20317 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20319 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20322 New module 'posix_spawnattr_getsigdefault'.
20323 * modules/posix_spawnattr_getsigdefault: New file.
20324 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20326 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20329 New module 'posix_spawnattr_setschedpolicy'.
20330 * modules/posix_spawnattr_setschedpolicy: New file.
20331 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20333 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20336 New module 'posix_spawnattr_getschedpolicy'.
20337 * modules/posix_spawnattr_getschedpolicy: New file.
20338 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20340 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20343 New module 'posix_spawnattr_setschedparam'.
20344 * modules/posix_spawnattr_setschedparam: New file.
20345 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20347 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20350 New module 'posix_spawnattr_getschedparam'.
20351 * modules/posix_spawnattr_getschedparam: New file.
20352 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20354 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20357 New module 'posix_spawnattr_setpgroup'.
20358 * modules/posix_spawnattr_setpgroup: New file.
20359 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20361 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20364 New module 'posix_spawnattr_getpgroup'.
20365 * modules/posix_spawnattr_getpgroup: New file.
20366 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20368 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20371 New module 'posix_spawnattr_setflags'.
20372 * modules/posix_spawnattr_setflags: New file.
20373 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20374 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20377 New module 'posix_spawnattr_getflags'.
20378 * modules/posix_spawnattr_getflags: New file.
20379 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20380 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20383 New module 'posix_spawnattr_init'.
20384 * modules/posix_spawnattr_init: New file.
20385 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20386 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20389 New module 'posix_spawn_file_actions_destroy'.
20390 * modules/posix_spawn_file_actions_destroy: New file.
20391 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20393 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20396 New module 'posix_spawn_file_actions_addopen'.
20397 * modules/posix_spawn_file_actions_addopen: New file.
20398 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20400 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20403 New module 'posix_spawn_file_actions_adddup2'.
20404 * modules/posix_spawn_file_actions_adddup2: New file.
20405 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20407 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20410 New module 'posix_spawn_file_actions_addclose'.
20411 * modules/posix_spawn_file_actions_addclose: New file.
20412 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20414 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20417 New module 'posix_spawn_file_actions_init'.
20418 * modules/posix_spawn_file_actions_init: New file.
20419 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20420 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20423 New module 'posix_spawn-internal'.
20424 * modules/posix_spawn-internal: New file.
20425 * lib/spawn_int.h: New file, from GNU libc with modifications.
20426 * lib/spawni.c: New file, from GNU libc with modifications.
20427 * m4/posix_spawn.m4: New file.
20429 New module 'spawn'.
20430 * modules/spawn: New file.
20431 * lib/spawn.in.h: New file, from GNU libc with modifications.
20432 * m4/spawn_h.m4: New file.
20433 * doc/posix-headers/spawn.texi: Mention the new module.
20435 2008-09-28 Bruno Haible <bruno@clisp.org>
20437 * modules/sched-tests: New file.
20438 * tests/test-sched.c: New file.
20440 New module 'sched'.
20441 * modules/sched: New file.
20442 * lib/sched.in.h: New file.
20443 * m4/sched_h.m4: New file.
20444 * doc/posix-headers/sched.texi: Mention the new module.
20446 2008-09-27 Eric Blake <ebb9@byu.net>
20448 Fix previous patch, and tweak references to $0.
20449 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20450 (func_version, func_gnulib_dir): Don't call this program
20452 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20453 with using $0 in function.
20454 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20455 (func_fatal_error): Reuse the name the user invoked us with.
20457 2008-09-27 Bruno Haible <bruno@clisp.org>
20459 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20460 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20461 (gl_ICONV_H): Not here.
20462 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20463 instead of assigning ICONV_H directly.
20465 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20466 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20469 2008-09-27 Bruno Haible <bruno@clisp.org>
20471 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20472 * modules/arpa_inet (Depends-on): Add link-warning.
20473 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20474 * modules/unistd (Makefile.am): Likewise.
20476 2008-09-26 Bruno Haible <bruno@clisp.org>
20478 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20480 (func_version): Essentially copied from gnulib-tool.
20481 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20482 func_readlink): Copied from gnulib-tool.
20484 2008-09-26 Bruno Haible <bruno@clisp.org>
20486 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20487 invoking git-version-gen.
20489 2008-09-26 Bruno Haible <bruno@clisp.org>
20491 * posix-modules: Update to directory names changed on 2008-01-19.
20492 Remove commas in output before splitting into words. No more need to
20493 avoid 'ftruncate' since 2007-02-19.
20495 2008-09-26 Bruno Haible <bruno@clisp.org>
20497 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20499 2008-09-26 Bruno Haible <bruno@clisp.org>
20501 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20502 * modules/fwriteerror (Depends-on): Add errno.
20504 2008-09-26 Bruno Haible <bruno@clisp.org>
20506 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20507 * tests/test-vc-list-files-cvs.sh: Likewise.
20509 2008-09-26 Bruno Haible <bruno@clisp.org>
20511 * doc/posix-headers/sys_resource.texi: Reorder items.
20513 2008-09-26 Jim Meyering <meyering@redhat.com>
20515 fts: tweak inode comparison function
20516 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20517 inode numbers, as documented.
20519 fts: sort dirent entries on inode number before traversing
20520 This avoids a quadratic, seek-related performance penalty when
20521 operating on a directory containing many entries (measurable at 10k;
20522 3.5 hours at 2 million entries with a cold cache) on certain types
20523 of file systems, including ext3 and ext4, but not tmpfs.
20524 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20525 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20526 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20527 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20528 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20529 (fts_build): Set the stat.st_ino member from D_INO.
20530 If it is likely to be useful, sort dirent entries on inode number.
20532 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20533 and the struct statfs.f_type member.
20534 * modules/fts (Depends-on): Add d-ino.
20536 2008-09-26 Bruno Haible <bruno@clisp.org>
20538 * modules/sigpipe-die (Depends-on): Add sigpipe.
20540 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20541 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20542 and GNULIB_STDIO_H_SIGPIPE are set.
20543 * lib/stdio-write.c: New file.
20544 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20545 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20546 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20547 REPLACE_STDIO_WRITE_FUNCS.
20548 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20549 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20550 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20551 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20552 * modules/stdio (Files): Add lib/stdio-write.c.
20553 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20554 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20555 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20556 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20557 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20558 REPLACE_FPRINTF_POSIX.
20559 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20560 REPLACE_PRINTF_POSIX.
20561 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20562 REPLACE_VFPRINTF_POSIX.
20563 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20564 REPLACE_VPRINTF_POSIX.
20565 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20567 * doc/posix-functions/fputc.texi: Likewise.
20568 * doc/posix-functions/fputs.texi: Likewise.
20569 * doc/posix-functions/fwrite.texi: Likewise.
20570 * doc/posix-functions/printf.texi: Likewise.
20571 * doc/posix-functions/putc.texi: Likewise.
20572 * doc/posix-functions/putchar.texi: Likewise.
20573 * doc/posix-functions/puts.texi: Likewise.
20574 * doc/posix-functions/vfprintf.texi: Likewise.
20575 * doc/posix-functions/vprintf.texi: Likewise.
20577 * modules/safe-write (Depends-on): Add write.
20579 * modules/sigpipe-tests: New file.
20580 * tests/test-sigpipe.c: New file.
20581 * tests/test-sigpipe.sh: New file.
20583 * modules/write: New file.
20584 * lib/unistd.in.h: Include <sys/types.h>.
20585 (write): New declaration.
20586 * lib/write.c: New file.
20587 * m4/write.m4: New file.
20588 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20589 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20590 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20591 GNULIB_WRITE, REPLACE_WRITE.
20592 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20593 and the SIGPIPE issue.
20595 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20596 (raise): New declaration.
20597 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20598 (ext_signal): New function.
20599 (rpl_raise): New function.
20600 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20601 GNULIB_SIGNAL_H_SIGPIPE.
20602 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20603 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20605 * modules/sigpipe: New file.
20606 * m4/sigpipe.m4: New file.
20608 2008-09-25 Derek Price <derek@ximbiot.com>
20609 Bruno Haible <bruno@clisp.org>
20611 * gnulib-tool (func_import): Report all license incompatibilities, not
20612 just the first one.
20614 2008-09-25 Bruno Haible <bruno@clisp.org>
20616 * gnulib-tool (func_import): When computing the edits, consider not
20617 only the Makefile.ams that exist but also those that will be generated.
20619 2008-09-25 Simon Josefsson <simon@josefsson.org>
20621 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20622 fixes gnulib-tool --test warning about duplicate dependency.
20624 2008-09-25 Bruno Haible <bruno@clisp.org>
20626 * gnulib-tool: Don't ask the user to perform edits in the generated
20628 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20629 apply to the Makefile.am being generated.
20630 (func_emit_tests_Makefile_am): Execute edits that apply to the
20631 Makefile.am being generated.
20632 (func_import): Setup list of Makefile.am edits before emitting the
20633 Makefile.ams, not at the end.
20634 (func_create_testdir): Update.
20635 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20637 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20639 * gnulib-tool (func_import): Store the --tests-base option in the
20640 comment in gnulib-cache.m4.
20642 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20644 * NEWS: Document increased portability that sys_select now provides.
20646 * lib/sys_select.in.h: Install select wrapper.
20647 * lib/sys_socket.in.h: Use more descriptive name when there is no
20649 * lib/winsock-select.c: New.
20650 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20651 Require gl_HEADER_SYS_SOCKET.
20652 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20653 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20654 * tests/test-sys_select.c: Add functional tests.
20656 2008-09-24 Eric Blake <ebb9@byu.net>
20658 open, fopen: close fd leak in last patch
20659 * lib/open.c (rpl_open): Close fd before returning error.
20660 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20661 * doc/posix-functions/open.texi (open): Document that Irix also
20663 * doc/posix-functions/fopen.texi (fopen): Likewise.
20664 Reported by Paolo Bonzini.
20666 2008-09-24 Bruno Haible <bruno@clisp.org>
20668 Ensure that a filename ending in a slash cannot be used to access a
20670 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20671 to check whether it's really a directory.
20672 * lib/fopen.c: Include fcntl.h, unistd.h.
20673 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20675 * modules/fopen (Depends-on): Add unistd.
20676 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20677 * tests/test-fopen.c (main): Likewise.
20678 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20679 * doc/posix-functions/fopen.texi: Likewise.
20680 Reported by Eric Blake.
20682 2008-09-23 Eric Blake <ebb9@byu.net>
20684 c-stack: avoid compiler optimizations when provoking overflow
20685 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20686 recursion harder to optimize, to ensure a stack overflow occurs.
20687 * tests/test-c-stack.c (recurse): Likewise.
20688 Borrowed from libsigsegv.
20690 c-stack: work around Irix sigaltstack bug
20691 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20692 whether sigaltstack uses wrong end of stack_t (copied in part from
20694 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20695 Irix bug, without requiring an over-allocation.
20696 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20699 fopen: document mingw bug on directories
20700 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20701 not allowing a stream visiting a directory, even though reading
20702 from such a stream is not portable.
20704 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20706 * lib/poll.c: Rewrite.
20707 * modules/poll: Depend on alloca.
20709 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20711 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20712 instead define prototypes for a full set of wrappers. Ensure
20713 that Cygwin does not use the compatibility code, which is only
20715 * lib/winsock.c: New.
20716 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20717 * modules/sys_socket: Add lib/winsock.c.
20719 * modules/poll-tests: Add errno and perror.
20720 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20722 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20724 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20726 2008-09-23 Bruno Haible <bruno@clisp.org>
20728 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20729 * doc/glibc-functions/*: Likewise.
20731 2008-09-23 Simon Josefsson <simon@josefsson.org>
20733 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20736 2008-09-22 Eric Blake <ebb9@byu.net>
20737 Bruno Haible <bruno@clisp.org>
20739 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20740 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20741 supply %A but mishandle pseudo-NaN.
20742 Reported by Simon Josefsson.
20744 2008-09-21 Bruno Haible <bruno@clisp.org>
20746 * tests/test-lock.c (main): Tweak skip message.
20747 * tests/test-tls.c (main): Likewise.
20749 2008-09-21 Bruno Haible <bruno@clisp.org>
20751 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20752 whether 'struct sigaction' has sa_sigaction here...
20753 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20754 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20756 2008-09-21 Bruno Haible <bruno@clisp.org>
20758 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20760 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20761 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20763 (Support for obsolete systems lacking POSIX:2001): New section.
20764 (String handling <string.h>): Move strdup to the new section.
20765 Suggested by Simon Josefsson and Paolo Bonzini.
20767 2008-09-21 Bruno Haible <bruno@clisp.org>
20769 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20770 exponents in %e and %g results on 'long double'. Needed for mingw's
20771 improved *printf functions.
20772 * tests/test-vasprintf-posix.c (test_function): Likewise.
20773 * tests/test-snprintf-posix.h (test_function): Likewise.
20774 * tests/test-sprintf-posix.h (test_function): Likewise.
20775 Reported by Eric Blake.
20777 2008-09-21 Bruno Haible <bruno@clisp.org>
20779 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20780 * tests/test-sprintf-posix.h (test_function): Likewise.
20782 2008-09-21 Bruno Haible <bruno@clisp.org>
20784 * modules/getpass (Depends-on): Add strdup-posix.
20786 New module 'strdup-posix'.
20787 * modules/strdup-posix: New file.
20788 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20789 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20790 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20792 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20793 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20794 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20797 * modules/strdup (Depends-on): Remove malloc-posix.
20799 2008-09-20 Bruno Haible <bruno@clisp.org>
20801 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20804 2008-09-20 Bruno Haible <bruno@clisp.org>
20806 Ensure that wint_t gets defined on IRIX 5.3.
20807 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20808 * lib/wctype.in.h (wint_t): Likewise.
20809 (__wctype_wint_t): Remove type.
20810 (isw*): Use wint_t instead of __wctype_wint_t.
20811 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20812 * modules/wchar (Files): Add m4/wint_t.m4.
20813 (Makefile.am): Substitute HAVE_WINT_T.
20814 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20815 * tests/test-wctype.c: Check that wint_t is defined.
20816 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20817 * doc/posix-headers/wctype.texi: Likewise.
20818 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20820 2008-09-18 Bruno Haible <bruno@clisp.org>
20822 * gnulib-tool (func_exit): Update comment.
20824 2008-09-18 Simon Josefsson <simon@josefsson.org>
20826 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20827 assumes strdup exists and does not depend on strdup to return
20828 ENOMEM on out of memory conditions.
20830 2008-09-18 Bruno Haible <bruno@clisp.org>
20832 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20833 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20834 digits for the exponent.
20836 2008-09-18 Jim Meyering <meyering@redhat.com>
20837 Bruno Haible <bruno@clisp.org>
20839 * lib/vasnprintf.c (decimal_point_char): Define also if
20840 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20842 2008-09-16 Bruno Haible <bruno@clisp.org>
20843 and Eric Blake <ebb9@byu.net>
20845 vasnprintf: support Irix 5.3
20846 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20847 that mishandle long double infinity.
20848 Reported by Tom G. Christensen.
20850 2008-09-16 Bruno Haible <bruno@clisp.org>
20852 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20854 * doc/glibc-functions/alphasort.texi: Likewise.
20855 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20857 2008-09-16 Jim Meyering <meyering@redhat.com>
20859 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20860 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20861 a umask modification leak out of a subshell. Otherwise, the
20862 opensolaris /bin/sh would be accepted and thus cause unwarranted
20863 failures in the coreutils test suite.
20865 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20867 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20870 2008-09-16 Jim Meyering <meyering@redhat.com>
20872 avoid spurious test failure when library is built without ACL support
20873 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20874 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20875 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20876 * tests/test-copy-acl.sh: Likewise.
20878 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20880 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20881 based on character occurrence counts.
20883 2008-09-15 Eric Blake <ebb9@byu.net>
20885 tests: avoid some compiler warnings
20886 * tests/test-memchr.c (main): Pass NULL indirectly.
20887 * tests/test-closein.c (main): Avoid unused variable.
20889 2008-09-15 Bruno Haible <bruno@clisp.org>
20891 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20892 are missing on OpenBSD 4.0 individually.
20893 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20895 2008-09-15 Bruno Haible <bruno@clisp.org>
20897 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20898 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20899 * doc/posix-functions/perror.texi: Likewise.
20900 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20902 Reported by Eric Blake.
20904 * lib/errno.in.h: Use replacement values >= 2000.
20905 Reported by Eric Blake.
20907 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20909 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20910 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20912 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20913 compareseq was aborted.
20915 2008-09-14 Bruno Haible <bruno@clisp.org>
20917 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20919 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20920 (fstrcmp_bounded): Simplify result computation accordingly.
20922 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20924 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20925 (fstrcmp): Define in terms of fstrcmp_bounded.
20926 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20927 lower_bound argument.
20928 Return quickly if the result is certainly < lower_bound.
20929 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20931 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20933 * lib/diffseq.h (EARLY_ABORT): New macro.
20934 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20937 2008-09-14 Bruno Haible <bruno@clisp.org>
20939 * modules/perror-tests: New file.
20940 * tests/test-perror.sh: New file.
20941 * tests/test-perror.c: New file.
20943 New module 'perror'.
20944 * lib/stdio.in.h (perror): New declaration.
20945 * lib/perror.c: New file.
20946 * m4/perror.m4: New file.
20947 * modules/perror: New file.
20948 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20949 * doc/posix-functions/perror.texi: Mention the perror module.
20950 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20952 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20955 2008-09-14 Bruno Haible <bruno@clisp.org>
20957 * modules/stdio (Makefile.am): Reorder to match the order in
20959 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20961 2008-09-13 Bruno Haible <bruno@clisp.org>
20963 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20965 2008-09-13 Bruno Haible <bruno@clisp.org>
20967 Extend strerror to cover the added errno values.
20968 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20969 (rpl_strerror): Provide error messages for the added errno values and
20970 for the WSA* values.
20971 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20972 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20974 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20975 * modules/strerror (Depends-on): Add errno.
20976 * doc/posix-functions/strerror.texi: Document the change.
20977 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20980 2008-09-13 Bruno Haible <bruno@clisp.org>
20982 * modules/EOVERFLOW: Remove file.
20983 * m4/eoverflow.m4: Remove file.
20984 * modules/EOVERFLOW-tests: Remove file.
20985 * tests/test-EOVERFLOW.c: Remove file.
20986 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20987 * modules/ftell (Depends-on): Likewise.
20988 * modules/getdelim (Depends-on): Likewise.
20989 * modules/getugroups (Depends-on): Likewise.
20990 * modules/poll (Depends-on): Likewise.
20991 * modules/snprintf (Depends-on): Likewise.
20992 * modules/sprintf-posix (Depends-on): Likewise.
20993 * modules/vasnprintf (Depends-on): Likewise.
20994 * modules/vasprintf (Depends-on): Likewise.
20995 * modules/vfprintf-posix (Depends-on): Likewise.
20996 * modules/vsnprintf (Depends-on): Likewise.
20997 * modules/vsprintf-posix (Depends-on): Likewise.
20998 * modules/xvasprintf (Depends-on): Likewise.
20999 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21000 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21001 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21002 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21003 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21004 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21005 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21006 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21007 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21008 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21009 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21010 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21011 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21012 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21013 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21014 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21015 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21016 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21017 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21018 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21019 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21020 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21021 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21022 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21023 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21024 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21025 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21026 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21027 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21028 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21029 * MODULES.html.sh: Remove EOVERFLOW.
21030 * NEWS: Mention the change.
21032 2008-09-13 Bruno Haible <bruno@clisp.org>
21034 * modules/errno-tests: New file.
21035 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21037 * lib/errno.in.h: New file.
21038 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21039 * modules/errno: New file.
21040 * doc/posix-headers/errno.texi: Update documentation.
21041 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21043 2008-09-13 Bruno Haible <bruno@clisp.org>
21045 * tests/test-poll.c: Use #if for native Windows, rather than testing
21048 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21049 Bruno Haible <bruno@clisp.org>
21051 * lib/glob.c: Don't include <pwd.h> on native Windows.
21052 (WINDOWS32): New macro.
21053 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21055 2008-09-13 Bruno Haible <bruno@clisp.org>
21057 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21058 (ETIMEDOUT): Remove macro.
21059 (glthread_cond_timedwait_multithreaded): New declaration.
21060 (glthread_cond_timedwait): Use it.
21061 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21062 (glthread_cond_timedwait_multithreaded): New function.
21064 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21066 * modules/poll-tests: Do not check for io.h.
21067 * tests/test-poll.c: Check for __MSVCRT__ instead.
21069 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21071 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21072 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21073 * tests/test-poll.c: Use them. Use _pipe on Windows.
21075 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21077 * modules/poll-tests: New.
21078 * tests/test-poll.c: New.
21080 2008-09-12 Eric Blake <ebb9@byu.net>
21082 frexp: test for NetBSD failure on -0.0
21083 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21084 not all, bugs from NetBSD 3.0 have been fixed.
21085 * doc/posix-functions/frexp.texi (frexp): Document bug.
21086 Reported by Thomas Klausner.
21088 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21089 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21091 Reported by Jonathan C. Patschke <jp@centtech.com>.
21093 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21095 * lib/glthread/cond.h: Use dummy implementation also if
21098 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21100 * modules/fnmatch-posix (License): Change to LGPLv2+.
21101 * modules/fnmatch-gnu (License): Likewise.
21103 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21105 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21107 2008-09-11 Jim Meyering <meyering@redhat.com>
21109 * users.txt: Add gtk-vnc.
21111 2008-09-08 Simon Josefsson <simon@josefsson.org>
21113 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21116 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21117 required for 16-bit and 8-bit rotates.
21118 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21119 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21120 UINT8_MAX instead of hard-coded constants.
21121 Suggested by Paul Eggert.
21123 2008-09-07 Bruno Haible <bruno@clisp.org>
21125 * tests/test-striconveh.c (main): Check behaviour when converting from
21128 Make striconveh work better with stateful encodings.
21129 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21130 that iconv does not increment the inptr when returning -1/EINVAL.
21132 2008-09-07 Bruno Haible <bruno@clisp.org>
21134 * build-aux/config.rpath: Update according to libtool-2.2.6.
21135 * build-aux/config.libpath: Likewise.
21137 2008-09-06 Bruno Haible <bruno@clisp.org>
21139 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21140 * lib/freadptr.c (freadptr): Likewise.
21141 * lib/freadseek.c (freadptrinc): Likewise.
21142 Reported by Simon Josefsson.
21144 2008-09-06 Bruno Haible <bruno@clisp.org>
21146 * modules/freadptr (License): Change to LGPLv2+.
21147 * modules/freadseek (License): Likewise.
21148 Suggested by Eric Blake.
21150 * modules/memchr2 (License): Change to LGPLv2+.
21151 Approved by Eric Blake.
21153 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21154 Bruno Haible <bruno@clisp.org>
21156 Make gnulib-tool work with native 'sed' on AIX.
21157 * gnulib-tool (sed_noop): New variable.
21158 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21159 func_add_or_update, func_create_testdir): Use it to initialize sed
21161 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21163 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21164 Bruno Haible <bruno@clisp.org>
21166 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21167 also works after #include directives.
21169 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
21171 getdate.y: reject an out-of-range timezone value
21172 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21173 the range [-24...+24]. When specified with only one or two digits,
21174 * tests/test-getdate.c: Tests for the fix.
21175 * doc/getdate.texi: Document this change.
21177 2008-09-03 Bruno Haible <bruno@clisp.org>
21179 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21181 2008-09-02 Simon Josefsson <simon@josefsson.org>
21183 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21184 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21185 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21186 Blake <ebb9@byu.net>.
21188 * tests/test-bitrotate.c: Add more test vectors.
21190 2008-09-02 Eric Blake <ebb9@byu.net>
21192 vasnprintf-posix: handle large precision via %.*d
21193 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21194 when handling it ourselves.
21195 * tests/test-vasnprintf-posix.c (test_function): Add test.
21196 * tests/test-snprintf-posix.h (test_function): Likewise.
21197 * tests/test-sprintf-posix.h (test_function): Likewise.
21198 * tests/test-vasprintf-posix.c (test_function): Likewise.
21199 Reported by Alain Guibert.
21201 2008-09-01 Eric Blake <ebb9@byu.net>
21203 c-stack: make configure-time check more robust
21204 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21205 successful sigaction call.
21206 Reported by Tom G. Christensen.
21208 2008-09-01 Bruno Haible <bruno@clisp.org>
21210 New module 'findprog-lgpl'.
21211 * modules/findprog-lgpl: New file.
21212 * lib/findprog-lgpl.c: New file.
21213 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21214 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21215 to decide whether to use strdup or xstrdup, concatenated_filename or
21216 xconcatenated_filename.
21218 2008-09-01 Bruno Haible <bruno@clisp.org>
21220 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21221 'xconcat-filename' (GPL).
21222 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21223 (License): Change to LGPLv2+.
21224 * modules/xconcat-filename: New file.
21225 * lib/concat-filename.h (concatenated_filename): Change specification.
21226 (xconcatenated_filename): New declaration.
21227 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21228 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21230 * lib/xconcat-filename.c: New file.
21231 * NEWS: Mention the change.
21232 * lib/findprog.c: Include concat-filename.h, not filename.h.
21233 (find_in_path): Use xconcatenated_filename instead of
21234 concatenated_filename.
21235 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21236 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21237 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21238 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21239 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21240 instead of concatenated_filename.
21241 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21242 (execute_java_class): Use xconcatenated_filename instead of
21243 concatenated_filename.
21244 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21245 * modules/javacomp (Depends-on): Likewise.
21246 * modules/javaexec (Depends-on): Likewise.
21248 2008-09-01 Bruno Haible <bruno@clisp.org>
21250 Split module 'filename' into 'filename' and 'concat-filename'.
21251 * modules/filename: Keep only lib/filename.h.
21252 (License): Change to LGPLv2+.
21253 * modules/concat-filename: New file, extracted from modules/filename.
21254 * lib/filename.h (concatenated_filename): Remove declaration.
21255 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21256 * lib/concat-filename.c: Include concat-filename.h.
21257 * NEWS: Mention the change.
21259 2008-09-01 Simon Josefsson <simon@josefsson.org>
21261 * lib/bitrotate.h (rotl8, rotr8): Add.
21263 * modules/bitrotate (configure.ac): Need
21264 AC_REQUIRE([AC_C_INLINE]).
21265 (Description): Mention stdint.h. Reported by Bruno Haible
21268 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21269 Paolo Bonzini <bonzini@gnu.org>.
21271 2008-08-31 Bruno Haible <bruno@clisp.org>
21273 Assume Solaris specific bi-arch conventions on Solaris systems.
21274 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21275 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21276 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21277 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21278 like acl_libdirstem.
21279 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21281 * NEWS: Mention the change.
21282 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21284 2008-08-31 Jim Meyering <meyering@redhat.com>
21286 * lib/strftime.h: Add comments describing the two added arguments.
21288 remove duplicate #include directives
21289 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21290 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21292 2008-08-31 Bruno Haible <bruno@clisp.org>
21294 New module 'sigpipe-die'.
21295 * modules/sigpipe-die: New file.
21296 * lib/sigpipe-die.h: New file.
21297 * lib/sigpipe-die.c: New file.
21298 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21300 2008-08-31 Bruno Haible <bruno@clisp.org>
21302 Don't override previously installed signal handlers.
21303 * lib/fatal-signal.c (saved_sigactions): New variable.
21304 (uninstall_handlers): Reset the signal to the saved handler, not
21305 to SIG_DFL (except when ignored).
21306 (install_handlers): Save the previous handlers.
21308 2008-08-30 Bruno Haible <bruno@clisp.org>
21310 * gnulib-tool (func_reset_sigpipe): New function.
21311 (func_get_automake_snippet, func_modules_transitive_closure,
21312 func_import): Invoke it before a join command that reads from stdin,
21313 to avoid "echo: write error: Broken pipe" error messages on stderr.
21314 Reported by Sam Steingold <sds@gnu.org>.
21316 2008-08-30 Bruno Haible <bruno@clisp.org>
21318 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21319 Code copied from m4/open.m4.
21320 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21321 access and the filename ends in a slash. Code copied from lib/open.c.
21322 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21323 * tests/test-fopen.c (main): Check against bug with trailing slash.
21325 2008-08-29 Bruno Haible <bruno@clisp.org>
21327 Avoid some "gcc -pedantic" warnings.
21328 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21329 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21330 * lib/dirent.in.h: Likewise.
21331 * lib/fcntl.in.h: Likewise.
21332 * lib/float.in.h: Likewise.
21333 * lib/iconv.in.h: Likewise.
21334 * lib/inttypes.in.h: Likewise.
21335 * lib/locale.in.h: Likewise.
21336 * lib/math.in.h: Likewise.
21337 * lib/netinet_in.in.h: Likewise.
21338 * lib/search.in.h: Likewise.
21339 * lib/signal.in.h: Likewise.
21340 * lib/stdarg.in.h: Likewise.
21341 * lib/stdint.in.h: Likewise.
21342 * lib/stdio.in.h: Likewise.
21343 * lib/stdlib.in.h: Likewise.
21344 * lib/string.in.h: Likewise.
21345 * lib/strings.in.h: Likewise.
21346 * lib/sys_select.in.h: Likewise.
21347 * lib/sys_socket.in.h: Likewise.
21348 * lib/sys_stat.in.h: Likewise.
21349 * lib/sys_time.in.h: Likewise.
21350 * lib/sysexits.in.h: Likewise.
21351 * lib/time.in.h: Likewise.
21352 * lib/unistd.in.h: Likewise.
21353 * lib/wchar.in.h: Likewise.
21354 * lib/wctype.in.h: Likewise.
21355 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21356 * modules/fchdir (Makefile.am): Likewise.
21357 * modules/fcntl (Makefile.am): Likewise.
21358 * modules/float (Makefile.am): Likewise.
21359 * modules/iconv_open (Makefile.am): Likewise.
21360 * modules/inttypes (Makefile.am): Likewise.
21361 * modules/locale (Makefile.am): Likewise.
21362 * modules/math (Makefile.am): Likewise.
21363 * modules/netinet_in (Makefile.am): Likewise.
21364 * modules/search (Makefile.am): Likewise.
21365 * modules/signal (Makefile.am): Likewise.
21366 * modules/stdarg (Makefile.am): Likewise.
21367 * modules/stdint (Makefile.am): Likewise.
21368 * modules/stdio (Makefile.am): Likewise.
21369 * modules/stdlib (Makefile.am): Likewise.
21370 * modules/string (Makefile.am): Likewise.
21371 * modules/strings (Makefile.am): Likewise.
21372 * modules/sys_select (Makefile.am): Likewise.
21373 * modules/sys_socket (Makefile.am): Likewise.
21374 * modules/sys_stat (Makefile.am): Likewise.
21375 * modules/sys_time (Makefile.am): Likewise.
21376 * modules/sysexits (Makefile.am): Likewise.
21377 * modules/time (Makefile.am): Likewise.
21378 * modules/unistd (Makefile.am): Likewise.
21379 * modules/wchar (Makefile.am): Likewise.
21380 * modules/wctype (Makefile.am): Likewise.
21381 Reported by Reuben Thomas <rrt@sc3d.org>.
21383 2008-08-29 Bruno Haible <bruno@clisp.org>
21385 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21388 2008-08-29 Simon Josefsson <simon@josefsson.org>
21390 * MODULES.html.sh (Misc): Add bitrotate.
21392 * modules/bitrotate: New file.
21394 * lib/bitrotate.h: New file.
21396 * modules/bitrotate-tests: New file.
21398 * tests/test-bitrotate.c: New file.
21400 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21401 on the bitrotate module.
21403 * lib/arctwo.c: Use new bitrotate module.
21405 2008-08-29 Jim Meyering <meyering@redhat.com>
21407 bootstrap: merge changes from coreutils
21408 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21409 of copied files. Remove a kludge, now that this is fixed.
21410 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21411 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21412 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21414 2008-08-29 Bruno Haible <bruno@clisp.org>
21416 * MODULES.html.sh: Remove --cvs-urls option.
21418 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21420 maint.mk: adjust to file name change
21421 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21423 2008-08-28 Jim Meyering <meyering@redhat.com>
21425 * modules/getndelim2 (License): Relicense to LGPLv2+.
21426 Approved by Richard Stallman for the version of 1995, and by
21427 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21429 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21431 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21432 dummy if one is not available. Do not touch them if
21433 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21434 (getc_maybe_unlocked): New.
21435 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21437 2008-08-26 Eric Blake <ebb9@byu.net>
21439 doc/INSTALL: resync from autoconf
21440 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21441 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21443 * install.texi [!autoconf]: ...here. Resync from autoconf.
21444 * INSTALL: Regenerate.
21445 * INSTALL.ISO: New file.
21446 * INSTALL.UTF-8: Likewise.
21448 2008-08-26 Jim Meyering <meyering@redhat.com>
21450 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21451 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21452 these definitions conditional, so that they may be overridden, too.
21454 2008-08-26 Bruno Haible <bruno@clisp.org>
21456 Generate INSTALL file variants with prettier quotes.
21457 * doc/Makefile (INSTALL_PRELUDE): New macro.
21459 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21461 2008-08-26 Bruno Haible <bruno@clisp.org>
21463 Run makeinfo in an English locale.
21464 * doc/Makefile (MAKEINFO): New variable.
21466 2008-08-26 Bruno Haible <bruno@clisp.org>
21468 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21469 Suggested by Eric Blake.
21471 2008-08-25 Bruno Haible <bruno@clisp.org>
21473 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21475 2008-08-25 Eric Blake <ebb9@byu.net>
21477 c-stack: test that stack overflow can be caught
21478 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21479 that platform allows handling stack overflow; at least OS/2 EMX
21480 has sigaltstack, but crashes before transferring control to
21481 handler on stack overflow.
21482 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21483 check for HAVE_STACK_OVERFLOW_HANDLING.
21484 Reported by Elbert Pol.
21486 2008-08-25 Bruno Haible <bruno@clisp.org>
21488 * doc/posix-functions/strftime.texi: Fix description of strftime
21491 2008-08-24 Bruno Haible <bruno@clisp.org>
21493 * tests/uniwidth/test-uc_width2.c: New file.
21494 * tests/uniwidth/test-uc_width2.sh: New file.
21495 * modules/uniwidth/width-tests (Files): Add the new files.
21496 (TESTS): Add uniwidth/test-uc_width2.sh.
21497 (TESTS_ENVIRONMENT): New variable.
21498 (check_PROGRAMS): Add test-uc_width2.
21499 (test_uc_width2_SOURCES): New variable.
21501 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21502 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21504 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21506 2008-08-22 Eric Blake <ebb9@byu.net>
21508 test-lock, test-tls: mention why a test is skipped
21509 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21511 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21513 count-one-bits: relax license
21514 * modules/count-one-bits (License): Relicense to LGPLv2+.
21515 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21517 2008-08-22 Andreas Schwab <schwab@suse.de>
21519 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21520 Remove spurious space in assignment.
21522 2008-08-21 Simon Josefsson <simon@josefsson.org>
21524 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21525 Paul Eggert <eggert@CS.UCLA.EDU>.
21527 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21529 * modules/gettext: Add m4/threadlib.m4.
21531 2008-08-19 Eric Blake <ebb9@byu.net>
21533 test-c-stack: fix compilation failure on FreeBSD 5.0
21534 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21535 headers before <sys/resource.h>.
21536 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21538 Reported by Nelson H. F. Beebe.
21540 strverscmp: migrate from "strverscmp.h" to <string.h>
21541 * modules/string (Makefile.am): Add new hooks.
21542 * modules/strverscmp (Files): Remove strverscmp.h.
21543 (Depends-on): Add string.
21544 (configure.ac): Add indicator.
21545 (Include): Mention new header.
21546 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21548 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21550 * lib/strverscmp.h: Delete.
21551 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21552 * tests/test-strverscmp.c (includes): Adjust client.
21553 * lib/check-version.c (includes): Likewise.
21554 * NEWS: Document the change.
21556 strverscmp: add unit test
21557 * modules/strverscmp-tests: New file.
21558 * tests/test-strverscmp.c: Likewise.
21560 2008-08-19 Simon Josefsson <simon@josefsson.org>
21562 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21563 regarding Windows crypto stuff, from Mono.
21565 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21567 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21568 if present, for intel RND. Return error on failures.
21570 2008-08-18 Ben Pfaff <blp@gnu.org>
21572 gitlog-to-changelog: give better diagnostic for failed pipe-open
21573 * build-aux/gitlog-to-changelog: Improve error message: suggest
21574 that the version of Git may be too old.
21576 2008-08-18 Simon Josefsson <simon@josefsson.org>
21578 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21579 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21581 2008-08-18 Bruno Haible <bruno@clisp.org>
21583 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21586 2008-08-18 Bruno Haible <bruno@clisp.org>
21588 * lib/glthread/threadlib.c: Include <pthread.h>.
21590 2008-08-18 Bruno Haible <bruno@clisp.org>
21592 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21593 glthread_recursive_lock_* macros.
21594 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21597 2008-08-18 Bruno Haible <bruno@clisp.org>
21599 * lib/glthread/thread.c: Avoid forcing a context switch right after
21602 2008-08-17 Bruno Haible <bruno@clisp.org>
21604 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21605 * lib/glthread/thread.h: Provide Win32 specific implementation.
21606 * modules/thread (Files): Add lib/glthread/thread.c.
21607 (Depends-on): Add lock.
21608 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21610 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21612 New module 'yield'.
21613 * modules/yield: New file.
21614 * lib/glthread/yield.h: New file.
21615 * m4/yield.m4: New file.
21616 * MODULES.html.sh (Multithreading): Add yield.
21618 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21620 New module 'thread'.
21621 * modules/thread: New file.
21622 * lib/glthread/thread.h: New file.
21623 * m4/thread.m4: New file.
21624 * MODULES.html.sh (Multithreading): Add thread.
21626 2008-08-17 Bruno Haible <bruno@clisp.org>
21628 * lib/glthread/lock.h: Include <stdlib.h> always.
21629 * lib/glthread/tls.h: Likewise.
21630 * lib/glthread/cond.h: Likewise.
21632 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21635 * modules/cond: New file.
21636 * lib/glthread/cond.h: New file.
21637 * lib/glthread/cond.c: New file.
21638 * m4/cond.m4: New file.
21639 * MODULES.html.sh (Multithreading): Add cond.
21641 2008-08-16 Eric Blake <ebb9@byu.net>
21643 c-stack: fix regression on Irix 5.3 from 2008-06-21
21644 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21646 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21647 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21648 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21649 * modules/signal (Makefile.am): Use the value.
21650 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21651 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21652 * doc/posix-headers/signal.texi (signal.h): Document this
21654 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21655 Reported by Tom G. Christensen.
21657 2008-08-17 Bruno Haible <bruno@clisp.org>
21659 New module 'threadlib'.
21660 * modules/threadlib: New file.
21661 * lib/glthread/threadlib.c: New file, extracted from
21662 lib/glthread/lock.c.
21663 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21665 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21666 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21667 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21669 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21670 (gl_DISABLE_THREADS): Remove macro.
21671 * modules/lock (Files): Remove build-aux/config.rpath.
21672 (Depends-on): Remove havelib. Add threadlib.
21673 (configure.ac-early): Remove section.
21674 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21675 * modules/tls (Depends-on): Remove lock. Add threadlib.
21676 (Link): New section, copied from threadlib.
21677 * MODULES.html.sh (Multithreading): Add threadlib.
21679 2008-08-14 Bruno Haible <bruno@clisp.org>
21681 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21682 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21683 glthread_rwlock_unlock, glthread_rwlock_destroy,
21684 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21685 glthread_recursive_lock_destroy): Define as macros always.
21686 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21687 glthread_lock_lock.
21688 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21689 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21690 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21691 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21692 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21693 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21694 (glthread_recursive_lock_lock_func): Renamed from
21695 glthread_recursive_lock_lock.
21696 (glthread_recursive_lock_unlock_func): Renamed from
21697 glthread_recursive_lock_unlock.
21698 (glthread_recursive_lock_destroy_func): Renamed from
21699 glthread_recursive_lock_destroy.
21701 2008-08-14 Bruno Haible <bruno@clisp.org>
21703 * lib/glthread/lock.h: Renamed from lib/lock.h.
21704 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21705 * lib/glthread/tls.h: Renamed from lib/tls.h.
21706 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21707 * lib/fstrcmp.c: Update includes.
21708 * lib/strsignal.c: Update includes.
21709 * modules/lock (Files, Makefile.am): Update.
21710 (Include): Change to "glthread/lock.h".
21711 * modules/tls (Files, Makefile.am): Update.
21712 (Include): Change to "glthread/tls.h".
21713 * tests/test-lock.c: Update includes.
21714 * tests/test-tls.c: Update includes.
21715 * NEWS: Mention the renamed header files.
21717 2008-08-11 Jim Meyering <meyering@redhat.com>
21719 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21721 2008-08-11 Eric Blake <ebb9@byu.net>
21723 test-c-stack: avoid C99-ism
21724 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21726 Reported by Alain Guibert.
21728 2008-08-10 Jim Meyering <meyering@redhat.com>
21730 ensure that return value of uinttostr et al are not ignored
21731 * lib/inttostr.h (__GNUC_PREREQ): Define.
21732 (__attribute_warn_unused_result__): Define.
21733 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21735 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21737 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21738 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21740 2008-08-07 Jim Meyering <meyering@redhat.com>
21742 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21744 * modules/mkstemp (License): Relicense under LGPLv2+.
21745 * modules/tempname (License): Likewise.
21747 2008-08-06 Bruno Haible <bruno@clisp.org>
21749 * lib/poll.c (poll): Further micro-optimization.
21751 2008-08-06 Jim Meyering <meyering@redhat.com>
21753 inet_pton.c: use locale-independent tolower
21754 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21755 (inet_pton6): Use c_tolower rather than tolower.
21756 * modules/inet_pton (Depends-on): Add c-ctype.
21758 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21760 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21761 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21763 2008-08-06 Jim Meyering <meyering@redhat.com>
21765 * modules/inet_pton (License): Relicense under LGPLv2+.
21767 2008-08-03 Bruno Haible <bruno@clisp.org>
21769 Additional non-aborting API for lock and tls.
21770 * lib/lock.h: Include <errno.h>.
21771 (glthread_lock_init): New macro/function.
21772 (gl_lock_init): Define as wrapper around glthread_lock_init.
21773 (glthread_lock_lock): New macro/function.
21774 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21775 (glthread_lock_unlock): New macro/function.
21776 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21777 (glthread_lock_destroy): New macro/function.
21778 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21779 (glthread_rwlock_init): New macro/function.
21780 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21781 (glthread_rwlock_rdlock): New macro/function.
21782 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21783 (glthread_rwlock_wrlock): New macro/function.
21784 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21785 (glthread_rwlock_unlock): New macro/function.
21786 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21787 (glthread_rwlock_destroy): New macro/function.
21788 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21789 (glthread_recursive_lock_init): New macro/function.
21790 (gl_recursive_lock_init): Define as wrapper around
21791 glthread_recursive_lock_init.
21792 (glthread_recursive_lock_lock): New macro/function.
21793 (gl_recursive_lock_lock): Define as wrapper around
21794 glthread_recursive_lock_lock.
21795 (glthread_recursive_lock_unlock): New macro/function.
21796 (gl_recursive_lock_unlock): Define as wrapper around
21797 glthread_recursive_lock_unlock.
21798 (glthread_recursive_lock_destroy): New macro/function.
21799 (gl_recursive_lock_destroy): Define as wrapper around
21800 glthread_recursive_lock_destroy.
21801 (glthread_once): New macro/function.
21802 (gl_once): Define as wrapper around glthread_once.
21803 Update function declarations.
21804 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21805 glthread_rwlock_init. Return error code.
21806 (glthread_rwlock_rdlock_multithreaded): Renamed from
21807 glthread_rwlock_rdlock. Return error code.
21808 (glthread_rwlock_wrlock_multithreaded): Renamed from
21809 glthread_rwlock_wrlock. Return error code.
21810 (glthread_rwlock_unlock_multithreaded): Renamed from
21811 glthread_rwlock_unlock. Return error code.
21812 (glthread_rwlock_destroy_multithreaded): Renamed from
21813 glthread_rwlock_destroy. Return error code.
21814 (glthread_recursive_lock_init_multithreaded): Renamed from
21815 glthread_recursive_lock_init. Return error code.
21816 (glthread_recursive_lock_lock_multithreaded): Renamed from
21817 glthread_recursive_lock_lock. Return error code.
21818 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21819 glthread_recursive_lock_unlock. Return error code.
21820 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21821 glthread_recursive_lock_destroy. Return error code.
21822 (glthread_once_call): Make static.
21823 (glthread_once_multithreaded): Renamed from glthread_once.
21824 * lib/tls.h: Include <errno.h>.
21825 (glthread_tls_key_init): New macro/function.
21826 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21827 (glthread_tls_set): New macro/function.
21828 (gl_tls_set): Define as wrapper around glthread_tls_set.
21829 (glthread_tls_key_destroy): New macro/function.
21830 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21831 Update function declarations.
21832 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21834 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21836 2008-08-04 Eric Blake <ebb9@byu.net>
21838 gnumakefile: use space, not TAB, outside of targets
21839 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21841 2008-08-02 Jim Meyering <meyering@redhat.com>
21843 getdate.y: avoid locale-dependent date parsing failure
21844 In Turkish locales, getdate would fail to recognize keywords
21845 containing a lowercase "i". The solution is not to rely on
21846 locale-sensitive case-conversion.
21847 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21848 (lookup_word): Use c_toupper in place of toupper.
21849 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21850 Reported by Vefa Bicakci <bicave@superonline.com> in
21851 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21852 * modules/getdate (Depends-on): Add c-ctype.
21854 2008-08-02 Bruno Haible <bruno@clisp.org>
21856 * gnulib-tool (func_import): When updating or creating a .gitignore
21857 file, prepend each added line with a slash, and ignore leading slashes
21858 from the existing lines.
21859 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21861 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21863 Portability fix for GNU make 3.79.1.
21864 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21865 versions do not understand.
21867 2008-08-01 Bruno Haible <bruno@clisp.org>
21869 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21870 * tests/test-isnanf.h (zero): New variable.
21871 (main): Avoid literal -0.0f.
21872 * tests/test-isnand.h (zero): New variable.
21873 (main): Avoid literal -0.0.
21874 * tests/test-isnanl.h (zero): New variable.
21875 (main): Avoid literal -0.0L.
21876 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21877 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21879 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21880 (test_signbitd): Avoid literal -0.0.
21881 (test_signbitl): Avoid literal -0.0L.
21882 * tests/test-ceilf1.c (zero): New variable.
21883 (main): Avoid literal -0.0f.
21884 * tests/test-ceill.c (zero): New variable.
21885 (main): Avoid literal -0.0L.
21886 * tests/test-floorf1.c (zero): New variable.
21887 (main): Avoid literal -0.0f.
21888 * tests/test-floorl.c (zero): New variable.
21889 (main): Avoid literal -0.0L.
21890 * tests/test-roundf1.c (zero): New variable.
21891 (main): Avoid literal -0.0f.
21892 * tests/test-round1.c (zero): New variable.
21893 (main): Avoid literal -0.0.
21894 * tests/test-roundl.c (zero): New variable.
21895 (main): Avoid literal -0.0L.
21896 * tests/test-truncf1.c (zero): New variable.
21897 (main): Avoid literal -0.0f.
21898 * tests/test-trunc1.c (zero): New variable.
21899 (main): Avoid literal -0.0.
21900 * tests/test-truncl.c (zero): New variable.
21901 (main): Avoid literal -0.0L.
21902 * tests/test-frexp.c (zero): New variable.
21903 (main): Avoid literal -0.0.
21904 * tests/test-frexpl.c (zero): New variable.
21905 (main): Avoid literal -0.0L.
21906 * tests/test-ldexpl.c (zero): New variable.
21907 (main): Avoid literal -0.0L.
21908 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21909 (zerod, zerol): New variables.
21910 (test_function): Avoid literals -0.0, -0.0L.
21911 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21912 (zerod, zerol): New variables.
21913 (test_function): Avoid literals -0.0, -0.0L.
21914 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21915 (zerod, zerol): New variables.
21916 (test_function): Avoid literals -0.0, -0.0L.
21917 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21918 (zerod, zerol): New variables.
21919 (test_function): Avoid literals -0.0, -0.0L.
21920 * tests/test-strtod.c (zero): New variable.
21921 (main): Avoid literal -0.0.
21922 Reported by Jonathan C. Patschke <jp@centtech.com>.
21924 2008-07-31 Jim Meyering <meyering@redhat.com>
21926 sha256.h: correct definition of SHA224_DIGEST_SIZE
21927 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21928 Reported by Paulie Pena IV <paulie4@gmail.com>.
21929 Define as 224 / 8, rather than as a literal.
21930 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21931 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21932 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21934 2008-07-31 Bruno Haible <bruno@clisp.org>
21936 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21937 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21938 Reported by Jonathan Patschke <jp@centtech.com>.
21940 2008-07-31 Bruno Haible <bruno@clisp.org>
21942 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21943 Reported by Paolo Bonzini <bonzini@gnu.org>.
21945 2008-07-30 Eric Blake <ebb9@byu.net>
21947 test-strtod: allow compilation without -lm
21948 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21949 Reported by Dennis Clarke <blastwave@gmail.com>.
21951 2008-07-28 Jim Meyering <meyering@redhat.com>
21953 bootstrap: work also when there are no .po files in po/
21954 * build-aux/bootstrap (update_po_files): Complete the change
21955 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21957 2008-07-27 Jim Meyering <meyering@redhat.com>
21959 * users.txt: Add zile.
21961 2008-07-26 Ben Pfaff <blp@gnu.org>
21963 Add missing dependencies on new m4/exponent[fdl].m4 files.
21964 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21965 * modules/isnand-nolibm: Add m4/exponentd.m4.
21966 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21967 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21968 m4/isnan[fdl].m4, because the macros actually used moved.
21969 Reported by Jim Meyering.
21971 2008-07-14 Ben Pfaff <blp@gnu.org>
21974 * lib/isinf.c: New file.
21975 * lib/math.in.h: Define isinf macro if we have decided to replace
21977 * m4/isinf.m4: New file.
21978 * m4/math_h.m4: Initialize and substitute variables for isinf
21980 * modules/isinf: New file.
21981 * modules/isinf-tests: New file.
21982 * modules/math: Add substitutions for new module.
21983 * tests/test-isinf.c: New file.
21984 * doc/posix-functions/isinf.texi: Mention new module.
21985 * MODULES.html.sh: Mention new module.
21987 2008-07-14 Ben Pfaff <blp@gnu.org>
21989 Factor out some macros for use by additional modules.
21990 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21992 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21994 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21996 * m4/exponentf.m4: New file.
21997 * m4/exponentd.m4: New file.
21998 * m4/exponentl.m4: New file.
21999 * modules/isnanf: Use new file m4/exponentf.m4.
22000 * modules/isnand: Use new file m4/exponentd.m4.
22001 * modules/isnanl: Use new file m4/exponentl.m4.
22003 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22005 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22006 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22007 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22008 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22010 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22011 readlink on platforms without PATH_MAX.
22013 2008-07-21 Eric Blake <ebb9@byu.net>
22015 Warn, not fail, on stale version.
22016 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22018 Don't allow installation with stale devel version number.
22019 * top/GNUmakefile (_is-install-target): New macro.
22020 (_curr-ver): Forbid installation with stale version number.
22022 2008-07-20 Bruno Haible <bruno@clisp.org>
22024 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22026 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22028 2008-07-20 Bruno Haible <bruno@clisp.org>
22030 * lib/c-stack.h (c_stack_action): Add documentation.
22031 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22033 2008-07-20 Bruno Haible <bruno@clisp.org>
22035 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22036 * modules/readlink (License): Likewise.
22038 2008-07-17 Eric Blake <ebb9@byu.net>
22040 * modules/c-stack (Link): Fix typo.
22042 Make c-stack use libsigsegv, when available.
22043 * modules/c-stack (Depends-on): Add libsigsegv.
22044 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22046 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22047 (segv_handler, overflow_handler, c_stack_action)
22048 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22049 implementation when libsigsegv is available, but only when using
22050 the library is necessary.
22051 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22052 comment, explaining why XSI check fails on Linux.
22053 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22054 * tests/test-c-stack2.sh: Tweak skip message.
22055 * NEWS: Document new link-time requirements.
22057 2008-07-16 Eric Blake <ebb9@byu.net>
22059 c-stack: Expose false positives when not using libsigsegv.
22060 * modules/c-stack-tests (Files): Expand test.
22061 * tests/test-c-stack.c (main): Add means to conditionally trigger
22062 non-overflow SIGSEGV.
22063 * tests/test-c-stack2.sh: New file.
22065 2008-07-14 Bruno Haible <bruno@clisp.org>
22067 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22068 Reported by Eric Blake.
22070 2008-07-14 Sam Steingold <sds@gnu.org>
22071 Bruno Haible <bruno@clisp.org>
22073 New module libsigsegv.
22074 * modules/libsigsegv: New file.
22075 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22077 * MODULES.html.sh (Signal handling): New section.
22079 2008-07-14 Bruno Haible <bruno@clisp.org>
22081 * modules/unictype/ctype-* (Description): Add the word "function".
22082 Improves the resulting doc in MODULES.html.
22084 2008-07-12 Ben Pfaff <blp@gnu.org>
22086 Add longlong module.
22087 * modules/longlong: New file.
22089 2008-07-12 Bruno Haible <bruno@clisp.org>
22091 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22094 2008-07-10 Ben Pfaff <blp@gnu.org>
22097 * doc/posix-functions/isnan.texi: Mention new module.
22098 * lib/math.in.h: Define isnan macro if we have decided to replace
22100 * m4/isnan.m4: New file.
22101 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22102 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22104 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22106 * m4/math_h.m4: Initialize and substitute variables for isnan
22108 * modules/isnan: New file.
22109 * modules/isnan-tests: New file.
22110 * modules/math: Add substitutions for new module.
22111 * tests/test-isnan.c: New file.
22112 * MODULES.html.sh: Mention new module.
22114 2008-07-10 Ben Pfaff <blp@gnu.org>
22117 * lib/isnanf.m4: New file.
22118 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22119 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22120 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22121 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22122 * modules/isnanf: New file.
22123 * modules/isnanf-tests: New file.
22124 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22126 * tests/test-isnanf-nolibm.c: factored most of its contents into
22127 new file tests/test-isnanf.h.
22128 * tests/test-isnanf.h: New file.
22129 * tests/test-isnanf.c: New file.
22130 * MODULES.html.sh: Mention new module.
22131 * doc/glibc-functions/isnanf.texi: Mention new module.
22133 2008-07-10 Ben Pfaff <blp@gnu.org>
22136 * lib/isnand.h: New file.
22137 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22138 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22139 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22140 functionality also.
22141 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22142 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22143 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22144 * modules/isnand: New file.
22145 * modules/isnand-tests: New file.
22146 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22148 * tests/test-isnand-nolibm.c: factored most of its contents into
22149 new file tests/test-isnand.h.
22150 * tests/test-isnand.h: New file.
22151 * tests/test-isnand.c: New file.
22152 * MODULES.html.sh: Mention new module.
22154 2008-07-10 Ben Pfaff <blp@gnu.org>
22156 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22157 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22158 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22159 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22160 * modules/isnanf-nolibm: Update references to renamed files.
22161 * modules/isnand-nolibm: Likewise.
22162 * modules/isnanf-nolibm-tests: Likewise.
22163 * modules/isnand-nolibm-tests: Likewise.
22164 * lib/frexp.c: Likewise.
22165 * lib/isfinite.c: Likewise.
22166 * lib/signbitd.c: Likewise.
22167 * lib/signbitf.c: Likewise.
22168 * lib/vasnprintf.c: Likewise.
22169 * tests/test-ceilf1.c: Likewise.
22170 * tests/test-ceilf2.c: Likewise.
22171 * tests/test-floorf1.c: Likewise.
22172 * tests/test-floorf2.c: Likewise.
22173 * tests/test-frexp.c: Likewise.
22174 * tests/test-round1.c: Likewise.
22175 * tests/test-round2.c: Likewise.
22176 * tests/test-roundf1.c: Likewise.
22177 * tests/test-strtod.c: Likewise.
22178 * tests/test-trunc1.c: Likewise.
22179 * tests/test-trunc2.c: Likewise.
22180 * tests/test-truncf1.c: Likewise.
22181 * tests/test-truncf2.c: Likewise.
22182 * NEWS: Mention the renamed header files.
22184 2008-07-11 Jim Meyering <meyering@redhat.com>
22186 vc-list-files: make the last-resort awk code more portable
22187 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22188 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22189 does not support it.
22191 2008-07-10 Eric Blake <ebb9@byu.net>
22193 Work with tar's bootstrap.
22194 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22195 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22198 2008-07-09 Jim Meyering <meyering@redhat.com>
22200 posix-shell.m4: fix typo that made this test malfunction
22201 * m4/posix-shell.m4: Remove capitalization in variable name.
22203 2008-07-08 Bruno Haible <bruno@clisp.org>
22205 * m4/onceonly.m4: Update comments.
22206 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22208 2008-07-04 Jim Meyering <meyering@redhat.com>
22210 * users.txt: Add vc-dwim.
22211 (bison, coreutils): Use the gitweb URL.
22213 2008-07-03 Jim Meyering <meyering@redhat.com>
22215 * users.txt: Add libffcall. From Sam Steingold.
22217 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
22219 getdate.y: do not ignore TZ with relative day, month or year offset
22220 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22221 relative-date-handling, since otherwise, the latter would clobber the
22222 sole output (an updated Start value) of the tz-handling block.
22223 * tests/test-getdate.c: Tests for the fix
22225 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22227 Recognize 'foo_LIBRARIES += libgnu.a'.
22228 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22229 makefile snippet has already specified an installation location,
22232 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
22234 getdate.y: factor out common actions
22235 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22236 Use them in place of open-coded actions.
22238 2008-07-01 Simon Josefsson <simon@josefsson.org>
22240 Add self-test for getdate module.
22241 * modules/getdate-tests: New file.
22242 * tests/test-getdate.c: New file.
22244 2008-06-29 Bruno Haible <bruno@clisp.org>
22246 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22248 Reported by Sylvain Beucler <beuc@beuc.net>.
22250 2008-06-29 Bruno Haible <bruno@clisp.org>
22252 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22253 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22255 2008-06-29 Bruno Haible <bruno@clisp.org>
22257 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22259 Reported by Sylvain Beucler <beuc@beuc.net>.
22261 2008-06-26 Jim Meyering <meyering@redhat.com>
22263 make several modules depend on the "open" module
22264 This provides slightly increased consistency when opening-for-write
22265 the name of a non-directory spelled with a trailing slash.
22266 * modules/chdir-safer: Likewise.
22267 * modules/chown: Likewise.
22268 * modules/clean-temp: Likewise.
22269 * modules/copy-file: Likewise.
22270 * modules/fchdir: Likewise.
22271 * modules/fcntl-safer: Likewise.
22272 * modules/pipe: Likewise.
22273 * modules/utime: Likewise.
22274 Prompted by Eric Blake and Bruno Haible.
22276 2008-06-24 Andreas Schwab <schwab@suse.de>
22278 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22279 literals can be used as initializers for global variables.
22281 2008-06-23 Eric Blake <ebb9@byu.net>
22283 Make gnulib-cache.m4 easier to diff.
22284 * gnulib-tool (func_import): Allow newlines when reading cached
22285 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22287 2008-06-23 Bruno Haible <bruno@clisp.org>
22289 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22290 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22291 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22292 m4/signalblocking.m4.
22293 (gl_PREREQ_SIGACTION): Don't invoke it.
22294 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22295 gl_PREREQ_SIG_HANDLER_H.
22296 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22297 Don't check for sigaction here.
22299 2008-06-23 Bruno Haible <bruno@clisp.org>
22301 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22302 (install_handlers): Don't set the SA_RESETHAND flag.
22304 2008-06-23 Bruno Haible <bruno@clisp.org>
22306 * m4/sigaction.m4: Comment fixes.
22307 * lib/signal.in.h: Likewise.
22309 2008-06-23 Eric Blake <ebb9@byu.net>
22312 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22314 Avoid SA_ namespace.
22315 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22316 Reported by Ralf Wildenhues.
22318 Avoid test failure due to SA_RESTORER.
22319 * tests/test-sigaction.c (SA_MASK): New macro.
22320 (main): Avoid failing due to extension flags being set.
22321 Reported by Jim Meyering.
22323 Revert use of sig-handler.h in sigprocmask.c.
22324 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22325 it requires the existence of struct sigaction.
22326 * lib/sigprocmask.c (handler_t): Restore typedef.
22327 (rpl_signal, old_handlers): Use local type.
22329 2008-06-22 Bruno Haible <bruno@clisp.org>
22331 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22333 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22335 2008-06-22 Bruno Haible <bruno@clisp.org>
22337 * doc/posix-functions/siginterrupt.texi: Move note.
22339 * lib/signal.in.h (SA_RESTART): New macro.
22340 * lib/sigaction.c: Update comment.
22342 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22344 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22345 (gl_PREREQ_SIGPROCMASK): Invoke it.
22346 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22348 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22350 * lib/sigprocmask.c: Update a comment.
22352 2008-06-21 Eric Blake <ebb9@byu.net>
22354 Use sigaction module rather than signal().
22355 * modules/c-stack (Depends-on): Add sigaction.
22356 * modules/fatal-signal (Depends-on): Likewise.
22357 * modules/nanosleep (Depends-on): Likewise.
22358 * modules/sigprocmask (Files): Add sig-handler.h.
22359 * modules/sigaction (Files): Likewise.
22360 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22362 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22363 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22364 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22365 (init_fatal_signals): Likewise.
22366 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22367 (siginterrupt): Delete fallback.
22368 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22370 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22373 New module sigaction, for mingw.
22374 * modules/sigaction: New module...
22375 * modules/sigaction-tests: ...and its test.
22376 * m4/sigaction.m4: New file.
22377 * lib/sigaction.c: Likewise.
22378 * tests/test-sigaction.c: Likewise.
22379 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22380 * modules/signal (Makefile.am): Likewise.
22381 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22383 * doc/posix-headers/signal.texi (signal.h): Mention provided
22385 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22386 that sigaction is preferable.
22387 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22389 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22392 Improve robustness of sigprocmask by overriding signal.
22393 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22395 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22396 (SIGKILL, SIGSTOP): Provide fallbacks.
22397 (rpl_signal): Implement.
22398 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22399 signal can be called inside handlers.
22401 Fix nanosleep module on mingw.
22402 * modules/nanosleep (Depends-on): Add sys_select.
22403 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22405 Fix licensing of sigprocmask.
22406 * modules/raise (License): Relicense as LGPL.
22408 2008-06-21 Bruno Haible <bruno@clisp.org>
22410 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22411 result if it contains question marks.
22412 Reported by Michael Geng <linux@michaelgeng.de>.
22414 2008-06-19 Bruno Haible <bruno@clisp.org>
22417 * doc/gnulib.texi: Include updated-stamp.texi.
22418 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22419 (updated-stamp.texi): New rule.
22420 (gnulib.info): Depend on it.
22421 * doc/.gitignore: Add updated-stamp.texi.
22422 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22424 2008-06-19 Bruno Haible <bruno@clisp.org>
22426 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22427 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22429 2008-06-19 Eric Blake <ebb9@byu.net>
22431 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22432 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22433 Reported by Stepan Kasal.
22435 2008-06-18 Bruno Haible <bruno@clisp.org>
22437 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22438 Reported by Eric Blake.
22440 2008-06-18 Eric Blake <ebb9@byu.net>
22442 Work around cygwin 1.5.25 strsignal bug.
22443 * tests/test-strsignal.c: Allow for const char *.
22444 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22446 2008-06-18 Simon Josefsson <simon@josefsson.org>
22448 * users.txt: Update URL to article and add author/date
22451 2008-06-17 Bruno Haible <bruno@clisp.org>
22453 New macro gl_DISABLE_THREADS.
22454 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22455 if the user did not pass --enable-threads or --disable-threads option.
22456 (gl_DISABLE_THREADS): New macro.
22457 Reported by Eric Blake <ebb9@byu.net>.
22459 2008-06-17 Bruno Haible <bruno@clisp.org>
22461 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22462 when the macro ignores it.
22463 Based on a patch by Eric Blake <ebb9@byu.net>.
22465 2008-06-17 Bruno Haible <bruno@clisp.org>
22467 * modules/tls (License): Change to LGPLv2+.
22468 Reported by Eric Blake.
22470 2008-06-17 Eric Blake <ebb9@byu.net>
22472 Simplify c-stack prerequisites.
22473 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22474 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22475 no longer requires <ucontext.h> to exist. Optimize setrlimit
22477 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22480 Move c-stack test into testsuite.
22481 * modules/c-stack-tests: New file.
22482 * lib/c-stack.c [DEBUG]: Move test program...
22483 * tests/test-c-stack.c: ...into this new file. Skip rather than
22484 fail test if sigaltstack is lacking.
22485 * tests/test-c-stack.sh: New driver file.
22487 2008-06-16 Eric Blake <ebb9@byu.net>
22489 Use raise module consistently.
22490 * modules/fatal-signal (Depends-on): Add raise.
22491 * modules/sigprocmask (Depends-on): Likewise.
22492 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22493 * lib/sigprocmask.c (sigprocmask): Likewise.
22494 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22495 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22497 Fix compliance bug in sigpending.
22498 * lib/sigprocmask.c (sigpending): Return pending array via
22499 parameter, not return value.
22501 2008-06-14 Eric Blake <ebb9@byu.net>
22503 Improve obstack-printf test code.
22504 * tests/test-obstack-printf.c (test_function): Fix comment, and
22505 simplify usage of obstack_* in macros. Add a test for coverage.
22506 Reported by Bruno Haible.
22508 2008-06-14 Bruno Haible <bruno@clisp.org>
22510 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22511 array size as a constant, not as a const variable.
22512 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22513 AC_USE_SYSTEM_EXTENSIONS.
22514 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22515 Test whether the obstack_printf function actually exists.
22516 * modules/obstack-printf (Depends-on): Add extensions.
22517 (Include): Remove obstack.h.
22518 * modules/obstack-printf-posix (Depends-on): Add extensions.
22519 (Include): Remove obstack.h.
22521 2008-06-13 Eric Blake <ebb9@byu.net>
22523 Add obstack-printf and obstack-printf-posix modules.
22524 * modules/obstack-printf: New file.
22525 * modules/obstack-printf-posix: Likewise.
22526 * MODULES.html.sh (Misc): Mention them.
22527 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22529 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22531 * modules/stdio (Makefile.am): Accomodate new modules.
22532 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22533 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22535 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22537 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22538 (gl_REPLACE_OBSTACK_PRINTF): New macros
22539 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22540 * tests/test-obstack-printf.c: New file.
22541 * modules/obstack-printf-tests: Likewise.
22542 * modules/obstack-printf-posix-tests: Likewise.
22544 2008-06-11 Bruno Haible <bruno@clisp.org>
22546 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22547 * lib/open.c: Include errno.h.
22548 (open): Fail when attempting to write to a file that has a trailing
22550 * tests/test-open.c (main): Test against trailing slash bug.
22551 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22553 2008-06-10 Bruno Haible <bruno@clisp.org>
22555 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22556 for $? to work inside the trap command, with various /bin/sh-s.
22557 * tests/test-vc-list-files-cvs.sh: Likewise.
22559 2008-06-10 Bruno Haible <bruno@clisp.org>
22561 * lib/acl-internal.h: Don't include gettext.h here.
22562 * lib/set-mode-acl.c: Include gettext.h here.
22563 * lib/copy-acl.c: Likewise.
22565 2008-06-10 Bruno Haible <bruno@clisp.org>
22567 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22568 * lib/wait-process.c (wait_subprocess): Likewise.
22569 * lib/execute.h (execute): Add termsigp argument.
22570 * lib/execute.c (execute): Likewise.
22571 * lib/csharpcomp.c (compile_csharp_using_pnet,
22572 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22573 * lib/csharpexec.c (execute_csharp_using_pnet,
22574 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22575 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22576 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22577 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22578 is_jikes_present): Update.
22579 * lib/javaexec.c (execute_java_class): Update.
22580 * lib/javaversion.c (execute_and_read_line): Update.
22581 * NEWS: Document the changes.
22582 Reported by Eric Blake.
22584 2008-06-10 Eric Blake <ebb9@byu.net>
22586 Add missing include.
22587 * tests/test-strstr.c (includes): Add <signal.h>.
22588 * tests/test-strcasestr.c (includes): Likewise.
22589 * tests/test-memmem.c (includes): Likewise.
22591 2008-06-10 Bruno Haible <bruno@clisp.org>
22593 * lib/wait-process.c (wait_subprocess): Add an assertion.
22595 2008-06-10 Bruno Haible <bruno@clisp.org>
22597 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22599 2008-06-10 Bruno Haible <bruno@clisp.org>
22601 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22603 * tests/test-strcasestr.c (main): Likewise.
22604 * tests/test-strstr.c (main): Likewise.
22606 2008-06-09 Bruno Haible <bruno@clisp.org>
22608 Work around the Solaris 10 ACE ACLs ABI change.
22609 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22610 declare if ACL_NO_TRIVIAL is present.
22611 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22612 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22613 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22614 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22615 define if ACL_NO_TRIVIAL is present.
22616 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22617 and use the current ABI.
22618 (file_has_acl): Use same #if condition as elsewhere.
22619 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22620 in use, and use the current ABI.
22621 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22622 Reported by Jim Meyering.
22624 2008-06-09 Eric Blake <ebb9@byu.net>
22626 Work around environments that (stupidly) ignore SIGALRM.
22627 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22628 before using alarm().
22629 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22630 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22631 Reported by Ian Beckwith <ianb@erislabs.net>.
22633 Produce autobuild blurb earlier in log.
22634 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22636 2008-06-09 Jim Meyering <meyering@redhat.com>
22637 and Ondřej Vašík <ovasik@redhat.com>
22639 utimens.c: correct kernel bug work-around
22640 Ondřej Vašík found that the invalid return value of 280 indicates
22641 failure, not success, and the kernel bug we're trying to work
22642 around affects not just the utimensat call, but also the fallback
22644 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22646 [HAVE_FUTIMENS]: Use the same work-around, here.
22648 2008-06-09 Jim Meyering <meyering@redhat.com>
22650 add more guards around definition of ACE_-related code
22651 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22652 ALLOW and ACE_OWNER are also defined.
22654 2008-06-08 Bruno Haible <bruno@clisp.org>
22656 * lib/acl-internal.h: Add me as co-author.
22657 * lib/file-has-acl.c: Likewise.
22658 * lib/set-mode-acl.c: Likewise.
22659 * lib/copy-acl.c: Likewise.
22661 2008-06-08 Bruno Haible <bruno@clisp.org>
22663 Add support for AIX ACLs.
22664 * lib/acl-internal.h (acl_nontrivial): New declaration.
22665 * lib/file-has-acl.c (acl_nontrivial): New function.
22666 (file_has_acl): Add implementation using AIX 4 ACL API.
22667 * lib/set-mode-acl.c (qset_acl): Likewise.
22668 * lib/copy-acl.c (qcopy_acl): Likewise.
22670 2008-06-08 Bruno Haible <bruno@clisp.org>
22672 Add support for HP-UX ACLs.
22673 * lib/acl-internal.h (acl_nontrivial): New declaration.
22674 * lib/file-has-acl.c (acl_nontrivial): New function.
22675 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22676 * lib/set-mode-acl.c (qset_acl): Likewise.
22677 * lib/copy-acl.c (qcopy_acl): Likewise.
22679 2008-06-08 Bruno Haible <bruno@clisp.org>
22681 Add support for Cygwin ACLs.
22682 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22683 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22684 the chmod_or_fchmod call.
22685 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22687 2008-06-08 Bruno Haible <bruno@clisp.org>
22689 Fix bug with setuid modes in Solaris 10+ code.
22690 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22691 succeeded, when the mode contains some special bits.
22693 2008-06-08 Bruno Haible <bruno@clisp.org>
22695 Add support for Solaris 7..10 ACLs.
22696 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22698 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22700 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22701 * lib/set-mode-acl.c (qset_acl): Likewise.
22702 * lib/copy-acl.c (qcopy_acl): Likewise.
22704 2008-06-08 Bruno Haible <bruno@clisp.org>
22706 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22708 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22709 (acl_access_nontrivial): Remove MacOS X case.
22710 (file_has_acl): Use acl_extended_nontrivial.
22711 * lib/copy-acl.c (qcopy_acl): Likewise.
22713 2008-06-08 Bruno Haible <bruno@clisp.org>
22715 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22717 2008-06-08 Jim Meyering <meyering@redhat.com>
22719 * modules/acl (Maintainer): Add Bruno Haible.
22721 2008-06-07 Bruno Haible <bruno@clisp.org>
22723 Improve support for Tru64 ACLs.
22724 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22727 2008-06-07 Bruno Haible <bruno@clisp.org>
22729 Add support for MacOS X ACLs.
22730 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22731 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22732 * lib/set-mode-acl.c (qset_acl): Likewise.
22733 * lib/copy-acl.c (qcopy_acl): Likewise.
22735 2008-06-07 Bruno Haible <bruno@clisp.org>
22737 Fix memory leak introduced on 2008-05-22.
22738 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22741 2008-06-07 Bruno Haible <bruno@clisp.org>
22743 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22744 to construct an empty ACL.
22746 2008-06-07 Bruno Haible <bruno@clisp.org>
22748 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22750 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22752 2008-06-07 Bruno Haible <bruno@clisp.org>
22754 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22755 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22757 2008-06-07 Bruno Haible <bruno@clisp.org>
22759 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22760 regardless of POSIX.
22761 * doc/posix-functions/_longjmp.texi: Likewise.
22762 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22763 SystemV platform in this case.
22765 2008-06-06 Eric Blake <ebb9@byu.net>
22767 Document abort() bugs.
22768 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22770 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22771 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22773 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22774 siglongjmp, but only as a macro.
22775 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22777 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22779 Tweak documentation to cover cygwin argz bugs.
22780 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22781 argz bug fix; no code change needed since no cygwin releases
22782 occurred between the last fix and the bug being tested.
22783 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22784 module and recently fixed cygwin bugs.
22785 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22786 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22787 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22788 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22789 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22791 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22792 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22793 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22794 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22795 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22796 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22799 Avoid gcc warning on cygwin.
22800 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22801 !ACL_NO_TRIVIAL]: Avoid unused variable.
22803 2008-06-05 Eric Blake <ebb9@byu.net>
22805 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22806 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22807 git-version-gen fails to come up with a version.
22808 Reported by Simon Josefsson.
22810 2008-06-05 Jim Meyering <meyering@redhat.com>
22811 Paul Eggert <eggert@cs.ucla.edu>
22813 utimens.c: work around a probable Linux kernel bug
22814 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22815 appears to be a kernel bug that causes utimensat to return 280
22816 instead of 0, indicating success.
22818 2008-06-04 Bruno Haible <bruno@clisp.org>
22820 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22823 2008-06-04 Bruno Haible <bruno@clisp.org>
22825 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22826 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22827 (file_has_acl): Use it. Save errno afterwards.
22828 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22830 2008-06-03 Bruno Haible <bruno@clisp.org>
22832 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22833 draft code. Simplify #ifs.
22834 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22835 Put Solaris code after POSIX-draft code. Fix comments regarding
22836 Solaris 10, HP-UX. Mention Cygwin.
22837 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22839 2008-06-03 Eric Blake <ebb9@byu.net>
22841 Provide fallback for older kernels.
22842 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22843 Provide runtime fallback if kernel lacks support.
22844 Reported by Mike Frysinger.
22846 2008-06-02 Bruno Haible <bruno@clisp.org>
22848 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22851 2008-06-02 Bruno Haible <bruno@clisp.org>
22853 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22854 * lib/copy-acl.c (qcopy_acl): Update comment.
22856 2008-06-02 Bruno Haible <bruno@clisp.org>
22858 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22861 2008-06-02 Bruno Haible <bruno@clisp.org>
22863 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22864 * tests/test-set-mode-acl.sh: Likewise.
22865 * tests/test-copy-acl.sh: Likewise.
22866 * tests/test-copy-file.sh: Likewise.
22868 2008-06-02 Bruno Haible <bruno@clisp.org>
22870 * tests/test-file-has-acl.sh: Remove unused code.
22872 2008-06-01 Bruno Haible <bruno@clisp.org>
22874 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22875 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22877 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22879 2008-06-01 Bruno Haible <bruno@clisp.org>
22881 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22882 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22883 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22885 * modules/acl-tests (configure.ac): Remove tests now contained in
22888 2008-06-02 Jim Meyering <meyering@redhat.com>
22890 announce-gen: use a better key-server host name
22891 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22892 it may be more consistently reliable. Suggested by Werner Koch
22893 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22895 2008-06-01 Bruno Haible <bruno@clisp.org>
22897 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22898 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22900 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22902 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22904 2008-06-01 Bruno Haible <bruno@clisp.org>
22907 * tests/test-file-has-acl.sh: New file.
22908 * tests/test-file-has-acl.c: New file.
22909 * tests/test-set-mode-acl.sh: New file.
22910 * tests/test-set-mode-acl.c: New file.
22911 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22912 * tests/test-copy-acl.c: New file.
22913 * modules/acl-tests: New file, based on modules/copy-file-tests.
22914 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22915 (Depends-on): Add acl-tests.
22916 (configure.ac): Remove checks.
22917 (Makefile.am): Don't create test-sameacls program here any more.
22919 2008-06-01 Bruno Haible <bruno@clisp.org>
22921 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22922 * tests/test-sameacls.c: Include progname.h.
22923 (main): Invoke set_program_name. Portability fixes for MacOS X,
22926 2008-06-01 Bruno Haible <bruno@clisp.org>
22928 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22930 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22932 2008-06-01 Bruno Haible <bruno@clisp.org>
22934 * modules/rpmatch (Depends-on): Add strdup.
22936 2008-06-01 Bruno Haible <bruno@clisp.org>
22938 * lib/pipe.c: Include unistd-safer.h.
22939 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22940 * modules/pipe (Depends-on): Add unistd-safer.
22942 2008-05-30 Simon Josefsson <simon@josefsson.org>
22944 * modules/autobuild (configure.ac): Call AB_INIT.
22946 2008-05-30 Simon Josefsson <simon@josefsson.org>
22948 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22949 Suggested by Bruno Haible <bruno@clisp.org>.
22951 2008-05-30 Simon Josefsson <simon@josefsson.org>
22953 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22954 printf. Use %lu instead of %d. Reported by Bruno Haible
22957 2008-05-29 Eric Blake <ebb9@byu.net>
22959 Prefer new POSIX 200x interfaces over futimesat.
22960 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22961 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22963 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22965 2008-05-28 Bruno Haible <bruno@clisp.org>
22967 * modules/stpcpy (License): Change to LGPLv2+.
22968 Requested by David Lutterkort <dlutter@redhat.com>.
22970 2008-05-27 Bruno Haible <bruno@clisp.org>
22972 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22974 Reported by Jose E. Marchesi <jemarch@gnu.org>.
22976 2008-05-27 Bruno Haible <bruno@clisp.org>
22978 * modules/iconv_open (Link): New section, from module 'iconv'.
22979 * modules/striconv (Link): Likewise.
22980 * modules/striconveh (Link): Likewise.
22981 * modules/xstriconv (Link): Likewise.
22982 * modules/unicodeio (Link): Likewise.
22983 * modules/propername (Link): Likewise.
22984 Reported by Jim Meyering.
22986 2008-05-26 Jim Meyering <meyering@redhat.com>
22988 sha256: do not artificially restrict buffer length to be < 2^32
22989 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22990 uint32_t to size_t.
22991 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22994 avoid unaligned access errors, e.g., on sparc
22995 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22996 direct access through a possibly-unaligned uint64* pointer.
22997 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22998 direct access through a possibly-unaligned uint32* pointer.
22999 Prompted by this patch from Tom "spot" Callaway:
23000 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23002 sha512.c: fix typo in comment
23003 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23005 2008-05-25 Bruno Haible <bruno@clisp.org>
23007 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23008 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23009 (Makefile.am): Update lib_SOURCES.
23011 2008-05-25 Bruno Haible <bruno@clisp.org>
23013 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23015 2008-05-25 Jim Meyering <meyering@redhat.com>
23017 useless-if-before-free: freed expr may have white-space differences
23018 * build-aux/useless-if-before-free: Recognize cases in which the
23019 freed expression differs from the tested one in embedded white
23020 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23021 $1 was used, so we can't make any regexp shy. Improved tests now
23024 useless-if-before-free: accept white space in the expression.
23025 * build-aux/useless-if-before-free: For now, any white space
23026 in the expression must be identical in the free argument.
23028 useless-if-before-free: efficiency tweak
23029 * build-aux/useless-if-before-free: Make the expression-matching
23031 Make the *outer* regexp shy, not the expr-matching one.
23033 update code-in-comment to accept cast of free arg
23034 * build-aux/useless-if-before-free: Update regexp.
23036 2008-05-25 Bruno Haible <bruno@clisp.org>
23038 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23039 * modules/copy-file-tests (Files, Makefile.am): Update.
23040 * tests/test-copy-file.c (func_test_copy): Update.
23042 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23044 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23046 2008-05-23 Bruno Haible <bruno@clisp.org>
23048 Improve support for ACLs on OSF/1.
23049 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23050 Remove fallback for unknown flavors of ACLs.
23052 2008-05-22 Bruno Haible <bruno@clisp.org>
23054 Add support for ACLs on OSF/1.
23055 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23057 (acl_free_text): New macro fallback.
23058 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23060 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23061 acl_free_text function. Require AC_C_INLINE.
23063 2008-05-22 Bruno Haible <bruno@clisp.org>
23065 Make copy_acl work on MacOS X 10.5.
23066 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23067 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23068 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23069 If MODE_INSIDE_ACL, don't assume that every system has the same text
23070 representation for ACLs as FreeBSD.
23071 * lib/copy-acl.c (copy_acl): Add support for platforms with
23073 * lib/file-has-acl.c (file_has_acl): Likewise.
23074 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23075 FreeBSD, MacOS X, or IRIX, respectively.
23077 2008-05-22 Bruno Haible <bruno@clisp.org>
23079 * lib/acl.h: Don't include <sys/acl.h>.
23080 (GETACLCNT): Move fallback to lib/acl-internal.h.
23081 * lib/acl-internal.h: Include <sys/acl.h> here.
23082 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23084 2008-05-22 Bruno Haible <bruno@clisp.org>
23086 Split off copy_acl function to separate file.
23087 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23088 * lib/acl.c (copy_acl): Moved function to separate file.
23089 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23090 * modules/acl (Files): Add lib/copy-acl.c.
23091 (Makefiles.am): Augment lib_SOURCES.
23093 2008-05-22 Bruno Haible <bruno@clisp.org>
23095 * modules/copy-file-tests: New file.
23096 * tests/test-copy-file.sh: New file.
23097 * tests/test-copy-file.c: New file.
23098 * tests/test-copy-file-sameacls.c: New file.
23100 2008-05-22 Eric Blake <ebb9@byu.net>
23103 * tests/test-memcmp.c (main): Pass NULL indirectly.
23105 2008-05-21 Bruno Haible <bruno@clisp.org>
23107 Add reference doc about ACLs.
23108 * doc/acl-resources.txt: New file.
23109 * doc/acl-cygwin.txt: New file.
23111 2008-05-21 Bruno Haible <bruno@clisp.org>
23113 Avoid one more warning from gcc.
23114 * lib/vasnprintf.c (IF_LINT): Update comments.
23115 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23117 2008-05-21 Jim Meyering <meyering@redhat.com>
23119 avoid a warning from gcc
23120 * lib/vasnprintf.c (IF_LINT): Define.
23121 (scale10_round_decimal_long_double):
23122 Use it to avoid a "may be used uninitialized" warning.
23123 (scale10_round_decimal_double): Likewise.
23125 2008-05-21 Simon Josefsson <simon@josefsson.org>
23127 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23130 2008-05-20 Bruno Haible <bruno@clisp.org>
23132 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23133 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23135 2008-05-20 Simon Josefsson <simon@josefsson.org>
23137 * modules/memcmp-tests: New file.
23138 * tests/test-memcmp.c: New file.
23140 2008-05-19 Bruno Haible <bruno@clisp.org>
23142 * modules/propername (Notice, configure.ac): Put quoted "..." into
23144 * lib/propername.h: Update comments accordingly.
23145 Reported by Eric Blake.
23147 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23149 * modules/getpass-gnu (Depends-on): Add fseeko.
23151 2008-05-19 Simon Josefsson <simon@josefsson.org>
23153 * modules/base64-tests: New file.
23155 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23157 * lib/base64.c (base64_decode_ctx): If a decode context structure
23158 was passed in use it to ignore newlines. If a context structure
23159 was _not_ passed in, continue to treat newlines as garbage (this
23160 is the historical behavior). Formerly base64_decode.
23161 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23162 takes a decode context structure.
23163 * lib/base64.h (base64_decode): Macro for four-argument calls.
23164 (base64_decode_alloc): Likewise.
23165 * lib/base64.c (base64_decode_ctx): If a decode context structure
23166 was passed in use it to ignore newlines. If a context structure
23167 was _not_ passed in, continue to treat newlines as garbage (this
23168 is the historical behavior). Formerly base64_decode.
23169 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23170 takes a decode context structure.
23171 * lib/base64.h (base64_decode): Macro for four-argument calls.
23172 (base64_decode_alloc): Likewise.
23174 2008-05-19 Jim Meyering <meyering@redhat.com>
23176 avoid a warning from gcc
23177 * lib/trim.c (IF_LINT): Define.
23178 (trim2): Use it to avoid a "may be used uninitialized" warning.
23181 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23183 2008-05-19 Bruno Haible <bruno@clisp.org>
23185 * doc/glibc-functions/getpass.texi: Document limits of other
23188 2008-05-19 Simon Josefsson <simon@josefsson.org>
23189 Bruno Haible <bruno@clisp.org>
23191 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23193 2008-05-18 Bruno Haible <bruno@clisp.org>
23195 * modules/propername: New file, from GNU gettext.
23196 * lib/propername.h: New file, from GNU gettext.
23197 * lib/propername.c: New file, from GNU gettext.
23198 * MODULES.html.sh (Internationalization functions): Add propername.
23200 2008-05-16 Jim Meyering <meyering@redhat.com>
23201 Bruno Haible <bruno@clisp.org>
23203 Avoid some warnings from "gcc -Wshadow".
23204 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23206 2008-05-15 Eric Blake <ebb9@byu.net>
23208 Extend previous patch to cygwin 1.7.0.
23209 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23210 fast implementation in cygwin >= 1.7.0.
23211 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23212 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23214 2008-05-15 Bruno Haible <bruno@clisp.org>
23216 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23217 implementation in glibc >= 2.9.
23218 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23219 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23221 2008-05-15 Bruno Haible <bruno@clisp.org>
23223 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23224 (Unicode string functions): Add unilbrk/*.
23225 Reported by Karl Berry.
23227 2008-05-15 Eric Blake <ebb9@byu.net>
23229 Fix violation of <stdbool.h> replacement in regex.
23230 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23231 * lib/regexec.c (re_search_internal): Likewise.
23232 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23234 2008-05-15 Jim Meyering <meyering@redhat.com>
23236 avoid distracting test output when git or cvs is not found
23237 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23238 * tests/test-vc-list-files-git.sh: Likewise.
23240 2008-05-15 Eric Blake <ebb9@byu.net>
23242 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23243 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23245 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23246 * doc/posix-functions/strstr.texi (strstr): Likewise.
23247 * lib/str-two-way.h (MAX): Sychronize with glibc.
23249 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23251 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23253 (calc_first): Initialize constraint field.
23254 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23256 (duplicate_node): Merge constraint field for all node types.
23257 (calc_eclosure_iter): Look at constraint field for all node types.
23258 * lib/regex_internal.c (create_cd_newstate): Don't look at
23261 2008-05-14 Bruno Haible <bruno@clisp.org>
23263 Help GCC to do better code generation.
23264 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23265 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23266 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23267 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23268 Declare with attribute 'malloc' if supported.
23270 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23272 use "echo STR|wc -c" rather than unportable "expr length STR"
23273 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23274 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23276 2008-05-14 Jim Meyering <meyering@redhat.com>
23278 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23279 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23280 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23281 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23284 2008-05-14 Eric Blake <ebb9@byu.net>
23286 Avoid quadratic growth in gl_LIBSOURCES.
23287 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23288 Suggested by Bruno Haible.
23291 * modules/xmemdup0-tests: New file.
23292 * tests/test-xmemdup0.c: Likewise.
23294 2008-05-13 Eric Blake <ebb9@byu.net>
23296 Split xmemdup0 into its own module.
23297 * modules/xmemdup0: New file.
23298 * lib/xmemdup0.h: Likewise.
23299 * lib/xmemdup0.c: Likewise.
23300 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23301 * lib/xalloc.h (xmemdup0): Remove.
23302 * lib/xmalloc.c (xmemdup0): Likewise.
23304 2008-05-13 Eric Blake <ebb9@byu.net>
23305 Bruno Haible <bruno@clisp.org>
23307 Reduce number of forks required during autoconf.
23308 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23309 and gl_LIBSOURCES_DIR.
23310 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23311 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23312 m4_syscmd per file.
23313 <m4_foreach_w>: Move...
23314 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23316 2008-05-13 Eric Blake <ebb9@byu.net>
23318 * gnulib-tool: Fix various comment typos.
23320 2008-05-12 Bruno Haible <bruno@clisp.org>
23322 Tailor the linebreaking algorithm.
23323 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23325 2008-05-12 Bruno Haible <bruno@clisp.org>
23327 Update to Unicode 5.0.0.
23328 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23329 LBP_JV, LBP_JT. Redistribute values.
23330 (unilbrk_table): Change size.
23331 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23332 Unicode TR#14 rev. 22.
23333 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23334 LBP_JV, LBP_JT. Redistribute values.
23335 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23336 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23338 * lib/unilbrk/lbrkprop1.h: Regenerated.
23339 * lib/unilbrk/lbrkprop2.h: Regenerated.
23340 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23341 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23342 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23344 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23346 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23348 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23349 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23350 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23351 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23352 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23353 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23355 2008-05-11 Bruno Haible <bruno@clisp.org>
23357 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23359 2008-05-11 Bruno Haible <bruno@clisp.org>
23361 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23362 * modules/unilbrk/gen-lbrk: New file.
23364 2008-05-11 Bruno Haible <bruno@clisp.org>
23366 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23367 * m4/sha512.m4 (gl_SHA512): Likewise.
23369 2008-05-11 Jim Meyering <meyering@redhat.com>
23371 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23372 * modules/crypto/sha256: New file.
23373 * modules/crypto/sha512: Likewise.
23374 * lib/sha256.c: Likewise.
23375 * lib/sha256.h: Likewise.
23376 * lib/sha512.c: Likewise.
23377 * lib/sha512.h: Likewise.
23378 * lib/u64.h: Likewise.
23379 * m4/sha256.m4: Likewise.
23380 * m4/sha512.m4: Likewise.
23381 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23383 2008-05-10 Bruno Haible <bruno@clisp.org>
23385 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23386 (Input/Output <stdio.h>): Add xprintf.
23387 (Signal handling <signal.h>): Add strsignal.
23388 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23389 (Core language properties): Add func.
23390 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23391 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23393 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23394 (Input/output): New section.
23395 (File system functions): Add openat-die, stat-macros.
23396 (Networking functions): Add sockets.
23397 (Unicode string functions): Add unictype/*.
23398 (Support for building libraries and executables): Add gperf.
23399 (Support for building documentation): Add agpl-3.0.
23400 (Misc): Add nocrash.
23402 2008-05-10 Bruno Haible <bruno@clisp.org>
23404 * modules/unictype/gen-ctype: New file.
23406 2008-05-10 Jim Meyering <meyering@redhat.com>
23408 Make chdir-safer.c more efficient on a system with no symlinks.
23409 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23410 also if ELOOP is zero. Suggested by Bruno Haible.
23412 Make chdir-safer.c slightly safer.
23413 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23414 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23416 Avoid compile failure on systems without ELOOP (like mingw).
23417 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23418 Reported by Bruno Haible.
23420 2008-05-10 Bruno Haible <bruno@clisp.org>
23422 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23423 (is_utf8_encoding): Use a case-insensitive comparison.
23424 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23427 2008-05-10 Bruno Haible <bruno@clisp.org>
23429 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23430 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23431 * lib/unilbrk/ulc-common.h (iconv_string_length,
23432 iconv_string_keeping_offsets): Remove declarations.
23433 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23434 Don't include <iconv.h>, streq.h, xsize.h.
23435 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23437 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23438 <iconv.h>, streq.h, xsize.h.
23439 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23441 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23442 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23443 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23444 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23446 2008-05-10 Bruno Haible <bruno@clisp.org>
23448 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23449 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23451 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23452 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23454 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23455 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23457 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23458 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23460 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23461 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23463 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23464 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23466 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23467 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23469 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23470 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23472 2008-05-10 Bruno Haible <bruno@clisp.org>
23474 Split up 'linebreak' module.
23475 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23476 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23477 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23479 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23480 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23481 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23483 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23485 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23487 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23488 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23489 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23491 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23493 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23495 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23497 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23499 * modules/unilbrk/base: New file.
23500 * modules/unilbrk/tables: New file.
23501 * modules/unilbrk/u8-possible-linebreaks: New file.
23502 * modules/unilbrk/u16-possible-linebreaks: New file.
23503 * modules/unilbrk/u32-possible-linebreaks: New file.
23504 * modules/unilbrk/ulc-common: New file.
23505 * modules/unilbrk/ulc-possible-linebreaks: New file.
23506 * modules/unilbrk/u8-width-linebreaks: New file.
23507 * modules/unilbrk/u16-width-linebreaks: New file.
23508 * modules/unilbrk/u32-width-linebreaks: New file.
23509 * modules/unilbrk/ulc-width-linebreaks: New file.
23510 * lib/linebreak.h: Remove file.
23511 * lib/linebreak.c: Remove file.
23512 * m4/linebreak.m4: Remove file.
23513 * modules/linebreak: Remove file.
23514 * NEWS: Mention the changes.
23516 2008-05-09 Eric Blake <ebb9@byu.net>
23519 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23521 * lib/xmalloc.c (xmemdup0): New C implementation.
23523 2008-05-08 Bruno Haible <bruno@clisp.org>
23525 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23527 2008-05-07 Eric Blake <ebb9@byu.net>
23529 Support cross-compilation of <wctype.h>.
23530 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23533 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23535 * build-aux/vc-list-files: Add support for bzr.
23537 2008-05-03 Jim Meyering <meyering@redhat.com>
23539 avoid failed assertion with tight malloc
23540 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23542 2008-05-03 Simon Josefsson <simon@josefsson.org>
23544 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23545 are needed from arpa/inet.h.
23546 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23547 Reported by Bruno Haible.
23549 2008-05-02 Jim Meyering <meyering@redhat.com>
23551 avoid compilation error on FreeBSD 6
23552 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23554 2008-05-01 Jim Meyering <meyering@redhat.com>
23556 useless-if-before-free: correct --help's exit status description
23557 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23558 for one or more matches, etc. Reported by Bruno Haible.
23560 vc-list-files: make the stand-alone gnulib test work
23561 * modules/vc-list-files-tests (configure.ac):
23562 Define and AC_SUBST abs_aux_dir.
23563 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23564 $(abs_top_srcdir) to each script and having each of them
23565 duplicate the work of setting PATH, set PATH here, using
23566 the new variable, abs_aux_dir instead.
23567 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23568 * tests/test-vc-list-files-git.sh: Likewise.
23569 Reported by Bruno Haible.
23571 2008-05-01 Bruno Haible <bruno@clisp.org>
23573 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23574 reallocation. Rename 'done' to 'found_delimiter'.
23576 2008-05-01 Jim Meyering <meyering@redhat.com>
23578 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23579 * build-aux/vc-list-files: Use `...`, not $(...).
23581 2008-04-30 Jim Meyering <meyering@redhat.com>
23583 add tests for vc-list-files
23584 * modules/vc-list-files-tests: New module.
23585 * tests/test-vc-list-files-cvs.sh: New file.
23586 * tests/test-vc-list-files-git.sh: New file.
23588 avoid a warning from gcc
23589 * lib/getndelim2.c (IF_LINT): Define.
23590 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23592 vc-list-files: work properly with build-aux/cvsu, too
23593 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23594 to all cvs-based clauses.
23596 vc-list-files: work properly in the CVS+awk case, too
23597 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23599 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23600 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23601 take more than one file argument, so . Add quotes, just in case $dir
23602 ever contains a shell meta-character. Prompted by Soren Hansen in
23603 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23605 2008-04-29 Eric Blake <ebb9@byu.net>
23607 Optimize getndelim2 to use block operations when possible.
23608 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23609 freadseek, and memchr2.
23610 * lib/getndelim2.c (getndelim2): Use them for block reads.
23612 2008-04-29 Bruno Haible <bruno@clisp.org>
23614 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23615 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23616 * modules/inet_ntop (Depends-on): Add extensions.
23617 * modules/inet_pton (Depends-on): Likewise.
23618 Reported by Simon Josefsson.
23620 2008-04-29 Jim Meyering <meyering@redhat.com>
23622 When the is more than one match in a block, match all of them.
23623 * build-aux/useless-if-before-free: Iterate through each block
23624 until there are no more matches.
23626 Fix broken useless-if-before-free script.
23627 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23628 the expression to match cast of argument to free-like function.
23630 2008-04-29 Eric Blake <ebb9@byu.net>
23633 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23635 2008-04-29 Jim Meyering <meyering@redhat.com>
23637 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23638 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23639 by gnulib to exist and to declare e.g., inet_ntop.
23640 Don't include "inet_ntop.h", now removed.
23642 * m4/arpa_inet_h.m4: Remove trailing blanks.
23644 2008-04-29 Eric Blake <ebb9@byu.net>
23646 Silence valgrind on safe reads beyond potential array bounds.
23647 * lib/rawmemchr.valgrind: New file.
23648 * lib/strchrnul.valgrind: Likewise.
23649 * modules/rawmemchr (Files): Distribute new file.
23650 * modules/strchrnul (Files): Likewise.
23651 Suggested by Bruno Haible.
23653 2008-04-29 Bruno Haible <bruno@clisp.org>
23655 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23656 (inet_ntop, inet_pton): Change portability warning's wording.
23657 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23658 Invoke gl_CHECK_NEXT_HEADERS.
23659 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23660 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23662 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23663 * modules/arpa_inet (Description): No longer only for systems that
23665 (Depends-on): Add include_next.
23666 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23669 2008-04-29 Jim Meyering <meyering@redhat.com>
23671 * modules/mkdir (License): Re-license as LGPLv2+.
23673 2008-04-29 Bruno Haible <bruno@clisp.org>
23675 * modules/rawmemchr (Maintainer): Set to Eric.
23676 * modules/strchrnul (Maintainer): Likewise.
23678 2008-04-29 Simon Josefsson <simon@josefsson.org>
23680 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23681 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23683 * modules/arpa_inet (arpa/inet.h): Use them.
23685 2008-04-28 Eric Blake <ebb9@byu.net>
23688 * modules/getndelim2-tests: New file.
23689 * tests/test-getndelim2.c: Likewise.
23690 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23692 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23694 * MODULES.html.sh: Document new module.
23696 2008-04-20 Bruno Haible <bruno@clisp.org>
23698 * lib/c-stack.c (die): Use raise.
23699 * modules/c-stack (Depends-on): Add raise.
23701 2008-04-28 Bruno Haible <bruno@clisp.org>
23703 Expect rpmatch to be declared.
23704 * lib/yesno.c (rpmatch): Remove declaration.
23707 * lib/stdlib.in.h (rpmatch): New declaration.
23708 * lib/rpmatch.c: Include <stdlib.h> first.
23709 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23710 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23711 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23713 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23714 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23715 (Include): Set to <stdlib.h>.
23716 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23718 * NEWS: Document the change.
23720 2008-04-28 Bruno Haible <bruno@clisp.org>
23722 Change rpmatch to use nl_langinfo when appropriate.
23723 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23725 (localized_pattern): New function/macro.
23726 (try): Remove match, nomatch arguments. Copy the pattern into safe
23727 memory before caching it.
23728 (rpmatch): Use localized_pattern. Add translator comments.
23729 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23730 Suggested by Eric Blake.
23731 * modules/rpmatch (Depends-on): Add stdbool.
23733 2008-04-28 Eric Blake <ebb9@byu.net>
23735 Add rawmemchr module, matching glibc.
23736 * modules/string (Makefile.am): New indicator.
23737 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23738 * lib/string.in.h (rawmemchr): Declare when appropriate.
23739 * modules/rawmemchr: New file.
23740 * m4/rawmemchr.m4: Likewise.
23741 * lib/rawmemchr.c: Likewise.
23742 * modules/rawmemchr-tests: Likewise.
23743 * tests/test-rawmemchr.c: Likewise.
23744 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23746 * modules/strchrnul (Depends-on): Add rawmemchr.
23747 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23749 Whitespace cleanup.
23750 * tests/test-strchrnul.c: Reindent.
23751 * lib/strchrnul.c: Likewise.
23753 Optimize and test strchrnul.
23754 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23755 * modules/strchrnul-tests: New file.
23756 * tests/test-strchrnul.c: Likewise.
23758 Remove intprops dependency.
23759 * modules/memchr (Depends-on): Remove intprops.
23760 * modules/memrchr (Depends-on): Likewise.
23761 * modules/memchr2 (Depends-on): Likewise.
23762 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23763 * lib/memrchr.c (__memrchr): Likewise.
23764 * lib/memrchr2.c (memchr2): Likewise.
23765 Reported by Simon Josefsson.
23767 2008-04-28 Simon Josefsson <simon@josefsson.org>
23769 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23770 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23772 2008-04-28 Simon Josefsson <simon@josefsson.org>
23774 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23776 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23778 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23780 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23782 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23784 * m4/inet_pton.m4: Don't check for header files.
23786 * m4/inet_ntop.m4: Don't check for header files.
23788 2008-04-28 Simon Josefsson <simon@josefsson.org>
23790 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23791 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23792 trigger for cygwin).
23793 Reported by Bruno Haible <bruno@clisp.org>.
23795 2008-04-28 Bruno Haible <bruno@clisp.org>
23797 * doc/posix-functions/strdup.texi: Mention mingw problem.
23799 2008-04-27 Bruno Haible <bruno@clisp.org>
23801 * modules/stat-time-tests (Depends-on): Add sleep.
23802 * tests/test-stat-time.c (force_unlink): New function.
23804 (test_mtime): Remove the ctime related tests.
23805 (test_ctime): New function, containing the ctime related tests.
23806 (main): Call test_ctime, except on native Windows platforms.
23808 2008-04-27 Bruno Haible <bruno@clisp.org>
23810 * lib/rpmatch.c (rpmatch): Add some comments.
23811 Reported by James Youngman <jay@gnu.org>.
23813 2008-04-27 Bruno Haible <bruno@clisp.org>
23815 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23818 2008-04-27 Bruno Haible <bruno@clisp.org>
23820 Make test-yesno.sh work on mingw.
23821 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23822 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23823 (main): Set stdin to binary mode.
23824 * modules/yesno-tests (Depends-on): Add binary-io.
23826 2008-04-27 Bruno Haible <bruno@clisp.org>
23828 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23829 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23830 argument that lie outside the IEEE 854 domain.
23831 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23832 (gl_ISFINITE): Use it.
23833 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23835 2008-04-27 Bruno Haible <bruno@clisp.org>
23837 Allow local renaming in config.h.
23838 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23840 2008-04-27 Bruno Haible <bruno@clisp.org>
23842 * lib/memchr.c (__memchr): Change type of 'i'.
23843 * lib/memchr2.c (memchr2): Likewise.
23845 2008-04-26 Eric Blake <ebb9@byu.net>
23846 and Bruno Haible <bruno@clisp.org>
23848 Optimize and test memrchr.
23849 * modules/memrchr (Depends-on): Add intprops.
23850 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23851 * modules/memrchr-tests: New file.
23852 * tests/test-memrchr.c: New file.
23854 2008-04-26 Bruno Haible <bruno@clisp.org>
23856 Add tentative support for DragonFly BSD.
23857 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23858 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23860 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23861 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23862 * lib/fpurge.c (fpurge): Likewise.
23863 * lib/freadable.c (freaadable): Likewise.
23864 * lib/freadahead.c (freadahead): Likewise.
23865 * lib/freading.c (freading): Likewise.
23866 * lib/freadptr.c (freadptr): Likewise.
23867 * lib/freadseek.c (freadptrinc): Likewise.
23868 * lib/fseeko.c (fseeko): Likewise.
23869 * lib/fseterr.c (fseterr): Likewise.
23870 * lib/fwritable.c (fwritable): Likewise.
23871 * lib/fwriting.c (fwriting): Likewise.
23873 2008-04-26 Bruno Haible <bruno@clisp.org>
23875 * lib/stdio-impl.h: New file.
23876 * lib/fbufmode.c: Include stdio-impl.h.
23877 (fbufmode): Use fp_, remove redundant #defines.
23878 * lib/fflush.c: Include stdio-impl.h.
23879 (clear_ungetc_buffer): Remove redundant #defines.
23880 * lib/fpurge.c: Include stdio-impl.h.
23881 (fpurge): Remove redundant #defines.
23882 * lib/freadable.c: Include stdio-impl.h.
23883 (freadable): Remove redundant #defines.
23884 * lib/freadahead.c: Include stdio-impl.h.
23885 (freadahead): Remove redundant #defines.
23886 * lib/freading.c: Include stdio-impl.h.
23887 (freading): Remove redundant #defines.
23888 * lib/freadptr.c: Include stdio-impl.h.
23889 (freadptr): Remove redundant #defines.
23890 * lib/freadseek.c: Include stdio-impl.h.
23891 (freadptrinc): Remove redundant #defines.
23892 * lib/fseeko.c: Include stdio-impl.h.
23893 (rpl_fseeko): Remove redundant #defines.
23894 * lib/fseterr.c: Include stdio-impl.h.
23895 (fseterr): Remove redundant #defines.
23896 * lib/fwritable.c: Include stdio-impl.h.
23897 (fwritable: Remove redundant #defines.
23898 * lib/fwriting.c: Include stdio-impl.h.
23899 (fwriting): Remove redundant #defines.
23900 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23901 * modules/fflush (Files): Likewise.
23902 * modules/fpurge (Files): Likewise.
23903 * modules/freadable (Files): Likewise.
23904 * modules/freadahead (Files): Likewise.
23905 * modules/freading (Files): Likewise.
23906 * modules/freadptr (Files): Likewise.
23907 * modules/freadseek (Files): Likewise.
23908 * modules/fseeko (Files): Likewise.
23909 * modules/fseterr (Files): Likewise.
23910 * modules/fwritable (Files): Likewise.
23911 * modules/fwriting (Files): Likewise.
23913 2008-04-26 Bruno Haible <bruno@clisp.org>
23915 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23916 restore_seek_optimization, update_fpos_cache): New functions, extracted
23918 (rpl_fflush): Use them.
23919 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23920 (gl_REPLACE_FFLUSH): Use it.
23922 2008-04-26 Bruno Haible <bruno@clisp.org>
23924 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23926 * tests/test-xstrtoimax.sh: Likewise.
23927 * tests/test-xstrtoumax.sh: Likewise.
23928 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23930 2008-04-26 Bruno Haible <bruno@clisp.org>
23932 * modules/memchr-tests: New file.
23933 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23935 2008-04-26 Eric Blake <ebb9@byu.net>
23936 Bruno Haible <bruno@clisp.org>
23938 * lib/memchr.c: Include intprops.h.
23939 (__memchr): Optimize parallel detection of matching bytes. Rename local
23940 variables. Add explanatory comments.
23942 2008-04-26 Bruno Haible <bruno@clisp.org>
23944 Fix module 'memchr', broken since 2000-10-28.
23945 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23947 2008-04-26 Bruno Haible <bruno@clisp.org>
23949 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23952 2008-04-25 Eric Blake <ebb9@byu.net>
23954 Use native fstatat on cygwin 1.7.0.
23955 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23958 2008-04-23 Eric Blake <ebb9@byu.net>
23960 Improve memchr2 performance.
23961 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23963 * modules/memchr2 (Depends-on): Use intprops.h.
23965 2008-04-23 Simon Josefsson <simon@josefsson.org>
23967 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23968 an inline function instead of a CPP macro. Patch by Ben Pfaff
23969 <blp@cs.stanford.edu>.
23971 2008-04-23 Simon Josefsson <simon@josefsson.org>
23973 * lib/arpa_inet.in.h: New file.
23975 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23976 (Makefile.am): Sed in substitute header file.
23978 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23979 gl_ARPA_INET_MODULE_INDICATOR. Use them.
23981 * modules/inet_ntop (configure.ac): Use
23982 gl_ARPA_INET_MODULE_INDICATOR.
23984 * modules/inet_pton (configure.ac): Use
23985 gl_ARPA_INET_MODULE_INDICATOR.
23987 2008-04-22 Jim Meyering <meyering@redhat.com>
23989 * modules/verify (License): Re-license as LGPLv2+.
23991 2008-04-22 Simon Josefsson <simon@josefsson.org>
23993 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23994 parameter to void* as per POSIX standard (MinGW uses char*).
23996 2008-04-21 Bruno Haible <bruno@clisp.org>
23998 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23999 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24000 Define to replacements if REPLACE_ISWCNTRL is 1.
24001 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24002 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24003 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24004 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24006 * doc/posix-functions/iswalpha.texi: Likewise.
24007 * doc/posix-functions/iswblank.texi: Likewise.
24008 * doc/posix-functions/iswcntrl.texi: Likewise.
24009 * doc/posix-functions/iswdigit.texi: Likewise.
24010 * doc/posix-functions/iswgraph.texi: Likewise.
24011 * doc/posix-functions/iswlower.texi: Likewise.
24012 * doc/posix-functions/iswprint.texi: Likewise.
24013 * doc/posix-functions/iswpunct.texi: Likewise.
24014 * doc/posix-functions/iswspace.texi: Likewise.
24015 * doc/posix-functions/iswupper.texi: Likewise.
24016 * doc/posix-functions/iswxdigit.texi: Likewise.
24017 Reported by Alain Guibert.
24019 2008-04-21 Bruno Haible <bruno@clisp.org>
24021 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24022 Patch by Alain Guibert.
24024 2008-04-21 Bruno Haible <bruno@clisp.org>
24026 Fix test failures on mingw.
24027 * tests/test-xstrtol.c (print_no_progname): New function.
24028 (main): Install it in error_print_progname hook.
24029 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24030 * tests/test-xstrtoimax.sh: Likewise.
24031 * tests/test-xstrtoumax.sh: Likewise.
24033 2008-04-21 Bruno Haible <bruno@clisp.org>
24035 Fix test failure on mingw.
24036 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24038 2008-04-21 Bruno Haible <bruno@clisp.org>
24040 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24041 Actually assign a value.
24043 2008-04-20 Bruno Haible <bruno@clisp.org>
24045 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24047 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24048 'canonicalize-lgpl' module is also used.
24049 * lib/canonicalize-lgpl.c: Undo last change.
24050 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24052 2008-04-20 Bruno Haible <bruno@clisp.org>
24054 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24055 config.h. Provide _mkdir based fallback for mingw.
24056 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24057 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24058 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24059 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24060 rather than defining mkdir in config.h.
24061 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24062 (gl_SYS_STAT_H_DEFAULTS): New macro.
24063 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24064 HAVE_IO_H any more.
24065 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24066 HAVE_DECL_MKDIR and HAVE_IO_H.
24068 2008-04-20 Bruno Haible <bruno@clisp.org>
24070 * lib/isapipe.c: Port to native Windows platforms.
24072 2008-04-20 Bruno Haible <bruno@clisp.org>
24074 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24076 2008-04-21 Eric Blake <ebb9@byu.net>
24078 Work around preprocessors that don't handle UINTMAX_MAX.
24079 * lib/memchr2.c (memchr2): Avoid embedded #if.
24080 Reported by Alain Guibert, fix suggested by Bruno Haible.
24082 2008-04-21 Simon Josefsson <simon@josefsson.org>
24084 * doc/posix-functions/strftime.texi (strftime): Explain better
24085 Windows incompatibility. Suggested by Micah Cowan
24086 <micah@cowan.name>.
24088 2008-04-20 Bruno Haible <bruno@clisp.org>
24090 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24093 2008-04-20 Bruno Haible <bruno@clisp.org>
24095 Fix test failure on platforms with non-GNU iconv.
24096 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24097 (U_TO_U8): Use it, rather than u16_to_u8.
24098 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24099 units at the end of the input string.
24100 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24102 2008-04-20 Bruno Haible <bruno@clisp.org>
24104 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24105 when the resulting length is 0.
24106 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24108 2008-04-20 Bruno Haible <bruno@clisp.org>
24110 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24112 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24114 2008-04-20 Bruno Haible <bruno@clisp.org>
24116 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24117 * modules/tsearch-tests (configure.ac): Test for initstate function.
24119 2008-04-20 Bruno Haible <bruno@clisp.org>
24121 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24122 for nlink_t if missing.
24123 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24125 2008-04-19 Bruno Haible <bruno@clisp.org>
24127 Work around snprintf bug on Linux libc5.
24128 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24129 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24131 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24132 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24134 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24135 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24136 * modules/snprintf (Files): Add m4/printf.m4.
24137 * modules/vsnprintf (Files): Likewise.
24138 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24139 * doc/posix-functions/vsnprintf.texi: Likewise.
24141 2008-04-19 Bruno Haible <bruno@clisp.org>
24143 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24144 from 0.0058 to less than 10^-7.
24146 2008-04-19 Bruno Haible <bruno@clisp.org>
24148 Fix rounding when a precision is given.
24149 * lib/vasnprintf.c (is_borderline): New function.
24150 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24152 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24154 * tests/test-vasprintf-posix.c (test_function): Likewise.
24155 * tests/test-snprintf-posix.h (test_function): Likewise.
24156 * tests/test-sprintf-posix.h (test_function): Likewise.
24157 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24158 * tests/test-printf-posix.h (test_function): Likewise.
24159 * tests/test-printf-posix.output: Update.
24160 Reported by John Darrington <john@darrington.wattle.id.au> via
24161 Ben Pfaff <blp@cs.stanford.edu>.
24163 2008-04-18 Simon Josefsson <simon@josefsson.org>
24165 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24166 Suggested by Bruno Haible <bruno@clisp.org>.
24168 2008-04-17 Bruno Haible <bruno@clisp.org>
24170 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24171 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24173 Patch by Bruce Merry <bmerry@gmail.com>.
24175 2008-04-17 Simon Josefsson <simon@josefsson.org>
24177 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24178 doesn't work under Windows.
24180 2008-04-16 Bruno Haible <bruno@clisp.org>
24182 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24184 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24185 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24186 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24187 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24188 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24189 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24190 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24192 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24193 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24194 Northern Sotho, Uighur.
24196 2008-04-16 Bruno Haible <bruno@clisp.org>
24198 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24199 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24200 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24201 Reported by Daniel Bergström <daniel@octocode.com>.
24203 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24204 Bruno Haible <bruno@clisp.org>
24206 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24208 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24209 New functions, mostly extracted from gl_locale_name_default.
24210 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24212 2008-04-16 Eric Blake <ebb9@byu.net>
24214 Adjust strtod detection to catch glibc 2.7 bug.
24215 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24216 Reported by John Gatewood Ham.
24218 2008-04-16 Bruno Haible <bruno@clisp.org>
24220 Add tentative support for Linux libc5.
24221 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24222 * lib/fpurge.c (fpurge): Likewise.
24223 * lib/freadable.c (freadable): Likewise.
24224 * lib/freadahead.c (freadahead): Likewise.
24225 * lib/freading.c (freading): Likewise.
24226 * lib/freadptr.c (freadptr): Likewise.
24227 * lib/freadseek.c (freadptrinc): Likewise.
24228 * lib/fseeko.c (rpl_fseeko): Likewise.
24229 * lib/fseterr.c (fseterr): Likewise.
24230 * lib/fwritable.c (fwritable): Likewise.
24231 * lib/fwriting.c (fwriting): Likewise.
24232 Reported by Alain Guibert <alguibert+bts@free.fr>.
24234 2008-04-15 Bruno Haible <bruno@clisp.org>
24236 * modules/mathl (configure.ac): Define module indicator.
24238 2008-04-15 Bruno Haible <bruno@clisp.org>
24240 * lib/logl.c (logl): Remove unused variables.
24242 2008-04-15 Bruno Haible <bruno@clisp.org>
24244 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24247 2008-04-15 Bruno Haible <bruno@clisp.org>
24249 * lib/trim.c (trim2): Fix argument of isspace() macro.
24251 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24253 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24255 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24257 2008-04-14 Bruno Haible <bruno@clisp.org>
24259 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24260 AC_LANG_PROGRAM argument.
24261 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24262 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24263 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24264 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24265 * m4/math_h.m4 (gl_MATH_H): Likewise.
24266 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24267 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24268 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24269 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24270 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24271 * m4/regex.m4 (gl_REGEX): Likewise.
24272 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24273 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24274 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24275 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24276 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24277 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24278 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24279 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24281 2008-04-14 Jim Meyering <meyering@redhat.com>
24283 test-strtod: fix typos: s/abs/fabs/
24284 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24286 2008-04-13 Bruno Haible <bruno@clisp.org>
24288 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24289 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24290 module is also used and while not building the reloc-wrapper.
24292 2008-04-13 Bruno Haible <bruno@clisp.org>
24294 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24296 2008-04-13 Bruno Haible <bruno@clisp.org>
24298 Fix AIX compilation failure introduced on 2008-04-02.
24299 * tests/test-frexp.c (exp): Undefine before redefining.
24300 * tests/test-frexpl.c (exp): Likewise.
24302 2008-04-13 Bruno Haible <bruno@clisp.org>
24304 Work around a HP-UX stdio bug.
24305 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24306 * tests/test-ftello.c (main): Likewise.
24307 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24308 * doc/posix-functions/ftello.texi: Likewise.
24310 2008-04-13 Bruno Haible <bruno@clisp.org>
24312 Make test-signbit pass on HP-UX/hppa.
24313 * tests/test-signbit.c (minus_zerol): New variable.
24314 (test_signbitl): Use it.
24316 2008-04-13 Bruno Haible <bruno@clisp.org>
24318 Make truncl work on OSF/1 4.0.
24319 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24320 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24321 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24322 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24324 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24326 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24328 2008-04-13 Bruno Haible <bruno@clisp.org>
24330 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24332 2008-04-13 Bruno Haible <bruno@clisp.org>
24334 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24335 expression, so as to avoid HP-UX 11 cc compiler bug.
24337 2008-04-13 Bruno Haible <bruno@clisp.org>
24339 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24341 2008-04-13 Bruno Haible <bruno@clisp.org>
24343 * lib/git-merge-changelog.c: Remove empty declaration outside of
24346 2008-04-13 Bruno Haible <bruno@clisp.org>
24348 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24350 2008-04-13 Bruno Haible <bruno@clisp.org>
24352 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24353 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24354 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24355 also if it exists but lacks definitions of the SHUT_* macros.
24356 * modules/sys_socket (Description): Update.
24357 Reported by Elbert Pol <e.pol@chello.nl>.
24359 2008-04-13 Bruno Haible <bruno@clisp.org>
24361 * lib/localcharset.c (OS2): Don't redefine if already defined.
24362 Reported by Elbert Pol <e.pol@chello.nl>.
24364 2008-04-13 Bruno Haible <bruno@clisp.org>
24366 * lib/binary-io.h [__EMX__]: Include <io.h>.
24367 Reported by Elbert Pol <e.pol@chello.nl>.
24369 2008-04-12 Bruno Haible <bruno@clisp.org>
24371 * lib/fpucw.h: Enable the definitions also for x86_64.
24372 Needed for NetBSD/x86_64.
24373 Reported by Thomas Klausner <tk@giga.or.at>.
24375 2008-04-12 Bruno Haible <bruno@clisp.org>
24377 * tests/test-strtod.c: Include isnand.h.
24378 (main): Use isnand instead of isnan.
24379 Reported by Jim Meyering.
24381 2008-04-12 Bruno Haible <bruno@clisp.org>
24383 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24384 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24386 2008-04-12 Jim Meyering <meyering@redhat.com>
24388 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24390 2008-04-12 Bruno Haible <bruno@clisp.org>
24392 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24393 Reported by Elbert Pol <e.pol@chello.nl>.
24395 2008-04-12 Eric Blake <ebb9@byu.net>
24397 Work around Solaris 10 math.h bug.
24398 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24399 (gl_MATH_H_DEFAULTS): Set up default.
24400 * modules/math (Makefile.am): Replace new indicators.
24401 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24402 * tests/test-math.c (main): Test this.
24403 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24404 * doc/posix-headers/math.texi (math.h): Mention bug.
24405 Reported by Nelson H. F. Beebe and Jim Meyering.
24407 2008-04-11 Bruno Haible <bruno@clisp.org>
24409 Adapt to future versions of Apple GCC.
24410 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24411 Reported by Peter O'Gorman <peter@pogma.com>.
24413 2008-04-11 Bruno Haible <bruno@clisp.org>
24415 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24417 2008-04-11 Bruno Haible <bruno@clisp.org>
24419 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24421 * modules/getaddrinfo-tests (Makefile.am): Define
24422 test_getaddrinfo_LDADD.
24424 2008-04-11 Bruno Haible <bruno@clisp.org>
24426 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24427 (init): Fix syntax error.
24428 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24431 2008-04-11 Bruno Haible <bruno@clisp.org>
24433 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24434 * modules/glob (Depends-on): Add stdbool.
24436 2008-04-11 Bruno Haible <bruno@clisp.org>
24438 * lib/trim.c: Include <string.h>.
24440 2008-04-11 Eric Blake <ebb9@byu.net>
24442 Avoid compile failure on OS/2.
24443 * lib/regex_internal.h (internal_function): Disable optimization
24444 on OS/2 (__EMX__), where it caused compiler error.
24445 Reported by Elbert Pol.
24447 2008-04-11 Bruno Haible <bruno@clisp.org>
24449 Flush the standard error stream before aborting. Needed on mingw.
24450 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24451 * tests/test-array_list.c (ASSERT): Likewise.
24452 * tests/test-array_oset.c (ASSERT): Likewise.
24453 * tests/test-avltree_list.c (ASSERT): Likewise.
24454 * tests/test-avltree_oset.c (ASSERT): Likewise.
24455 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24456 * tests/test-binary-io.c (ASSERT): Likewise.
24457 * tests/test-byteswap.c (ASSERT): Likewise.
24458 * tests/test-c-ctype.c (ASSERT): Likewise.
24459 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24460 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24461 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24462 * tests/test-c-strstr.c (ASSERT): Likewise.
24463 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24464 * tests/test-canonicalize.c (ASSERT): Likewise.
24465 * tests/test-carray_list.c (ASSERT): Likewise.
24466 * tests/test-ceilf1.c (ASSERT): Likewise.
24467 * tests/test-ceilf2.c (ASSERT): Likewise.
24468 * tests/test-ceill.c (ASSERT): Likewise.
24469 * tests/test-count-one-bits.c (ASSERT): Likewise.
24470 * tests/test-fbufmode.c (ASSERT): Likewise.
24471 * tests/test-fflush2.c (ASSERT): Likewise.
24472 * tests/test-floorf1.c (ASSERT): Likewise.
24473 * tests/test-floorf2.c (ASSERT): Likewise.
24474 * tests/test-floorl.c (ASSERT): Likewise.
24475 * tests/test-fopen.c (ASSERT): Likewise.
24476 * tests/test-fpending.c (ASSERT): Likewise.
24477 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24478 * tests/test-fpurge.c (ASSERT): Likewise.
24479 * tests/test-freadable.c (ASSERT): Likewise.
24480 * tests/test-freadahead.c (ASSERT): Likewise.
24481 * tests/test-freading.c (ASSERT): Likewise.
24482 * tests/test-freadptr.c (ASSERT): Likewise.
24483 * tests/test-freadptr2.c (ASSERT): Likewise.
24484 * tests/test-freadseek.c (ASSERT): Likewise.
24485 * tests/test-freopen.c (ASSERT): Likewise.
24486 * tests/test-frexp.c (ASSERT): Likewise.
24487 * tests/test-frexpl.c (ASSERT): Likewise.
24488 * tests/test-fseek.c (ASSERT): Likewise.
24489 * tests/test-fseeko.c (ASSERT): Likewise.
24490 * tests/test-fstrcmp.c (ASSERT): Likewise.
24491 * tests/test-ftell.c (ASSERT): Likewise.
24492 * tests/test-ftello.c (ASSERT): Likewise.
24493 * tests/test-func.c (ASSERT): Likewise.
24494 * tests/test-fwritable.c (ASSERT): Likewise.
24495 * tests/test-fwriting.c (ASSERT): Likewise.
24496 * tests/test-getdelim.c (ASSERT): Likewise.
24497 * tests/test-getline.c (ASSERT): Likewise.
24498 * tests/test-i-ring.c (ASSERT): Likewise.
24499 * tests/test-iconv-utf.c (ASSERT): Likewise.
24500 * tests/test-iconv.c (ASSERT): Likewise.
24501 * tests/test-isfinite.c (ASSERT): Likewise.
24502 * tests/test-isnand.c (ASSERT): Likewise.
24503 * tests/test-isnanf.c (ASSERT): Likewise.
24504 * tests/test-isnanl.h (ASSERT): Likewise.
24505 * tests/test-ldexpl.c (ASSERT): Likewise.
24506 * tests/test-linked_list.c (ASSERT): Likewise.
24507 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24508 * tests/test-localename.c (ASSERT): Likewise.
24509 * tests/test-lseek.c (ASSERT): Likewise.
24510 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24511 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24512 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24513 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24514 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24515 * tests/test-mbschr.c (ASSERT): Likewise.
24516 * tests/test-mbscspn.c (ASSERT): Likewise.
24517 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24518 * tests/test-mbspbrk.c (ASSERT): Likewise.
24519 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24520 * tests/test-mbsrchr.c (ASSERT): Likewise.
24521 * tests/test-mbsspn.c (ASSERT): Likewise.
24522 * tests/test-mbsstr1.c (ASSERT): Likewise.
24523 * tests/test-mbsstr2.c (ASSERT): Likewise.
24524 * tests/test-mbsstr3.c (ASSERT): Likewise.
24525 * tests/test-memchr2.c (ASSERT): Likewise.
24526 * tests/test-memmem.c (ASSERT): Likewise.
24527 * tests/test-open.c (ASSERT): Likewise.
24528 * tests/test-printf-frexp.c (ASSERT): Likewise.
24529 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24530 * tests/test-printf-posix.c (ASSERT): Likewise.
24531 * tests/test-quotearg.c (ASSERT): Likewise.
24532 * tests/test-rbtree_list.c (ASSERT): Likewise.
24533 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24534 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24535 * tests/test-round1.c (ASSERT): Likewise.
24536 * tests/test-roundf1.c (ASSERT): Likewise.
24537 * tests/test-roundl.c (ASSERT): Likewise.
24538 * tests/test-signbit.c (ASSERT): Likewise.
24539 * tests/test-sleep.c (ASSERT): Likewise.
24540 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24541 * tests/test-snprintf.c (ASSERT): Likewise.
24542 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24543 * tests/test-stat-time.c (ASSERT): Likewise.
24544 * tests/test-strcasestr.c (ASSERT): Likewise.
24545 * tests/test-strerror.c (ASSERT): Likewise.
24546 * tests/test-striconv.c (ASSERT): Likewise.
24547 * tests/test-striconveh.c (ASSERT): Likewise.
24548 * tests/test-striconveha.c (ASSERT): Likewise.
24549 * tests/test-strsignal.c (ASSERT): Likewise.
24550 * tests/test-strstr.c (ASSERT): Likewise.
24551 * tests/test-strtod.c (ASSERT): Likewise.
24552 * tests/test-trunc1.c (ASSERT): Likewise.
24553 * tests/test-trunc2.c (ASSERT): Likewise.
24554 * tests/test-truncf1.c (ASSERT): Likewise.
24555 * tests/test-truncf2.c (ASSERT): Likewise.
24556 * tests/test-truncl.c (ASSERT): Likewise.
24557 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24558 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24559 * tests/test-vasnprintf.c (ASSERT): Likewise.
24560 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24561 * tests/test-vasprintf.c (ASSERT): Likewise.
24562 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24563 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24564 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24565 * tests/test-vsnprintf.c (ASSERT): Likewise.
24566 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24567 * tests/test-wcwidth.c (ASSERT): Likewise.
24568 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24569 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24570 * tests/test-xvasprintf.c (ASSERT): Likewise.
24571 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24572 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24573 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24574 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24575 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24576 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24577 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24578 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24579 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24580 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24581 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24582 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24583 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24584 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24585 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24586 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24587 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24588 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24589 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24590 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24591 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24592 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24593 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24594 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24595 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24596 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24597 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24598 * tests/unictype/test-combining.c (ASSERT): Likewise.
24599 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24600 * tests/unictype/test-digit.c (ASSERT): Likewise.
24601 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24602 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24603 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24604 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24605 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24606 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24607 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24608 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24609 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24610 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24611 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24612 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24613 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24614 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24615 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24616 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24617 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24618 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24619 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24620 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24621 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24622 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24623 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24624 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24625 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24626 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24627 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24628 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24629 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24630 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24631 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24632 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24633 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24634 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24635 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24636 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24637 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24638 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24639 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24640 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24641 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24642 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24643 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24644 Reported by Eric Blake.
24646 2008-04-11 Bruno Haible <bruno@clisp.org>
24648 * lib/wchar.in.h: Tweak comment.
24650 2008-04-11 Bruno Haible <bruno@clisp.org>
24652 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24653 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24655 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24657 2008-04-11 Bruno Haible <bruno@clisp.org>
24659 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24661 2008-04-11 Simon Josefsson <simon@josefsson.org>
24663 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24664 of attempting to use non-existing /dev/*random. Based on patch
24665 from Adam Strzelecki <ono@java.pl> in
24666 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24668 2008-04-08 Bruno Haible <bruno@clisp.org>
24670 Add tentative support for emx+gcc.
24671 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24672 * lib/fpurge.c (fpurge): Likewise.
24673 * lib/freadable.c (freadable): Likewise.
24674 * lib/freadahead.c (freadahead): Likewise.
24675 * lib/freading.c (freading): Likewise.
24676 * lib/freadptr.c (freadptr): Likewise.
24677 * lib/freadseek.c (freadptrinc): Likewise.
24678 * lib/fseeko.c (rpl_fseeko): Likewise.
24679 * lib/fseterr.c (fseterr): Likewise.
24680 * lib/fwritable.c (fwritable): Likewise.
24681 * lib/fwriting.c (fwriting): Likewise.
24682 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24684 2008-04-09 Eric Blake <ebb9@byu.net>
24686 Avoid some autoconf warnings.
24687 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24688 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24689 * m4/afs.m4 (gl_AFS): Likewise.
24690 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24691 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24692 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24693 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24694 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24695 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24696 (AC_CHECK_DECLS_ONCE): Likewise.
24698 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24699 gnulib-tool requires autoconf 2.59 or better.
24700 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24702 2008-04-08 Eric Blake <ebb9@byu.net>
24704 Use 'git describe --match' if present (added in git 1.5.5).
24705 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24708 2008-04-08 Bruno Haible <bruno@clisp.org>
24710 Add tentative support for OpenServer.
24711 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24713 * lib/fpurge.c (fpurge): Likewise.
24714 * lib/freadable.c (freadable): Likewise.
24715 * lib/freadahead.c (freadahead): Likewise.
24716 * lib/freading.c (freading): Likewise.
24717 * lib/freadptr.c (freadptr): Likewise.
24718 * lib/freadseek.c (freadptrinc): Likewise.
24719 * lib/fseeko.c (rpl_fseeko): Likewise.
24720 * lib/fseterr.c (fseterr): Likewise.
24721 * lib/fwritable.c (fwritable): Likewise.
24722 * lib/fwriting.c (fwriting): Likewise.
24723 Reported by Roger Cornelius <rac@tenzing.org> and
24724 Brian K. White <brian@aljex.com>.
24726 2008-04-06 Jim Meyering <meyering@redhat.com>
24728 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24730 2008-04-06 Bruno Haible <bruno@clisp.org>
24732 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24733 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24734 * tests/test-printf-posix.sh: Likewise.
24735 * tests/test-vfprintf-posix.sh: Likewise.
24736 * tests/test-vprintf-posix.sh: Likewise.
24737 * tests/test-xprintf-posix.sh: Likewise.
24739 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24741 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24742 hide error from 'ls', needed on OS/2.
24743 Report by Elbert Pol <elbert.pol@gmail.com>.
24745 2008-04-04 Eric Blake <ebb9@byu.net>
24747 Make test-fseeko.c failures meaningful.
24748 * tests/test-fseeko.c: Print line number on failure.
24749 * tests/test-fseek.c: Likewise.
24750 Reported by Nelson H. F. Beebe.
24752 Improve strtod bug detection check.
24753 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24754 required for Solaris 10.
24755 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24757 2008-04-04 Bruno Haible <bruno@clisp.org>
24759 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24762 2008-04-03 Eric Blake <ebb9@byu.net>
24764 Ensure sane .version contents.
24765 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24767 * build-aux/git-version-gen: Improve documentation.
24769 Make GNU make output nicer.
24770 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24771 MAKECMDGOALS to enforce message for all command line targets. Set
24772 srcdir for use in maint.mk.
24774 Another maintainer tweak.
24775 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24776 a target that regenerates version.
24778 2008-04-03 Jim Meyering <meyering@redhat.com>
24780 vc-list-files: don't cause coreutils "make po-check" failure
24781 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24783 2008-04-03 Eric Blake <ebb9@byu.net>
24785 Allow VPATH usage of vc-list-files.
24786 * build-aux/vc-list-files (scriptversion): Add timestamp.
24787 (options): Add --help, --version, -C.
24788 (CVS): Support installed cvsu.
24790 2008-04-02 Bruno Haible <bruno@clisp.org>
24792 Avoid some "statement with no effect" warnings from gcc.
24793 * tests/test-wctype.c (main): Explicitly ignore unused values.
24794 Reported by Jim Meyering.
24796 2008-04-02 Jim Meyering <meyering@redhat.com>
24798 Avoid some warnings from "gcc -Wshadow".
24799 * tests/test-frexp.c (exp): Define to a different identifier.
24800 * tests/test-frexpl.c (exp): Likewise.
24802 2008-04-03 Jim Meyering <meyering@redhat.com>
24804 bootstrap: remove dangling *.[ch] symlinks from lib
24805 * build-aux/bootstrap [dangling symlink removal]: Move find's
24806 -depth option to precede all others, to avoid a warning.
24807 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24809 2008-04-02 Bruno Haible <bruno@clisp.org>
24811 Avoid some warnings from "gcc -Wshadow".
24812 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24813 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24814 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24815 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24816 Reported by Jim Meyering.
24818 2008-04-01 Bruno Haible <bruno@clisp.org>
24820 Fix test to work on IRIX 6.5 with cc.
24821 * tests/test-math.c (numeric_equal): New function.
24824 2008-04-01 Bruno Haible <bruno@clisp.org>
24826 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24828 2008-04-01 Bruno Haible <bruno@clisp.org>
24830 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24831 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24832 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24833 (Depends-on): Remove math.
24835 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24836 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24837 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24838 (Depends-on): Remove math.
24840 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24841 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24842 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24843 (Depends-on): Remove math.
24844 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24845 (Depends-on): Remove math.
24847 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24848 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24849 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24850 (Depends-on): Remove math.
24851 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24852 (Depends-on): Remove math.
24854 * tests/test-round1.c: Include nan.h.
24855 (main): Use NaNd instead of NAN.
24856 * modules/round-tests (Files): Add tests/nan.h.
24858 * tests/test-trunc1.c: Include nan.h.
24859 (main): Use NaNd instead of NAN.
24860 * modules/trunc-tests (Files): Add tests/nan.h.
24862 * tests/test-roundf1.c: Include nan.h.
24863 (main): Use NaNf instead of NAN.
24864 * modules/roundf-tests (Files): Add tests/nan.h.
24866 * tests/test-truncf1.c: Include nan.h.
24867 (main): Use NaNf instead of NAN.
24868 * modules/truncf-tests (Files): Add tests/nan.h.
24870 * tests/test-ceilf1.c: Include nan.h.
24871 (main): Use NaNf instead of NAN.
24872 * modules/ceilf-tests (Files): Add tests/nan.h.
24874 * tests/test-floorf1.c: Include nan.h.
24875 (main): Use NaNf instead of NAN.
24876 * modules/floorf-tests (Files): Add tests/nan.h.
24878 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24879 (main): Use NaNf instead of NAN.
24880 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24882 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24883 (main): Use NaNd instead of NAN.
24884 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24886 * tests/test-frexp.c: Include nan.h.
24887 (main): Use NaNd instead of NAN.
24888 * modules/frexp-tests (Files): Add tests/nan.h.
24890 * lib/isnan.c: Don't include <math.h>.
24891 (FUNC): Don't use NAN macro.
24892 * modules/isnand-nolibm (Depends-on): Remove math.
24893 * modules/isnanf-nolibm (Depends-on): Remove math.
24894 * modules/isnanl (Depends-on): Remove math.
24895 * modules/isnanl-nolibm (Depends-on): Remove math.
24897 * tests/nan.h: New file.
24899 2008-04-01 Eric Blake <ebb9@byu.net>
24902 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24903 values to be the right type.
24905 For now, cater to gnulib strtod inaccuracies.
24906 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24907 fractional results. While not as nice from a QoI perspective, it
24908 is a quicker patch than correctly implementing decimal to binary
24911 2008-03-31 Eric Blake <ebb9@byu.net>
24913 Guarantee a definition of NAN.
24914 * lib/math.in.h (NAN): Define if missing.
24915 * tests/test-math.c (main): Test it.
24916 * doc/posix-headers/math.texi (math.h): Document this.
24917 * lib/isnan.c (rpl_isnand): Use it.
24918 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24919 * tests/test-floorf1.c (NaN): Likewise.
24920 * tests/test-frexp.c (NaN): Likewise.
24921 * tests/test-isnand.c (NaN): Likewise.
24922 * tests/test-isnanf.c (NaN): Likewise.
24923 * tests/test-round1.c (NaN): Likewise.
24924 * tests/test-roundf1.c (NaN): Likewise.
24925 * tests/test-snprintf-posix.h (NaN): Likewise.
24926 * tests/test-sprintf-posix.h (NaN): Likewise.
24927 * tests/test-trunc1.c (NaN): Likewise.
24928 * tests/test-truncf1.c (NaN): Likewise.
24929 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24930 * tests/test-vasprintf-posix.c (NaN): Likewise.
24931 * modules/isnand-nolibm (Depends-on): Add math.
24932 * modules/isnanf-nolibm (Depends-on): Likewise.
24933 * modules/isnanl (Depends-on): Likewise.
24934 * modules/isnanl-nolibm (Depends-on): Likewise.
24935 * modules/snprintf-posix-tests (Depends-on): Likewise.
24936 * modules/sprintf-posix-tests (Depends-on): Likewise.
24937 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24938 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24939 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24940 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24942 2008-03-31 Bruno Haible <bruno@clisp.org>
24944 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24945 * doc/posix-functions/strtod.texi: Likewise.
24947 2008-03-31 Bruno Haible <bruno@clisp.org>
24949 * tests/test-strtod.c (main): Don't use C99 syntax.
24951 2008-03-31 Bruno Haible <bruno@clisp.org>
24953 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24954 Reported by Eric Blake.
24956 2008-03-31 Jim Meyering <meyering@redhat.com>
24958 Don't compare actual signbit return values.
24959 * tests/test-strtod.c (main): Rather, compare only their
24960 zero/non-zero nature.
24962 2008-03-31 Eric Blake <ebb9@byu.net>
24964 More strtod documentation.
24965 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24966 failures as distinct bugs.
24968 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24970 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24971 Problem reported by Erik Benada in
24972 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24974 2008-03-30 Bruno Haible <bruno@clisp.org>
24976 * tests/test-strtod.c: Add comments about which assertion fails on which
24978 * doc/posix-functions/strtod.texi: Add info about many more platforms.
24980 2008-03-30 Eric Blake <ebb9@byu.net>
24982 Test signbit behavior on zeros.
24983 * tests/test-signbit.c (test_signbitf): Add tests for zero.
24984 (test_signbitd, test_signbitl): Likewise.
24986 More strtod touchups.
24987 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24988 sign of negative underflow, for now. Use .5, not .1.
24989 * doc/posix-functions/strtod.texi (strtod): Mention these
24991 Reported by Jim Meyering.
24993 2008-03-30 Bruno Haible <bruno@clisp.org>
24995 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24996 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24998 2008-03-30 Bruno Haible <bruno@clisp.org>
25000 Avoid failure when attempting to return empty iconv results on some
25002 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25003 allocation, don't report ENOMEM when the resulting string is empty.
25005 2008-03-30 Bruno Haible <bruno@clisp.org>
25007 Fix buffer overrun.
25008 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25009 Don't consider the width for tmp_length. Check count against tmp_length
25010 before doing the padding. Ensure enough allocation during padding.
25012 2008-03-30 Eric Blake <ebb9@byu.net>
25015 * lib/strtod.c (strtod): Avoid compiler warnings.
25016 Reported by Jim Meyering.
25018 2008-03-30 Bruno Haible <bruno@clisp.org>
25020 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25021 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25022 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25023 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25024 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25025 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25026 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25027 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25029 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25030 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25031 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25032 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25033 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25034 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25035 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25036 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25038 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25039 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25040 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25041 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25042 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25043 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25044 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25045 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25047 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25048 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25050 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25051 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25053 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25054 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25056 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25057 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25058 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25060 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25061 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25062 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25064 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25065 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25066 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25068 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25069 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25070 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25072 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25073 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25074 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25075 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25076 (Depends-on): Add EOVERFLOW.
25077 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25078 (Depends-on): Add EOVERFLOW.
25079 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25080 (Depends-on): Add EOVERFLOW.
25081 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25082 (Depends-on): Add EOVERFLOW.
25083 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25084 (Depends-on): Add EOVERFLOW.
25085 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25086 (Depends-on): Add EOVERFLOW.
25087 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25088 (Depends-on): Add EOVERFLOW.
25089 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25090 (Depends-on): Add EOVERFLOW.
25092 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25093 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25094 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25096 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25097 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25098 * modules/snprintf (Depends-on): Add EOVERFLOW.
25100 * lib/poll.c (EOVERFLOW): Remove fallback.
25101 * modules/poll (Depends-on): Add EOVERFLOW.
25103 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25104 * modules/getugroups (Depends-on): Add EOVERFLOW.
25106 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25107 * modules/getdelim (Depends-on): Add EOVERFLOW.
25109 * lib/ftell.c (EOVERFLOW): Remove fallback.
25110 * modules/ftell (Depends-on): Add EOVERFLOW.
25112 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25113 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25114 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25116 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25118 * modules/EOVERFLOW-tests: New file.
25119 * tests/test-EOVERFLOW.c: New file.
25121 * modules/EOVERFLOW: New file.
25122 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25124 2008-03-30 Bruno Haible <bruno@clisp.org>
25126 Fix bug introduced on 2007-06-10.
25127 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25128 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25130 2008-03-30 Bruno Haible <bruno@clisp.org>
25132 Improve freadseek's efficiency after ungetc.
25133 * lib/freadseek.c: Include freadahead.h.
25134 (freadptrinc): New function, extracted from freadseek.
25135 (freadseek): Use it in a loop. Use freadahead to determine the number
25136 of loop iterations.
25137 * modules/freadseek (Depends-on): Add freadahead.
25138 (configure.ac): Require AC_C_INLINE.
25140 2008-03-30 Bruno Haible <bruno@clisp.org>
25142 * lib/freadseek.c (freadseek): Don't ignore the return value of
25145 2008-03-29 Eric Blake <ebb9@byu.net>
25147 Add hex float support.
25148 * modules/strtod (Depends-on): Add c-ctype.
25149 (Link): Mention POW_LIB.
25150 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25151 whitespace between 'e' and exponent.
25152 * tests/test-strtod.c (main): Enable hex float tests.
25153 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25156 Document various strtod bugs, with some fixes.
25157 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25158 "-0x", "inf", "nan", and hex constants.
25159 * doc/posix-functions/atof.texi (atof): Likewise.
25160 * modules/stdlib (Makefile.am): Support strtod.
25161 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25162 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25163 detect additional strtod bugs.
25164 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25165 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25166 bool where appropriate. Parse 'inf' and 'nan'.
25167 * tests/test-strtod.c: New file.
25168 * modules/strtod (Depends-on): Add stdbool, stdlib.
25169 (configure.ac): Turn on module indicator.
25170 * modules/strtod-tests: New module.
25172 2008-03-29 Eric Blake <ebb9@byu.net>
25174 Fix ftell on mingw.
25175 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25176 * modules/ftell-tests (Depends-on): Add binary-io.
25177 * modules/ftello-tests (Depends-on): Likewise.
25178 * tests/test-ftell.c (main): Enhance test to cover behavior after
25179 ungetc. Enforce binary mode.
25180 * tests/test-ftello.c (main): Likewise.
25182 Pass test-freadseek on cygwin.
25183 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25184 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25187 * tests/test-fflush2.c (main): Fix typo.
25189 2008-03-29 Bruno Haible <bruno@clisp.org>
25191 * tests/test-fflush2.c (main): Temporarily disable the contents of
25193 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25194 Reported by Eric Blake.
25196 2008-03-28 Simon Josefsson <simon@josefsson.org>
25198 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25199 (GC_SHA224_DIGEST_SIZE): Add.
25201 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25202 (gc_hash_digest_length): Likewise.
25203 (gc_hash_buffer): Likewise.
25205 2008-03-25 Bruno Haible <bruno@clisp.org>
25207 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25208 detail which gettext release to use.
25209 Reported by Simon Josefsson.
25211 2008-03-26 Jim Meyering <meyering@redhat.com>
25213 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25214 * modules/gnumakefile (clean-GNUmakefile): Also, use
25215 test ... && ... || : syntax rather than if-then ... fi.
25217 gnumakefile: Don't double-quote-expand $(VPATH) value.
25218 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25220 2008-03-24 Eric Blake <ebb9@byu.net>
25222 Alter GNUmakefile to install into top directory.
25223 * modules/maintainer-makefile: Split, and add dependency...
25224 * modules/gnumakefile: to this new module.
25225 * build-aux/GNUmakefile: Move...
25226 * top/GNUmakefile: ...here.
25227 * build-aux/maint.mk: Move...
25228 * top/maint.mk: ...here.
25229 * MODULES.html.sh (Support for maintaining...): Document new
25232 2008-03-23 Bruno Haible <bruno@clisp.org>
25234 * gnulib-tool: New options --vc-files, --no-vc-files.
25235 (func_usage): Document them.
25236 (vc_files): New variable.
25237 (func_import): Consider vc_files.
25238 (func_create_testdir): Set vc_files to empty.
25239 Suggested by Jim Meyering and Karl Berry.
25241 2008-03-23 Bruno Haible <bruno@clisp.org>
25243 Fix regex compilation error on HP-UX 11.
25244 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25245 * modules/regex (Files): Add m4/mbstate_t.m4.
25246 Reported by Ton Voon <ton.voon@altinity.com>.
25248 2008-03-23 Bruno Haible <bruno@clisp.org>
25250 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25252 2008-03-23 Eric Blake <ebb9@byu.net>
25253 Bruno Haible <bruno@clisp.org>
25255 Install files from top/ in the destination directory.
25256 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25257 augmentation also for the files from top/.
25258 (func_import, func_create_testdir): Rewrite file names:
25259 top/filename -> filename.
25261 2008-03-23 Bruno Haible <bruno@clisp.org>
25263 Tweak "gnulib --version" output.
25264 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25266 2008-03-23 Bruno Haible <bruno@clisp.org>
25268 Tweak "gnulib --version" output.
25269 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25270 rather than contents of ChangeLog, when possible.
25272 2008-03-21 Eric Blake <ebb9@byu.net>
25274 More --version tweaks.
25275 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25276 date of last ChangeLog entry.
25278 2008-03-21 Jim Meyering <meyering@redhat.com>
25280 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25282 2008-03-20 Eric Blake <ebb9@byu.net>
25285 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25287 2008-03-20 Simon Josefsson <simon@josefsson.org>
25289 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25290 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25292 2008-03-20 Eric Blake <ebb9@byu.net>
25294 Sync GNUmakefile with coreutils.
25295 * build-aux/GNUmakefile (have-Makefile): Rename...
25296 (_have-Makefile): ...to this, for namespace consideration.
25297 (GNUmakefile.cfg): Include, if present.
25298 (_autoreconf): Define a default.
25299 (_is-dist-target): New rule for rebuilds to pick up intra-release
25301 (maint-cfg.mk): Rename...
25302 (cfg.mk): ...to this.
25304 2008-03-18 Jim Meyering <meyering@redhat.com>
25306 New script and module: mktempd
25307 * MODULES.html.sh (maint+release support): Add mktempd.
25308 * build-aux/mktempd: New file.
25309 * modules/mktempd: New file.
25311 2008-03-15 Jim Meyering <meyering@redhat.com>
25314 * lib/sha1.c, lib/md5.c: 63 != ~63.
25315 Reported by Andreas Schwab.
25317 sha1.c, md5.c: Hoist a redundant expression.
25318 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25319 "ctx->buflen" only once, before calling *_process_block.
25320 * lib/md5.c (md5_process_bytes): Likewise.
25322 2008-03-14 Eric Blake <ebb9@byu.net>
25324 Bump copyright year in files generated by gnulib-tool.
25325 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25326 gnulib-tool, rather than hard-coding it.
25328 Fix 'gnulib-tool --version' output to work with git.
25329 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25330 (startup): ...here.
25331 (func_version): Use it to invoke git-version-gen, rather than
25332 relying on CVS keyword expansion. Modernize wording.
25333 (cvsdatestamp, last_checkin_date, version): Kill unused
25336 2008-03-12 Jim Meyering <meyering@redhat.com>
25338 Recognize optional cast of the argument to free.
25339 * build-aux/useless-if-before-free: Update regexps.
25341 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25343 2008-03-11 Bruno Haible <bruno@clisp.org>
25345 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25346 by a single package.
25347 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25348 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25349 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25350 Reported by Sam Steingold <sds@gnu.org>.
25352 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25354 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25357 2008-03-11 Bruno Haible <bruno@clisp.org>
25359 Avoid conflicts between local macro definitions.
25360 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25361 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25363 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25364 Bruno Haible <bruno@clisp.org>
25366 Make va_copy work with some version of xlc on AIX 5.1.
25367 * lib/stdarg.in.h: New file.
25368 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25369 On AIX, use a <stdarg.h> file substitute.
25370 * modules/stdarg (Files): Add lib/stdarg.in.h.
25371 (Depends-on): Add include_next.
25372 (Makefile.am): Build a stdarg.h substitute if requested.
25373 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25375 2008-03-10 Bruno Haible <bruno@clisp.org>
25377 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25378 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25379 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25381 2008-03-10 Bruno Haible <bruno@clisp.org>
25383 * modules/stdlib (Depends-on): Add include_next, remove
25386 2008-03-09 Bruno Haible <bruno@clisp.org>
25388 * lib/freadahead.h (freadahead): Document more precisely.
25389 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25390 the sum of both buffer sizes.
25391 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25392 * NEWS: Document the change.
25394 2008-03-09 Bruno Haible <bruno@clisp.org>
25396 Extend freadptr to return also the buffer size.
25397 * lib/freadptr.h (freadptr): Add sizep argument.
25398 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25399 (freadptr): Add sizep argument. Determine buffer size like freadahead
25401 * tests/test-freadptr.c: Don't include freadahead.h.
25402 (main): Adapt for new calling convention of freadptr.
25403 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25404 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25405 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25406 tests/test-freadptr2.sh.
25407 (Depends): Remove freadahead.
25408 (TESTS): Add test-freadptr2.sh.
25409 (check_PROGRAMS): Add test-freadptr2.
25411 2008-03-09 Bruno Haible <bruno@clisp.org>
25413 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25414 Report and solution by Simon Josefsson.
25416 2008-03-06 Bruno Haible <bruno@clisp.org>
25418 Make fflush after ungetc work on BSD platforms.
25419 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25420 * tests/test-fflush2.c: New file.
25421 * tests/test-fflush2.sh: New file.
25422 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25423 tests/test-fflush2.c.
25424 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25425 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25427 2008-03-06 Eric Blake <ebb9@byu.net>
25429 Likewise for ftello.
25430 * modules/ftello (Dependencies): Add extensions.
25431 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25433 2008-03-06 Bruno Haible <bruno@clisp.org>
25435 * modules/fseeko (Dependencies): Add extensions.
25436 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25437 Needed on glibc systems.
25439 2008-03-06 Bruno Haible <bruno@clisp.org>
25441 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25443 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25445 2008-03-06 Bruno Haible <bruno@clisp.org>
25447 * users.txt: Add libgnupdf.
25449 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25451 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25452 (Header File Substitutes, Function Substitutes,
25453 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25454 (Build robot for gnulib): Fix typo.
25456 2008-03-06 Bruno Haible <bruno@clisp.org>
25458 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25459 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25461 2008-03-06 Bruno Haible <bruno@clisp.org>
25463 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25464 * doc/gnulib.texi: Include it.
25466 2008-03-06 Simon Josefsson <simon@josefsson.org>
25468 * modules/func (License): Change license to unlimited; there was
25469 no LGPL parts in the module anyway.
25471 2008-03-06 Simon Josefsson <simon@josefsson.org>
25473 * modules/__func__: Renamed to modules/func.
25474 * modules/__func__-tests: Renamed to modules/func-tests.
25475 * tests/test-__func__.c: Renamed to tests/test-func.c.
25476 * m4/__func__.m4: Renamed to m4/func.m4.
25477 * doc/gnulib.texi (__func__): Section renamed to func.
25478 Suggested by Eric Blake <ebb9@byu.net>.
25480 2008-03-06 Simon Josefsson <simon@josefsson.org>
25482 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25483 about __func__. Make example self-contained. Suggested by Eric
25484 Blake <ebb9@byu.net>.
25486 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25487 Suggested by Eric Blake <ebb9@byu.net>.
25489 2008-03-06 Simon Josefsson <simon@josefsson.org>
25491 * modules/__func__: New file.
25492 * modules/__func__-tests: New file.
25493 * tests/test-__func__.c: New file.
25494 * m4/__func__.m4: New file.
25495 * doc/gnulib.texi (__func__): Document __func__ module.
25497 2008-03-05 Simon Josefsson <simon@josefsson.org>
25499 * modules/byteswap (License): Re-license as LGPLv2+.
25501 2008-03-05 Simon Josefsson <simon@josefsson.org>
25503 * doc/Makefile: Add pdf target.
25505 2008-03-05 Simon Josefsson <simon@josefsson.org>
25507 * modules/inline (License): Use 'unlimited', since there are only
25508 *.m4 files in this module.
25510 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25511 Bruno Haible <bruno@clisp.org>
25513 Add support for HP C 7.1 on OpenVMS 8.3.
25514 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25516 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25518 Update VMS specifics.
25519 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25521 2008-03-02 Jim Meyering <meyering@redhat.com>
25523 Remove the last dependency on the "free" module.
25524 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25525 Reported by Bob Proulx.
25527 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25529 Remove useless "if" tests before free. Deprecate "free" module.
25530 * doc/posix-functions/free.texi: Mention that this
25531 module is no longer useful.
25532 * modules/free (Notice): Say this module is obsolete.
25533 * modules/readutmp (Depends-on): Remove free.
25534 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25535 * lib/putenv.c (putenv): Likewise.
25536 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25537 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25538 * tests/test-c-strcasestr.c (main): Likewise.
25539 * tests/test-c-strstr.c (main): Likewise.
25540 * tests/test-mbscasestr1.c (main): Likewise.
25541 * tests/test-mbscasestr2.c (main): Likewise.
25542 * tests/test-mbsstr1.c (main): Likewise.
25543 * tests/test-mbsstr2.c (main): Likewise.
25544 * tests/test-memmem.c (main): Likewise.
25545 * tests/test-strcasestr.c (main): Likewise.
25546 * tests/test-striconv.c (main): Likewise.
25547 * tests/test-striconveh.c (main): Likewise.
25548 * tests/test-striconveha.c (main): Likewise.
25549 * tests/test-strstr.c (main): Likewise.
25551 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25553 bootstrap: sync from coreutils again
25554 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25556 2008-03-01 Jim Meyering <meyering@redhat.com>
25558 bootstrap: sync from coreutils
25559 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25560 also when the target doesn't exist.
25562 2008-03-01 Eric Blake <ebb9@byu.net>
25564 Fix bugs in last patch.
25565 * lib/memchr2.c (memchr2): Fix typo.
25566 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25568 Reported by Bruce Korb.
25570 New module 'memchr2'.
25571 * modules/memchr2: New file.
25572 * modules/memchr2-tests: Likewise.
25573 * lib/memchr2.h: Likewise.
25574 * lib/memchr2.c: Likewise, based on memchr.c.
25575 * tests/test-memchr2.c: New test.
25576 * MODULES.html.sh (String handling): Add memchr2.
25578 2008-02-29 Bruno Haible <bruno@clisp.org>
25580 * modules/freadseek-tests: New file.
25581 * tests/test-freadseek.sh: New file.
25582 * tests/test-freadseek.c: New file.
25584 New module 'freadseek'.
25585 * modules/freadseek: New file.
25586 * lib/freadseek.h: New file.
25587 * lib/freadseek.c: New file.
25588 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25590 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25592 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25595 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25596 program_invocation_name and program_invocation_short_name are
25599 2008-02-28 Bruno Haible <bruno@clisp.org>
25601 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25602 * tests/test-freadptr.sh: Also test non-seekable stdin.
25604 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25606 * build-aux/bootstrap (source_base, m4_base)
25607 (doc_base, tests_base): New variables.
25608 (gnulib_tool_options): Do not hardcode base directories, use
25609 the above variables instead.
25611 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25613 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25615 2008-02-28 Bruno Haible <bruno@clisp.org>
25617 * modules/freadptr-tests: New file.
25618 * tests/test-freadptr.sh: New file.
25619 * tests/test-freadptr.c: New file.
25621 New module 'freadptr'.
25622 * modules/freadptr: New file.
25623 * lib/freadptr.h: New file.
25624 * lib/freadptr.c: New file.
25625 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25627 2008-02-26 Karl Berry <karl@freefriends.org>
25630 * libltdl/argz.c (argz_add, argz_count): New functions.
25631 * libltdl/argz.in.h: Declare them.
25632 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25634 2008-02-22 Bruno Haible <bruno@clisp.org>
25636 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25637 is a pointer type. Needed for HP-UX 10.
25638 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25639 * doc/posix-functions/gmtime_r.texi: Likewise.
25640 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25642 2008-02-24 Bruno Haible <bruno@clisp.org>
25644 * modules/environ-tests: New file.
25645 * tests/test-environ.c: New file.
25647 New module 'environ'.
25648 * modules/environ: New file.
25649 * lib/unistd.in.h (environ): New declaration.
25650 * m4/environ.m4: New file.
25651 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25653 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25655 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25657 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25658 wrong claim that 'environ' is missing on some systems.
25659 * modules/execute (Depends-on): Add environ.
25660 * lib/execute.c (environ): Remove fallback declaration.
25661 * modules/pipe (Depends-on): Add environ.
25662 * lib/pipe.c (environ): Remove fallback declaration.
25663 * modules/setenv (Depends-on): Add environ.
25664 * lib/setenv.c (environ): Remove fallback declaration.
25665 * modules/unsetenv (Depends-on): Add environ.
25666 * lib/unsetenv.c (environ): Remove fallback declaration.
25667 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25669 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25670 (gl_PREREQ_UNSETENV): Likewise.
25672 2008-02-24 Bruno Haible <bruno@clisp.org>
25674 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25676 2008-02-20 Bob Proulx <bob@proulx.com>
25678 Enable use of older two part flavor 'git describe'.
25679 * build-aux/git-version-gen: If using the older two part flavor of
25680 git version then recreate the third part now present in the
25681 newer three part flavor of git describe.
25683 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25685 * lib/fts.c (fts_build): Typo correction to comment.
25687 2008-02-17 Bruno Haible <bruno@clisp.org>
25689 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25690 generating no-op conflicts.
25692 2008-02-17 Bruno Haible <bruno@clisp.org>
25695 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25696 result_entries, rather than an index-based loop.
25698 2008-02-17 Bruno Haible <bruno@clisp.org>
25701 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25703 (entry_create): New function.
25704 (entry_hashcode): Use the cached hashcode if possible.
25705 (read_changelog_file, try_split_merged_entry): Use entry_create.
25707 2008-02-17 Bruno Haible <bruno@clisp.org>
25709 Speed up from O(n^2) to O(n) for long ChangeLog files.
25710 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25711 (read_changelog_file): Change implementation of entries_reversed list
25713 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25715 2008-02-17 Bruno Haible <bruno@clisp.org>
25717 New option --split-merged-entry.
25718 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25719 (find_paragraph_end, try_split_merged_entry): New functions.
25720 (long_options): Add option --split-merged-entry.
25721 (usage): Document option --split-merged-entry.
25722 (main): Implement option --split-merged-entry.
25723 Reported by Eric Blake.
25725 2008-02-17 Bruno Haible <bruno@clisp.org>
25727 * lib/git-merge-changelog.c: Include c-strstr.h.
25728 (main): Support the "git pull --rebase" situation.
25729 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25730 Reported by Eric Blake.
25732 2008-02-16 Eric Blake <ebb9@byu.net>
25734 Avoid doubling \ in common case of "c-maybe" quoting style.
25735 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25736 eliding outer quotes.
25737 * lib/quotearg.h: Document this.
25738 * tests/test-quotearg.c (result_strings, inputs, results_g)
25739 (flag_results, locale_results): Test it by adding a new string to
25741 (compare_strings): Test new string.
25743 2008-02-13 Eric Blake <ebb9@byu.net>
25745 Avoid trigraph quoting in default output.
25746 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25747 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25748 unless explicitly requested.
25749 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25751 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25753 Don't rely on signed integer overflowing to negative value.
25754 * lib/getugroups.c (getugroups): Include <limits.h>.
25755 Instead, compare against INT_MAX, and increment only if the test passes.
25757 2008-02-13 Jim Meyering <meyering@redhat.com>
25758 and Eric Blake <ebb9@byu.net>
25760 Avoid shadowing warning and compile errors on Linux.
25761 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25762 forwarding macros on Linux.
25763 (dcgettext): Define a stub, for Linux.
25764 (results_g, main): Avoid warnings.
25766 2008-02-12 Eric Blake <ebb9@byu.net>
25768 Silence warning in last patch.
25769 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25771 Quotearg part 4: add tests, fix c-maybe colon quoting.
25772 * lib/quotearg.h: Improve documentation.
25773 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25774 escapes when adding outer quotes. When quoting trigraphs, use
25775 valid C notation. When quoting NUL, omit extra characters if next
25776 character is not digit. Alter prototype.
25777 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25779 * modules/quotearg-tests: New module.
25780 * tests/test-quotearg.c: New test.
25782 2008-02-07 Eric Blake <ebb9@byu.net>
25784 Quotearg part 3: add flag to control outer quote elision.
25785 * lib/quotearg.h (c_maybe_quoting_style): New style.
25786 (enum quoting_flags): Better documentation of flags.
25787 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25789 (quotearg_buffer_restyled): Handle new flag to elide outer
25792 Quotearg part 2: add flag that can control NUL elision.
25793 * lib/quotearg.h (set_quoting_flags): New prototype.
25794 * lib/quotearg.c (struct quoting_options): Add flag field.
25795 (set_quoting_flags): New function.
25796 (quotearg_buffer_restyled): Add flags parameter.
25797 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25798 (quotearg_n_options): Set the flag, since length cannot be
25800 (quoting_options_from_style): Default flags correctly.
25802 Quotearg part 1: more wrappers, restore quotearg_char state.
25803 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25804 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25805 (quotearg_colon_mem): New wrappers.
25806 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25807 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25809 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25810 (quotearg_colon_mem): New functions.
25812 2008-02-11 Bruno Haible <bruno@clisp.org>
25814 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25815 library in the current directory: it does not work with parallel make.
25816 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25818 2008-02-11 Bruno Haible <bruno@clisp.org>
25820 * .gitattributes: New file.
25822 2008-02-11 Jim Meyering <meyering@redhat.com>
25824 useless-if-before-free: Fix reversed exit values.
25825 * build-aux/useless-if-before-free: Use correct values
25826 for EXIT_MATCH and EXIT_NO_MATCH.
25828 * build-aux/useless-if-before-free: Close stdout carefully.
25830 2008-02-10 Bruno Haible <bruno@clisp.org>
25832 New module 'git-merge-changelog'.
25833 * modules/git-merge-changelog: New file.
25834 * lib/git-merge-changelog.c: New file.
25836 2008-02-10 Jim Meyering <meyering@redhat.com>
25838 useless-if-before-free: New option: --list (-l).
25840 useless-if-before-free: Don't exit immediately upon open failure.
25841 * build-aux/useless-if-before-free: Exit 2 for errors.
25842 Upon failure to open a file, don't exit immediately.
25843 Rather, just warn and continue with any remaining files.
25845 2008-02-10 Bruno Haible <bruno@clisp.org>
25847 New abstract list operation 'node_set_value'.
25848 * lib/gl_list.h (gl_list_node_set_value): New function.
25849 (struct gl_list_implementation): New field node_set_value.
25850 * lib/gl_list.c (gl_list_node_set_value): New function.
25851 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25852 (gl_array_list_implementation): Update.
25853 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25854 (gl_carray_list_implementation): Update.
25855 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25856 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25857 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25858 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25859 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25860 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25861 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25863 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25864 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25865 (gl_sublist_list_implementation): Update.
25867 2008-02-10 Bruno Haible <bruno@clisp.org>
25869 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25870 Needed when ELEMENT is #defined to 'some_type *'.
25872 2008-02-10 Jim Meyering <meyering@redhat.com>
25874 New script and module: useless-if-before-free
25875 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25876 * build-aux/useless-if-before-free: New file.
25877 * modules/useless-if-before-free: New file.
25879 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25881 xstrtol_error: Fix typo.
25882 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25883 s/exit_failure/exit_status/.
25885 2008-02-09 Jim Meyering <meyering@redhat.com>
25887 New script and module: gitlog-to-changelog
25888 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25889 * modules/gitlog-to-changelog: New file.
25890 * build-aux/gitlog-to-changelog: New file.
25892 2008-02-08 Jim Meyering <meyering@redhat.com>
25894 Avoid two "parameter unused" warnings.
25895 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25898 Use "git COMMAND", not "git-COMMAND".
25899 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25900 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25901 * build-aux/git-version-gen: Use "git status", not "git-status".
25903 2008-02-07 Bruno Haible <bruno@clisp.org>
25905 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25906 Avoids a crash on Windows Vista.
25907 Reported by Adam Strzelecki <ono@java.pl> via
25908 Simon Josefsson <simon@josefsson.org>.
25910 2008-02-06 Bruno Haible <bruno@clisp.org>
25912 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25913 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25914 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25915 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25916 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25917 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25918 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25919 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25920 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25921 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25922 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25923 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25924 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25925 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25926 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25927 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25929 * tests/test-snprintf-posix.h (test_function): Likewise.
25930 * tests/test-sprintf-posix.h (test_function): Likewise.
25931 * tests/test-vasprintf-posix.c (test_function): Likewise.
25932 * doc/posix-functions/fprintf.texi: Update.
25933 * doc/posix-functions/printf.texi: Update.
25934 * doc/posix-functions/snprintf.texi: Update.
25935 * doc/posix-functions/sprintf.texi: Update.
25936 * doc/posix-functions/vfprintf.texi: Update.
25937 * doc/posix-functions/vprintf.texi: Update.
25938 * doc/posix-functions/vsnprintf.texi: Update.
25939 * doc/posix-functions/vsprintf.texi: Update.
25940 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25942 2008-02-06 Bruno Haible <bruno@clisp.org>
25944 Fix bug introduced on 2008-01-26.
25945 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25947 2008-02-06 Bruno Haible <bruno@clisp.org>
25949 Fix bug introduced on 2007-06-10.
25950 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25951 !NEED_PRINTF_FLAG_ZERO.
25953 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25955 getloadavg: use libperfstat on AIX5
25956 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25958 2008-02-03 Bruno Haible <bruno@clisp.org>
25960 * lib/diffseq.h: Add comments about required #includes.
25961 Reported by Michael Biggs <gnulib@doubleplum.net>.
25963 2008-02-01 Bruno Haible <bruno@clisp.org>
25965 * users.txt: Add gnuit.
25967 2008-01-31 Bruno Haible <bruno@clisp.org>
25969 * lib/md4.c (set_uint32): Mark as inline.
25970 * lib/md5.c (set_uint32): Likewise.
25971 * lib/sha1.c (set_uint32): Likewise.
25972 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25973 * m4/md5.m4 (gl_MD5): Likewise.
25974 * m4/sha1.m4 (gl_SHA1): Likewise.
25976 2008-01-31 Jim Meyering <meyering@redhat.com>
25978 Use "sizeof VAR", rather than a literal "4".
25979 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25980 * lib/md4.c (md4_read_ctx): Likewise.
25981 * lib/sha1.c (sha1_read_ctx): Likewise.
25983 2008-01-31 Simon Josefsson <simon@josefsson.org>
25985 * tests/test-sha1.c: New file, based on test-md5.c.
25987 * modules/crypto/sha1-tests: New file.
25989 2008-01-31 Simon Josefsson <simon@josefsson.org>
25991 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25993 2008-01-31 Jim Meyering <meyering@redhat.com>
25995 Prefer "sizeof v" over the equivalent "4".
25996 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25997 * lib/md5.c (set_uint32): Likewise.
25998 * lib/sha1.c (set_uint32): Likewise.
26000 2008-01-31 Simon Josefsson <simon@josefsson.org>
26002 * lib/sha1.c (set_uint32): Mark function as static.
26004 2008-01-31 Simon Josefsson <simon@josefsson.org>
26006 md2: clarify comments to say that alignment is not required.
26007 * lib/md2.h: Remove warning about alignment in comment.
26008 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26009 never been required.
26011 2008-01-31 Simon Josefsson <simon@josefsson.org>
26013 md4: adapt alignment constraint fix from sha1.
26014 * lib/md4.c (set_uint32): New function, from sha1.c
26015 (md4_read_ctx): Use it.
26016 (md4_finish_ctx): Doc fix.
26017 * lib/md4.h: Doc fix.
26019 2008-01-31 Simon Josefsson <simon@josefsson.org>
26021 md5: adapt alignment constraint fix from sha1.
26022 * lib/md5.c (set_uint32): New function, from sha1.c
26023 (md5_read_ctx): Use it.
26024 (md5_finish_ctx): Doc fix.
26025 * lib/md5.h: Doc fix.
26027 2008-01-30 Peter Palfrader <weasel@debian.org>
26029 sha1: remove the result buffer alignment constraint
26030 * lib/sha1.c (set_uint32): New function.
26031 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26033 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26034 * lib/sha1.h: Likewise.
26036 2008-01-30 Andreas Schwab <schwab@suse.de>
26037 Bruno Haible <bruno@clisp.org>
26039 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26040 correct definition of LDBL_MIN_EXP.
26042 2008-01-30 Karl Berry <karl@gnu.org>
26044 * config/srclist-update: try to preserve x bit on updates.
26045 * config/srclistvars.sh: update for karl.
26047 2008-01-29 Jim Meyering <meyering@redhat.com>
26049 vasnprintf.c: Avoid warning about unused label
26050 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26051 "overflow" label definition and associated code with the
26052 same cpp condition that guards the sole use of that label.
26054 2008-01-26 Bruno Haible <bruno@clisp.org>
26056 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26057 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26058 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26059 * lib/isnanl-nolibm.h (isnanl): Likewise.
26060 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26062 2008-01-26 Bruno Haible <bruno@clisp.org>
26064 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26065 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26067 2008-01-26 Bruno Haible <bruno@clisp.org>
26069 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26070 GCC >= 4.0 built-in.
26071 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26073 2008-01-26 Bruno Haible <bruno@clisp.org>
26075 Rename isnan, applicable to 'double' only, to isnand.
26076 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26077 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26078 (configure.ac): Update.
26079 (Include): Replace "isnan.h" with "isnand.h".
26080 * m4/isnand.m4: Renamed from m4/isnan.m4.
26081 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26082 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26083 instead of isnan.c.
26084 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26085 instead of HAVE_ISNAN_IN_LIBC.
26086 (isnand): Renamed from isnan.
26087 * lib/isnand.c: New file.
26088 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26089 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26090 (Makefile.am): Update.
26091 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26092 Include isnand.h instead of isnan.h.
26093 (main): Test isnand instead of isnan.
26094 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26096 * modules/frexp (Depends-on): Likewise.
26097 * modules/frexp-tests (Depends-on): Likewise.
26098 * modules/frexp-nolibm (Depends-on): Likewise.
26099 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26100 * modules/isfinite (Depends-on): Likewise.
26101 * modules/round-tests (Depends-on): Likewise.
26102 * modules/signbit (Depends-on): Likewise.
26103 * modules/signbit-tests (Depends-on): Likewise.
26104 * modules/snprintf-posix (Depends-on): Likewise.
26105 * modules/sprintf-posix (Depends-on): Likewise.
26106 * modules/trunc-tests (Depends-on): Likewise.
26107 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26108 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26109 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26110 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26111 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26112 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26113 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26114 * modules/vasnprintf-posix (Depends-on): Likewise.
26115 * modules/vasprintf-posix (Depends-on): Likewise.
26116 * modules/vfprintf-posix (Depends-on): Likewise.
26117 * modules/vsnprintf-posix (Depends-on): Likewise.
26118 * modules/vsprintf-posix (Depends-on): Likewise.
26119 * lib/frexp.c: Include isnand.h instead of isnan.h.
26120 (ISNAN): Set to isnand instead of isnan.
26121 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26122 (gl_isfinited): Use isnand instead of isnan.
26123 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26124 (gl_signbitd): Use isnand instead of isnan.
26125 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26126 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26127 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26128 (main): Use isnand instead of isnan.
26129 * tests/test-round1.c: Include isnand.h.
26130 (main): Use isnand instead of isnan.
26131 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26132 (ISNAN): Set to isnand instead of isnan.
26133 * tests/test-trunc1.c: Include isnand.h.
26134 (main): Use isnand instead of isnan.
26135 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26136 (equal): Use isnand instead of isnan.
26137 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26139 * NEWS: Mention the change.
26141 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26142 Bruno Haible <bruno@clisp.org>
26144 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26145 the GCC builtins for signbits are present and set
26146 REPLACE_SIGNBIT_USING_GCC if so.
26147 * lib/math.in.h (signbit): Define using GCC builtins if
26148 REPLACE_SIGNBIT_USING_GCC is set.
26149 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26150 REPLACE_SIGNBIT_USING_GCC.
26151 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26153 2008-01-25 Jim Meyering <meyering@redhat.com>
26155 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26156 * lib/poll.c: Include <config.h>, not "config.h".
26157 * tests/test-getaddrinfo.c: Likewise.
26159 2008-01-25 Simon Josefsson <simon@josefsson.org>
26161 * modules/sockets-tests: New file.
26163 2008-01-24 Simon Josefsson <simon@josefsson.org>
26165 * modules/sockets: New module, can be used to call WSA_Startup and
26166 WSA_Cleanup when needed.
26168 * lib/sockets.h, lib/sockets.c: New files.
26170 * m4/sockets.m4: New file.
26172 * tests/test-sockets.c: New file.
26174 2008-01-19 Bruno Haible <bruno@clisp.org>
26176 * doc/posix-headers: Renamed from doc/headers.
26177 * doc/posix-functions: Renamed from doc/functions.
26178 * doc/gnulib.texi: Update.
26180 2008-01-19 Bruno Haible <bruno@clisp.org>
26182 * doc/glibc-functions/strcasestr.texi: Include contents of
26183 doc/functions/strcasestr.texi, fixing the list of platforms.
26184 * doc/functions/strcasestr.texi: Remove file.
26186 2008-01-19 Bruno Haible <bruno@clisp.org>
26188 * doc/glibc-functions/memmem.texi: Include contents of
26189 doc/functions/memmem.texi.
26190 * doc/functions/memmem.texi: Remove file.
26192 2008-01-18 Bruno Haible <bruno@clisp.org>
26194 * doc/glibc-functions/*.texi: New files.
26195 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26196 to use the new files.
26198 2008-01-17 Bruno Haible <bruno@clisp.org>
26200 * tests/test-gethostname.c (main): Fix printf statement.
26202 2008-01-17 Simon Josefsson <simon@josefsson.org>
26204 * modules/gethostname-tests: New file.
26206 * tests/test-gethostname.c: New file.
26208 2008-01-17 Simon Josefsson <simon@josefsson.org>
26210 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26211 used by the UNAME case. Reported by Bruno Haible
26214 2008-01-17 Eric Blake <ebb9@byu.net>
26216 Convert c-strcasestr to be more efficient.
26217 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26218 (Depends-on): Add c-strcase, remove malloca, strnlen.
26219 * tests/test-c-strcasestr.c (main): Enhance test.
26220 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26222 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26224 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26225 Use it in creating po/Makevars.
26227 2008-01-15 Simon Josefsson <simon@josefsson.org>
26229 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26230 Applications that requires it should initialize libgcrypt
26233 2008-01-16 Simon Josefsson <simon@josefsson.org>
26235 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26237 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26239 Fix problem with getdate on mingw32 reported by Simon Josefsson
26240 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26241 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26242 tzname", when deciding whether to declare tzname.
26243 * lib/strftime.c (tzname): Likewise.
26245 2008-01-15 Bruno Haible <bruno@clisp.org>
26247 Work around a MacOS X 10.5 bug in frexpl().
26248 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26249 * doc/functions/frexpl.texi: Document the bug.
26250 Reported by Elias Pipping <pipping@gentoo.org>.
26252 2008-01-14 Eric Blake <ebb9@byu.net>
26254 Touch up previous patch.
26255 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26256 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26258 Convert strcasestr module to use Two-Way algorithm.
26259 * modules/strcasestr-simple: New module, based on the old
26260 strcasestr, but with Two-Way rather than KMP.
26261 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26262 * lib/string.in.h (rpl_strcasestr): Declare.
26263 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26265 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26266 * modules/string (Makefile.am): Support strcasestr.
26267 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26268 * modules/strcasestr-tests (Depends-on): Check for alarm.
26269 * tests/test-strcasestr.c: Augment test.
26270 * lib/str-two-way.h: Clean up stray macro.
26271 * NEWS: Document new module.
26272 * MODULES.html.sh (string handling): Likewise.
26273 * doc/functions/strcasestr.texi: New file.
26274 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26275 here, since it is not a POSIX function.
26277 2008-01-14 Colin Watson <cjwatson@debian.org>
26278 Bruno Haible <bruno@clisp.org>
26280 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26281 works fine; if not, set REPLACE_STRSIGNAL.
26282 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26283 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26285 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26286 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26287 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26289 2008-01-14 Bruno Haible <bruno@clisp.org>
26291 * modules/strsignal (Include): Change to <string.h>.
26293 2008-01-14 Colin Watson <cjwatson@debian.org>
26295 * modules/argp (Notice): Add a notice recommending to change
26297 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26299 2008-01-13 Colin Watson <cjwatson@debian.org>
26301 * modules/strsignal-tests: New file.
26302 * tests/test-strsignal.c: New file.
26304 * lib/strsignal.c: New file, from glibc with modifications.
26305 * lib/siglist.h: New file, from glibc with modifications.
26306 * lib/string.in.h (strsignal): New declaration.
26307 * m4/strsignal.m4: New file.
26308 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26309 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26310 * modules/strsignal: New file.
26311 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26312 HAVE_DECL_STRSIGNAL.
26314 2008-01-13 Bruno Haible <bruno@clisp.org>
26316 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26317 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26318 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26319 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26321 2008-01-13 Bruno Haible <bruno@clisp.org>
26323 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26324 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26325 * lib/argp.h (__attribute__): Likewise.
26326 * lib/c-stack.c (__attribute__): Likewise.
26327 * lib/error.h (__attribute__): Likewise.
26328 * lib/fts.c (__attribute__): Likewise.
26329 * lib/openat.h (__attribute__): Likewise.
26330 * lib/stdio.in.h (__attribute__): Likewise.
26331 * lib/string.in.h (__attribute__): Likewise.
26332 * lib/utimens.c (__attribute__): Likewise.
26333 * lib/vasnprintf.h (__attribute__): Likewise.
26334 * lib/xalloc.h (__attribute__): Likewise.
26335 * lib/xprintf.h (__attribute__): Likewise.
26336 * lib/xstrtol.h (__attribute__): Likewise.
26337 * lib/xvasprintf.h (__attribute__): Likewise.
26339 2008-01-12 Bruno Haible <bruno@clisp.org>
26341 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26342 * doc/glibc-headers/a.out.texi: New file.
26343 * doc/glibc-headers/aliases.texi: New file.
26344 * doc/glibc-headers/alloca.texi: New file.
26345 * doc/glibc-headers/ar.texi: New file.
26346 * doc/glibc-headers/argp.texi: New file.
26347 * doc/glibc-headers/argz.texi: New file.
26348 * doc/glibc-headers/byteswap.texi: New file.
26349 * doc/glibc-headers/crypt.texi: New file.
26350 * doc/glibc-headers/endian.texi: New file.
26351 * doc/glibc-headers/envz.texi: New file.
26352 * doc/glibc-headers/err.texi: New file.
26353 * doc/glibc-headers/error.texi: New file.
26354 * doc/glibc-headers/execinfo.texi: New file.
26355 * doc/glibc-headers/fpu_control.texi: New file.
26356 * doc/glibc-headers/fstab.texi: New file.
26357 * doc/glibc-headers/fts.texi: New file.
26358 * doc/glibc-headers/getopt.texi: New file.
26359 * doc/glibc-headers/ieee754.texi: New file.
26360 * doc/glibc-headers/ifaddrs.texi: New file.
26361 * doc/glibc-headers/libintl.texi: New file.
26362 * doc/glibc-headers/mcheck.texi: New file.
26363 * doc/glibc-headers/mntent.texi: New file.
26364 * doc/glibc-headers/obstack.texi: New file.
26365 * doc/glibc-headers/paths.texi: New file.
26366 * doc/glibc-headers/printf.texi: New file.
26367 * doc/glibc-headers/pty.texi: New file.
26368 * doc/glibc-headers/resolv.texi: New file.
26369 * doc/glibc-headers/shadow.texi: New file.
26370 * doc/glibc-headers/sysexits.texi: New file.
26371 * doc/glibc-headers/ttyent.texi: New file.
26373 2008-01-12 Jim Meyering <meyering@redhat.com>
26375 announce-gen: emit Gnulib's git-based version string.
26376 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26377 New option --gnulib-version=V, where V is expected to be
26378 the output of running git describe in the gnulib directory.
26379 (get_tool_versions): Request feedback on xdelta. I suspect it's
26380 not useful, and plan to stop publishing an xdelta file with each
26383 * build-aux/announce-gen: Also check for lzma-compressed files.
26385 2008-01-11 Bruno Haible <bruno@clisp.org>
26387 * tests/test-memmem.c (main): Increase maximum allowed time.
26388 * tests/test-strstr.c (main): Likewise.
26390 2008-01-11 Bruno Haible <bruno@clisp.org>
26392 * doc/functions/memmem.texi: Add more precisions about platforms.
26393 * doc/functions/strstr.texi: Likewise.
26395 2008-01-10 Eric Blake <ebb9@byu.net>
26397 * m4/strstr.m4: Delete cruft from copy-n-paste.
26398 Reported by Bruno Haible.
26400 2008-01-10 Bruno Haible <bruno@clisp.org>
26402 Make c-strstr rely on strstr.
26403 * lib/c-strstr.c: Don't include str-kmp.h.
26404 (c_strstr): Define in terms of strstr.
26405 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26406 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26408 2008-01-10 Bruno Haible <bruno@clisp.org>
26410 * doc/gnulib.texi (String Functions in C Locale): New section.
26411 * doc/c-ctype.texi: New file.
26412 * doc/c-strcase.texi: New file.
26413 * doc/c-strcaseeq.texi: New file.
26414 * doc/c-strcasestr.texi: New file.
26415 * doc/c-strstr.texi: New file.
26416 * doc/c-strtod.texi: New file.
26417 * doc/c-strtold.texi: New file.
26419 2008-01-10 Eric Blake <ebb9@byu.net>
26421 * lib/relocatable.h: Fix a comment.
26423 2008-01-10 Eric Blake <ebb9@byu.net>
26425 Share two-way algorithm.
26426 * lib/str-two-way.h: New file, merged from...
26427 * lib/memmem.c: ...here...
26428 * lib/strstr.c: ...and here.
26429 * modules/memmem (Files): Use it.
26430 * modules/strstr (Files): Likewise.
26432 Avoid quadratic strstr implementations.
26433 * lib/strstr.c: New file.
26434 * m4/strstr.m4: Likewise.
26435 * modules/strstr: Likewise.
26436 * modules/strstr-tests: Likewise.
26437 * tests/test-strstr.c: Likewise.
26438 * lib/string.in.h (rpl_strstr): Declare.
26439 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26440 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26441 * modules/string (Makefile.am): Likewise.
26442 * MODULES.html.sh (string handling): Mention new module.
26443 * doc/functions/strstr.texi (strstr): Document the bug.
26445 2008-01-10 Bruno Haible <bruno@clisp.org>
26447 * lib/relocatable.h (relocate): State whether result is freshly
26449 * lib/relocatable.c (relocate): Return a freshly allocated string
26450 instead of a pointer to a privately held string.
26451 Reported by Sylvain Beucler <beuc@gnu.org>.
26453 2008-01-10 Colin Watson <cjwatson@debian.org>
26455 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26456 s/S_ISNLK/S_ISLNK/.
26458 2008-01-09 Bruno Haible <bruno@clisp.org>
26460 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26462 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26463 if it's only a guess.
26464 * modules/memmem: Simplify by depending on memmem-simple.
26466 2008-01-09 Bruno Haible <bruno@clisp.org>
26468 Work around OpenBSD 4.0 tdelete() bug.
26469 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26470 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26471 macros and don't redefine the enum values.
26472 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26473 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26474 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26476 2008-01-09 Bruno Haible <bruno@clisp.org>
26478 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26479 (main): Don't perform the tests if setlocale did not install a UTF-8
26480 locale. Needed on OpenBSD 4.0.
26481 * modules/wcwidth-tests (Depends-on): Add localcharset.
26483 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26485 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26486 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26487 * NEWS: announce this.
26488 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26490 2008-01-09 Simon Josefsson <simon@josefsson.org>
26491 and Eric Blake <ebb9@byu.net>
26493 Add memmem-simple module.
26494 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26495 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26496 * modules/memmem-simple: New file.
26497 * modules/memmem (Description): Tweak.
26498 * MODULES.html.sh (string handling): Mention new module.
26499 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26500 addressed by memmem-simple.
26501 * NEWS: Document the difference.
26503 2008-01-09 Eric Blake <ebb9@byu.net>
26505 Give gcc some memmem optimization hints.
26506 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26507 (strcasestr): Declare as pure.
26508 * modules/memmem (Maintainer): Claim my implementation.
26510 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26512 Support AIX 6.1 and higher.
26513 * build-aux/config.libpath: Likewise.
26514 * build-aux/config.rpath: Likewise.
26516 2008-01-08 Jim Meyering <meyering@redhat.com>
26517 Bruno Haible <bruno@clisp.org>
26519 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26520 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26521 Reported by Peter Fales in
26522 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26524 2008-01-08 Bruno Haible <bruno@clisp.org>
26526 * modules/unictype/category-of (Depends-on): Add
26527 unictype/category-none.
26528 * modules/unictype/category-and-tests (Depends-on): Add
26529 unictype/category-{L,N,Lu,Nd}.
26530 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26531 * modules/unictype/category-or-tests (Depends-on): Add
26532 unictype/category-{L,N}.
26533 * modules/unictype/category-name-tests (Depends-on): Add
26534 unictype/category-{Z,Nl}.
26535 Reported by Simon Josefsson.
26537 2008-01-08 Bruno Haible <bruno@clisp.org>
26539 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26541 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26542 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26543 Reported by Peter Miller <millerp@canb.auug.org.au>.
26545 2008-01-08 Eric Blake <ebb9@byu.net>
26547 Rewrite memmem to guarantee linear complexity without malloc.
26548 * lib/memmem.c (memmem): Use Two-Way rather than
26549 Knuth-Morris-Pratt, to allow O(1) space usage.
26550 (critical_factorization, two_way_short_needle)
26551 (two_way_long_needle): New functions.
26552 (knuth_morris_pratt): Delete.
26553 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26555 * tests/test-memmem.c (main): Add tests for periodic needle and
26556 sublinear performance.
26557 * doc/functions/memmem.texi (memmem): Document other deficiencies
26558 in cygwin and older glibc.
26560 2008-01-08 Bruno Haible <bruno@clisp.org>
26562 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26565 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26567 Add a configure time option: --disable-acl.
26568 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26569 AC_ARG_ENABLE(acl).
26571 2008-01-06 Simon Josefsson <simon@josefsson.org>
26573 * tests/test-localename.c: Don't include obsolete "setenv.h".
26575 * modules/localename-tests (Depends-on): Need unsetenv.
26577 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26579 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26581 2008-01-06 Colin Watson <cjwatson@debian.org>
26583 * users.txt: Add man-db.
26585 2008-01-07 Bruno Haible <bruno@clisp.org>
26587 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26588 previous section name.
26590 2008-01-07 Bruno Haible <bruno@clisp.org>
26592 * lib/progname.c (set_program_name): Don't strip off a leading
26593 "lt-" prefix outside a .libs directory.
26594 Suggested by Paul Eggert.
26596 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26597 Bruno Haible <bruno@clisp.org>
26599 Improve memory cleanup in 'relocatable' module.
26600 * lib/relocatable.h (compute_curr_prefix): Change return type to
26602 * lib/relocatable.c (compute_curr_prefix): Change return type to
26603 'char *'. Free curr_installdir after use.
26604 (relocate): Free curr_prefix_better after use.
26605 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26607 2008-01-01 Bruno Haible <bruno@clisp.org>
26609 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26610 failure on older glibc systems.
26611 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26613 2008-01-05 Eric Blake <ebb9@byu.net>
26615 Avoid quadratic system memmem.
26616 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26617 Reported by Ralf Wildenhues.
26619 Fix memmem test for mingw.
26620 * modules/memmem-tests (configure.ac): Check for alarm.
26621 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26623 * doc/functions/memmem.texi: New file.
26624 * doc/gnulib.texi (Function Substitutes): Add memmem.
26625 Reported by Bruno Haible.
26627 2008-01-04 Bruno Haible <bruno@clisp.org>
26629 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26630 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26631 gl_HEADER_STRING_H_DEFAULTS.
26633 2008-01-04 Eric Blake <ebb9@byu.net>
26635 Shorten duration of memmem test.
26636 * tests/test-memmem.c (main): Use alarm to declare failure if test
26637 is taking too long.
26638 Reported by Ralf Wildenhues.
26640 2007-12-21 Simon Josefsson <simon@josefsson.org>
26642 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26643 string, needed by strerror.
26645 2008-01-03 Colin Watson <cjwatson@debian.org>
26646 Bruno Haible <bruno@clisp.org>
26648 * doc/gnulib-tool.texi (Localization): New section.
26650 2008-01-02 Bruno Haible <bruno@clisp.org>
26652 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26653 variables to 'unsigned char *' type.
26654 Reported by Paul Eggert.
26656 2008-01-02 Jim Meyering <jim@meyering.net>
26658 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26660 2007-12-31 Jim Meyering <jim@meyering.net>
26662 Avoid use of private FTS type name.
26663 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26665 2007-12-30 Karl Berry <karl@gnu.org>
26667 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26668 work around defect in Texinfo and/or the standalone Info browser.
26670 2007-12-30 Bruno Haible <bruno@clisp.org>
26672 Unify 5 copies of the KMP code.
26673 * lib/str-kmp.h: New file.
26674 * lib/c-strcasestr.c: Include str-kmp.h.
26675 (knuth_morris_pratt): Remove function.
26676 (c_strcasestr): Update.
26677 * lib/c-strstr.c: Include str-kmp.h.
26678 (knuth_morris_pratt): Remove function.
26679 (c_strcasestr): Update.
26680 * lib/mbscasestr.c: Include str-kmp.h.
26681 (knuth_morris_pratt_unibyte): Remove function.
26682 * lib/mbsstr.c: Include str-kmp.h.
26683 (knuth_morris_pratt_unibyte): Remove function.
26684 * lib/strcasestr.c: Include str-kmp.h.
26685 (knuth_morris_pratt): Remove function.
26686 (strcasestr): Update.
26687 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26688 * modules/c-strstr (Files): Likewise.
26689 * modules/mbscasestr (Files): Likewise.
26690 * modules/mbsstr (Files): Likewise.
26691 * modules/strcasestr (Files): Likewise.
26692 Suggested by Paul Eggert.
26694 2007-12-30 Bruno Haible <bruno@clisp.org>
26696 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26699 2007-12-30 Bruno Haible <bruno@clisp.org>
26701 * lib/xmalloca.h: Include xalloc.h.
26702 (xnmalloca): New macro.
26704 2007-12-30 Bruno Haible <bruno@clisp.org>
26706 * lib/malloca.h (nmalloca): New macro.
26707 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26708 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26709 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26710 knuth_morris_pratt_multibyte): Likewise.
26711 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26712 knuth_morris_pratt_multibyte): Likewise.
26713 * lib/memmem.c (knuth_morris_pratt): Likewise.
26714 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26716 2007-12-25 Bruno Haible <bruno@clisp.org>
26718 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26719 * lib/glob.c: Don't include openat.h.
26720 (link_exists2_p): Add back the code that deals with the
26721 !GLOB_ALTDIRFUNC case.
26722 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26723 let it do the filename concatenation.
26724 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26725 * modules/glob (Depends-on): Remove openat.
26727 2007-12-31 Bruno Haible <bruno@clisp.org>
26729 * modules/dirfd (License): Change to LGPLv2+.
26730 Approved by Jim Meyering.
26732 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26734 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26735 when multiplying M by sizeof (size_t).
26737 2007-12-10 Martin Lambers <marlam@marlam.de>
26739 Override getpagesize on mingw.
26740 * lib/getpagesize.c: New file.
26741 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26742 * modules/getpagesize (Files): Add lib/getpagesize.c.
26743 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26744 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26745 REPLACE_GETPAGESIZE.
26746 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26748 2007-12-25 Bruno Haible <bruno@clisp.org>
26750 * modules/localcharset (Notice): New field.
26751 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26752 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26754 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26755 Bruno Haible <bruno@clisp.org>
26757 Avoid using the syntax symbol() in formatted documentation.
26758 * MODULES.html.sh (func_module): When replacing symbol() with a
26759 hyperlink, remove the parentheses. Show an error if some remain.
26760 Recognize and render the '...' syntax.
26761 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26762 Rework. Add paragraph about GCC's inlining.
26763 * doc/alloca.texi: Likewise.
26764 * doc/error.texi: Remove parentheses from symbol reference.
26765 * doc/gnulib-intro.texi: Likewise.
26766 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26767 * modules/fnmatch (Description): Reword to say "the ... function".
26768 * modules/full-read (Description): Likewise.
26769 * modules/full-write (Description): Likewise.
26770 * modules/safe-read (Description): Likewise.
26771 * modules/safe-write (Description): Likewise.
26772 * modules/strchrnul (Description): Likewise.
26773 * modules/trim (Description): Likewise.
26774 * modules/error (Description): Remove parentheses from symbol
26776 * modules/verror (Description): Likewise.
26777 Reported by Karl Berry.
26779 2007-12-25 Bruno Haible <bruno@clisp.org>
26781 Fixup after 2007-10-16 commit.
26782 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26784 2007-12-24 Bruno Haible <bruno@clisp.org>
26786 Make --enable-relocatable work with DESTDIR.
26787 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26788 to compute installdir from destprog.
26789 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26790 also set the RELOC_DESTDIR variable.
26791 Reported by Левашев Иван <octagram@bluebottle.com>.
26793 2007-12-24 Bruno Haible <bruno@clisp.org>
26795 Fix link error due to xalloc_die().
26796 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26798 * lib/relocwrapper.c: Update comments.
26799 * build-aux/install-reloc: Remove xreadlink.c from file list.
26800 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26802 Reported by Левашев Иван <octagram@bluebottle.com>.
26804 2007-12-24 Bruno Haible <bruno@clisp.org>
26806 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26807 * lib/setenv.h: Remove file.
26808 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26810 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26811 (Depends-on): Add stdlib.
26812 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26814 (Include): Replace setenv.h with <stdlib.h>.
26815 * modules/unsetenv: New file.
26816 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26817 * lib/unsetenv.c: Include <stdlib.h> first.
26818 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26819 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26820 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26821 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26822 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26823 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26824 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26825 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26826 * doc/functions/unsetenv.texi: Update.
26827 * modules/xsetenv (Depends-on): Add unsetenv.
26828 * modules/getdate (Depends-on): Likewise.
26829 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26830 * lib/xsetenv.c: Don't include setenv.h.
26831 * lib/getdate.y: Likewise.
26832 * lib/relocwrapper.c: Likewise.
26833 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26834 (Depends-on): Add stdlib.
26835 * NEWS: Mention the changes.
26836 Reported by Левашев Иван <octagram@bluebottle.com>.
26838 2007-12-23 Bruno Haible <bruno@clisp.org>
26840 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26843 2007-12-23 Bruno Haible <bruno@clisp.org>
26845 * lib/c-strcasestr.c: Add more comments.
26846 * lib/c-strstr.c: Likewise.
26847 * lib/mbscasestr.c: Likewise.
26848 * lib/mbsstr.c: Likewise.
26849 * lib/strcasestr.c: Likewise.
26850 * lib/memmem.c: Likewise.
26852 2007-12-23 Bruno Haible <bruno@clisp.org>
26854 * tests/test-memmem.c: Include <string.h> first.
26856 2007-12-22 Bruno Haible <bruno@clisp.org>
26858 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26859 the contents of $testsbase.
26860 Reported by Ralf Wildenhues.
26862 2007-12-22 Bruno Haible <bruno@clisp.org>
26864 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26865 two variables local_ldadd_before, local_ldadd_last.
26867 2007-12-20 Eric Blake <ebb9@byu.net>
26869 Work around circular library issue when cross-compiling.
26870 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26871 that progname.o does not need to pull in rpl_memcmp.
26873 2007-12-19 Eric Blake <ebb9@byu.net>
26875 Fix memmem to avoid O(n^2) worst-case complexity.
26876 * lib/memmem.c (knuth_morris_pratt): New function.
26877 (memmem): Use it if first few naive iterations fail.
26878 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26879 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26880 * modules/memchr (License): Likewise.
26881 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26883 * tests/test-memmem.c: Rewrite, borrowing ideas from
26884 test-mbsstr1.c; the old version wouldn't even compile!
26885 * modules/memmem-tests: New file.
26886 * lib/string.in.h (rpl_memmem): Add declaration.
26887 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26888 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26891 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26893 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26894 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26895 before any system include files, and undef after them all. This
26896 should fix a problem on VMS reported by John E. Malmberg in
26897 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26899 2007-12-17 Eric Blake <ebb9@byu.net>
26901 Revert addition of verify, for BSD/OS.
26902 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26903 can't handle large files, for the sake of obsolete platforms.
26904 * modules/fseeko (Depends-on): Remove verify.
26905 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26906 * doc/functions/ftello.texi (ftello): Likewise.
26907 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26908 Reported by Larry Jones.
26910 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26912 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26913 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26915 2007-12-17 Jim Meyering <meyering@redhat.com>
26917 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26918 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26919 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26920 * modules/getcwd (Depends-on): Add openat.
26921 Reported by Petr Salinger.
26923 2007-12-17 Bruno Haible <bruno@clisp.org>
26925 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26926 avoid a segmentation fault of the configure test on x86_64 systems.
26928 2007-12-15 Jim Meyering <meyering@redhat.com>
26930 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26932 2007-12-13 Eric Blake <ebb9@byu.net>
26934 Another fseek test.
26935 * tests/test-fseek.c (main): Also test ungetc handling.
26936 * tests/test-fseeko.c (main): Likewise.
26937 * modules/fseeko (Depends-on): Add verify.
26938 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26940 Reported by Larry Jones.
26942 Fix fseeko on mingw.
26943 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26946 Beef up fseek tests.
26947 * tests/test-fseek.c (main): Also test eof handling.
26948 * tests/test-fseeko.c (main): Likewise.
26949 Reported by Larry Jones.
26951 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26953 Fix fseeko on BSD-based platforms.
26954 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26957 2007-12-12 Eric Blake <ebb9@byu.net>
26959 Allow circular dependency of separate libtests.a
26960 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26963 2007-12-11 Eric Blake <ebb9@byu.net>
26965 Fix bug with -0.0L in previous patch.
26966 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26967 * tests/test-isnan.c (main): Also test on zeroes.
26968 * tests/test-isnanf.c (main): Likewise.
26969 * tests/test-isnanl.h (main): Likewise.
26971 Detect pseudo-denormals on x86 even when cross-compiling.
26972 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26973 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26974 invalid bit patterns that happen to satisfy ==.
26976 Avoid link failures with separate libtests.a.
26977 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26978 last, to satisfy circular dependencies.
26980 2007-12-11 Eric Blake <ebb9@byu.net>
26981 and Bruno Haible <bruno@clisp.org>
26983 Fix OpenBSD 4.0 <float.h> handling of long double.
26984 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26985 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26986 * doc/headers/float.texi (float.h): Document OpenBSD bug.
26988 2007-12-11 Jim Meyering <meyering@redhat.com>
26990 * users.txt: Add libvirt.
26992 Support versions of autoconf prior to 2.59c.
26993 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26994 if it is not already defined.
26996 2007-12-09 Bruno Haible <bruno@clisp.org>
26998 Let 'gnulib-tool --import' collect sources needed for the tests in
26999 tests/ rather than in lib/.
27000 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27001 argument. If true, add rules to generate libtests.a, and put libtests.a
27002 into $(LDADD). Consider source files in subdirectories and set
27004 (func_emit_initmacro_start, func_emit_initmacro_end,
27005 func_emit_initmacro_done): Pass all arguments explicitly.
27006 (func_import): Determine two module lists main_modules,
27007 testsrelated_modules. Determine use_libtests. Determine two variables
27008 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27009 instead of just sed_transform_lib_file. Determine two variables
27010 main_files and testsrelated_files. Compute 'files' as the union of
27011 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27012 func_add_or_update. In the generated gnulib-comp.m4, collect the
27013 object files for tests/ in different variables than those for lib/.
27014 Substitute LIBTESTS_LIBDEPS.
27015 (func_create_testdir): Combine the uses_subdirs results from
27016 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27018 2007-12-09 Bruno Haible <bruno@clisp.org>
27020 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27021 the build-aux directory.
27023 2007-12-09 Bruno Haible <bruno@clisp.org>
27025 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27026 introduced on 2006-09-09.
27028 2007-12-07 Jim Meyering <meyering@redhat.com>
27030 Let these macros work also with autoconf-2.59.
27031 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27032 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27033 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27035 2007-12-06 Jim Meyering <meyering@redhat.com>
27037 Avoid a configure-time syntax error in gl_FUNC_ACL.
27038 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27039 function in each branch, before testing the cache variable.
27041 2007-12-04 Eric Blake <ebb9@byu.net>
27043 Make scripts executable.
27044 * build-aux/config.guess: Add execute permissions.
27045 * build-aux/config.sub: Likewise.
27046 * build-aux/gendocs.sh: Likewise.
27048 Fix frexp on mingw.
27049 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27051 * doc/functions/frexp.texi (frexp): Document the bug.
27053 Make cygwin fseeko check more reliable.
27054 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27055 version numbers, rather than unrelated feature check.
27056 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27057 * doc/functions/ftello.texi (ftello): Likewise.
27058 Reported by Bruno Haible.
27060 * m4/strerror.m4: Bump version number.
27062 2007-12-03 Bruno Haible <bruno@clisp.org>
27064 * doc/functions/mprotect.texi: Mention the mingw problem.
27066 2007-12-03 Eric Blake <ebb9@byu.net>
27068 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27069 REPLACE_STRERROR is initialized before this macro.
27071 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27073 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27074 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27075 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27076 put -lsec in even for programs other than 'ls'. This fixes a problem
27077 for gettext reported by Bruno Haible in
27078 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27079 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27080 Add support for Solaris 10. This isn't efficient, but should get the
27083 2007-12-03 James Youngman <jay@gnu.org>
27085 * doc/regexprops-generic.texi: change "an close-group" to "a
27086 close-group" and "illegal" to "not allowed".
27088 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27090 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27091 pr_byname.h. Needed for the rare case when the maintainer has done
27092 "make maintainer-clean" in the source directory and then attempts a
27093 build outside the source directory.
27094 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27097 2007-12-02 Martin Lambers <marlam@marlam.de>
27098 Bruno Haible <bruno@clisp.org>
27100 * lib/getpagesize.h: Remove file.
27101 * lib/unistd.in.h: Include declaration of getpagesize here.
27102 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27103 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27105 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27106 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27107 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27108 (Depends-on): Add unistd.
27109 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27110 (Include): Use <unistd.h> instead of getpagesize.h.
27111 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27112 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27113 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27114 gl_GETPAGESIZE invocation, already handled by module dependency.
27115 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27117 2007-12-02 Bruno Haible <bruno@clisp.org>
27119 * modules/strings-tests: New file.
27120 * tests/test-strings.c: New file.
27122 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27123 * lib/strings.in.h: New file.
27124 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27125 * m4/strings_h.m4: New file.
27126 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27127 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27128 * modules/strings: New file.
27129 * modules/string (Makefile.am): Update.
27130 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27131 Reported by Karl Berry.
27133 2007-12-01 Eric Blake <ebb9@byu.net>
27135 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27136 accomodate fix in cygwin 1.5.25.
27138 2007-12-01 Jim Meyering <meyering@redhat.com>
27140 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27141 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27142 that would inhibit utf8-optimization of a regexp containing line-
27143 or buffer-anchors, e.g., `^', `$'.
27145 2007-11-30 Bruno Haible <bruno@clisp.org>
27147 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27148 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27149 glthread_recursive_lock_init.
27150 * lib/lock.c (glthread_recursive_lock_init)
27151 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27152 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27154 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27156 New function qset_acl, like set_acl but with syscall semantics.
27157 * lib/acl.h (qset_acl): New decl.
27158 * lib/acl.c (qset_acl): New function.
27159 (set_acl): Use new function. Use more-consistent diagnostics.
27161 2007-11-28 Jim Meyering <meyering@redhat.com>
27163 * modules/physmem (License): Change from GPL to LGPLv2+.
27165 2007-11-26 Bruno Haible <bruno@clisp.org>
27167 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27168 'long double' type has excess precision.
27169 Reported by Jim Meyering in
27170 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27172 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27174 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27175 Sync from <http://gnu.org/licenses>.
27176 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27177 with license text from same location.
27178 * doc/maintain.texi, doc/standards.texi: Sync from
27179 <http://savannah.gnu.org/projects/gnustandards>.
27181 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
27182 and Jim Meyering <meyering@redhat.com>
27184 Adjust getdate' grammar to accept a slightly more regular language.
27185 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27186 Before, the former was rejected.
27187 * lib/getdate.y (digits_to_date_time): New function, factored
27189 (number): ...here. Just call digits_to_date_time.
27190 (hybrid): New non-terminal to handle an <unsigned number,
27191 signed relative offset> sequence consistently.
27193 2007-11-18 Jim Meyering <meyering@redhat.com>
27195 Pull my changes from coreutils:
27196 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27197 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27198 use of $gnulib_tool_option_extras, so that it's separated from the
27199 preceding argument.
27201 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27202 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27203 parent destination directories before copying a file into place.
27205 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27207 bootstrap: work also with 4-argument variant of AC_INIT
27208 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27210 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27212 Port test-getaddrinfo to Solaris.
27213 Problem reported by Bruno Haible in
27214 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27215 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27216 explanation of setting 'hints'.
27217 Don't reject an implementation merely because it returns EAI_SERVICE.
27218 (EAI_SERVICE): Define to 0 if not defined.
27220 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27222 The license of gnu-make and posix-shell is now "GPLed build tool".
27223 * modules/gnu-make (License): Likewise.
27224 * modules/posix-shell (License): Likewise.
27226 New module posix-shell, for determining a POSIX shell
27227 or perhaps something that is close enough to a POSIX shell.
27228 * m4/posix-shell.m4: New file.
27229 * modules/posix-shell: New file.
27231 * MODULES.html.sh: Mention new module.
27233 New module gnu-make, for determining whether we're using GNU Make.
27234 * m4/gnu-make.m4: New file.
27235 * modules/gnu-make: New file.
27236 * MODULES.html.sh: Mention new module.
27238 2007-11-14 Jim Meyering <meyering@redhat.com>
27240 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27241 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27242 use this macro to create a function _definition_.
27243 Remove useless "#undef ARGMATCH_DIE".
27245 2007-11-14 Bruno Haible <bruno@clisp.org>
27247 * lib/config.charset: Update for OpenBSD 4.1.
27248 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27250 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27252 Document 64-bit #if problems in stdint.texi.
27253 * doc/headers/stdint.texi (stdint.h): Mention problems with
27254 64-bit-#if, and how to work around them.
27256 Don't insist on 'long long int' support in the preprocessor. It
27257 breaks too many things. For example, PRIdMAX still uses a 'long
27258 long int' format with the latest Sun compiler, even though
27259 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27260 preprocessor problem. This causes the latest coreutils to dump
27261 core on Solaris 10 sparc with the Sun C compiler.
27262 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27263 the troublesome expressions at configure-time, not at #if-time.
27264 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27266 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27267 compile-time C checks, done at 'configure'-time.
27268 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27269 * modules/inttypes (Makefile): Substitute the new symbols that
27270 gl_INTTYPES_H now generates.
27271 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27273 2007-11-12 Bruno Haible <bruno@clisp.org>
27275 Tests for Unicode character classification functions.
27277 * modules/unictype/bidicategory-byname-tests: New file.
27278 * modules/unictype/bidicategory-name-tests: New file.
27279 * modules/unictype/bidicategory-of-tests: New file.
27280 * modules/unictype/bidicategory-test-tests: New file.
27281 * modules/unictype/block-list-tests: New file.
27282 * modules/unictype/block-of-tests: New file.
27283 * modules/unictype/block-test-tests: New file.
27284 * modules/unictype/category-C-tests: New file.
27285 * modules/unictype/category-Cc-tests: New file.
27286 * modules/unictype/category-Cf-tests: New file.
27287 * modules/unictype/category-Cn-tests: New file.
27288 * modules/unictype/category-Co-tests: New file.
27289 * modules/unictype/category-Cs-tests: New file.
27290 * modules/unictype/category-L-tests: New file.
27291 * modules/unictype/category-Ll-tests: New file.
27292 * modules/unictype/category-Lm-tests: New file.
27293 * modules/unictype/category-Lo-tests: New file.
27294 * modules/unictype/category-Lt-tests: New file.
27295 * modules/unictype/category-Lu-tests: New file.
27296 * modules/unictype/category-M-tests: New file.
27297 * modules/unictype/category-Mc-tests: New file.
27298 * modules/unictype/category-Me-tests: New file.
27299 * modules/unictype/category-Mn-tests: New file.
27300 * modules/unictype/category-N-tests: New file.
27301 * modules/unictype/category-Nd-tests: New file.
27302 * modules/unictype/category-Nl-tests: New file.
27303 * modules/unictype/category-No-tests: New file.
27304 * modules/unictype/category-P-tests: New file.
27305 * modules/unictype/category-Pc-tests: New file.
27306 * modules/unictype/category-Pd-tests: New file.
27307 * modules/unictype/category-Pe-tests: New file.
27308 * modules/unictype/category-Pf-tests: New file.
27309 * modules/unictype/category-Pi-tests: New file.
27310 * modules/unictype/category-Po-tests: New file.
27311 * modules/unictype/category-Ps-tests: New file.
27312 * modules/unictype/category-S-tests: New file.
27313 * modules/unictype/category-Sc-tests: New file.
27314 * modules/unictype/category-Sk-tests: New file.
27315 * modules/unictype/category-Sm-tests: New file.
27316 * modules/unictype/category-So-tests: New file.
27317 * modules/unictype/category-Z-tests: New file.
27318 * modules/unictype/category-Zl-tests: New file.
27319 * modules/unictype/category-Zp-tests: New file.
27320 * modules/unictype/category-Zs-tests: New file.
27321 * modules/unictype/category-and-not-tests: New file.
27322 * modules/unictype/category-and-tests: New file.
27323 * modules/unictype/category-byname-tests: New file.
27324 * modules/unictype/category-name-tests: New file.
27325 * modules/unictype/category-none-tests: New file.
27326 * modules/unictype/category-of-tests: New file.
27327 * modules/unictype/category-or-tests: New file.
27328 * modules/unictype/category-test-withtable-tests: New file.
27329 * modules/unictype/combining-class-tests: New file.
27330 * modules/unictype/ctype-alnum-tests: New file.
27331 * modules/unictype/ctype-alpha-tests: New file.
27332 * modules/unictype/ctype-blank-tests: New file.
27333 * modules/unictype/ctype-cntrl-tests: New file.
27334 * modules/unictype/ctype-digit-tests: New file.
27335 * modules/unictype/ctype-graph-tests: New file.
27336 * modules/unictype/ctype-lower-tests: New file.
27337 * modules/unictype/ctype-print-tests: New file.
27338 * modules/unictype/ctype-punct-tests: New file.
27339 * modules/unictype/ctype-space-tests: New file.
27340 * modules/unictype/ctype-upper-tests: New file.
27341 * modules/unictype/ctype-xdigit-tests: New file.
27342 * modules/unictype/decimal-digit-tests: New file.
27343 * modules/unictype/digit-tests: New file.
27344 * modules/unictype/mirror-tests: New file.
27345 * modules/unictype/numeric-tests: New file.
27346 * modules/unictype/property-alphabetic-tests: New file.
27347 * modules/unictype/property-ascii-hex-digit-tests: New file.
27348 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27349 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27350 * modules/unictype/property-bidi-block-separator-tests: New file.
27351 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27352 * modules/unictype/property-bidi-common-separator-tests: New file.
27353 * modules/unictype/property-bidi-control-tests: New file.
27354 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27355 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27356 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27357 * modules/unictype/property-bidi-european-digit-tests: New file.
27358 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27359 * modules/unictype/property-bidi-left-to-right-tests: New file.
27360 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27361 * modules/unictype/property-bidi-other-neutral-tests: New file.
27362 * modules/unictype/property-bidi-pdf-tests: New file.
27363 * modules/unictype/property-bidi-segment-separator-tests: New file.
27364 * modules/unictype/property-bidi-whitespace-tests: New file.
27365 * modules/unictype/property-byname-tests: New file.
27366 * modules/unictype/property-combining-tests: New file.
27367 * modules/unictype/property-composite-tests: New file.
27368 * modules/unictype/property-currency-symbol-tests: New file.
27369 * modules/unictype/property-dash-tests: New file.
27370 * modules/unictype/property-decimal-digit-tests: New file.
27371 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27372 * modules/unictype/property-deprecated-tests: New file.
27373 * modules/unictype/property-diacritic-tests: New file.
27374 * modules/unictype/property-extender-tests: New file.
27375 * modules/unictype/property-format-control-tests: New file.
27376 * modules/unictype/property-grapheme-base-tests: New file.
27377 * modules/unictype/property-grapheme-extend-tests: New file.
27378 * modules/unictype/property-grapheme-link-tests: New file.
27379 * modules/unictype/property-hex-digit-tests: New file.
27380 * modules/unictype/property-hyphen-tests: New file.
27381 * modules/unictype/property-id-continue-tests: New file.
27382 * modules/unictype/property-id-start-tests: New file.
27383 * modules/unictype/property-ideographic-tests: New file.
27384 * modules/unictype/property-ids-binary-operator-tests: New file.
27385 * modules/unictype/property-ids-trinary-operator-tests: New file.
27386 * modules/unictype/property-ignorable-control-tests: New file.
27387 * modules/unictype/property-iso-control-tests: New file.
27388 * modules/unictype/property-join-control-tests: New file.
27389 * modules/unictype/property-left-of-pair-tests: New file.
27390 * modules/unictype/property-line-separator-tests: New file.
27391 * modules/unictype/property-logical-order-exception-tests: New file.
27392 * modules/unictype/property-lowercase-tests: New file.
27393 * modules/unictype/property-math-tests: New file.
27394 * modules/unictype/property-non-break-tests: New file.
27395 * modules/unictype/property-not-a-character-tests: New file.
27396 * modules/unictype/property-numeric-tests: New file.
27397 * modules/unictype/property-other-alphabetic-tests: New file.
27398 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27399 * modules/unictype/property-other-grapheme-extend-tests: New file.
27400 * modules/unictype/property-other-id-continue-tests: New file.
27401 * modules/unictype/property-other-id-start-tests: New file.
27402 * modules/unictype/property-other-lowercase-tests: New file.
27403 * modules/unictype/property-other-math-tests: New file.
27404 * modules/unictype/property-other-uppercase-tests: New file.
27405 * modules/unictype/property-paired-punctuation-tests: New file.
27406 * modules/unictype/property-paragraph-separator-tests: New file.
27407 * modules/unictype/property-pattern-syntax-tests: New file.
27408 * modules/unictype/property-pattern-white-space-tests: New file.
27409 * modules/unictype/property-private-use-tests: New file.
27410 * modules/unictype/property-punctuation-tests: New file.
27411 * modules/unictype/property-quotation-mark-tests: New file.
27412 * modules/unictype/property-radical-tests: New file.
27413 * modules/unictype/property-sentence-terminal-tests: New file.
27414 * modules/unictype/property-soft-dotted-tests: New file.
27415 * modules/unictype/property-space-tests: New file.
27416 * modules/unictype/property-terminal-punctuation-tests: New file.
27417 * modules/unictype/property-test-tests: New file.
27418 * modules/unictype/property-titlecase-tests: New file.
27419 * modules/unictype/property-unassigned-code-value-tests: New file.
27420 * modules/unictype/property-unified-ideograph-tests: New file.
27421 * modules/unictype/property-uppercase-tests: New file.
27422 * modules/unictype/property-variation-selector-tests: New file.
27423 * modules/unictype/property-white-space-tests: New file.
27424 * modules/unictype/property-xid-continue-tests: New file.
27425 * modules/unictype/property-xid-start-tests: New file.
27426 * modules/unictype/property-zero-width-tests: New file.
27427 * modules/unictype/scripts-tests: New file.
27428 * modules/unictype/syntax-c-ident-tests: New file.
27429 * modules/unictype/syntax-c-whitespace-tests: New file.
27430 * modules/unictype/syntax-java-ident-tests: New file.
27431 * modules/unictype/syntax-java-whitespace-tests: New file.
27432 * tests/unictype/test-bidi_byname.c: New file.
27433 * tests/unictype/test-bidi_name.c: New file.
27434 * tests/unictype/test-bidi_of.c: New file.
27435 * tests/unictype/test-bidi_test.c: New file.
27436 * tests/unictype/test-block_list.c: New file.
27437 * tests/unictype/test-block_of.c: New file.
27438 * tests/unictype/test-block_test.c: New file.
27439 * tests/unictype/test-categ_and.c: New file.
27440 * tests/unictype/test-categ_and_not.c: New file.
27441 * tests/unictype/test-categ_byname.c: New file.
27442 * tests/unictype/test-categ_name.c: New file.
27443 * tests/unictype/test-categ_none.c: New file.
27444 * tests/unictype/test-categ_of.c: New file.
27445 * tests/unictype/test-categ_or.c: New file.
27446 * tests/unictype/test-categ_test_withtable.c: New file.
27447 * tests/unictype/test-combining.c: New file.
27448 * tests/unictype/test-decdigit.c: New file.
27449 * tests/unictype/test-digit.c: New file.
27450 * tests/unictype/test-mirror.c: New file.
27451 * tests/unictype/test-numeric.c: New file.
27452 * tests/unictype/test-pr_byname.c: New file.
27453 * tests/unictype/test-pr_test.c: New file.
27454 * tests/unictype/test-predicate-part1.h: New file.
27455 * tests/unictype/test-predicate-part2.h: New file.
27456 * tests/unictype/test-scripts.c: New file.
27457 * tests/unictype/test-sy_c_ident.c: New file.
27458 * tests/unictype/test-sy_java_ident.c: New file.
27460 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27462 * tests/unictype/test-categ_Cc.c: Likewise.
27463 * tests/unictype/test-categ_Cf.c: Likewise.
27464 * tests/unictype/test-categ_Cn.c: Likewise.
27465 * tests/unictype/test-categ_Co.c: Likewise.
27466 * tests/unictype/test-categ_Cs.c: Likewise.
27467 * tests/unictype/test-categ_L.c: Likewise.
27468 * tests/unictype/test-categ_Ll.c: Likewise.
27469 * tests/unictype/test-categ_Lm.c: Likewise.
27470 * tests/unictype/test-categ_Lo.c: Likewise.
27471 * tests/unictype/test-categ_Lt.c: Likewise.
27472 * tests/unictype/test-categ_Lu.c: Likewise.
27473 * tests/unictype/test-categ_M.c: Likewise.
27474 * tests/unictype/test-categ_Mc.c: Likewise.
27475 * tests/unictype/test-categ_Me.c: Likewise.
27476 * tests/unictype/test-categ_Mn.c: Likewise.
27477 * tests/unictype/test-categ_N.c: Likewise.
27478 * tests/unictype/test-categ_Nd.c: Likewise.
27479 * tests/unictype/test-categ_Nl.c: Likewise.
27480 * tests/unictype/test-categ_No.c: Likewise.
27481 * tests/unictype/test-categ_P.c: Likewise.
27482 * tests/unictype/test-categ_Pc.c: Likewise.
27483 * tests/unictype/test-categ_Pd.c: Likewise.
27484 * tests/unictype/test-categ_Pe.c: Likewise.
27485 * tests/unictype/test-categ_Pf.c: Likewise.
27486 * tests/unictype/test-categ_Pi.c: Likewise.
27487 * tests/unictype/test-categ_Po.c: Likewise.
27488 * tests/unictype/test-categ_Ps.c: Likewise.
27489 * tests/unictype/test-categ_S.c: Likewise.
27490 * tests/unictype/test-categ_Sc.c: Likewise.
27491 * tests/unictype/test-categ_Sk.c: Likewise.
27492 * tests/unictype/test-categ_Sm.c: Likewise.
27493 * tests/unictype/test-categ_So.c: Likewise.
27494 * tests/unictype/test-categ_Z.c: Likewise.
27495 * tests/unictype/test-categ_Zl.c: Likewise.
27496 * tests/unictype/test-categ_Zp.c: Likewise.
27497 * tests/unictype/test-categ_Zs.c: Likewise.
27498 * tests/unictype/test-ctype_alnum.c: Likewise.
27499 * tests/unictype/test-ctype_alpha.c: Likewise.
27500 * tests/unictype/test-ctype_blank.c: Likewise.
27501 * tests/unictype/test-ctype_cntrl.c: Likewise.
27502 * tests/unictype/test-ctype_digit.c: Likewise.
27503 * tests/unictype/test-ctype_graph.c: Likewise.
27504 * tests/unictype/test-ctype_lower.c: Likewise.
27505 * tests/unictype/test-ctype_print.c: Likewise.
27506 * tests/unictype/test-ctype_punct.c: Likewise.
27507 * tests/unictype/test-ctype_space.c: Likewise.
27508 * tests/unictype/test-ctype_upper.c: Likewise.
27509 * tests/unictype/test-ctype_xdigit.c: Likewise.
27510 * tests/unictype/test-decdigit.h: Likewise.
27511 * tests/unictype/test-digit.h: Likewise.
27512 * tests/unictype/test-numeric.h: Likewise.
27513 * tests/unictype/test-pr_alphabetic.c: Likewise.
27514 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27515 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27516 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27517 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27518 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27519 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27520 * tests/unictype/test-pr_bidi_control.c: Likewise.
27521 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27522 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27523 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27524 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27525 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27526 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27527 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27528 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27529 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27530 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27531 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27532 * tests/unictype/test-pr_combining.c: Likewise.
27533 * tests/unictype/test-pr_composite.c: Likewise.
27534 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27535 * tests/unictype/test-pr_dash.c: Likewise.
27536 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27537 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27538 * tests/unictype/test-pr_deprecated.c: Likewise.
27539 * tests/unictype/test-pr_diacritic.c: Likewise.
27540 * tests/unictype/test-pr_extender.c: Likewise.
27541 * tests/unictype/test-pr_format_control.c: Likewise.
27542 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27543 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27544 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27545 * tests/unictype/test-pr_hex_digit.c: Likewise.
27546 * tests/unictype/test-pr_hyphen.c: Likewise.
27547 * tests/unictype/test-pr_id_continue.c: Likewise.
27548 * tests/unictype/test-pr_id_start.c: Likewise.
27549 * tests/unictype/test-pr_ideographic.c: Likewise.
27550 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27551 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27552 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27553 * tests/unictype/test-pr_iso_control.c: Likewise.
27554 * tests/unictype/test-pr_join_control.c: Likewise.
27555 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27556 * tests/unictype/test-pr_line_separator.c: Likewise.
27557 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27558 * tests/unictype/test-pr_lowercase.c: Likewise.
27559 * tests/unictype/test-pr_math.c: Likewise.
27560 * tests/unictype/test-pr_non_break.c: Likewise.
27561 * tests/unictype/test-pr_not_a_character.c: Likewise.
27562 * tests/unictype/test-pr_numeric.c: Likewise.
27563 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27564 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27565 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27566 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27567 * tests/unictype/test-pr_other_id_start.c: Likewise.
27568 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27569 * tests/unictype/test-pr_other_math.c: Likewise.
27570 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27571 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27572 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27573 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27574 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27575 * tests/unictype/test-pr_private_use.c: Likewise.
27576 * tests/unictype/test-pr_punctuation.c: Likewise.
27577 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27578 * tests/unictype/test-pr_radical.c: Likewise.
27579 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27580 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27581 * tests/unictype/test-pr_space.c: Likewise.
27582 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27583 * tests/unictype/test-pr_titlecase.c: Likewise.
27584 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27585 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27586 * tests/unictype/test-pr_uppercase.c: Likewise.
27587 * tests/unictype/test-pr_variation_selector.c: Likewise.
27588 * tests/unictype/test-pr_white_space.c: Likewise.
27589 * tests/unictype/test-pr_xid_continue.c: Likewise.
27590 * tests/unictype/test-pr_xid_start.c: Likewise.
27591 * tests/unictype/test-pr_zero_width.c: Likewise.
27592 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27593 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27595 2007-11-12 Bruno Haible <bruno@clisp.org>
27597 Unicode character classification functions.
27598 * lib/unictype.h: New file.
27599 * modules/unictype/base: New file.
27600 * modules/unictype/category-L: New file.
27601 * modules/unictype/category-Lu: New file.
27602 * modules/unictype/category-Ll: New file.
27603 * modules/unictype/category-Lt: New file.
27604 * modules/unictype/category-Lm: New file.
27605 * modules/unictype/category-Lo: New file.
27606 * modules/unictype/category-M: New file.
27607 * modules/unictype/category-Mn: New file.
27608 * modules/unictype/category-Mc: New file.
27609 * modules/unictype/category-Me: New file.
27610 * modules/unictype/category-N: New file.
27611 * modules/unictype/category-Nd: New file.
27612 * modules/unictype/category-Nl: New file.
27613 * modules/unictype/category-No: New file.
27614 * modules/unictype/category-P: New file.
27615 * modules/unictype/category-Pc: New file.
27616 * modules/unictype/category-Pd: New file.
27617 * modules/unictype/category-Ps: New file.
27618 * modules/unictype/category-Pe: New file.
27619 * modules/unictype/category-Pi: New file.
27620 * modules/unictype/category-Pf: New file.
27621 * modules/unictype/category-Po: New file.
27622 * modules/unictype/category-S: New file.
27623 * modules/unictype/category-Sm: New file.
27624 * modules/unictype/category-Sc: New file.
27625 * modules/unictype/category-Sk: New file.
27626 * modules/unictype/category-So: New file.
27627 * modules/unictype/category-Z: New file.
27628 * modules/unictype/category-Zs: New file.
27629 * modules/unictype/category-Zl: New file.
27630 * modules/unictype/category-Zp: New file.
27631 * modules/unictype/category-C: New file.
27632 * modules/unictype/category-Cc: New file.
27633 * modules/unictype/category-Cf: New file.
27634 * modules/unictype/category-Cs: New file.
27635 * modules/unictype/category-Co: New file.
27636 * modules/unictype/category-Cn: New file.
27637 * modules/unictype/category-or: New file.
27638 * modules/unictype/category-of: New file.
27639 * modules/unictype/category-test: New file.
27640 * modules/unictype/category-test-withtable: New file.
27641 * modules/unictype/category-byname: New file.
27642 * modules/unictype/category-none: New file.
27643 * modules/unictype/category-and: New file.
27644 * modules/unictype/category-and-not: New file.
27645 * modules/unictype/category-name: New file.
27646 * modules/unictype/combining-class: New file.
27647 * modules/unictype/category-all: New file.
27648 * modules/unictype/bidicategory-all: New file.
27649 * modules/unictype/bidicategory-byname: New file.
27650 * modules/unictype/bidicategory-name: New file.
27651 * modules/unictype/bidicategory-of: New file.
27652 * modules/unictype/bidicategory-test: New file.
27653 * modules/unictype/decimal-digit: New file.
27654 * modules/unictype/digit: New file.
27655 * modules/unictype/numeric: New file.
27656 * modules/unictype/mirror: New file.
27657 * modules/unictype/property-white-space: New file.
27658 * modules/unictype/property-alphabetic: New file.
27659 * modules/unictype/property-other-alphabetic: New file.
27660 * modules/unictype/property-not-a-character: New file.
27661 * modules/unictype/property-default-ignorable-code-point: New file.
27662 * modules/unictype/property-other-default-ignorable-code-point: New
27664 * modules/unictype/property-deprecated: New file.
27665 * modules/unictype/property-logical-order-exception: New file.
27666 * modules/unictype/property-variation-selector: New file.
27667 * modules/unictype/property-private-use: New file.
27668 * modules/unictype/property-unassigned-code-value: New file.
27669 * modules/unictype/property-uppercase: New file.
27670 * modules/unictype/property-other-uppercase: New file.
27671 * modules/unictype/property-lowercase: New file.
27672 * modules/unictype/property-other-lowercase: New file.
27673 * modules/unictype/property-titlecase: New file.
27674 * modules/unictype/property-soft-dotted: New file.
27675 * modules/unictype/property-id-start: New file.
27676 * modules/unictype/property-other-id-start: New file.
27677 * modules/unictype/property-id-continue: New file.
27678 * modules/unictype/property-other-id-continue: New file.
27679 * modules/unictype/property-xid-start: New file.
27680 * modules/unictype/property-xid-continue: New file.
27681 * modules/unictype/property-pattern-white-space: New file.
27682 * modules/unictype/property-pattern-syntax: New file.
27683 * modules/unictype/property-join-control: New file.
27684 * modules/unictype/property-grapheme-base: New file.
27685 * modules/unictype/property-grapheme-extend: New file.
27686 * modules/unictype/property-other-grapheme-extend: New file.
27687 * modules/unictype/property-grapheme-link: New file.
27688 * modules/unictype/property-bidi-control: New file.
27689 * modules/unictype/property-bidi-left-to-right: New file.
27690 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27691 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27692 * modules/unictype/property-bidi-european-digit: New file.
27693 * modules/unictype/property-bidi-eur-num-separator: New file.
27694 * modules/unictype/property-bidi-eur-num-terminator: New file.
27695 * modules/unictype/property-bidi-arabic-digit: New file.
27696 * modules/unictype/property-bidi-common-separator: New file.
27697 * modules/unictype/property-bidi-block-separator: New file.
27698 * modules/unictype/property-bidi-segment-separator: New file.
27699 * modules/unictype/property-bidi-whitespace: New file.
27700 * modules/unictype/property-bidi-non-spacing-mark: New file.
27701 * modules/unictype/property-bidi-boundary-neutral: New file.
27702 * modules/unictype/property-bidi-pdf: New file.
27703 * modules/unictype/property-bidi-embedding-or-override: New file.
27704 * modules/unictype/property-bidi-other-neutral: New file.
27705 * modules/unictype/property-hex-digit: New file.
27706 * modules/unictype/property-ascii-hex-digit: New file.
27707 * modules/unictype/property-ideographic: New file.
27708 * modules/unictype/property-unified-ideograph: New file.
27709 * modules/unictype/property-radical: New file.
27710 * modules/unictype/property-ids-binary-operator: New file.
27711 * modules/unictype/property-ids-trinary-operator: New file.
27712 * modules/unictype/property-zero-width: New file.
27713 * modules/unictype/property-space: New file.
27714 * modules/unictype/property-non-break: New file.
27715 * modules/unictype/property-iso-control: New file.
27716 * modules/unictype/property-format-control: New file.
27717 * modules/unictype/property-dash: New file.
27718 * modules/unictype/property-hyphen: New file.
27719 * modules/unictype/property-punctuation: New file.
27720 * modules/unictype/property-line-separator: New file.
27721 * modules/unictype/property-paragraph-separator: New file.
27722 * modules/unictype/property-quotation-mark: New file.
27723 * modules/unictype/property-sentence-terminal: New file.
27724 * modules/unictype/property-terminal-punctuation: New file.
27725 * modules/unictype/property-currency-symbol: New file.
27726 * modules/unictype/property-math: New file.
27727 * modules/unictype/property-other-math: New file.
27728 * modules/unictype/property-paired-punctuation: New file.
27729 * modules/unictype/property-left-of-pair: New file.
27730 * modules/unictype/property-combining: New file.
27731 * modules/unictype/property-composite: New file.
27732 * modules/unictype/property-decimal-digit: New file.
27733 * modules/unictype/property-numeric: New file.
27734 * modules/unictype/property-diacritic: New file.
27735 * modules/unictype/property-extender: New file.
27736 * modules/unictype/property-ignorable-control: New file.
27737 * modules/unictype/property-test: New file.
27738 * modules/unictype/property-byname: New file.
27739 * modules/unictype/property-all: New file.
27740 * modules/unictype/scripts: New file.
27741 * modules/unictype/scripts-all: New file.
27742 * modules/unictype/block-of: New file.
27743 * modules/unictype/block-test: New file.
27744 * modules/unictype/block-list: New file.
27745 * modules/unictype/block-all: New file.
27746 * modules/unictype/syntax-c-whitespace: New file.
27747 * modules/unictype/syntax-java-whitespace: New file.
27748 * modules/unictype/syntax-c-ident: New file.
27749 * modules/unictype/syntax-java-ident: New file.
27750 * modules/unictype/ctype-alnum: New file.
27751 * modules/unictype/ctype-alpha: New file.
27752 * modules/unictype/ctype-cntrl: New file.
27753 * modules/unictype/ctype-digit: New file.
27754 * modules/unictype/ctype-graph: New file.
27755 * modules/unictype/ctype-lower: New file.
27756 * modules/unictype/ctype-print: New file.
27757 * modules/unictype/ctype-punct: New file.
27758 * modules/unictype/ctype-space: New file.
27759 * modules/unictype/ctype-upper: New file.
27760 * modules/unictype/ctype-xdigit: New file.
27761 * modules/unictype/ctype-blank: New file.
27762 * lib/unictype/bidi_byname.c: New file.
27763 * lib/unictype/bidi_name.c: New file.
27764 * lib/unictype/bidi_of.c: New file.
27765 * lib/unictype/bidi_test.c: New file.
27766 * lib/unictype/bitmap.h: New file.
27767 * lib/unictype/block_test.c: New file.
27768 * lib/unictype/blocks.c: New file.
27769 * lib/unictype/categ_C.c: New file.
27770 * lib/unictype/categ_Cc.c: New file.
27771 * lib/unictype/categ_Cf.c: New file.
27772 * lib/unictype/categ_Cn.c: New file.
27773 * lib/unictype/categ_Co.c: New file.
27774 * lib/unictype/categ_Cs.c: New file.
27775 * lib/unictype/categ_L.c: New file.
27776 * lib/unictype/categ_Ll.c: New file.
27777 * lib/unictype/categ_Lm.c: New file.
27778 * lib/unictype/categ_Lo.c: New file.
27779 * lib/unictype/categ_Lt.c: New file.
27780 * lib/unictype/categ_Lu.c: New file.
27781 * lib/unictype/categ_M.c: New file.
27782 * lib/unictype/categ_Mc.c: New file.
27783 * lib/unictype/categ_Me.c: New file.
27784 * lib/unictype/categ_Mn.c: New file.
27785 * lib/unictype/categ_N.c: New file.
27786 * lib/unictype/categ_Nd.c: New file.
27787 * lib/unictype/categ_Nl.c: New file.
27788 * lib/unictype/categ_No.c: New file.
27789 * lib/unictype/categ_P.c: New file.
27790 * lib/unictype/categ_Pc.c: New file.
27791 * lib/unictype/categ_Pd.c: New file.
27792 * lib/unictype/categ_Pe.c: New file.
27793 * lib/unictype/categ_Pf.c: New file.
27794 * lib/unictype/categ_Pi.c: New file.
27795 * lib/unictype/categ_Po.c: New file.
27796 * lib/unictype/categ_Ps.c: New file.
27797 * lib/unictype/categ_S.c: New file.
27798 * lib/unictype/categ_Sc.c: New file.
27799 * lib/unictype/categ_Sk.c: New file.
27800 * lib/unictype/categ_Sm.c: New file.
27801 * lib/unictype/categ_So.c: New file.
27802 * lib/unictype/categ_Z.c: New file.
27803 * lib/unictype/categ_Zl.c: New file.
27804 * lib/unictype/categ_Zp.c: New file.
27805 * lib/unictype/categ_Zs.c: New file.
27806 * lib/unictype/categ_and.c: New file.
27807 * lib/unictype/categ_and_not.c: New file.
27808 * lib/unictype/categ_byname.c: New file.
27809 * lib/unictype/categ_name.c: New file.
27810 * lib/unictype/categ_none.c: New file.
27811 * lib/unictype/categ_of.c: New file.
27812 * lib/unictype/categ_or.c: New file.
27813 * lib/unictype/categ_test.c: New file.
27814 * lib/unictype/combining.c: New file.
27815 * lib/unictype/ctype_alnum.c: New file.
27816 * lib/unictype/ctype_alpha.c: New file.
27817 * lib/unictype/ctype_blank.c: New file.
27818 * lib/unictype/ctype_cntrl.c: New file.
27819 * lib/unictype/ctype_digit.c: New file.
27820 * lib/unictype/ctype_graph.c: New file.
27821 * lib/unictype/ctype_lower.c: New file.
27822 * lib/unictype/ctype_print.c: New file.
27823 * lib/unictype/ctype_punct.c: New file.
27824 * lib/unictype/ctype_space.c: New file.
27825 * lib/unictype/ctype_upper.c: New file.
27826 * lib/unictype/ctype_xdigit.c: New file.
27827 * lib/unictype/decdigit.c: New file.
27828 * lib/unictype/digit.c: New file.
27829 * lib/unictype/identsyntaxmap.h: New file.
27830 * lib/unictype/mirror.c: New file.
27831 * lib/unictype/numeric.c: New file.
27832 * lib/unictype/pr_alphabetic.c: New file.
27833 * lib/unictype/pr_ascii_hex_digit.c: New file.
27834 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27835 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27836 * lib/unictype/pr_bidi_block_separator.c: New file.
27837 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27838 * lib/unictype/pr_bidi_common_separator.c: New file.
27839 * lib/unictype/pr_bidi_control.c: New file.
27840 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27841 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27842 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27843 * lib/unictype/pr_bidi_european_digit.c: New file.
27844 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27845 * lib/unictype/pr_bidi_left_to_right.c: New file.
27846 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27847 * lib/unictype/pr_bidi_other_neutral.c: New file.
27848 * lib/unictype/pr_bidi_pdf.c: New file.
27849 * lib/unictype/pr_bidi_segment_separator.c: New file.
27850 * lib/unictype/pr_bidi_whitespace.c: New file.
27851 * lib/unictype/pr_byname.c: New file.
27852 * lib/unictype/pr_byname.gperf: New file.
27853 * lib/unictype/pr_combining.c: New file.
27854 * lib/unictype/pr_composite.c: New file.
27855 * lib/unictype/pr_currency_symbol.c: New file.
27856 * lib/unictype/pr_dash.c: New file.
27857 * lib/unictype/pr_decimal_digit.c: New file.
27858 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27859 * lib/unictype/pr_deprecated.c: New file.
27860 * lib/unictype/pr_diacritic.c: New file.
27861 * lib/unictype/pr_extender.c: New file.
27862 * lib/unictype/pr_format_control.c: New file.
27863 * lib/unictype/pr_grapheme_base.c: New file.
27864 * lib/unictype/pr_grapheme_extend.c: New file.
27865 * lib/unictype/pr_grapheme_link.c: New file.
27866 * lib/unictype/pr_hex_digit.c: New file.
27867 * lib/unictype/pr_hyphen.c: New file.
27868 * lib/unictype/pr_id_continue.c: New file.
27869 * lib/unictype/pr_id_start.c: New file.
27870 * lib/unictype/pr_ideographic.c: New file.
27871 * lib/unictype/pr_ids_binary_operator.c: New file.
27872 * lib/unictype/pr_ids_trinary_operator.c: New file.
27873 * lib/unictype/pr_ignorable_control.c: New file.
27874 * lib/unictype/pr_iso_control.c: New file.
27875 * lib/unictype/pr_join_control.c: New file.
27876 * lib/unictype/pr_left_of_pair.c: New file.
27877 * lib/unictype/pr_line_separator.c: New file.
27878 * lib/unictype/pr_logical_order_exception.c: New file.
27879 * lib/unictype/pr_lowercase.c: New file.
27880 * lib/unictype/pr_math.c: New file.
27881 * lib/unictype/pr_non_break.c: New file.
27882 * lib/unictype/pr_not_a_character.c: New file.
27883 * lib/unictype/pr_numeric.c: New file.
27884 * lib/unictype/pr_other_alphabetic.c: New file.
27885 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27886 * lib/unictype/pr_other_grapheme_extend.c: New file.
27887 * lib/unictype/pr_other_id_continue.c: New file.
27888 * lib/unictype/pr_other_id_start.c: New file.
27889 * lib/unictype/pr_other_lowercase.c: New file.
27890 * lib/unictype/pr_other_math.c: New file.
27891 * lib/unictype/pr_other_uppercase.c: New file.
27892 * lib/unictype/pr_paired_punctuation.c: New file.
27893 * lib/unictype/pr_paragraph_separator.c: New file.
27894 * lib/unictype/pr_pattern_syntax.c: New file.
27895 * lib/unictype/pr_pattern_white_space.c: New file.
27896 * lib/unictype/pr_private_use.c: New file.
27897 * lib/unictype/pr_punctuation.c: New file.
27898 * lib/unictype/pr_quotation_mark.c: New file.
27899 * lib/unictype/pr_radical.c: New file.
27900 * lib/unictype/pr_sentence_terminal.c: New file.
27901 * lib/unictype/pr_soft_dotted.c: New file.
27902 * lib/unictype/pr_space.c: New file.
27903 * lib/unictype/pr_terminal_punctuation.c: New file.
27904 * lib/unictype/pr_test.c: New file.
27905 * lib/unictype/pr_titlecase.c: New file.
27906 * lib/unictype/pr_unassigned_code_value.c: New file.
27907 * lib/unictype/pr_unified_ideograph.c: New file.
27908 * lib/unictype/pr_uppercase.c: New file.
27909 * lib/unictype/pr_variation_selector.c: New file.
27910 * lib/unictype/pr_white_space.c: New file.
27911 * lib/unictype/pr_xid_continue.c: New file.
27912 * lib/unictype/pr_xid_start.c: New file.
27913 * lib/unictype/pr_zero_width.c: New file.
27914 * lib/unictype/scripts.c: New file.
27915 * lib/unictype/sy_c_ident.c: New file.
27916 * lib/unictype/sy_c_whitespace.c: New file.
27917 * lib/unictype/sy_java_ident.c: New file.
27918 * lib/unictype/sy_java_whitespace.c: New file.
27920 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27922 * lib/unictype/blocks.h: Likewise.
27923 * lib/unictype/categ_C.h: Likewise.
27924 * lib/unictype/categ_Cc.h: Likewise.
27925 * lib/unictype/categ_Cf.h: Likewise.
27926 * lib/unictype/categ_Cn.h: Likewise.
27927 * lib/unictype/categ_Co.h: Likewise.
27928 * lib/unictype/categ_Cs.h: Likewise.
27929 * lib/unictype/categ_L.h: Likewise.
27930 * lib/unictype/categ_Ll.h: Likewise.
27931 * lib/unictype/categ_Lm.h: Likewise.
27932 * lib/unictype/categ_Lo.h: Likewise.
27933 * lib/unictype/categ_Lt.h: Likewise.
27934 * lib/unictype/categ_Lu.h: Likewise.
27935 * lib/unictype/categ_M.h: Likewise.
27936 * lib/unictype/categ_Mc.h: Likewise.
27937 * lib/unictype/categ_Me.h: Likewise.
27938 * lib/unictype/categ_Mn.h: Likewise.
27939 * lib/unictype/categ_N.h: Likewise.
27940 * lib/unictype/categ_Nd.h: Likewise.
27941 * lib/unictype/categ_Nl.h: Likewise.
27942 * lib/unictype/categ_No.h: Likewise.
27943 * lib/unictype/categ_P.h: Likewise.
27944 * lib/unictype/categ_Pc.h: Likewise.
27945 * lib/unictype/categ_Pd.h: Likewise.
27946 * lib/unictype/categ_Pe.h: Likewise.
27947 * lib/unictype/categ_Pf.h: Likewise.
27948 * lib/unictype/categ_Pi.h: Likewise.
27949 * lib/unictype/categ_Po.h: Likewise.
27950 * lib/unictype/categ_Ps.h: Likewise.
27951 * lib/unictype/categ_S.h: Likewise.
27952 * lib/unictype/categ_Sc.h: Likewise.
27953 * lib/unictype/categ_Sk.h: Likewise.
27954 * lib/unictype/categ_Sm.h: Likewise.
27955 * lib/unictype/categ_So.h: Likewise.
27956 * lib/unictype/categ_Z.h: Likewise.
27957 * lib/unictype/categ_Zl.h: Likewise.
27958 * lib/unictype/categ_Zp.h: Likewise.
27959 * lib/unictype/categ_Zs.h: Likewise.
27960 * lib/unictype/categ_of.h: Likewise.
27961 * lib/unictype/combining.h: Likewise.
27962 * lib/unictype/ctype_alnum.h: Likewise.
27963 * lib/unictype/ctype_alpha.h: Likewise.
27964 * lib/unictype/ctype_blank.h: Likewise.
27965 * lib/unictype/ctype_cntrl.h: Likewise.
27966 * lib/unictype/ctype_digit.h: Likewise.
27967 * lib/unictype/ctype_graph.h: Likewise.
27968 * lib/unictype/ctype_lower.h: Likewise.
27969 * lib/unictype/ctype_print.h: Likewise.
27970 * lib/unictype/ctype_punct.h: Likewise.
27971 * lib/unictype/ctype_space.h: Likewise.
27972 * lib/unictype/ctype_upper.h: Likewise.
27973 * lib/unictype/ctype_xdigit.h: Likewise.
27974 * lib/unictype/decdigit.h: Likewise.
27975 * lib/unictype/digit.h: Likewise.
27976 * lib/unictype/mirror.h: Likewise.
27977 * lib/unictype/numeric.h: Likewise.
27978 * lib/unictype/pr_alphabetic.h: Likewise.
27979 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27980 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27981 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27982 * lib/unictype/pr_bidi_block_separator.h: Likewise.
27983 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27984 * lib/unictype/pr_bidi_common_separator.h: Likewise.
27985 * lib/unictype/pr_bidi_control.h: Likewise.
27986 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27987 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27988 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27989 * lib/unictype/pr_bidi_european_digit.h: Likewise.
27990 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27991 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27992 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27993 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27994 * lib/unictype/pr_bidi_pdf.h: Likewise.
27995 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27996 * lib/unictype/pr_bidi_whitespace.h: Likewise.
27997 * lib/unictype/pr_combining.h: Likewise.
27998 * lib/unictype/pr_composite.h: Likewise.
27999 * lib/unictype/pr_currency_symbol.h: Likewise.
28000 * lib/unictype/pr_dash.h: Likewise.
28001 * lib/unictype/pr_decimal_digit.h: Likewise.
28002 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28003 * lib/unictype/pr_deprecated.h: Likewise.
28004 * lib/unictype/pr_diacritic.h: Likewise.
28005 * lib/unictype/pr_extender.h: Likewise.
28006 * lib/unictype/pr_format_control.h: Likewise.
28007 * lib/unictype/pr_grapheme_base.h: Likewise.
28008 * lib/unictype/pr_grapheme_extend.h: Likewise.
28009 * lib/unictype/pr_grapheme_link.h: Likewise.
28010 * lib/unictype/pr_hex_digit.h: Likewise.
28011 * lib/unictype/pr_hyphen.h: Likewise.
28012 * lib/unictype/pr_id_continue.h: Likewise.
28013 * lib/unictype/pr_id_start.h: Likewise.
28014 * lib/unictype/pr_ideographic.h: Likewise.
28015 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28016 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28017 * lib/unictype/pr_ignorable_control.h: Likewise.
28018 * lib/unictype/pr_iso_control.h: Likewise.
28019 * lib/unictype/pr_join_control.h: Likewise.
28020 * lib/unictype/pr_left_of_pair.h: Likewise.
28021 * lib/unictype/pr_line_separator.h: Likewise.
28022 * lib/unictype/pr_logical_order_exception.h: Likewise.
28023 * lib/unictype/pr_lowercase.h: Likewise.
28024 * lib/unictype/pr_math.h: Likewise.
28025 * lib/unictype/pr_non_break.h: Likewise.
28026 * lib/unictype/pr_not_a_character.h: Likewise.
28027 * lib/unictype/pr_numeric.h: Likewise.
28028 * lib/unictype/pr_other_alphabetic.h: Likewise.
28029 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28030 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28031 * lib/unictype/pr_other_id_continue.h: Likewise.
28032 * lib/unictype/pr_other_id_start.h: Likewise.
28033 * lib/unictype/pr_other_lowercase.h: Likewise.
28034 * lib/unictype/pr_other_math.h: Likewise.
28035 * lib/unictype/pr_other_uppercase.h: Likewise.
28036 * lib/unictype/pr_paired_punctuation.h: Likewise.
28037 * lib/unictype/pr_paragraph_separator.h: Likewise.
28038 * lib/unictype/pr_pattern_syntax.h: Likewise.
28039 * lib/unictype/pr_pattern_white_space.h: Likewise.
28040 * lib/unictype/pr_private_use.h: Likewise.
28041 * lib/unictype/pr_punctuation.h: Likewise.
28042 * lib/unictype/pr_quotation_mark.h: Likewise.
28043 * lib/unictype/pr_radical.h: Likewise.
28044 * lib/unictype/pr_sentence_terminal.h: Likewise.
28045 * lib/unictype/pr_soft_dotted.h: Likewise.
28046 * lib/unictype/pr_space.h: Likewise.
28047 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28048 * lib/unictype/pr_titlecase.h: Likewise.
28049 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28050 * lib/unictype/pr_unified_ideograph.h: Likewise.
28051 * lib/unictype/pr_uppercase.h: Likewise.
28052 * lib/unictype/pr_variation_selector.h: Likewise.
28053 * lib/unictype/pr_white_space.h: Likewise.
28054 * lib/unictype/pr_xid_continue.h: Likewise.
28055 * lib/unictype/pr_xid_start.h: Likewise.
28056 * lib/unictype/pr_zero_width.h: Likewise.
28057 * lib/unictype/scripts.h: Likewise.
28058 * lib/unictype/scripts_byname.gperf: Likewise.
28059 * lib/unictype/sy_c_ident.h: Likewise.
28060 * lib/unictype/sy_c_whitespace.h: Likewise.
28061 * lib/unictype/sy_java_ident.h: Likewise.
28062 * lib/unictype/sy_java_whitespace.h: Likewise.
28064 * lib/unictype/Makefile: New file.
28065 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28067 * lib/unictype/3level.h: New file, copied from glibc.
28068 * lib/unictype/3levelbit.h: New file.
28070 2007-11-11 Bruno Haible <bruno@clisp.org>
28072 * modules/gperf: New file.
28073 * modules/iconv_open (Depends-on): Add it.
28074 (Makefile.am): Remove the GPERF definition.
28076 2007-11-11 Bruno Haible <bruno@clisp.org>
28078 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28079 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28081 2007-11-11 Bruno Haible <bruno@clisp.org>
28083 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28084 (usage): Remove function.
28086 2007-11-11 Bruno Haible <bruno@clisp.org>
28088 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28089 gl_FUNC_CEILF_LIBS.
28090 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28092 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28093 gl_FUNC_CEILL_LIBS.
28094 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28095 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28096 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28098 2007-11-11 Bruno Haible <bruno@clisp.org>
28100 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28101 roundf were declared but do not exist on functions.
28102 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28103 roundl were declared but do not exist on functions.
28104 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28105 HAVE_FLOORL_AND_CEILL, respectively.
28106 Needed for Sun C on Solaris 10.
28108 2007-11-11 Bruno Haible <bruno@clisp.org>
28110 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28111 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28112 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28113 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28114 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28115 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28116 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28118 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28119 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28120 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28121 of HAVE_DECL_ROUND*.
28122 * modules/math (Makefile.am): Update.
28124 2007-11-10 Bruno Haible <bruno@clisp.org>
28126 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28127 ptrdiff_t as m4/intl.m4.
28129 2007-11-10 Jim Meyering <meyering@redhat.com>
28131 Avoid link failure for the argmatch test.
28132 * tests/test-argmatch.c (usage): Define function to avoid a link
28133 failure: argmatch_die requires a usage function.
28135 2007-11-09 Bruno Haible <bruno@clisp.org>
28137 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28138 * doc/functions/vsnprintf.texi: Likewise.
28139 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28140 with a size argument < 2.
28142 2007-11-09 Bruno Haible <bruno@clisp.org>
28144 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28145 buffer. Fixes an inefficiency introduced on 2007-11-03.
28147 2007-11-09 Bruno Haible <bruno@clisp.org>
28149 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28150 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28152 2007-11-08 Jim Meyering <meyering@redhat.com>
28154 Change cache variable name prefix "jm_" to "gl_" everywhere.
28155 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28156 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28157 * m4/uptime.m4: s/gl_/jm_/
28159 2007-11-07 Bruno Haible <bruno@clisp.org>
28161 Update to GNU gettext 0.17.
28162 * m4/intl.m4: Update to GNU gettext 0.17.
28163 * m4/po.m4: Likewise.
28164 * modules/gettext (Files): Remove m4/ulonglong.m4.
28165 (configure.ac): Require gettext infrastructure from version 0.17.
28167 2007-11-06 Bruno Haible <bruno@clisp.org>
28169 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28170 symbolic values are not defined in a public header.
28171 * lib/freadable.c (freadable) [QNX]: Likewise.
28172 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28173 * lib/freading.c (freading) [QNX]: Likewise.
28174 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28175 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28176 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28177 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28178 Reported by Alain Magloire.
28180 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28182 2007-11-05 Bruno Haible <bruno@clisp.org>
28184 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28185 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28186 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28187 Reported by Eric Blake.
28189 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28190 Bruno Haible <bruno@clisp.org>
28192 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28193 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28194 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28195 (malloc): Undefine also before including <stdlib.h>.
28196 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28197 Needed on OSF/1 4.0.
28199 2007-11-05 Jim Meyering <meyering@redhat.com>
28201 git-version-gen: sync from coreutils.
28202 * build-aux/git-version-gen: Add comments.
28203 Change the first '-' to '.' in the snapshot version string,
28204 e.g., 6.9-377-08144 -> 6.9.377-08144
28205 Remove first parameter.
28206 Don't declare a version "-dirty" merely because a time
28209 2007-11-04 Bruno Haible <bruno@clisp.org>
28211 * lib/lock.h: Protect all macro definitions containing an 'if'
28212 statement through a "do { ... } while (0)".
28213 * lib/tls.h: Likewise.
28215 2007-11-04 Bruno Haible <bruno@clisp.org>
28217 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28219 2007-11-04 Bruno Haible <bruno@clisp.org>
28221 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28222 * modules/fprintf-posix (Depends-on): Add nocrash.
28223 * modules/snprintf-posix (Depends-on): Likewise.
28224 * modules/sprintf-posix (Depends-on): Likewise.
28225 * modules/vasnprintf-posix (Depends-on): Likewise.
28226 * modules/vasprintf-posix (Depends-on): Likewise.
28227 * modules/vfprintf-posix (Depends-on): Likewise.
28228 * modules/vsnprintf-posix (Depends-on): Likewise.
28229 * modules/vsprintf-posix (Depends-on): Likewise.
28230 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28231 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28232 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28233 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28234 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28235 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28236 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28238 2007-11-04 Bruno Haible <bruno@clisp.org>
28240 * modules/nocrash: New file.
28241 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28242 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28244 2007-11-04 Bruno Haible <bruno@clisp.org>
28246 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28247 precision handling.
28248 * tests/test-vasprintf-posix.c (test_function): Likewise.
28249 * tests/test-snprintf-posix.h (test_function): Likewise.
28250 * tests/test-sprintf-posix.h (test_function): Likewise.
28252 Fix *printf behaviour for large precisions on mingw and BeOS.
28253 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28254 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28255 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28256 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28257 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28258 gl_PRINTF_PRECISION and test its result. Invoke
28259 gl_PREREQ_VASNPRINTF_PRECISION.
28260 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28261 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28262 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28263 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28264 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28265 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28266 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28267 * doc/functions/fprintf.texi: Update.
28268 * doc/functions/printf.texi: Update.
28269 * doc/functions/snprintf.texi: Update.
28270 * doc/functions/sprintf.texi: Update.
28271 * doc/functions/vfprintf.texi: Update.
28272 * doc/functions/vprintf.texi: Update.
28273 * doc/functions/vsnprintf.texi: Update.
28274 * doc/functions/vsprintf.texi: Update.
28276 2007-11-04 Bruno Haible <bruno@clisp.org>
28278 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28280 2007-11-04 Bruno Haible <bruno@clisp.org>
28282 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28283 Reported by Sylvain Beucler <beuc@gnu.org>.
28285 2007-11-03 Bruno Haible <bruno@clisp.org>
28287 * tests/test-fprintf-posix2.sh: New file.
28288 * tests/test-fprintf-posix2.c: New file.
28289 * modules/fprintf-posix-tests (Files): Add them.
28290 (TESTS): Add test-fprintf-posix2.sh.
28291 (configure.ac): Check for getrlimit and setrlimit.
28292 (check_PROGRAMS): Add test-fprintf-posix2.
28294 * tests/test-printf-posix2.sh: New file.
28295 * tests/test-printf-posix2.c: New file.
28296 * modules/printf-posix-tests (Files): Add them.
28297 (TESTS): Add test-printf-posix2.sh.
28298 (configure.ac): Check for getrlimit and setrlimit.
28299 (check_PROGRAMS): Add test-printf-posix2.
28301 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28302 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28303 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28304 (decode_double): New function, copied from decode_long_double.
28305 (scale10_round_decimal_decoded): New function, extracted from
28306 scale10_round_decimal_long_double.
28307 (scale10_round_decimal_long_double): Use it.
28308 (scale10_round_decimal_double): New function.
28309 (floorlog10): New function.
28310 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28311 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28312 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28313 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28314 gl_PRINTF_ENOMEM and test its result. Invoke
28315 gl_PREREQ_VASNPRINTF_ENOMEM.
28316 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28317 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28318 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28319 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28320 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28321 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28322 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28323 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28324 * modules/snprintf-posix (Depends-on): Likewise.
28325 * modules/sprintf-posix (Depends-on): Likewise.
28326 * modules/vasnprintf-posix (Depends-on): Likewise.
28327 * modules/vasprintf-posix (Depends-on): Likewise.
28328 * modules/vfprintf-posix (Depends-on): Likewise.
28329 * modules/vsnprintf-posix (Depends-on): Likewise.
28330 * modules/vsprintf-posix (Depends-on): Likewise.
28331 * doc/functions/fprintf.texi: Update.
28332 * doc/functions/printf.texi: Update.
28333 * doc/functions/snprintf.texi: Update.
28334 * doc/functions/sprintf.texi: Update.
28335 * doc/functions/vfprintf.texi: Update.
28336 * doc/functions/vprintf.texi: Update.
28337 * doc/functions/vsnprintf.texi: Update.
28338 * doc/functions/vsprintf.texi: Update.
28340 2007-11-03 Bruno Haible <bruno@clisp.org>
28342 * modules/frexp-nolibm-tests: New file.
28344 * modules/frexp-nolibm: New file.
28345 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28347 2007-11-03 Bruno Haible <bruno@clisp.org>
28349 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28350 value is C99 compliant.
28351 Needed for OSF/1 5.1.
28353 2007-11-03 Bruno Haible <bruno@clisp.org>
28355 Fix out-of-memory handling of vasnprintf.
28356 * lib/printf-parse.c: Include <errno.h>.
28357 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28358 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28361 2007-11-02 Eric Blake <ebb9@byu.net>
28363 Fix tests on cygwin.
28364 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28366 2007-11-01 Bruno Haible <bruno@clisp.org>
28368 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28370 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28371 needed for POSIX compatibility.
28373 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28375 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28376 for compatibility with GNU.
28378 2007-11-01 Bruno Haible <bruno@clisp.org>
28380 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28381 (putenv): Renamed from rpl_putenv. Change argument type from
28382 'const char *' to 'char *'.
28383 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28384 of defining putenv in config.h, just set REPLACE_PUTENV.
28385 * modules/putenv (Depends-on): Add stdlib.
28386 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28387 (Include): Use <stdlib.h>.
28388 * lib/stdlib.in.h (putenv): New declaration.
28389 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28391 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28393 Needed for MacOS X 10.5.0.
28394 Reported by Peter O'Gorman <peter@pogma.com>.
28396 2007-11-01 Jim Meyering <meyering@redhat.com>
28398 Treat an empty date string exactly like "0".
28399 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28400 if the remaining date string (to be parsed) is empty, use "0".
28401 Reported by Mischa Molhoek and discussed in this thread:
28402 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28404 2007-10-31 Bruno Haible <bruno@clisp.org>
28406 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28407 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28408 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28409 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28410 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28411 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28413 2007-10-31 Bruno Haible <bruno@clisp.org>
28415 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28416 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28417 (AC_TYPE_LONG_LONG_INT): Use it.
28418 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28420 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28422 * modules/stdint (Files): Remove m4/ulonglong.m4.
28423 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28425 * modules/strtoumax (Files): Likewise.
28427 2007-10-30 Bruno Haible <bruno@clisp.org>
28429 * modules/xvasprintf-posix: New file.
28430 Suggested by Eric Blake.
28432 2007-10-30 Bruno Haible <bruno@clisp.org>
28434 * modules/xprintf-posix-tests: New file.
28435 * tests/test-xprintf-posix.sh: New file.
28436 * tests/test-xprintf-posix.c: New file.
28437 * tests/test-xfprintf-posix.c: New file.
28439 * modules/xprintf-posix: New file.
28441 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28443 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28444 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28445 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28447 2007-10-29 Bruno Haible <bruno@clisp.org>
28449 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28450 contain the special marker '_cv_'.
28451 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28452 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28453 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28454 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28455 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28456 Reported by Ralf Wildenhues.
28458 2007-10-29 Bruno Haible <bruno@clisp.org>
28460 * gnulib-tool (func_import): When --lgpl is not specified, set
28461 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28463 Reported by Simon Josefsson.
28465 2007-10-28 Bruno Haible <bruno@clisp.org>
28467 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28468 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28469 HAVE_DECL_ISFINITE.
28470 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28471 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28472 HAVE_DECL_ISFINITE.
28474 2007-10-28 Bruno Haible <bruno@clisp.org>
28476 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28477 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28479 2007-10-28 Bruno Haible <bruno@clisp.org>
28481 Fix link errors with Sun C 5.0 on Solaris 10.
28482 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28483 function is declared but not present in the compiler's libm.
28484 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28485 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28486 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28487 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28488 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28489 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28490 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28491 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28492 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28493 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28494 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28497 2007-10-28 Bruno Haible <bruno@clisp.org>
28499 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28500 gl_FUNC_FLOORL. Cache the result.
28501 (gl_FUNC_FLOORL): Use it.
28502 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28503 gl_FUNC_CEILL. Cache the result.
28504 (gl_FUNC_CEILL): Use it.
28506 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28507 gl_FUNC_FLOOR. Cache the result.
28508 (gl_FUNC_FLOOR): Use it.
28509 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28510 gl_FUNC_CEIL. Cache the result.
28511 (gl_FUNC_CEIL): Use it.
28513 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28514 gl_FUNC_FLOORF. Cache the result.
28515 (gl_FUNC_FLOORF): Use it.
28516 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28517 gl_FUNC_CEILF. Cache the result.
28518 (gl_FUNC_CEILF): Use it.
28520 2007-10-28 Bruno Haible <bruno@clisp.org>
28522 * gnulib-tool: Allow specifying the LGPL version number through
28523 --lgpl=2 or --lgpl=3.
28524 (func_usage): Document --lgpl with argument.
28525 Handle --lgpl=... arguments.
28526 (func_import): Recognize also gl_LGPL calls with an argument. When
28527 --lgpl=2 is used and the module's license is just LGPL, report an
28528 error. Set sed_transform_lib_file according to the lgpl variable. In
28529 the generated files, use --lgpl or gl_LGPL invocations with argument,
28531 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28533 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28536 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28537 Bruno Haible <bruno@clisp.org>
28539 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28540 (u16_uctomb_aux): Likewise.
28541 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28543 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28545 2007-10-28 Bruno Haible <bruno@clisp.org>
28547 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28548 Invoke AM_GETTEXT_OPTION if it exists.
28549 * modules/vasprintf: Likewise.
28550 * modules/verror: Likewise.
28551 * modules/xprintf: Likewise.
28552 * modules/xvasprintf: Likewise.
28554 2007-10-27 Ben Pfaff <blp@gnu.org>
28556 * lib/math.in.h: Define isfinite macro and prototypes for
28557 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28559 * m4/math_h.m4: New substitutions for isfinite module.
28560 * lib/isfinite.c: New file.
28561 * m4/isfinite.m4: New file.
28562 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28563 * modules/isfinite: New file.
28564 * modules/isfinite-tests: New file.
28565 * tests/tests-isfinite.c: New file.
28566 * doc/functions/isfinite.texi: Mention isfinite module.
28567 * MODULES.html.sh: Mention new module.
28569 2007-10-27 Ben Pfaff <blp@gnu.org>
28571 Ralf Wildenhues reported that Tru64 4.0D declares the round
28572 functions but does not have definitions.
28573 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28574 cannot be found in any library, set the output variable to
28575 "missing" instead of "".
28576 * m4/round.m4: Also use our substitute if we cannot find round in
28577 any library, even if it is declared.
28578 * m4/roundf.m4: Likewise for roundf.
28579 * m4/roundl.m4: Likewise for roundl.
28580 * lib/math.in.h: Undefine roundf, round, roundl before defining
28581 their replacements, to allow for hypothetical systems where these
28582 may be defined as macros but not available in libraries.
28584 2007-10-27 Bruno Haible <bruno@clisp.org>
28586 * doc/gnulib.texi: Invoke @firstparagraphindent.
28587 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28589 (Source changes): New section.
28591 2007-10-26 Bruno Haible <bruno@clisp.org>
28593 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28594 borrowed from autoconf.
28596 2007-10-26 Bruno Haible <bruno@clisp.org>
28598 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28599 strerror returned the empty string. Needed on HP-UX 11.00.
28601 2007-10-24 Micah Cowan <micah@cowan.name>
28603 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28604 * build-aux/bootstrap: Remove support for now-unnecessary option,
28605 --cvs-user, and envvars CVS_USER, CVS_RSH.
28607 2007-10-24 Jim Meyering <meyering@redhat.com>
28609 Avoid diagnostics from sha1sum when there is no cached checksum.
28610 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28611 if the po.s1 file hasn't been created yet.
28613 * build-aux/bootstrap: Sync from coreutils:
28614 2007-10-24 Jim Meyering <meyering@redhat.com>
28615 Get gnulib from the git repository, not from an obsolete cvs one.
28616 * build-aux/bootstrap: Suggestion from Micah Cowan.
28617 2007-10-04 Jim Meyering <jim@meyering.net>
28618 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28619 (update_po_files): Work also when there are no .po files in po/.
28621 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28623 * README: Append ".git" to git and cg examples.
28624 Problem reported by Benoit Sigoure.
28626 2007-10-23 Micah Cowan <micah@cowan.name>
28628 * users.txt: Add wget.
28630 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28632 Fix linking of some unistdio tests on FreeBSD.
28633 * modules/unistdio/u16-vsnprintf-tests
28634 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28635 * modules/unistdio/u16-vsprintf-tests
28636 (test_u16_vsnprintf1_LDADD): Likewise.
28637 * modules/unistdio/u32-vsnprintf-tests
28638 (test_u32_vsnprintf1_LDADD): Likewise.
28639 * modules/unistdio/u32-vsprintf-tests
28640 (test_u32_vsprintf1_LDADD): Likewise.
28641 * modules/unistdio/u8-vsnprintf-tests
28642 (test_u8_vsnprintf1_LDADD): Likewise.
28643 * modules/unistdio/u8-vsprintf-tests
28644 (test_u8_vsprintf1_LDADD): Likewise.
28645 * modules/unistdio/ulc-vsnprintf-tests
28646 (test_ulc_vsnprintf1_LDADD): Likewise.
28647 * modules/unistdio/ulc-vsprintf-tests
28648 (test_ulc_vsprintf1_LDADD): Likewise.
28650 Fix linking of some uniconv tests on FreeBSD.
28651 * modules/uniconv/u16-conv-from-enc-tests
28652 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28653 * modules/uniconv/u16-conv-to-enc-tests
28654 (test_u16_conv_to_enc_LDADD): Likewise.
28655 * modules/uniconv/u16-strconv-from-enc-tests
28656 (test_u16_strconv_from_enc_LDADD): Likewise.
28657 * modules/uniconv/u16-strconv-to-enc-tests
28658 (test_u16_strconv_to_enc_LDADD): Likewise.
28659 * modules/uniconv/u32-conv-from-enc-tests
28660 (test_u32_conv_from_enc_LDADD): Likewise.
28661 * modules/uniconv/u32-conv-to-enc-tests
28662 (test_u32_conv_to_enc_LDADD): Likewise.
28663 * modules/uniconv/u32-strconv-from-enc-tests
28664 (test_u32_strconv_from_enc_LDADD): Likewise.
28665 * modules/uniconv/u32-strconv-to-enc-tests
28666 (test_u32_strconv_to_enc_LDADD): Likewise.
28667 * modules/uniconv/u8-conv-from-enc-tests
28668 (test_u8_conv_from_enc_LDADD): Likewise.
28669 * modules/uniconv/u8-conv-to-enc-tests
28670 (test_u8_conv_to_enc_LDADD): Likewise.
28671 * modules/uniconv/u8-strconv-from-enc-tests
28672 (test_u8_strconv_from_enc_LDADD): Likewise.
28673 * modules/uniconv/u8-strconv-to-enc-tests
28674 (test_u8_strconv_to_enc_LDADD): Likewise.
28676 2007-10-22 Bruno Haible <bruno@clisp.org>
28678 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28681 2007-10-22 Eric Blake <ebb9@byu.net>
28683 Tweak x*printf documentation.
28684 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28685 variable name and comments.
28686 Suggested by Bruno Haible.
28688 2007-10-22 Bruno Haible <bruno@clisp.org>
28690 * lib/acl.c (copy_acl): Fix file name in comment.
28692 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28694 Fix Tru64 problem with stdbool.h.
28695 * lib/stdbool.in.h (false, true):
28696 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28697 Don't declare as an enum in this situation; it runs afoul of Tru64.
28698 Problem reported by Steven M. Schweda in
28699 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28701 2007-10-22 Eric Blake <ebb9@byu.net>
28703 Also wrap vf?printf.
28704 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28705 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28706 (xvprintf, xvfprintf): New functions.
28708 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28710 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28711 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28713 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28714 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28716 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28718 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28721 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28724 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28725 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28727 * tests/test-i-ring.c: Work for C89.
28729 2007-10-22 Bruno Haible <bruno@clisp.org>
28731 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28732 -1u, in preprocessor expression, so that we don't test for the bug
28733 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28734 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28736 2007-10-22 Eric Blake <ebb9@byu.net>
28738 * tests/test-yesno.sh: Silence stderr during test.
28740 2007-10-22 Simon Josefsson <simon@josefsson.org>
28742 * modules/crypto/gc-camellia: New file.
28744 * m4/gc-camellia.m4: New file.
28746 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28748 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28750 2007-10-22 Simon Josefsson <simon@josefsson.org>
28752 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28753 --help to stdout. Reported by sms@antinode.org (Steven
28756 2007-10-22 Simon Josefsson <simon@josefsson.org>
28758 * users.txt: Fix link to libksba.
28760 2007-10-21 Ben Pfaff <blp@gnu.org>
28762 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28763 round.c roundf implementation that depends on floorf and ceilf to
28764 be tested unconditionally.
28766 2007-10-21 Ben Pfaff <blp@gnu.org>
28768 * m4/check-libm-func.m4: Removed.
28769 * m4/check-math-lib.m4: New file.
28770 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28771 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28772 definition and lack of AC_LIBOBJ([roundf]).
28773 * m4/roundl.m4: Ditto, and similarly for roundl.
28774 * modules/round: Reference new m4 file.
28775 * modules/roundf: Ditto.
28776 * modules/roundl: Ditto.
28777 * tests/test-round2.c (main): Use ROUND instead of round.
28778 Bug report from Bruno Haible.
28780 2007-10-21 Bruno Haible <bruno@clisp.org>
28782 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28785 2007-10-21 Bruno Haible <bruno@clisp.org>
28787 * tests/test-wcwidth.c (main): Allow negative result for some control
28790 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28791 Needed on OSF/1 5.1.
28793 2007-10-21 Bruno Haible <bruno@clisp.org>
28795 * tests/test-floorf1.c: Include isnanf.h.
28796 (main): Use isnanf() instead of isnan().
28797 * tests/test-ceilf1.c: Include isnanf.h.
28798 (main): Use isnanf() instead of isnan().
28799 * tests/test-truncf1.c: Include isnanf.h.
28800 (main): Use isnanf() instead of isnan().
28801 * tests/test-roundf1.c: Include isnanf.h.
28802 (main): Use isnanf() instead of isnan().
28804 2007-10-21 Eric Blake <ebb9@byu.net>
28806 * users.txt: Update URL for m4.
28808 2007-10-21 Bruno Haible <bruno@clisp.org>
28810 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28812 2007-10-21 Bruno Haible <bruno@clisp.org>
28814 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28815 Git's management files if the CVS files are not present.
28817 2007-10-20 Bruno Haible <bruno@clisp.org>
28819 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28822 2007-10-20 Ben Pfaff <blp@gnu.org>
28824 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28826 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28827 * lib/round.c: New file.
28828 * lib/roundf.c: New file.
28829 * lib/roundl.c: New file.
28830 * m4/round.m4: New file.
28831 * m4/roundf.m4: New file.
28832 * m4/roundl.m4: New file.
28833 * m4/check-libm-func-m4: New file.
28834 * modules/math: Replace round, roundf, roundl related @VARS@ in
28836 * modules/round: New file.
28837 * modules/round-tests: New file.
28838 * modules/roundf: New file.
28839 * modules/roundf-tests: New file.
28840 * modules/roundl: New file.
28841 * modules/roundl-tests: New file.
28842 * tests/test-round1.c: New file.
28843 * tests/test-round2.c: New file.
28844 * tests/test-roundf1.c: New file.
28845 * tests/test-roundf2.c: New file.
28846 * tests/test-roundl.c: New file.
28847 * doc/functions/round.texi: Mention round module.
28848 * doc/functions/roundf.texi: Mention roundf module.
28849 * doc/functions/roundl.texi: Mention roundl module.
28850 * MODULES.html.sh: Mention new modules.
28851 Thanks to Bruno Haible for suggestions.
28853 2007-10-20 Jim Meyering <meyering@redhat.com>
28855 * lib/xprintf.c: Include <config.h> unconditionally.
28857 Change xprintf's license to GPL.
28858 * modules/xprintf (License): s/LGPL/GPL/, since this module
28859 depends on modules (exit and exitfail) which are GPL.
28860 Suggestion from Bruno Haible.
28863 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28864 Use a clearer diagnostic.
28865 Patch from Bruno Haible.
28867 2007-10-20 Bruno Haible <bruno@clisp.org>
28869 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28870 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28871 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28873 2007-10-20 Bruno Haible <bruno@clisp.org>
28875 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28876 precision in the comparison result > x - 1 or similar.
28877 * tests/test-ceilf2.c (correct_result_p): Likewise.
28878 * tests/test-truncf2.c (correct_result_p): Likewise.
28879 * tests/test-trunc2.c (correct_result_p): Likewise.
28880 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28882 2007-10-20 Bruno Haible <bruno@clisp.org>
28884 * modules/ceil: New file.
28885 * m4/ceil.m4: New file.
28886 * doc/functions/ceil.texi: Mention the 'ceil' module.
28888 2007-10-20 Bruno Haible <bruno@clisp.org>
28890 * modules/floor: New file.
28891 * m4/floor.m4: New file.
28892 * doc/functions/floor.texi: Mention the 'floor' module.
28894 2007-10-20 Bruno Haible <bruno@clisp.org>
28896 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28898 * modules/floorf-tests (Depends-on): Likewise.
28899 * modules/truncf-tests (Depends-on): Likewise.
28900 * modules/trunc-tests (Depends-on): Likewise.
28901 Reported by Ben Pfaff.
28903 2007-10-19 Jim Meyering <meyering@redhat.com>
28905 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28906 Don't bother testing specific errno values. Just test ferror.
28908 New module: xprintf
28909 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28911 2007-10-19 Bruno Haible <bruno@clisp.org>
28913 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28915 * modules/javaexec (Makefile.am): Likewise.
28916 * modules/relocatable-prog (Makefile.am): Likewise.
28917 Suggested by Jim Meyering.
28919 2007-10-18 Bruno Haible <bruno@clisp.org>
28921 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28922 Reported by Jim Meyering.
28924 2007-10-18 Eric Blake <ebb9@byu.net>
28926 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28928 2007-10-18 Bruno Haible <bruno@clisp.org>
28930 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28931 the format string into writable memory. Needed in Fortify conditions.
28933 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28934 Bruno Haible <bruno@clisp.org>
28936 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28937 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28938 * modules/trim (Depends-on): Add mbchar.
28939 (configure.ac): Add gl_FUNC_MBRTOWC.
28940 (Makefile.am): Augment lib_SOURCES.
28942 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28944 Modify glob.c to use fstatat and dirfd, to simplify it.
28945 Suggested by Eric Blake.
28946 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28947 Don't include <stdbool.h>; not used.
28948 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28949 (link_exists_p): Simplify implementation, since we can now assume
28951 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28953 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28955 * gnulib-tool (func_get_dependencies): Fix sed script to
28958 2007-10-17 Bruno Haible <bruno@clisp.org>
28960 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28961 allow locale names without encoding suffix.
28962 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28963 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28965 2007-10-16 Bruno Haible <bruno@clisp.org>
28967 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28968 * lib/getgroups.c (getgroups): Likewise.
28969 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28971 2007-10-16 Bruno Haible <bruno@clisp.org>
28973 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28974 * modules/malloc-posix (License): Likewise.
28975 * modules/realloc-posix (License): Likewise.
28976 * modules/calloc-posix (License): Likewise.
28977 * modules/intprops (License): Change from GPL to LGPL, with
28978 Paul Eggert's approval.
28980 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28982 Merge glibc changes into lib/glob.c.
28984 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28985 2007-10-15 04:59:03 UTC. Here are the changes:
28987 2007-10-14 Ulrich Drepper <drepper@redhat.com>
28989 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28991 * lib/glob.c: Add some branch prediction throughout.
28993 2007-10-07 Ulrich Drepper <drepper@redhat.com>
28996 * lib/glob.c (glob): Recognize patterns starting \/.
28998 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29001 * lib/glob.c (attribute_hidden): Define if not defined.
29002 (glob): Unescape dirname, filename or username when needed and not
29003 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29004 is NULL. Handle unescaped [ in pattern without closing ].
29005 Don't pass GLOB_CHECK down to recursive glob for directories.
29006 (__glob_pattern_type): New function.
29007 (__glob_pattern_p): Implement using __glob_pattern_type.
29008 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29009 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29010 Remove unreachable code.
29012 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29014 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29015 explain why there are no leaks.
29017 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29020 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29021 time, rather allocate increasingly bigger arrays of pointers, if
29022 possible with alloca, if too large with malloc.
29024 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29026 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29027 Problem reported by H.Merijn Brand in
29028 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29029 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29030 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29032 2007-10-15 Bruno Haible <bruno@clisp.org>
29034 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29035 with explicit rpl_ prefix.
29036 * lib/fopen.c (fopen): Likewise.
29037 * lib/freopen.c (freopen): Likewise.
29038 * lib/iconv.c (iconv): Likewise.
29039 * lib/iconv_close.c (iconv_close): Likewise.
29041 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29043 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29045 2007-10-15 Bruno Haible <bruno@clisp.org>
29047 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29048 <stddef.h> instead of <stdlib.h> since we only need NULL.
29049 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29051 2007-10-15 Bruno Haible <bruno@clisp.org>
29053 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29054 Replace paragraph talking about LIBOBJS.
29055 Reported by Colin Watson <cjwatson@debian.org>.
29057 2007-10-15 Bruno Haible <bruno@clisp.org>
29059 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29060 <stdlib.h> before using NULL.
29062 2007-10-15 Simon Josefsson <simon@josefsson.org>
29064 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29065 Reported by Albert Chin <china@thewrittenword.com>.
29067 2007-10-14 Bruno Haible <bruno@clisp.org>
29069 * modules/iconv_open-utf-tests: New file.
29070 * tests/test-iconv-utf.c: New file.
29072 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29073 * modules/iconv_open-utf: New file.
29074 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29075 (iconv, iconv_close): New declarations.
29076 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29078 (iconv_open): Add special handling of conversion between UTF-8 and
29079 UTF-{16,32}{BE,LE}.
29080 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29081 * lib/iconv_close.c: New file.
29082 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29083 gl_FUNC_ICONV_OPEN.
29084 (gl_FUNC_ICONV_OPEN): Use it.
29085 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29086 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29087 and REPLACE_ICONV_UTF.
29088 * modules/iconv_open (Depends-on): Add c-strcase.
29089 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29091 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29093 2007-10-13 Albert Chin <china@thewrittenword.com>
29094 Bruno Haible <bruno@clisp.org>
29096 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29097 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29099 2007-10-13 Bruno Haible <bruno@clisp.org>
29101 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29102 defined, use the ISO C99 inline semantics.
29103 * lib/argp.h (ARGP_EI): Likewise.
29105 2007-10-13 Bruno Haible <bruno@clisp.org>
29107 Handle 'inline' change in gcc 4.3.0.
29108 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29109 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29110 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29111 argp_fmtstream_point): Disable 'extern' declaration if the function
29112 definition is going to be provided inline.
29113 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29114 semantics, not the ISO C99 inline semantics.
29115 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29116 'extern' declaration if the function definition is going to be provided
29118 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29119 the GNU C inline semantics, not the ISO C99 inline semantics. With
29120 GCC 4.2, avoid a warning.
29122 2007-10-13 Bruno Haible <bruno@clisp.org>
29124 * lib/freading.h (freading): Enable the use of __freading for
29126 * lib/freading.c (freading): Likewise.
29128 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29130 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29131 "warning: C99 inline functions are not supported; using GNU89".
29133 2007-10-12 Bruno Haible <bruno@clisp.org>
29135 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29137 * tests/test-ceilf2.c: New file.
29138 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29140 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29141 * modules/ceilf-tests: Update.
29143 2007-10-12 Bruno Haible <bruno@clisp.org>
29145 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29147 * tests/test-floorf2.c: New file.
29148 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29150 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29151 * modules/floorf-tests: Update.
29153 2007-10-12 Bruno Haible <bruno@clisp.org>
29155 * tests/test-trunc2.c: New file.
29156 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29158 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29159 * modules/trunc-tests: Update.
29161 2007-10-12 Bruno Haible <bruno@clisp.org>
29163 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29165 * tests/test-truncf2.c: New file.
29166 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29168 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29169 * modules/truncf-tests: Update.
29171 2007-10-11 Eric Blake <ebb9@byu.net>
29173 Don't claim strerror is broken on Interix.
29174 * doc/functions/strerror.texi (strerror): Known broken systems are
29175 now Solaris 8, and not Interix.
29176 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29177 Interix on cross-compile.
29178 Reported by Martin Koeppe in
29179 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29181 2007-10-11 Bruno Haible <bruno@clisp.org>
29183 * modules/i-ring-tests: New file.
29184 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29187 2007-10-11 Bruno Haible <bruno@clisp.org>
29189 * modules/filenamecat-tests: New file.
29190 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29191 * lib/filenamecat.c: Remove test code.
29193 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29195 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29197 * lib/strerror.c: Include <string.h> always, to test interface,
29198 and to remove the need for the dummy.
29199 Include intprops.h to compute width instead of doing it ourselves
29200 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29201 (strerror): Define it to return NULL if there's no system strerror.
29202 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29203 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29204 ancient pre-strerror Unix systems well any more. Saying "unknown
29205 system error" is enough.
29206 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29207 simpler strerror.c implementation.
29208 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29209 Simplify the tests to reflect the simpler strerror implementation.
29210 * modules/strerror (Depends-on): Add intprops.
29212 2007-10-09 Eric Blake <ebb9@byu.net>
29214 Silence test-fpending.
29215 * modules/fpending-tests (Files): Add wrapper script.
29216 * tests/test-fpending.sh: New file.
29218 2007-10-09 Bruno Haible <bruno@clisp.org>
29220 * MODULES.html.sh (func_module): Don't create a hyperlink for
29221 function names like 'printf_frexp'.
29222 (Misc): Add crc, memxor.
29223 (Characteristics of floating types): New section.
29224 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29225 isnanf-nolibm, signbit, trunc, truncf, truncl.
29226 (Enhancements for ISO C 99 functions): New subsection Input/output.
29227 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29228 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29229 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29230 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29231 (Enhancements for POSIX:2001 functions): Add chdir-long.
29232 (File system functions): Add areadlink, chdir-safer, read-file.
29233 Remove cycle-check.
29234 (File system as inode set): New section.
29235 (Date and time): Add gethrxtime.
29236 (Multithreading): Add openmp.
29237 (Internationalization functions): Add localename.
29238 (Unicode string functions): Add unistr/u*-mbsnlen.
29239 (Support for maintaining and releasing projects): Add git-version-gen.
29240 (Lone files): Remove directories.
29242 2007-10-08 Ben Pfaff <blp@gnu.org>
29244 * lib/xmalloca.h: Fix typo in comment.
29246 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29248 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29249 when avoiding problems with integer overflow. Use a portable test
29252 2007-10-08 Simon Josefsson <simon@josefsson.org>
29254 * modules/dummy (License): Change to LGPLv2+.
29255 * modules/float (License): Likewise
29256 * modules/realloc (License): Likewise
29257 * modules/stdlib (License): Likewise
29259 2007-10-07 Bruno Haible <bruno@clisp.org>
29261 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29262 * floor.c (TWO_MANT_DIG): Likewise.
29263 * ceil.c (TWO_MANT_DIG): Likewise.
29264 Reported by Ben Pfaff.
29266 2007-10-07 Bruno Haible <bruno@clisp.org>
29268 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29269 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29270 * lib/frexp.c (FUNC): Likewise.
29271 * lib/printf-frexp.h (printf_frexp): Likewise.
29272 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29273 * lib/printf-frexp.c (FUNC): Likewise.
29274 Suggested by Jim Meyering.
29276 2007-10-07 Jim Meyering <meyering@redhat.com>
29278 Make xnanosleep's integer overflow test more robust.
29279 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29280 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29282 2007-10-07 Bruno Haible <bruno@clisp.org>
29284 * NEWS: Mention the license change.
29286 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29287 abbreviations in the modules files.
29289 Change copyright notice from GPLv2+ to GPLv3+.
29290 * README: Change copyright notice.
29291 * MODULES.html.sh: Likewise.
29292 * build-aux/bootstrap.conf: Likewise.
29293 * build-aux/config.libpath: Likewise.
29294 * build-aux/csharpcomp.sh.in: Likewise.
29295 * build-aux/csharpexec.sh.in: Likewise.
29296 * build-aux/install-reloc: Likewise.
29297 * build-aux/javacomp.sh.in: Likewise.
29298 * build-aux/javaexec.sh.in: Likewise.
29299 * build-aux/ldd.sh.in: Likewise.
29300 * build-aux/reloc-ldflags: Likewise.
29301 * build-aux/relocatable.sh.in: Likewise.
29302 * build-aux/x-to-1.in: Likewise.
29303 * check-module: Likewise.
29304 * config/srclistvars.sh: Likewise.
29305 * gnulib-tool: Likewise.
29306 * lib/acl-internal.h: Likewise.
29307 * lib/acl.c: Likewise.
29308 * lib/acl.h: Likewise.
29309 * lib/acl_entries.c: Likewise.
29310 * lib/areadlink-with-size.c: Likewise.
29311 * lib/areadlink.c: Likewise.
29312 * lib/areadlink.h: Likewise.
29313 * lib/argmatch.c: Likewise.
29314 * lib/argmatch.h: Likewise.
29315 * lib/argp-ba.c: Likewise.
29316 * lib/argp-eexst.c: Likewise.
29317 * lib/argp-fmtstream.c: Likewise.
29318 * lib/argp-fmtstream.h: Likewise.
29319 * lib/argp-fs-xinl.c: Likewise.
29320 * lib/argp-help.c: Likewise.
29321 * lib/argp-namefrob.h: Likewise.
29322 * lib/argp-parse.c: Likewise.
29323 * lib/argp-pin.c: Likewise.
29324 * lib/argp-pv.c: Likewise.
29325 * lib/argp-pvh.c: Likewise.
29326 * lib/argp-xinl.c: Likewise.
29327 * lib/argp.h: Likewise.
29328 * lib/at-func.c: Likewise.
29329 * lib/atanl.c: Likewise.
29330 * lib/backupfile.c: Likewise.
29331 * lib/backupfile.h: Likewise.
29332 * lib/basename.c: Likewise.
29333 * lib/binary-io.h: Likewise.
29334 * lib/byteswap.in.h: Likewise.
29335 * lib/c-stack.c: Likewise.
29336 * lib/c-stack.h: Likewise.
29337 * lib/c-strcasestr.c: Likewise.
29338 * lib/c-strcasestr.h: Likewise.
29339 * lib/c-strstr.c: Likewise.
29340 * lib/c-strstr.h: Likewise.
29341 * lib/c-strtod.c: Likewise.
29342 * lib/calloc.c: Likewise.
29343 * lib/canon-host.c: Likewise.
29344 * lib/canon-host.h: Likewise.
29345 * lib/canonicalize-lgpl.c: Likewise.
29346 * lib/canonicalize.c: Likewise.
29347 * lib/canonicalize.h: Likewise.
29348 * lib/ceil.c: Likewise.
29349 * lib/ceilf.c: Likewise.
29350 * lib/ceill.c: Likewise.
29351 * lib/chdir-long.c: Likewise.
29352 * lib/chdir-long.h: Likewise.
29353 * lib/chdir-safer.c: Likewise.
29354 * lib/chdir-safer.h: Likewise.
29355 * lib/chown.c: Likewise.
29356 * lib/classpath.c: Likewise.
29357 * lib/classpath.h: Likewise.
29358 * lib/clean-temp.c: Likewise.
29359 * lib/clean-temp.h: Likewise.
29360 * lib/cloexec.c: Likewise.
29361 * lib/close-stream.c: Likewise.
29362 * lib/closein.c: Likewise.
29363 * lib/closein.h: Likewise.
29364 * lib/closeout.c: Likewise.
29365 * lib/closeout.h: Likewise.
29366 * lib/concat-filename.c: Likewise.
29367 * lib/copy-file.c: Likewise.
29368 * lib/copy-file.h: Likewise.
29369 * lib/count-one-bits.h: Likewise.
29370 * lib/crc.c: Likewise.
29371 * lib/crc.h: Likewise.
29372 * lib/creat-safer.c: Likewise.
29373 * lib/csharpcomp.c: Likewise.
29374 * lib/csharpcomp.h: Likewise.
29375 * lib/csharpexec.c: Likewise.
29376 * lib/csharpexec.h: Likewise.
29377 * lib/cycle-check.c: Likewise.
29378 * lib/cycle-check.h: Likewise.
29379 * lib/diacrit.c: Likewise.
29380 * lib/diacrit.h: Likewise.
29381 * lib/diffseq.h: Likewise.
29382 * lib/dirchownmod.c: Likewise.
29383 * lib/dirent.in.h: Likewise.
29384 * lib/dirfd.c: Likewise.
29385 * lib/dirfd.h: Likewise.
29386 * lib/dirname.c: Likewise.
29387 * lib/dirname.h: Likewise.
29388 * lib/dummy.c: Likewise.
29389 * lib/dup-safer.c: Likewise.
29390 * lib/dup2.c: Likewise.
29391 * lib/eealloc.h: Likewise.
29392 * lib/error.c: Likewise.
29393 * lib/error.h: Likewise.
29394 * lib/euidaccess.c: Likewise.
29395 * lib/exclude.c: Likewise.
29396 * lib/exclude.h: Likewise.
29397 * lib/execute.c: Likewise.
29398 * lib/execute.h: Likewise.
29399 * lib/exitfail.c: Likewise.
29400 * lib/exitfail.h: Likewise.
29401 * lib/expl.c: Likewise.
29402 * lib/fatal-signal.c: Likewise.
29403 * lib/fatal-signal.h: Likewise.
29404 * lib/fbufmode.c: Likewise.
29405 * lib/fbufmode.h: Likewise.
29406 * lib/fchdir.c: Likewise.
29407 * lib/fchmodat.c: Likewise.
29408 * lib/fchownat.c: Likewise.
29409 * lib/fcntl--.h: Likewise.
29410 * lib/fcntl-safer.h: Likewise.
29411 * lib/fcntl.in.h: Likewise.
29412 * lib/fd-safer.c: Likewise.
29413 * lib/fflush.c: Likewise.
29414 * lib/file-has-acl.c: Likewise.
29415 * lib/file-set.c: Likewise.
29416 * lib/file-type.c: Likewise.
29417 * lib/file-type.h: Likewise.
29418 * lib/fileblocks.c: Likewise.
29419 * lib/filemode.c: Likewise.
29420 * lib/filemode.h: Likewise.
29421 * lib/filename.h: Likewise.
29422 * lib/filenamecat.c: Likewise.
29423 * lib/filenamecat.h: Likewise.
29424 * lib/findprog.c: Likewise.
29425 * lib/findprog.h: Likewise.
29426 * lib/float.in.h: Likewise.
29427 * lib/floor.c: Likewise.
29428 * lib/floorf.c: Likewise.
29429 * lib/floorl.c: Likewise.
29430 * lib/fopen-safer.c: Likewise.
29431 * lib/fopen.c: Likewise.
29432 * lib/fpending.c: Likewise.
29433 * lib/fpending.h: Likewise.
29434 * lib/fprintf.c: Likewise.
29435 * lib/fprintftime.h: Likewise.
29436 * lib/fpucw.h: Likewise.
29437 * lib/fpurge.c: Likewise.
29438 * lib/fpurge.h: Likewise.
29439 * lib/freadable.c: Likewise.
29440 * lib/freadable.h: Likewise.
29441 * lib/freadahead.c: Likewise.
29442 * lib/freadahead.h: Likewise.
29443 * lib/freading.c: Likewise.
29444 * lib/freading.h: Likewise.
29445 * lib/free.c: Likewise.
29446 * lib/freopen.c: Likewise.
29447 * lib/frexp.c: Likewise.
29448 * lib/frexpl.c: Likewise.
29449 * lib/fseek.c: Likewise.
29450 * lib/fseterr.c: Likewise.
29451 * lib/fseterr.h: Likewise.
29452 * lib/fstatat.c: Likewise.
29453 * lib/fstrcmp.c: Likewise.
29454 * lib/fstrcmp.h: Likewise.
29455 * lib/fsusage.c: Likewise.
29456 * lib/fsusage.h: Likewise.
29457 * lib/ftell.c: Likewise.
29458 * lib/ftello.c: Likewise.
29459 * lib/fts-cycle.c: Likewise.
29460 * lib/fts.c: Likewise.
29461 * lib/fts_.h: Likewise.
29462 * lib/full-read.c: Likewise.
29463 * lib/full-read.h: Likewise.
29464 * lib/full-write.c: Likewise.
29465 * lib/full-write.h: Likewise.
29466 * lib/fwritable.c: Likewise.
29467 * lib/fwritable.h: Likewise.
29468 * lib/fwriteerror.c: Likewise.
29469 * lib/fwriteerror.h: Likewise.
29470 * lib/fwriting.c: Likewise.
29471 * lib/fwriting.h: Likewise.
29472 * lib/gcd.c: Likewise.
29473 * lib/gcd.h: Likewise.
29474 * lib/getcwd.c: Likewise.
29475 * lib/getdate.h: Likewise.
29476 * lib/getdate.y: Likewise.
29477 * lib/getdomainname.c: Likewise.
29478 * lib/getdomainname.h: Likewise.
29479 * lib/getgroups.c: Likewise.
29480 * lib/gethostname.c: Likewise.
29481 * lib/gethrxtime.c: Likewise.
29482 * lib/gethrxtime.h: Likewise.
29483 * lib/getloadavg.c: Likewise.
29484 * lib/getndelim2.c: Likewise.
29485 * lib/getndelim2.h: Likewise.
29486 * lib/getnline.c: Likewise.
29487 * lib/getnline.h: Likewise.
29488 * lib/getopt.c: Likewise.
29489 * lib/getopt.in.h: Likewise.
29490 * lib/getopt1.c: Likewise.
29491 * lib/getopt_int.h: Likewise.
29492 * lib/getpagesize.h: Likewise.
29493 * lib/getsubopt.c: Likewise.
29494 * lib/gettime.c: Likewise.
29495 * lib/getugroups.c: Likewise.
29496 * lib/getugroups.h: Likewise.
29497 * lib/getusershell.c: Likewise.
29498 * lib/gl_anyavltree_list1.h: Likewise.
29499 * lib/gl_anyavltree_list2.h: Likewise.
29500 * lib/gl_anyhash_list1.h: Likewise.
29501 * lib/gl_anyhash_list2.h: Likewise.
29502 * lib/gl_anylinked_list1.h: Likewise.
29503 * lib/gl_anylinked_list2.h: Likewise.
29504 * lib/gl_anyrbtree_list1.h: Likewise.
29505 * lib/gl_anyrbtree_list2.h: Likewise.
29506 * lib/gl_anytree_list1.h: Likewise.
29507 * lib/gl_anytree_list2.h: Likewise.
29508 * lib/gl_anytree_oset.h: Likewise.
29509 * lib/gl_anytreehash_list1.h: Likewise.
29510 * lib/gl_anytreehash_list2.h: Likewise.
29511 * lib/gl_array_list.c: Likewise.
29512 * lib/gl_array_list.h: Likewise.
29513 * lib/gl_array_oset.c: Likewise.
29514 * lib/gl_array_oset.h: Likewise.
29515 * lib/gl_avltree_list.c: Likewise.
29516 * lib/gl_avltree_list.h: Likewise.
29517 * lib/gl_avltree_oset.c: Likewise.
29518 * lib/gl_avltree_oset.h: Likewise.
29519 * lib/gl_avltreehash_list.c: Likewise.
29520 * lib/gl_avltreehash_list.h: Likewise.
29521 * lib/gl_carray_list.c: Likewise.
29522 * lib/gl_carray_list.h: Likewise.
29523 * lib/gl_linked_list.c: Likewise.
29524 * lib/gl_linked_list.h: Likewise.
29525 * lib/gl_linkedhash_list.c: Likewise.
29526 * lib/gl_linkedhash_list.h: Likewise.
29527 * lib/gl_list.c: Likewise.
29528 * lib/gl_list.h: Likewise.
29529 * lib/gl_oset.c: Likewise.
29530 * lib/gl_oset.h: Likewise.
29531 * lib/gl_rbtree_list.c: Likewise.
29532 * lib/gl_rbtree_list.h: Likewise.
29533 * lib/gl_rbtree_oset.c: Likewise.
29534 * lib/gl_rbtree_oset.h: Likewise.
29535 * lib/gl_rbtreehash_list.c: Likewise.
29536 * lib/gl_rbtreehash_list.h: Likewise.
29537 * lib/gl_sublist.c: Likewise.
29538 * lib/gl_sublist.h: Likewise.
29539 * lib/group-member.c: Likewise.
29540 * lib/group-member.h: Likewise.
29541 * lib/hard-locale.c: Likewise.
29542 * lib/hard-locale.h: Likewise.
29543 * lib/hash-pjw.c: Likewise.
29544 * lib/hash-pjw.h: Likewise.
29545 * lib/hash-triple.c: Likewise.
29546 * lib/hash.c: Likewise.
29547 * lib/hash.h: Likewise.
29548 * lib/human.c: Likewise.
29549 * lib/human.h: Likewise.
29550 * lib/i-ring.c: Likewise.
29551 * lib/i-ring.h: Likewise.
29552 * lib/idcache.c: Likewise.
29553 * lib/imaxabs.c: Likewise.
29554 * lib/imaxdiv.c: Likewise.
29555 * lib/inet_pton.c: Likewise.
29556 * lib/inet_pton.h: Likewise.
29557 * lib/intprops.h: Likewise.
29558 * lib/inttostr.c: Likewise.
29559 * lib/inttostr.h: Likewise.
29560 * lib/inttypes.in.h: Likewise.
29561 * lib/isapipe.c: Likewise.
29562 * lib/isdir.c: Likewise.
29563 * lib/isnan.c: Likewise.
29564 * lib/isnan.h: Likewise.
29565 * lib/isnanf.c: Likewise.
29566 * lib/isnanf.h: Likewise.
29567 * lib/isnanl-nolibm.h: Likewise.
29568 * lib/isnanl.c: Likewise.
29569 * lib/isnanl.h: Likewise.
29570 * lib/javacomp.c: Likewise.
29571 * lib/javacomp.h: Likewise.
29572 * lib/javaexec.c: Likewise.
29573 * lib/javaexec.h: Likewise.
29574 * lib/javaversion.c: Likewise.
29575 * lib/javaversion.h: Likewise.
29576 * lib/javaversion.java: Likewise.
29577 * lib/lbrkprop.h: Likewise.
29578 * lib/lchmod.h: Likewise.
29579 * lib/lchown.c: Likewise.
29580 * lib/ldexpl.c: Likewise.
29581 * lib/linebreak.c: Likewise.
29582 * lib/linebreak.h: Likewise.
29583 * lib/linebuffer.c: Likewise.
29584 * lib/linebuffer.h: Likewise.
29585 * lib/locale.in.h: Likewise.
29586 * lib/logl.c: Likewise.
29587 * lib/long-options.c: Likewise.
29588 * lib/long-options.h: Likewise.
29589 * lib/lstat.c: Likewise.
29590 * lib/lstat.h: Likewise.
29591 * lib/math.in.h: Likewise.
29592 * lib/mbchar.c: Likewise.
29593 * lib/mbchar.h: Likewise.
29594 * lib/mbfile.h: Likewise.
29595 * lib/mbiter.h: Likewise.
29596 * lib/mbscasecmp.c: Likewise.
29597 * lib/mbscasestr.c: Likewise.
29598 * lib/mbschr.c: Likewise.
29599 * lib/mbscspn.c: Likewise.
29600 * lib/mbslen.c: Likewise.
29601 * lib/mbsncasecmp.c: Likewise.
29602 * lib/mbsnlen.c: Likewise.
29603 * lib/mbspbrk.c: Likewise.
29604 * lib/mbspcasecmp.c: Likewise.
29605 * lib/mbsrchr.c: Likewise.
29606 * lib/mbssep.c: Likewise.
29607 * lib/mbsspn.c: Likewise.
29608 * lib/mbsstr.c: Likewise.
29609 * lib/mbstok_r.c: Likewise.
29610 * lib/mbswidth.c: Likewise.
29611 * lib/mbswidth.h: Likewise.
29612 * lib/mbuiter.h: Likewise.
29613 * lib/memcasecmp.c: Likewise.
29614 * lib/memcasecmp.h: Likewise.
29615 * lib/memchr.c: Likewise.
29616 * lib/memcmp.c: Likewise.
29617 * lib/memcoll.c: Likewise.
29618 * lib/memcoll.h: Likewise.
29619 * lib/memcpy.c: Likewise.
29620 * lib/memrchr.c: Likewise.
29621 * lib/mkancesdirs.c: Likewise.
29622 * lib/mkdir-p.c: Likewise.
29623 * lib/mkdir-p.h: Likewise.
29624 * lib/mkdir.c: Likewise.
29625 * lib/mkdirat.c: Likewise.
29626 * lib/mkdtemp.c: Likewise.
29627 * lib/mkstemp-safer.c: Likewise.
29628 * lib/mkstemp.c: Likewise.
29629 * lib/modechange.c: Likewise.
29630 * lib/modechange.h: Likewise.
29631 * lib/mountlist.c: Likewise.
29632 * lib/mountlist.h: Likewise.
29633 * lib/mpsort.c: Likewise.
29634 * lib/nanosleep.c: Likewise.
29635 * lib/obstack.c: Likewise.
29636 * lib/obstack.h: Likewise.
29637 * lib/open-safer.c: Likewise.
29638 * lib/open.c: Likewise.
29639 * lib/openat-die.c: Likewise.
29640 * lib/openat-priv.h: Likewise.
29641 * lib/openat-proc.c: Likewise.
29642 * lib/openat.c: Likewise.
29643 * lib/openat.h: Likewise.
29644 * lib/pagealign_alloc.c: Likewise.
29645 * lib/pagealign_alloc.h: Likewise.
29646 * lib/physmem.c: Likewise.
29647 * lib/physmem.h: Likewise.
29648 * lib/pipe-safer.c: Likewise.
29649 * lib/pipe.c: Likewise.
29650 * lib/pipe.h: Likewise.
29651 * lib/posixtm.c: Likewise.
29652 * lib/posixtm.h: Likewise.
29653 * lib/posixver.c: Likewise.
29654 * lib/printf-frexp.c: Likewise.
29655 * lib/printf-frexp.h: Likewise.
29656 * lib/printf-frexpl.c: Likewise.
29657 * lib/printf-frexpl.h: Likewise.
29658 * lib/printf.c: Likewise.
29659 * lib/progname.c: Likewise.
29660 * lib/progname.h: Likewise.
29661 * lib/progreloc.c: Likewise.
29662 * lib/putenv.c: Likewise.
29663 * lib/quote.c: Likewise.
29664 * lib/quote.h: Likewise.
29665 * lib/quotearg.c: Likewise.
29666 * lib/quotearg.h: Likewise.
29667 * lib/raise.c: Likewise.
29668 * lib/readline.c: Likewise.
29669 * lib/readline.h: Likewise.
29670 * lib/readlink.c: Likewise.
29671 * lib/readtokens.c: Likewise.
29672 * lib/readtokens.h: Likewise.
29673 * lib/readtokens0.c: Likewise.
29674 * lib/readtokens0.h: Likewise.
29675 * lib/readutmp.c: Likewise.
29676 * lib/readutmp.h: Likewise.
29677 * lib/realloc.c: Likewise.
29678 * lib/relocwrapper.c: Likewise.
29679 * lib/rename-dest-slash.c: Likewise.
29680 * lib/rename.c: Likewise.
29681 * lib/rmdir.c: Likewise.
29682 * lib/rpmatch.c: Likewise.
29683 * lib/safe-read.c: Likewise.
29684 * lib/safe-read.h: Likewise.
29685 * lib/safe-write.c: Likewise.
29686 * lib/safe-write.h: Likewise.
29687 * lib/same-inode.h: Likewise.
29688 * lib/same.c: Likewise.
29689 * lib/same.h: Likewise.
29690 * lib/save-cwd.c: Likewise.
29691 * lib/save-cwd.h: Likewise.
29692 * lib/savedir.c: Likewise.
29693 * lib/savedir.h: Likewise.
29694 * lib/savewd.c: Likewise.
29695 * lib/savewd.h: Likewise.
29696 * lib/search.in.h: Likewise.
29697 * lib/setenv.c: Likewise.
29698 * lib/setenv.h: Likewise.
29699 * lib/settime.c: Likewise.
29700 * lib/sh-quote.c: Likewise.
29701 * lib/sh-quote.h: Likewise.
29702 * lib/sig2str.c: Likewise.
29703 * lib/sig2str.h: Likewise.
29704 * lib/signal.in.h: Likewise.
29705 * lib/signbitd.c: Likewise.
29706 * lib/signbitf.c: Likewise.
29707 * lib/signbitl.c: Likewise.
29708 * lib/sigprocmask.c: Likewise.
29709 * lib/sincosl.c: Likewise.
29710 * lib/sleep.c: Likewise.
29711 * lib/sprintf.c: Likewise.
29712 * lib/sqrtl.c: Likewise.
29713 * lib/stat-time.h: Likewise.
29714 * lib/stdio--.h: Likewise.
29715 * lib/stdio-safer.h: Likewise.
29716 * lib/stdlib--.h: Likewise.
29717 * lib/stdlib-safer.h: Likewise.
29718 * lib/stdlib.in.h: Likewise.
29719 * lib/stpcpy.c: Likewise.
29720 * lib/stpncpy.c: Likewise.
29721 * lib/strchrnul.c: Likewise.
29722 * lib/strcspn.c: Likewise.
29723 * lib/strerror.c: Likewise.
29724 * lib/strftime.c: Likewise.
29725 * lib/strftime.h: Likewise.
29726 * lib/striconveh.c: Likewise.
29727 * lib/striconveh.h: Likewise.
29728 * lib/striconveha.c: Likewise.
29729 * lib/striconveha.h: Likewise.
29730 * lib/stripslash.c: Likewise.
29731 * lib/strnlen1.c: Likewise.
29732 * lib/strnlen1.h: Likewise.
29733 * lib/strtod.c: Likewise.
29734 * lib/strtoimax.c: Likewise.
29735 * lib/strtok_r.c: Likewise.
29736 * lib/strtol.c: Likewise.
29737 * lib/strtoll.c: Likewise.
29738 * lib/strtoul.c: Likewise.
29739 * lib/strtoull.c: Likewise.
29740 * lib/sysexits.in.h: Likewise.
29741 * lib/tempname.c: Likewise.
29742 * lib/tempname.h: Likewise.
29743 * lib/timespec.h: Likewise.
29744 * lib/tls.c: Likewise.
29745 * lib/tls.h: Likewise.
29746 * lib/tmpdir.c: Likewise.
29747 * lib/tmpdir.h: Likewise.
29748 * lib/tmpfile-safer.c: Likewise.
29749 * lib/tmpfile.c: Likewise.
29750 * lib/trigl.c: Likewise.
29751 * lib/trigl.h: Likewise.
29752 * lib/trim.c: Likewise.
29753 * lib/trim.h: Likewise.
29754 * lib/trunc.c: Likewise.
29755 * lib/truncf.c: Likewise.
29756 * lib/truncl.c: Likewise.
29757 * lib/tsearch.c: Likewise.
29758 * lib/unicodeio.c: Likewise.
29759 * lib/unicodeio.h: Likewise.
29760 * lib/unistd--.h: Likewise.
29761 * lib/unistd-safer.h: Likewise.
29762 * lib/unistdio/ulc-fprintf.c: Likewise.
29763 * lib/unistdio/ulc-vfprintf.c: Likewise.
29764 * lib/unlinkdir.c: Likewise.
29765 * lib/unlinkdir.h: Likewise.
29766 * lib/unlocked-io.h: Likewise.
29767 * lib/unsetenv.c: Likewise.
29768 * lib/userspec.c: Likewise.
29769 * lib/utime.c: Likewise.
29770 * lib/utimecmp.c: Likewise.
29771 * lib/utimecmp.h: Likewise.
29772 * lib/utimens.c: Likewise.
29773 * lib/verify.h: Likewise.
29774 * lib/verror.c: Likewise.
29775 * lib/verror.h: Likewise.
29776 * lib/version-etc-fsf.c: Likewise.
29777 * lib/version-etc.c: Likewise.
29778 * lib/version-etc.h: Likewise.
29779 * lib/vfprintf.c: Likewise.
29780 * lib/vprintf.c: Likewise.
29781 * lib/vsprintf.c: Likewise.
29782 * lib/w32spawn.h: Likewise.
29783 * lib/wait-process.c: Likewise.
29784 * lib/wait-process.h: Likewise.
29785 * lib/wcwidth.c: Likewise.
29786 * lib/write-any-file.c: Likewise.
29787 * lib/xalloc-die.c: Likewise.
29788 * lib/xalloc.h: Likewise.
29789 * lib/xasprintf.c: Likewise.
29790 * lib/xgetcwd.c: Likewise.
29791 * lib/xgetcwd.h: Likewise.
29792 * lib/xgetdomainname.c: Likewise.
29793 * lib/xgetdomainname.h: Likewise.
29794 * lib/xgethostname.c: Likewise.
29795 * lib/xmalloc.c: Likewise.
29796 * lib/xmalloca.c: Likewise.
29797 * lib/xmalloca.h: Likewise.
29798 * lib/xmemcoll.c: Likewise.
29799 * lib/xnanosleep.c: Likewise.
29800 * lib/xreadlink.c: Likewise.
29801 * lib/xreadlink.h: Likewise.
29802 * lib/xsetenv.c: Likewise.
29803 * lib/xsetenv.h: Likewise.
29804 * lib/xstriconv.c: Likewise.
29805 * lib/xstriconv.h: Likewise.
29806 * lib/xstrndup.c: Likewise.
29807 * lib/xstrndup.h: Likewise.
29808 * lib/xstrtod.c: Likewise.
29809 * lib/xstrtod.h: Likewise.
29810 * lib/xstrtol-error.c: Likewise.
29811 * lib/xstrtol.c: Likewise.
29812 * lib/xstrtol.h: Likewise.
29813 * lib/xtime.h: Likewise.
29814 * lib/xvasprintf.c: Likewise.
29815 * lib/xvasprintf.h: Likewise.
29816 * lib/yesno.c: Likewise.
29817 * lib/yesno.h: Likewise.
29818 * posix-modules: Likewise.
29819 * tests/test-alloca-opt.c: Likewise.
29820 * tests/test-arcfour.c: Likewise.
29821 * tests/test-arctwo.c: Likewise.
29822 * tests/test-argmatch.c: Likewise.
29823 * tests/test-argp-2.sh: Likewise.
29824 * tests/test-argp.c: Likewise.
29825 * tests/test-arpa_inet.c: Likewise.
29826 * tests/test-array_list.c: Likewise.
29827 * tests/test-array_oset.c: Likewise.
29828 * tests/test-atexit.c: Likewise.
29829 * tests/test-avltree_list.c: Likewise.
29830 * tests/test-avltree_oset.c: Likewise.
29831 * tests/test-avltreehash_list.c: Likewise.
29832 * tests/test-base64.c: Likewise.
29833 * tests/test-binary-io.c: Likewise.
29834 * tests/test-byteswap.c: Likewise.
29835 * tests/test-c-ctype.c: Likewise.
29836 * tests/test-c-strcasecmp.c: Likewise.
29837 * tests/test-c-strcasestr.c: Likewise.
29838 * tests/test-c-strncasecmp.c: Likewise.
29839 * tests/test-c-strstr.c: Likewise.
29840 * tests/test-canonicalize-lgpl.c: Likewise.
29841 * tests/test-canonicalize.c: Likewise.
29842 * tests/test-carray_list.c: Likewise.
29843 * tests/test-ceilf.c: Likewise.
29844 * tests/test-ceill.c: Likewise.
29845 * tests/test-count-one-bits.c: Likewise.
29846 * tests/test-crc.c: Likewise.
29847 * tests/test-dirname.c: Likewise.
29848 * tests/test-fbufmode.c: Likewise.
29849 * tests/test-fcntl.c: Likewise.
29850 * tests/test-fflush.c: Likewise.
29851 * tests/test-floorf.c: Likewise.
29852 * tests/test-floorl.c: Likewise.
29853 * tests/test-fopen.c: Likewise.
29854 * tests/test-fprintf-posix.c: Likewise.
29855 * tests/test-fprintf-posix.h: Likewise.
29856 * tests/test-fpurge.c: Likewise.
29857 * tests/test-freadable.c: Likewise.
29858 * tests/test-freadahead.c: Likewise.
29859 * tests/test-freading.c: Likewise.
29860 * tests/test-freopen.c: Likewise.
29861 * tests/test-frexp.c: Likewise.
29862 * tests/test-frexpl.c: Likewise.
29863 * tests/test-fseek.c: Likewise.
29864 * tests/test-fseeko.c: Likewise.
29865 * tests/test-fseterr.c: Likewise.
29866 * tests/test-fstrcmp.c: Likewise.
29867 * tests/test-ftell.c: Likewise.
29868 * tests/test-ftello.c: Likewise.
29869 * tests/test-fwritable.c: Likewise.
29870 * tests/test-fwriting.c: Likewise.
29871 * tests/test-getaddrinfo.c: Likewise.
29872 * tests/test-getpass.c: Likewise.
29873 * tests/test-gettimeofday.c: Likewise.
29874 * tests/test-hmac-md5.c: Likewise.
29875 * tests/test-hmac-sha1.c: Likewise.
29876 * tests/test-iconv.c: Likewise.
29877 * tests/test-iconvme.c: Likewise.
29878 * tests/test-inttypes.c: Likewise.
29879 * tests/test-isnan.c: Likewise.
29880 * tests/test-isnanf.c: Likewise.
29881 * tests/test-isnanl-nolibm.c: Likewise.
29882 * tests/test-isnanl.c: Likewise.
29883 * tests/test-isnanl.h: Likewise.
29884 * tests/test-ldexpl.c: Likewise.
29885 * tests/test-linked_list.c: Likewise.
29886 * tests/test-linkedhash_list.c: Likewise.
29887 * tests/test-locale.c: Likewise.
29888 * tests/test-localename.c: Likewise.
29889 * tests/test-lock.c: Likewise.
29890 * tests/test-lseek.c: Likewise.
29891 * tests/test-malloca.c: Likewise.
29892 * tests/test-math.c: Likewise.
29893 * tests/test-mbscasecmp.c: Likewise.
29894 * tests/test-mbscasestr1.c: Likewise.
29895 * tests/test-mbscasestr2.c: Likewise.
29896 * tests/test-mbscasestr3.c: Likewise.
29897 * tests/test-mbscasestr4.c: Likewise.
29898 * tests/test-mbschr.c: Likewise.
29899 * tests/test-mbscspn.c: Likewise.
29900 * tests/test-mbsncasecmp.c: Likewise.
29901 * tests/test-mbspbrk.c: Likewise.
29902 * tests/test-mbspcasecmp.c: Likewise.
29903 * tests/test-mbsrchr.c: Likewise.
29904 * tests/test-mbsspn.c: Likewise.
29905 * tests/test-mbsstr1.c: Likewise.
29906 * tests/test-mbsstr2.c: Likewise.
29907 * tests/test-mbsstr3.c: Likewise.
29908 * tests/test-md5.c: Likewise.
29909 * tests/test-memmem.c: Likewise.
29910 * tests/test-netinet_in.c: Likewise.
29911 * tests/test-open.c: Likewise.
29912 * tests/test-printf-frexp.c: Likewise.
29913 * tests/test-printf-frexpl.c: Likewise.
29914 * tests/test-printf-posix.c: Likewise.
29915 * tests/test-printf-posix.h: Likewise.
29916 * tests/test-rbtree_list.c: Likewise.
29917 * tests/test-rbtree_oset.c: Likewise.
29918 * tests/test-rbtreehash_list.c: Likewise.
29919 * tests/test-read-file.c: Likewise.
29920 * tests/test-rijndael.c: Likewise.
29921 * tests/test-search.c: Likewise.
29922 * tests/test-signbit.c: Likewise.
29923 * tests/test-sleep.c: Likewise.
29924 * tests/test-snprintf-posix.c: Likewise.
29925 * tests/test-snprintf-posix.h: Likewise.
29926 * tests/test-snprintf.c: Likewise.
29927 * tests/test-sprintf-posix.c: Likewise.
29928 * tests/test-sprintf-posix.h: Likewise.
29929 * tests/test-stat-time.c: Likewise.
29930 * tests/test-stdbool.c: Likewise.
29931 * tests/test-stdint.c: Likewise.
29932 * tests/test-stdio.c: Likewise.
29933 * tests/test-stdlib.c: Likewise.
29934 * tests/test-stpncpy.c: Likewise.
29935 * tests/test-strcasestr.c: Likewise.
29936 * tests/test-striconv.c: Likewise.
29937 * tests/test-striconveh.c: Likewise.
29938 * tests/test-striconveha.c: Likewise.
29939 * tests/test-string.c: Likewise.
29940 * tests/test-sys_select.c: Likewise.
29941 * tests/test-sys_socket.c: Likewise.
29942 * tests/test-sys_stat.c: Likewise.
29943 * tests/test-sys_time.c: Likewise.
29944 * tests/test-sysexits.c: Likewise.
29945 * tests/test-time.c: Likewise.
29946 * tests/test-tls.c: Likewise.
29947 * tests/test-trunc.c: Likewise.
29948 * tests/test-truncf.c: Likewise.
29949 * tests/test-truncl.c: Likewise.
29950 * tests/test-unistd.c: Likewise.
29951 * tests/test-vasnprintf-posix.c: Likewise.
29952 * tests/test-vasnprintf-posix2.c: Likewise.
29953 * tests/test-vasnprintf.c: Likewise.
29954 * tests/test-vasprintf-posix.c: Likewise.
29955 * tests/test-vasprintf.c: Likewise.
29956 * tests/test-verify.c: Likewise.
29957 * tests/test-vfprintf-posix.c: Likewise.
29958 * tests/test-vprintf-posix.c: Likewise.
29959 * tests/test-vsnprintf-posix.c: Likewise.
29960 * tests/test-vsnprintf.c: Likewise.
29961 * tests/test-vsprintf-posix.c: Likewise.
29962 * tests/test-wchar.c: Likewise.
29963 * tests/test-wctype.c: Likewise.
29964 * tests/test-wcwidth.c: Likewise.
29965 * tests/test-xstrtol.c: Likewise.
29966 * tests/test-xvasprintf.c: Likewise.
29967 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29968 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29969 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29970 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29971 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29972 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29973 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29974 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29975 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29976 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29977 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29978 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29979 * tests/uniname/test-uninames.c: Likewise.
29980 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29981 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29982 * tests/unistdio/test-u16-printf1.h: Likewise.
29983 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29984 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29985 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29986 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29987 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29988 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29989 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29990 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29991 * tests/unistdio/test-u32-printf1.h: Likewise.
29992 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29993 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29994 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29995 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29996 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29997 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29998 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29999 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30000 * tests/unistdio/test-u8-printf1.h: Likewise.
30001 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30002 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30003 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30004 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30005 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30006 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30007 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30008 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30009 * tests/unistdio/test-ulc-printf1.h: Likewise.
30010 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30011 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30012 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30013 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30014 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30015 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30016 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30017 * tests/uniwidth/test-u16-width.c: Likewise.
30018 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30019 * tests/uniwidth/test-u32-width.c: Likewise.
30020 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30021 * tests/uniwidth/test-u8-width.c: Likewise.
30022 * tests/uniwidth/test-uc_width.c: Likewise.
30023 * config/srclist-update: Likewise.
30024 (fixlicense): Update to GPLv3+.
30026 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30027 * tests/test-tsearch.c: Change copyright notice.
30029 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30030 * lib/c-strcaseeq.h: Change copyright notice.
30031 * lib/streq.h: Likewise.
30032 * lib/uniconv.h: Likewise.
30033 * lib/uniconv/u-conv-from-enc.h: Likewise.
30034 * lib/uniconv/u-conv-to-enc.h: Likewise.
30035 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30036 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30037 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30038 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30039 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30040 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30041 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30042 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30043 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30044 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30045 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30046 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30047 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30048 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30049 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30050 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30051 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30052 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30053 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30054 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30055 * lib/uniname.h: Likewise.
30056 * lib/uniname/uniname.c: Likewise.
30057 * lib/unistdio.h: Likewise.
30058 * lib/unistdio/u-asnprintf.h: Likewise.
30059 * lib/unistdio/u-asprintf.h: Likewise.
30060 * lib/unistdio/u-printf-args.c: Likewise.
30061 * lib/unistdio/u-printf-args.h: Likewise.
30062 * lib/unistdio/u-printf-parse.h: Likewise.
30063 * lib/unistdio/u-snprintf.h: Likewise.
30064 * lib/unistdio/u-sprintf.h: Likewise.
30065 * lib/unistdio/u-vasprintf.h: Likewise.
30066 * lib/unistdio/u-vsnprintf.h: Likewise.
30067 * lib/unistdio/u-vsprintf.h: Likewise.
30068 * lib/unistdio/u16-asnprintf.c: Likewise.
30069 * lib/unistdio/u16-asprintf.c: Likewise.
30070 * lib/unistdio/u16-printf-parse.c: Likewise.
30071 * lib/unistdio/u16-snprintf.c: Likewise.
30072 * lib/unistdio/u16-sprintf.c: Likewise.
30073 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30074 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30075 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30076 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30077 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30078 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30079 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30080 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30081 * lib/unistdio/u16-vasnprintf.c: Likewise.
30082 * lib/unistdio/u16-vasprintf.c: Likewise.
30083 * lib/unistdio/u16-vsnprintf.c: Likewise.
30084 * lib/unistdio/u16-vsprintf.c: Likewise.
30085 * lib/unistdio/u32-asnprintf.c: Likewise.
30086 * lib/unistdio/u32-asprintf.c: Likewise.
30087 * lib/unistdio/u32-printf-parse.c: Likewise.
30088 * lib/unistdio/u32-snprintf.c: Likewise.
30089 * lib/unistdio/u32-sprintf.c: Likewise.
30090 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30091 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30092 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30093 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30094 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30095 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30096 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30097 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30098 * lib/unistdio/u32-vasnprintf.c: Likewise.
30099 * lib/unistdio/u32-vasprintf.c: Likewise.
30100 * lib/unistdio/u32-vsnprintf.c: Likewise.
30101 * lib/unistdio/u32-vsprintf.c: Likewise.
30102 * lib/unistdio/u8-asnprintf.c: Likewise.
30103 * lib/unistdio/u8-asprintf.c: Likewise.
30104 * lib/unistdio/u8-printf-parse.c: Likewise.
30105 * lib/unistdio/u8-snprintf.c: Likewise.
30106 * lib/unistdio/u8-sprintf.c: Likewise.
30107 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30108 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30109 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30110 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30111 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30112 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30113 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30114 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30115 * lib/unistdio/u8-vasnprintf.c: Likewise.
30116 * lib/unistdio/u8-vasprintf.c: Likewise.
30117 * lib/unistdio/u8-vsnprintf.c: Likewise.
30118 * lib/unistdio/u8-vsprintf.c: Likewise.
30119 * lib/unistdio/ulc-asnprintf.c: Likewise.
30120 * lib/unistdio/ulc-asprintf.c: Likewise.
30121 * lib/unistdio/ulc-printf-parse.c: Likewise.
30122 * lib/unistdio/ulc-snprintf.c: Likewise.
30123 * lib/unistdio/ulc-sprintf.c: Likewise.
30124 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30125 * lib/unistdio/ulc-vasprintf.c: Likewise.
30126 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30127 * lib/unistdio/ulc-vsprintf.c: Likewise.
30128 * lib/unistr.h: Likewise.
30129 * lib/unistr/u-cpy-alloc.h: Likewise.
30130 * lib/unistr/u-cpy.h: Likewise.
30131 * lib/unistr/u-endswith.h: Likewise.
30132 * lib/unistr/u-move.h: Likewise.
30133 * lib/unistr/u-set.h: Likewise.
30134 * lib/unistr/u-startswith.h: Likewise.
30135 * lib/unistr/u-stpcpy.h: Likewise.
30136 * lib/unistr/u-stpncpy.h: Likewise.
30137 * lib/unistr/u-strcat.h: Likewise.
30138 * lib/unistr/u-strcpy.h: Likewise.
30139 * lib/unistr/u-strcspn.h: Likewise.
30140 * lib/unistr/u-strdup.h: Likewise.
30141 * lib/unistr/u-strlen.h: Likewise.
30142 * lib/unistr/u-strncat.h: Likewise.
30143 * lib/unistr/u-strncpy.h: Likewise.
30144 * lib/unistr/u-strnlen.h: Likewise.
30145 * lib/unistr/u-strpbrk.h: Likewise.
30146 * lib/unistr/u-strspn.h: Likewise.
30147 * lib/unistr/u-strstr.h: Likewise.
30148 * lib/unistr/u-strtok.h: Likewise.
30149 * lib/unistr/u16-check.c: Likewise.
30150 * lib/unistr/u16-chr.c: Likewise.
30151 * lib/unistr/u16-cmp.c: Likewise.
30152 * lib/unistr/u16-cpy-alloc.c: Likewise.
30153 * lib/unistr/u16-cpy.c: Likewise.
30154 * lib/unistr/u16-endswith.c: Likewise.
30155 * lib/unistr/u16-mblen.c: Likewise.
30156 * lib/unistr/u16-mbsnlen.c: Likewise.
30157 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30158 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30159 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30160 * lib/unistr/u16-mbtouc.c: Likewise.
30161 * lib/unistr/u16-mbtoucr.c: Likewise.
30162 * lib/unistr/u16-move.c: Likewise.
30163 * lib/unistr/u16-next.c: Likewise.
30164 * lib/unistr/u16-prev.c: Likewise.
30165 * lib/unistr/u16-set.c: Likewise.
30166 * lib/unistr/u16-startswith.c: Likewise.
30167 * lib/unistr/u16-stpcpy.c: Likewise.
30168 * lib/unistr/u16-stpncpy.c: Likewise.
30169 * lib/unistr/u16-strcat.c: Likewise.
30170 * lib/unistr/u16-strchr.c: Likewise.
30171 * lib/unistr/u16-strcmp.c: Likewise.
30172 * lib/unistr/u16-strcpy.c: Likewise.
30173 * lib/unistr/u16-strcspn.c: Likewise.
30174 * lib/unistr/u16-strdup.c: Likewise.
30175 * lib/unistr/u16-strlen.c: Likewise.
30176 * lib/unistr/u16-strmblen.c: Likewise.
30177 * lib/unistr/u16-strmbtouc.c: Likewise.
30178 * lib/unistr/u16-strncat.c: Likewise.
30179 * lib/unistr/u16-strncmp.c: Likewise.
30180 * lib/unistr/u16-strncpy.c: Likewise.
30181 * lib/unistr/u16-strnlen.c: Likewise.
30182 * lib/unistr/u16-strpbrk.c: Likewise.
30183 * lib/unistr/u16-strrchr.c: Likewise.
30184 * lib/unistr/u16-strspn.c: Likewise.
30185 * lib/unistr/u16-strstr.c: Likewise.
30186 * lib/unistr/u16-strtok.c: Likewise.
30187 * lib/unistr/u16-to-u32.c: Likewise.
30188 * lib/unistr/u16-to-u8.c: Likewise.
30189 * lib/unistr/u16-uctomb-aux.c: Likewise.
30190 * lib/unistr/u16-uctomb.c: Likewise.
30191 * lib/unistr/u32-check.c: Likewise.
30192 * lib/unistr/u32-chr.c: Likewise.
30193 * lib/unistr/u32-cmp.c: Likewise.
30194 * lib/unistr/u32-cpy-alloc.c: Likewise.
30195 * lib/unistr/u32-cpy.c: Likewise.
30196 * lib/unistr/u32-endswith.c: Likewise.
30197 * lib/unistr/u32-mblen.c: Likewise.
30198 * lib/unistr/u32-mbsnlen.c: Likewise.
30199 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30200 * lib/unistr/u32-mbtouc.c: Likewise.
30201 * lib/unistr/u32-mbtoucr.c: Likewise.
30202 * lib/unistr/u32-move.c: Likewise.
30203 * lib/unistr/u32-next.c: Likewise.
30204 * lib/unistr/u32-prev.c: Likewise.
30205 * lib/unistr/u32-set.c: Likewise.
30206 * lib/unistr/u32-startswith.c: Likewise.
30207 * lib/unistr/u32-stpcpy.c: Likewise.
30208 * lib/unistr/u32-stpncpy.c: Likewise.
30209 * lib/unistr/u32-strcat.c: Likewise.
30210 * lib/unistr/u32-strchr.c: Likewise.
30211 * lib/unistr/u32-strcmp.c: Likewise.
30212 * lib/unistr/u32-strcpy.c: Likewise.
30213 * lib/unistr/u32-strcspn.c: Likewise.
30214 * lib/unistr/u32-strdup.c: Likewise.
30215 * lib/unistr/u32-strlen.c: Likewise.
30216 * lib/unistr/u32-strmblen.c: Likewise.
30217 * lib/unistr/u32-strmbtouc.c: Likewise.
30218 * lib/unistr/u32-strncat.c: Likewise.
30219 * lib/unistr/u32-strncmp.c: Likewise.
30220 * lib/unistr/u32-strncpy.c: Likewise.
30221 * lib/unistr/u32-strnlen.c: Likewise.
30222 * lib/unistr/u32-strpbrk.c: Likewise.
30223 * lib/unistr/u32-strrchr.c: Likewise.
30224 * lib/unistr/u32-strspn.c: Likewise.
30225 * lib/unistr/u32-strstr.c: Likewise.
30226 * lib/unistr/u32-strtok.c: Likewise.
30227 * lib/unistr/u32-to-u16.c: Likewise.
30228 * lib/unistr/u32-to-u8.c: Likewise.
30229 * lib/unistr/u32-uctomb.c: Likewise.
30230 * lib/unistr/u8-check.c: Likewise.
30231 * lib/unistr/u8-chr.c: Likewise.
30232 * lib/unistr/u8-cmp.c: Likewise.
30233 * lib/unistr/u8-cpy-alloc.c: Likewise.
30234 * lib/unistr/u8-cpy.c: Likewise.
30235 * lib/unistr/u8-endswith.c: Likewise.
30236 * lib/unistr/u8-mblen.c: Likewise.
30237 * lib/unistr/u8-mbsnlen.c: Likewise.
30238 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30239 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30240 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30241 * lib/unistr/u8-mbtouc.c: Likewise.
30242 * lib/unistr/u8-mbtoucr.c: Likewise.
30243 * lib/unistr/u8-move.c: Likewise.
30244 * lib/unistr/u8-next.c: Likewise.
30245 * lib/unistr/u8-prev.c: Likewise.
30246 * lib/unistr/u8-set.c: Likewise.
30247 * lib/unistr/u8-startswith.c: Likewise.
30248 * lib/unistr/u8-stpcpy.c: Likewise.
30249 * lib/unistr/u8-stpncpy.c: Likewise.
30250 * lib/unistr/u8-strcat.c: Likewise.
30251 * lib/unistr/u8-strchr.c: Likewise.
30252 * lib/unistr/u8-strcmp.c: Likewise.
30253 * lib/unistr/u8-strcpy.c: Likewise.
30254 * lib/unistr/u8-strcspn.c: Likewise.
30255 * lib/unistr/u8-strdup.c: Likewise.
30256 * lib/unistr/u8-strlen.c: Likewise.
30257 * lib/unistr/u8-strmblen.c: Likewise.
30258 * lib/unistr/u8-strmbtouc.c: Likewise.
30259 * lib/unistr/u8-strncat.c: Likewise.
30260 * lib/unistr/u8-strncmp.c: Likewise.
30261 * lib/unistr/u8-strncpy.c: Likewise.
30262 * lib/unistr/u8-strnlen.c: Likewise.
30263 * lib/unistr/u8-strpbrk.c: Likewise.
30264 * lib/unistr/u8-strrchr.c: Likewise.
30265 * lib/unistr/u8-strspn.c: Likewise.
30266 * lib/unistr/u8-strstr.c: Likewise.
30267 * lib/unistr/u8-strtok.c: Likewise.
30268 * lib/unistr/u8-to-u16.c: Likewise.
30269 * lib/unistr/u8-to-u32.c: Likewise.
30270 * lib/unistr/u8-uctomb-aux.c: Likewise.
30271 * lib/unistr/u8-uctomb.c: Likewise.
30272 * lib/unitypes.h: Likewise.
30273 * lib/uniwidth.h: Likewise.
30274 * lib/uniwidth/cjk.h: Likewise.
30275 * lib/uniwidth/u16-strwidth.c: Likewise.
30276 * lib/uniwidth/u16-width.c: Likewise.
30277 * lib/uniwidth/u32-strwidth.c: Likewise.
30278 * lib/uniwidth/u32-width.c: Likewise.
30279 * lib/uniwidth/u8-strwidth.c: Likewise.
30280 * lib/uniwidth/u8-width.c: Likewise.
30281 * lib/uniwidth/width.c: Likewise.
30283 2007-10-07 Bruno Haible <bruno@clisp.org>
30285 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30286 The file is still under LGPL (see modules/inttypes).
30288 2007-10-06 Bruno Haible <bruno@clisp.org>
30290 * modules/trunc (Dependencies): Add 'extensions'.
30291 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30292 Reported by Ben Pfaff <blp@gnu.org>.
30294 2007-10-06 Bruno Haible <bruno@clisp.org>
30296 * modules/freopen-tests: New file.
30297 * tests/test-freopen.c: New file.
30299 * modules/fopen-tests: New file.
30300 * tests/test-fopen.c: New file.
30302 * modules/fopen: New file.
30303 * lib/fopen.c: New file.
30304 * m4/fopen.m4: New file.
30305 * modules/freopen: New file.
30306 * lib/freopen.c: New file.
30307 * m4/freopen.m4: New file.
30308 * lib/stdio.in.h (fopen, freopen): New declarations.
30309 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30310 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30311 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30312 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30313 * doc/functions/fopen.texi: Mention the 'fopen' module.
30314 * doc/functions/freopen.texi: Mention the 'freopen' module.
30316 2007-10-06 Bruno Haible <bruno@clisp.org>
30318 * modules/open-tests: New file.
30319 * tests/test-open.c: New file.
30321 * modules/open: New file.
30322 * lib/open.c: New file.
30323 * m4/open.m4: New file.
30324 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30326 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30327 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30329 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30330 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30332 * doc/functions/open.texi: Mention the 'open' module.
30334 2007-10-04 Bruno Haible <bruno@clisp.org>
30336 * modules/ceill-tests: New file.
30337 * tests/test-ceill.c: New file.
30339 * modules/ceill: New file.
30340 * lib/ceill.c: Replace entire file.
30341 * m4/ceill.m4: New file.
30342 * lib/math.in.h (ceill): Replace declaration.
30343 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30344 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30345 * doc/functions/ceill.texi: Mention the 'ceill' module.
30346 * modules/mathl (Files): Remove lib/ceill.c.
30347 (Depends-on): Add ceill.
30349 2007-10-04 Bruno Haible <bruno@clisp.org>
30351 * modules/ceilf-tests: New file.
30352 * tests/test-ceilf.c: New file.
30354 * modules/ceilf: New file.
30355 * lib/ceil.c: New file.
30356 * lib/ceilf.c: New file.
30357 * m4/ceilf.m4: New file.
30358 * lib/math.in.h (ceilf): New declaration.
30359 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30361 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30363 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30365 2007-10-04 Bruno Haible <bruno@clisp.org>
30367 * modules/floorl-tests: New file.
30368 * tests/test-floorl.c: New file.
30370 * modules/floorl: New file.
30371 * lib/floorl.c: Replace entire file.
30372 * m4/floorl.m4: New file.
30373 * lib/math.in.h (floorl): Replace declaration.
30374 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30375 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30376 * doc/functions/floorl.texi: Mention the 'floorl' module.
30377 * modules/mathl (Files): Remove lib/floorl.c.
30378 (Depends-on): Add floorl.
30380 2007-10-04 Bruno Haible <bruno@clisp.org>
30382 * modules/floorf-tests: New file.
30383 * tests/test-floorf.c: New file.
30385 * modules/floorf: New file.
30386 * lib/floor.c: New file.
30387 * lib/floorf.c: New file.
30388 * m4/floorf.m4: New file.
30389 * lib/math.in.h (floorf): New declaration.
30390 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30392 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30394 * doc/functions/floorf.texi: Mention the 'floorf' module.
30396 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30397 Bruno Haible <bruno@clisp.org>
30399 Advertise for the Git server instead of the CVS server.
30400 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30401 repository instead of the CVS one.
30402 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30403 about all VCS systems generically.
30404 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30406 2007-10-04 Bruno Haible <bruno@clisp.org>
30408 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30410 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30412 2007-10-04 Bruno Haible <bruno@clisp.org>
30414 * modules/truncl-tests: New file.
30415 * tests/test-truncl.c: New file.
30417 * modules/truncl: New file.
30418 * lib/truncl.c: New file.
30419 * m4/truncl.m4: New file.
30420 * lib/math.in.h (truncl): New declaration.
30421 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30423 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30425 * doc/functions/truncl.texi: Mention the 'truncl' module.
30427 2007-10-04 Bruno Haible <bruno@clisp.org>
30429 * modules/truncf-tests: New file.
30430 * tests/test-truncf.c: New file.
30432 * modules/truncf: New file.
30433 * lib/trunc.c: Make paramerizable through USE_* macros.
30434 * lib/truncf.c: New file.
30435 * m4/truncf.m4: New file.
30436 * lib/math.in.h (truncf): New declaration.
30437 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30439 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30441 * doc/functions/truncf.texi: Mention the 'truncf' module.
30443 2007-10-03 Bruno Haible <bruno@clisp.org>
30445 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30446 augmentation also for tests modules.
30447 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30448 * modules/atexit-tests (Makefile.am): Likewise.
30449 * modules/binary-io-tests (Makefile.am): Likewise.
30450 * modules/c-strcase-tests (Makefile.am): Likewise.
30451 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30452 * modules/canonicalize-tests (Makefile.am): Likewise.
30453 * modules/closein-tests (Makefile.am): Likewise.
30454 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30455 * modules/freadahead-tests (Makefile.am): Likewise.
30456 * modules/fseek-tests (Makefile.am): Likewise.
30457 * modules/fseeko-tests (Makefile.am): Likewise.
30458 * modules/ftell-tests (Makefile.am): Likewise.
30459 * modules/ftello-tests (Makefile.am): Likewise.
30460 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30461 * modules/isnanl-tests (Makefile.am): Likewise.
30462 * modules/lseek-tests (Makefile.am): Likewise.
30463 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30464 * modules/mbscasestr-tests (Makefile.am): Likewise.
30465 * modules/mbschr-tests (Makefile.am): Likewise.
30466 * modules/mbscspn-tests (Makefile.am): Likewise.
30467 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30468 * modules/mbspbrk-tests (Makefile.am): Likewise.
30469 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30470 * modules/mbsrchr-tests (Makefile.am): Likewise.
30471 * modules/mbsspn-tests (Makefile.am): Likewise.
30472 * modules/mbsstr-tests (Makefile.am): Likewise.
30473 * modules/printf-posix-tests (Makefile.am): Likewise.
30474 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30475 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30476 * modules/tsearch-tests (Makefile.am): Likewise.
30477 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30478 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30479 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30480 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30481 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30482 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30483 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30484 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30485 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30486 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30487 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30488 * modules/xstrtol-tests (Makefile.am): Likewise.
30489 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30490 * modules/yesno-tests (Makefile.am): Likewise.
30492 2007-10-03 Bruno Haible <bruno@clisp.org>
30494 * modules/trunc-tests: New file.
30495 * tests/test-trunc.c: New file.
30497 * modules/trunc: New file.
30498 * lib/trunc.c: New file.
30499 * m4/trunc.m4: New file.
30500 * lib/math.in.h (trunc): New declaration.
30501 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30503 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30505 * doc/functions/trunc.texi: Mention the 'trunc' module.
30507 2007-10-03 Bruno Haible <bruno@clisp.org>
30509 * tests/test-fpending.c: New file, mostly copied
30510 from coreutils/lib/t-fpending.c.
30511 * modules/fpending-tests: New file.
30513 2007-10-03 Bruno Haible <bruno@clisp.org>
30515 Port the stdio extensions to QNX (untested).
30516 * lib/fseterr.c (fseterr): Add support for QNX.
30517 * lib/fbufmode.c (fbufmode): Likewise.
30518 * lib/freadable.c (freadable): Likewise.
30519 * lib/fwritable.c (fwritable): Likewise.
30520 * lib/freading.c (freading): Likewise.
30521 * lib/fwriting.c (fwriting): Likewise.
30522 * lib/freadahead.c (freadahed): Likewise.
30523 * lib/fpurge.c (fpurge): Likewise.
30524 * lib/fseeko.c (rpl_fseeko): Likewise.
30526 2007-10-03 Bruno Haible <bruno@clisp.org>
30527 Jim Meyering <jim@meyering.net>
30528 Eric Blake <ebb9@byu.net>
30530 * doc/relocatable.texi: Use @command instead of @program.
30532 2007-10-02 Jim Meyering <jim@meyering.net>
30534 Perform one more "_.h" -> ".in.h" substitution.
30535 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30536 instead of unistd_.h here, too.
30538 2007-10-01 Bruno Haible <bruno@clisp.org>
30540 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30541 Needed for the alloca-opt module.
30543 2007-09-30 Bruno Haible <bruno@clisp.org>
30545 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30546 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30548 * lib/argz.in.h: Renamed from lib/argz_.h.
30549 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30550 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30551 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30553 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30554 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30556 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30557 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30559 * lib/float.in.h: Renamed from lib/float_.h.
30560 * modules/float (Files, Makefile.am): Use float.in.h instead of
30562 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30563 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30565 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30566 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30568 * lib/glob.in.h: Renamed from lib/glob_.h.
30569 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30570 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30571 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30573 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30574 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30576 * lib/locale.in.h: Renamed from lib/locale_.h.
30577 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30579 * lib/math.in.h: Renamed from lib/math_.h.
30580 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30581 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30582 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30583 of netinet_in_.h. Add dependency.
30584 * lib/poll.in.h: Renamed from lib/poll_.h.
30585 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30586 * lib/search.in.h: Renamed from lib/search_.h.
30587 * modules/search (Files, Makefile.am): Use search.in.h instead of
30589 * lib/signal.in.h: Renamed from lib/signal_.h.
30590 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30592 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30593 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30595 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30596 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30598 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30599 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30601 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30602 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30604 * lib/string.in.h: Renamed from lib/string_.h.
30605 * modules/string (Files, Makefile.am): Use string.in.h instead of
30607 * doc/gnulib-tool.texi (Initial import): Update.
30608 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30609 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30610 of sys_select_.h. Add dependency.
30611 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30612 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30614 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30615 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30617 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30618 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30620 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30621 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30623 * lib/time.in.h: Renamed from lib/time_.h.
30624 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30625 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30626 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30628 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30629 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30631 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30632 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30634 * build-aux/bootstrap (slurp): Update.
30635 * lib/.cppi-disable: Update.
30637 2007-09-30 Bruno Haible <bruno@clisp.org>
30639 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30642 2007-09-30 Bruno Haible <bruno@clisp.org>
30644 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30646 2007-09-29 Bruno Haible <bruno@clisp.org>
30648 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30650 2007-09-29 Bruno Haible <bruno@clisp.org>
30652 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30653 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30654 * build-aux/install-reloc: Compile also areadlink.c.
30655 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30657 2007-09-29 Bruno Haible <bruno@clisp.org>
30659 * gnulib-tool (func_emit_initmacro_done): Indentation.
30661 2007-09-29 Bruno Haible <bruno@clisp.org>
30663 * README: Add CVS checkout update instructions.
30664 Info from Bob Proulx <bob@proulx.com>.
30666 2007-09-28 Eric Blake <ebb9@byu.net>
30668 Provide move-if-change.
30669 * build-aux/move-if-change: New file, based on best practice
30670 rather than any canonical upstream location.
30672 2007-09-28 Jim Meyering <jim@meyering.net>
30674 Fix canonicalize loop-detection corner case.
30675 Do not attempt to stat the symlink values stored via seen_triple.
30676 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30677 on linux-2.6.18, (but not 2.6.22).
30678 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30679 triple_compare. The former compares dev,ino,filename, while the latter
30680 would actually stat dirname(filename) when dev and ino were equal.
30681 * lib/hash-triple.c: Install <string.h>.
30683 (triple_compare_ino_str): New function.
30684 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30686 2007-09-28 Eric Blake <ebb9@byu.net>
30688 Enforce that AC_REPLACE_FUNCS files exist.
30689 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30690 override check for typos.
30692 Fix test-closein on Solaris 10.
30693 * tests/test-closein.c (main): Don't assume stdin can be inherited
30694 closed on all systems.
30695 * tests/test-closein.sh: Likewise.
30696 Reported by Piotr Tarnowski.
30698 2007-09-28 Jim Meyering <jim@meyering.net>
30700 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30702 2007-09-27 Jim Meyering <jim@meyering.net>
30704 canonicalize: Avoid a false-positive cycle failure.
30705 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30706 Sort. Remove cycle-check.
30707 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30709 (seen_triple): New function.
30710 (canonicalize_filename_mode): Use it instead of cycle-check.
30711 * tests/test-canonicalize.c: Add a test for this bug.
30712 * tests/test-canonicalize.sh: Set up and run the test.
30714 New module, file-set, from coreutils.
30715 * modules/file-set: Define it.
30716 * lib/file-set.c, lib/file-set.h: Implement.
30718 New module, hash-triple, from coreutils.
30719 * modules/hash-triple: Define it.
30720 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30722 2007-09-25 Eric Blake <ebb9@byu.net>
30724 Fix strerror on Interix.
30725 * lib/string_.h (strerror): Declare replacement.
30726 * doc/functions/strerror.texi (strerror): Document the Interix
30728 * modules/string (Makefile.am): Support new hooks.
30729 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30730 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30731 gl_FUNC_STRERROR_SEPARATE.
30732 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30733 * lib/strerror.c (rpl_strerror): Provide replacement.
30734 * modules/strerror (Depends-on): Add string.
30735 (configure.ac): Detect use of module.
30736 * tests/test-strerror.c: New file.
30737 * modules/strerror-tests: New test module.
30738 * modules/argp (Depends-on): Add strerror.
30739 * modules/error (Depends-on): Likewise.
30740 Reported by Martin Koeppe.
30742 2007-09-24 Bruno Haible <bruno@clisp.org>
30744 * README: Update git instructions.
30746 2007-09-24 Eric Blake <ebb9@byu.net>
30748 Revert fpending breakage from 2007-09-08.
30749 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30752 2007-09-24 Jim Meyering <jim@meyering.net>
30754 filenamecat.c: Add a test.
30755 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30756 showing how the function works when DIR is the empty string.
30758 2007-09-21 Simon Josefsson <simon@josefsson.org>
30760 * tests/test-canonicalize.sh: Turn on executable bit.
30762 2007-09-19 Eric Blake <ebb9@byu.net>
30764 * README: Update CVS instructions.
30766 2007-09-18 Bruno Haible <bruno@clisp.org>
30768 * modules/areadlink: New file.
30769 * lib/areadlink.h (areadlink): New declaration.
30770 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30772 2007-09-17 Jim Meyering <jim@meyering.net>
30774 * lib/savewd.c (ESTALE) [!defined]: Define.
30775 Reported to be required on Interix by Martin Koeppe.
30777 2007-09-17 Bruno Haible <bruno@clisp.org>
30779 * gnulib-tool (func_version): Use $version.
30781 2007-09-16 Bruno Haible <bruno@clisp.org>
30783 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30784 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30785 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30786 Reported by Greg Schafer <gschafer@zip.com.au>.
30788 2007-09-15 Bruno Haible <bruno@clisp.org>
30790 * gnulib-tool (sed): Try a little harder to make bash understand the
30792 Reported by Bruce Korb <bruce.korb@gmail.com>.
30794 2007-09-13 Eric Blake <ebb9@byu.net>
30796 * ChangeLog: Remove conflict markers.
30798 2007-09-13 Simon Josefsson <simon@josefsson.org>
30800 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30801 Reported by Bruno Haible <bruno@clisp.org>.
30803 2007-09-12 Bruno Haible <bruno@clisp.org>
30805 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30806 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30809 2007-09-12 Eric Blake <ebb9@byu.net>
30811 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30812 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30813 Autoconf definition.
30814 * modules/euidaccess (Depends-on): Add extensions, for
30815 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30816 * modules/fnmatch (Depends-on): Likewise.
30817 * modules/getaddrinfo (Depends-on): Likewise.
30818 * modules/getdelim (Depends-on): Likewise.
30819 * modules/getline (Depends-on): Likewise.
30820 * modules/getsubopt (Depends-on): Likewise.
30821 * modules/gettext (Depends-on): Likewise.
30822 * modules/group-member (Depends-on): Likewise.
30823 * modules/mbchar (Depends-on): Likewise.
30824 * modules/memmem (Depends-on): Likewise.
30825 * modules/mempcpy (Depends-on): Likewise.
30826 * modules/memrchr (Depends-on): Likewise.
30827 * modules/pagealign_alloc (Depends-on): Likewise.
30828 * modules/readutmp (Depends-on): Likewise.
30829 * modules/stpcpy (Depends-on): Likewise.
30830 * modules/stpncpy (Depends-on): Likewise.
30831 * modules/strchrnul (Depends-on): Likewise.
30832 * modules/strndup (Depends-on): Likewise.
30833 * modules/strsep (Depends-on): Likewise.
30834 * modules/strverscmp (Depends-on): Likewise.
30835 * modules/vasprintf (Depends-on): Likewise.
30836 * modules/wcwidth (Depends-on): Likewise.
30837 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30838 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30839 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30840 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30841 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30842 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30843 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30844 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30845 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30846 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30847 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30848 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30849 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30850 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30851 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30852 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30853 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30854 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30855 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30856 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30857 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30858 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30859 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30860 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30861 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30862 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30863 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30864 so that lock.m4 can be used in gettext without extensions module.
30866 2007-09-11 Bruno Haible <bruno@clisp.org>
30868 * m4/isc-posix.m4: Remove file.
30869 Suggested by Eric Blake.
30871 2007-09-11 Eric Blake <ebb9@byu.net>
30873 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30875 2007-09-10 Bruno Haible <bruno@clisp.org>
30877 * posix-modules: Fix typo in error message.
30878 Reported by Matt <mkraai@beckman.com>.
30880 2007-09-09 Bruno Haible <bruno@clisp.org>
30882 * doc/functions/getdelim.texi: Update list of platforms lacking the
30884 * doc/functions/getline.texi: Likewise.
30886 2007-09-09 Jim Meyering <jim@meyering.net>
30888 * lib/hash.c (hash_initialize): Detect calloc failure.
30889 Reported by Bruno Haible.
30891 2007-09-09 Bruno Haible <bruno@clisp.org>
30893 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30894 malloc or realloc fails.
30896 2007-09-09 Bruno Haible <bruno@clisp.org>
30898 * modules/getcwd (Depends-on): Add malloc-posix.
30899 * modules/glob (Depends-on): Likewise.
30900 * modules/putenv (Depends-on): Likewise.
30901 * modules/strdup (Depends-on): Likewise.
30902 * modules/getdelim (Depends-on): Add realloc-posix.
30903 * modules/read-file (Depends-on): Likewise.
30905 2007-09-09 Bruno Haible <bruno@clisp.org>
30907 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30908 (gl_FUNC_MALLOC_POSIX): Require it.
30909 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30910 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30911 * modules/realloc (Files): Add m4/malloc.m4.
30912 * modules/calloc (Files): Likewise.
30914 2007-09-09 Bruno Haible <bruno@clisp.org>
30916 * modules/malloc-posix: New file.
30917 * modules/malloc (Depends-on): Add malloc-posix.
30918 * lib/malloc.c: Include errno.h.
30919 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30920 and a POSIX-compatible malloc into a single function. Set ENOMEM
30921 when returning NULL.
30922 * m4/malloc.m4: New file.
30923 * doc/functions/malloc.texi: Mention the malloc-posix module.
30924 * lib/stdlib_.h (malloc): New declaration.
30925 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30926 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30927 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30928 and HAVE_MALLOC_POSIX.
30930 2007-09-09 Bruno Haible <bruno@clisp.org>
30932 * modules/realloc-posix: New file.
30933 * modules/realloc (Depends-on): Add realloc-posix.
30934 * lib/realloc.c: Include errno.h.
30935 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30936 and a POSIX-compatible realloc into a single function. Set ENOMEM
30937 when returning NULL.
30938 * m4/realloc.m4: New file.
30939 * doc/functions/realloc.texi: Mention the realloc-posix module.
30940 * lib/stdlib_.h (realloc): New declaration.
30941 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30942 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30943 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30944 and HAVE_REALLOC_POSIX.
30946 2007-09-09 Bruno Haible <bruno@clisp.org>
30948 * modules/calloc-posix: New file.
30949 * modules/calloc (Depends-on): Add calloc-posix.
30950 * lib/calloc.c: Include errno.h.
30951 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30952 and a POSIX-compatible calloc into a single function. Set ENOMEM
30953 when returning NULL.
30954 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30955 * doc/functions/calloc.texi: Mention the calloc-posix module.
30956 * lib/stdlib_.h (calloc): New declaration.
30957 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30958 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30959 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30960 and HAVE_CALLOC_POSIX.
30962 2007-09-09 Bruno Haible <bruno@clisp.org>
30964 Allow for modules to show an arbitrary notice.
30965 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30966 * gnulib-tool: New option --extract-notice.
30967 (func_usage): Document it.
30968 (sed_extract_prog): Update.
30969 (func_get_notice): New function.
30970 (func_modules_notice): New function.
30971 (func_import, func_create_testdir): Invoke it.
30972 Suggested by Jim Meyering.
30974 2007-09-09 Bruno Haible <bruno@clisp.org>
30976 * gnulib-tool: New options --verbose, --quiet.
30977 (func_usage): Document them.
30978 (verbose): New variable.
30979 (func_execute_command): New function.
30980 (func_import): Don't show the module list and the file list if
30982 (func_create_testdir): Likewise. Use func_execute_command.
30983 (func_create_megatestdir): Use func_execute_command.
30985 2007-09-08 Bruno Haible <bruno@clisp.org>
30987 * gnulib-tool (func_import): Prefer rsync over wget when available,
30988 for fetching the PO files.
30990 2007-09-08 Bruno Haible <bruno@clisp.org>
30992 * posix-modules: New file. Portions copied from gnulib-tool.
30993 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30995 2007-09-08 Jim Meyering <jim@meyering.net>
30997 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30998 * lib/fpending.h: Rename from __fpending.h.
30999 * lib/fpending.c: Rename from __fpending.c.
31000 Include "fpending.h", not "__fpending.h".
31001 * lib/__fpending.h, lib/__fpending.c: Remove files.
31002 * modules/fpending (Files): Reflect new file names.
31003 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31005 2007-09-08 Bruno Haible <bruno@clisp.org>
31007 * m4/inttypes-h.m4: Remove stub file.
31009 2007-09-07 Simon Josefsson <simon@josefsson.org>
31011 * doc/headers/stdint.texi: Discuss #include_next issue.
31013 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31015 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31017 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31019 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31022 2007-09-03 Jim Meyering <jim@meyering.net>
31024 New module: git-version-gen.
31025 * modules/git-version-gen: New file.
31027 Import changes from coreutils for bootstrap script.
31029 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31031 bootstrap: uses rsync to download the .po files
31032 * build-aux/bootstrap (po_download_command_format): New global.
31033 (download_po_files): Use rsync.
31034 (update_po_files): Don't remove .po files after download,
31035 so future rsync runs can take advantage of the copies.
31037 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31039 Solve the unnecessary-.po-file-regeneration problem once and for all.
31040 * build-aux/bootstrap (download_po_files): New function, renamed from
31041 get_translations. Now, downloads, but doesn't update LINGUAS.
31042 (update_po_files): New function.
31044 bootstrap: Ignore more.
31045 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31046 uniwidth to e.g., lib/.gitignore.
31047 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31049 * build-aux/bootstrap: New setting: vc_ignore.
31050 (insert_sorted_if_absent): Create $file if absent.
31051 Adapt to new, possibly empty, list: $vc_ignore.
31053 bootstrap: generate more ignorable names
31054 * build-aux/bootstrap (slurp): When generating ignorable names,
31055 also map .sin to .sed, .gperf to .c, and .y to .c.
31057 2007-09-03 Jim Meyering <jim@meyering.net>
31059 * build-aux/git-version-gen: New file, from coreutils. For details, see
31060 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31062 2007-09-02 Bruno Haible <bruno@clisp.org>
31064 Fix mis-recognition of 'mcs' on QNX 6.
31065 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31066 output contains the string "Mono".
31067 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31068 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31070 2007-09-01 Bruno Haible <bruno@clisp.org>
31072 Fix collision between uniwidth/* and linebreak modules.
31073 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31074 u32_width): Remove declarations.
31075 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31076 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31077 streq3, streq2, streq1, streq0): Remove functions.
31078 (STREQ): Remove macro.
31079 (is_cjk_encoding): Remove function.
31080 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31081 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31082 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31083 * NEWS: Document the change.
31085 2007-09-01 Bruno Haible <bruno@clisp.org>
31087 * lib/streq.h: Add double-inclusion guard.
31089 2007-09-01 Karl Berry <karl@gnu.org>
31091 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31093 2007-08-28 Jim Meyering <jim@meyering.net>
31095 Rename mreadlink_with_size to areadlink_with_size.
31096 * NEWS: Document the change.
31097 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31098 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31099 * lib/mreadlink.h: Rename this to...
31100 * lib/areadlink.h: ...this.
31101 * modules/mreadlink-with-size: Rename this to...
31102 * modules/areadlink-with-size: ...this.
31103 * lib/canonicalize.c: Reflect the renaming.
31104 * modules/canonicalize: Likewise.
31106 2007-08-26 Bruno Haible <bruno@clisp.org>
31108 * gnulib-tool (func_import): When deciding which files to remove,
31109 consider also dangling symbolic links.
31110 Reported by Eric Blake.
31112 2007-08-26 Bruno Haible <bruno@clisp.org>
31114 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31116 2007-08-23 Simon Josefsson <simon@josefsson.org>
31118 * lib/readline.c: Don't include getline.h, the prototype is now
31121 2007-08-23 Jim Meyering <jim@meyering.net>
31124 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31125 around the funlockfile call, since funlockfile never sets errno.
31126 Don't set errno upon failed realloc.
31128 2007-08-22 Eric Blake <ebb9@byu.net>
31131 * lib/getdelim.c (getdelim): Revert regression that required *n to
31132 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31133 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31134 getdelim, rather than whether implementation is missing.
31135 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31136 * lib/stdio_.h (getline): Also declare if replacement is
31138 * doc/functions/getdelim.texi: New file.
31139 * doc/functions/getline.texi: Likewise.
31140 * doc/gnulib.texi (Function Substitutes): Add new files.
31141 Reported by Bruno Haible.
31143 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31145 * users.txt: Add Guile.
31147 2007-08-22 Eric Blake <ebb9@byu.net>
31149 * tests/test-getdelim.c (main): Use remove, not unlink.
31150 * tests/test-getline.c (main): Likewise.
31152 Move getline and getdelim into stdio.h, per POSIX 200x.
31153 * modules/getline (Files): Remove getline.h.
31154 (Depends-on): Add stdio.
31155 (configure.ac): Add module indicator.
31156 * modules/getdelim (Files): Remove getdelim.h.
31157 (Depends-on): Add stdio.
31158 (configure.ac): Add module indicator.
31159 * modules/stdio (Makefile.am): Work with new indicators.
31160 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31161 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31162 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31163 * lib/getdelim.h: Delete.
31164 * lib/getline.h: Delete.
31165 * lib/stdio_.h (getdelim, getline): Declare.
31166 * modules/getdelim-tests: New module.
31167 * modules/getline-tests: Likewise.
31168 * tests/test-getdelim.c: New file.
31169 * tests/test-getline.c: Likewise.
31170 * NEWS: Document the change.
31171 * lib/getline.c: Update choice of header.
31172 * lib/csharpcomp.c: Likewise.
31173 * lib/getpass.c: Likewise.
31174 * lib/javacomp.c: Likewise.
31175 * lib/javaversion.c: Likewise.
31176 * lib/yesno.c: Likewise.
31177 * lib/getdelim.c: Likewise.
31178 (getdelim): Set errno on failure, and avoid memory leak.
31180 2007-08-19 Bruno Haible <bruno@clisp.org>
31182 * modules/closein (Depends-on): Add freadahead.
31183 * lib/closein.c: Include freadahead.h.
31184 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31187 2007-08-19 Bruno Haible <bruno@clisp.org>
31189 * modules/freadahead-tests: New file.
31190 * tests/test-freadahead.sh: New file.
31191 * tests/test-freadahead.c: New file.
31193 * modules/freadahead: New file.
31194 * lib/freadahead.h: New file.
31195 * lib/freadahead.c: New file.
31196 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31197 fbufmode, fpurge, freadable, fwritable.
31199 2007-08-19 Eric Blake <ebb9@byu.net>
31201 Test yesno in combination with closein.
31202 * lib/yesno.c (yesno): Document use of stdin.
31203 * modules/yesno-tests (Files): New module.
31204 * tests/test-yesno.c (main): New file.
31205 * tests/test-yesno.sh: Likewise.
31207 2007-08-19 Bruno Haible <bruno@clisp.org>
31209 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31210 * lib/fseeko.c (rpl_fseeko): Likewise.
31211 * lib/fseterr.c (fseterr): Likewise.
31213 2007-08-19 Bruno Haible <bruno@clisp.org>
31215 * tests/test-lseek.c (main): Disable a test for BeOS.
31216 * doc/functions/lseek.texi: Document the BeOS bug.
31218 2007-08-19 Bruno Haible <bruno@clisp.org>
31219 Eric Blake <ebb9@byu.net>
31221 * lib/lseek.c: Include <sys/stat.h>.
31222 (rpl_lseek): Add workaround code also for Unix platforms.
31224 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31225 * doc/functions/lseek.texi: Document BeOS definiency.
31227 2007-08-18 Bruno Haible <bruno@clisp.org>
31229 * modules/fstrcmp-tests: New file.
31230 * tests/test-fstrcmp.c: New file.
31232 2007-08-18 Bruno Haible <bruno@clisp.org>
31234 * modules/fstrcmp: New file, from GNU gettext with modifications.
31235 * lib/fstrcmp.h: New file, from GNU gettext.
31236 * lib/fstrcmp.c: New file, from GNU gettext.
31237 * MODULES.html.sh (String handling): Add fstrcmp.
31239 2007-08-18 Bruno Haible <bruno@clisp.org>
31241 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31243 (diag, compareseq): Remove const from the ctxt argument.
31244 (USE_HEURISTIC): Undefine at the end.
31246 2007-08-18 Jim Meyering <jim@meyering.net>
31248 New file: lib/idcache.h
31249 * NEWS: Mention the addition.
31250 * modules/idcache (Files): Add lib/idcache.h
31251 * lib/idcache.c: Include "idcache.h".
31252 Don't include <sys/types.h>.
31253 Add a FIXME comment.
31254 Move file-scoped "static" declarations to the top.
31255 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31257 2007-08-17 Bruno Haible <bruno@clisp.org>
31258 and Paul Eggert <eggert@cs.ucla.edu>
31260 * MODULES.html.sh: Add diffseq.
31261 * modules/diffseq: New file.
31262 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31263 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31265 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31267 Import changes from coreutils for bootstrap script.
31269 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31271 * build-aux/bootstrap (slurp): Work even in environments where
31272 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31273 current code does not slurp files whose names start with ".", and
31274 this looks like it might be a troublesome area.
31276 2007-07-11 Jim Meyering <jim@meyering.net>
31278 If there's a GPL vN copyright comment, require that N == 3.
31280 2007-07-08 Jim Meyering <jim@meyering.net>
31282 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31283 * build-aux/bootstrap (mam_template): Move definition out of loop.
31285 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31287 * build-aux/bootstrap (symlink_to_dir): Rename function from
31288 symlink_to_gnulib. Add a directory parameter. Update all
31290 (cp_mark_as_generated): Also check for -- and link to -- files in
31293 2007-07-08 Jim Meyering <jim@meyering.net>
31295 Adapt to deeper hierarchy in gnulib.
31296 * build-aux/bootstrap (symlink_to_dir): If the destination
31297 directory doesn't exist, create it. This is required at least for
31298 "lib/uniwidth/cjk.h".
31300 2007-05-15 Jim Meyering <jim@meyering.net>
31302 * build-aux/bootstrap: Now that generated Makefile.am files
31303 are no longer under version control, they must be created at
31306 2007-08-14 Ben Pfaff <blp@gnu.org>
31308 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31310 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31312 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31313 given the changes below.
31314 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31315 even on hosts that have padding bits beyond the supported 64.
31317 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31319 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31320 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31321 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31323 (xstrtol_error): Remove.
31324 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31325 but with a different signature.
31326 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31327 * lib/xstrtol-error.c: Include exitfail.h.
31328 (xstrtol_fatal): New function, with a different signature from the
31329 old xstrtol_error, so that the caller need not worry about passing
31330 in an exit status, or about storage management of the option argument.
31331 (xstrtol_error): Now a static function. Redo signature to
31332 implement xstrtol_fatal. Output the correct number of hyphens in
31333 front of the option so that the caller need not worry about
31334 storage management.
31336 (_): Remove; not used now.
31337 * modules/xstrtol: Depend on getopt.
31338 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31339 of old STRTOL_FATAL_ERROR macro.
31340 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31342 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31343 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31345 2007-08-08 Eric Blake <ebb9@byu.net>
31347 * lib/xstrtol-error.c: Add missing include.
31349 Move xstrtol messages into gnulib domain, when --pobase is used.
31350 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31351 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31352 * modules/xstrtol (Files): Distribute new file.
31353 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31354 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31355 * tests/test-xstrtol.c: ...into new file.
31356 * tests/test-xstrtoul.c: Also test xstrtoul.
31357 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31358 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31359 * tests/test-xstrtol.sh: Drive the tests.
31360 * tests/test-xstrtoimax.sh: Likewise.
31361 * tests/test-xstrtoumax.sh: Likewise.
31362 * modules/xstrtol-tests: New module.
31363 * modules/xstrtoimax-tests: Likewise.
31364 * modules/xstrtoumax-tests: Likewise.
31366 2007-08-08 Jim Meyering <jim@meyering.net>
31368 New function: mfile_name_concat.
31369 * lib/filenamecat.c (mfile_name_concat): New function, just like
31370 file_name_concat, but return NULL upon failure rather than exiting
31372 * lib/filenamecat.h: Declare it.
31374 2007-08-07 Bruno Haible <bruno@clisp.org>
31376 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31377 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31379 Reported by Eric Blake.
31381 2007-08-07 Simon Josefsson <simon@josefsson.org>
31383 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31384 * modules/crypto/arcfour (License): Likewise.
31385 * modules/crypto/des-tests (License): Likewise.
31386 * modules/crypto/gc-arctwo-tests (License): Likewise.
31387 * modules/crypto/gc-des-tests (License): Likewise.
31388 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31389 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31390 * modules/crypto/gc-md2-tests (License): Likewise.
31391 * modules/crypto/gc-md4-tests (License): Likewise.
31392 * modules/crypto/gc-md5-tests (License): Likewise.
31393 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31394 * modules/crypto/gc-rijndael-tests (License): Likewise.
31395 * modules/crypto/gc-sha1-tests (License): Likewise.
31396 * modules/crypto/gc-tests (License): Likewise.
31397 * modules/crypto/hmac-md5 (License): Likewise.
31398 * modules/crypto/hmac-sha1 (License): Likewise.
31399 * modules/crypto/md2-tests (License): Likewise.
31400 * modules/crypto/md4-tests (License): Likewise.
31401 * modules/crypto/md5 (License): Likewise.
31402 * modules/crypto/rijndael (License): Likewise.
31403 * modules/crypto/sha1 (License): Likewise.
31404 * modules/memxor (License): Likewise.
31406 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31407 and Bruno Haible <bruno@clisp.org>
31409 * NEWS: Describe interface changes to human, xstrtol.
31410 * lib/human.h: Include <xstrtol.h>.
31411 (human_options): Return enum strtol_error, not int. Remove
31412 bool arg; take int * instead.
31413 * lib/human.c: Don't include "gettext.h".
31414 (_): Remove; no longer used.
31415 Don't include <xstrtol.h>, since human.h does it.
31416 (human_options): Adjust to abovementioned interface changes.
31417 Do not report error to stderr; that's now the caller's
31419 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31421 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31422 Str, Argument_type_string. All uses changed. Put " argument"
31423 in diagnostics to make them clearer. Change wording of suffix
31424 message for clarity.
31425 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31426 Argument_type_string.
31427 (STRTOL_FATAL_WARN): Remove; no longer used.
31428 * modules/human (Depends-on): Remove gettext-h.
31430 2007-08-06 Simon Josefsson <simon@josefsson.org>
31432 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31434 2007-07-31 Bruno Haible <bruno@clisp.org>
31436 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31437 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31438 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31440 2007-07-31 Bruno Haible <bruno@clisp.org>
31442 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31443 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31445 2007-07-30 Bruno Haible <bruno@clisp.org>
31447 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31448 * modules/c-ctype (License): Likewise.
31449 * modules/c-strcase (License): Likewise.
31450 * modules/check-version (License): Likewise.
31451 * modules/iconv (License): Likewise.
31452 * modules/iconv_open (License): Likewise.
31453 * modules/read-file (License): Likewise.
31454 * modules/striconv (License): Likewise.
31455 * modules/strverscmp (License): Likewise.
31456 * modules/vasprintf (License): Likewise.
31457 * modules/crypto/des (License): Likewise.
31458 * modules/crypto/gc (License): Likewise.
31459 * modules/crypto/gc-arcfour (License): Likewise.
31460 * modules/crypto/gc-arctwo (License): Likewise.
31461 * modules/crypto/gc-des (License): Likewise.
31462 * modules/crypto/gc-hmac-md5 (License): Likewise.
31463 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31464 * modules/crypto/gc-md2 (License): Likewise.
31465 * modules/crypto/gc-md4 (License): Likewise.
31466 * modules/crypto/gc-md5 (License): Likewise.
31467 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31468 * modules/crypto/gc-random (License): Likewise.
31469 * modules/crypto/gc-rijndael (License): Likewise.
31470 * modules/crypto/gc-sha1 (License): Likewise.
31471 * modules/crypto/md2 (License): Likewise.
31472 * modules/crypto/md4 (License): Likewise.
31474 2007-07-30 Jim Meyering <jim@meyering.net>
31476 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31477 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31478 it has valid stat data. This bug would cause du not to count the
31479 sizes of inaccessible directories.
31480 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31481 in <http://bugzilla.redhat.com/250077>.
31483 2007-07-25 Peter O'Gorman <peter@pogma.com>
31484 Bruno Haible <bruno@clisp.org>
31486 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31487 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31488 #include_next, gives a diagnostic about it, but reports no error in
31490 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31492 2007-07-24 Ben Pfaff <blp@gnu.org>
31494 Improve name: "count-one-bits" is better than "popcount".
31495 * MODULES.html.sh: Update name.
31496 * lib/popcount.h: Renamed lib/count-one-bits.h.
31497 (popcount): Renamed count_one_bits.
31498 (popcountl): Renamed count_one_bits_l.
31499 (popcountll): Renamed count_one_bits_ll.
31500 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31501 * modules/popcount: Renamed module/count-one-bits.
31502 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31503 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31505 2007-07-23 Ben Pfaff <blp@gnu.org>
31507 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31508 better code generation, and add U to large constants to avoid
31509 warnings, in non-GCC case.
31510 Suggested by Bruno Haible.
31512 2007-07-23 Ben Pfaff <blp@gnu.org>
31514 * lib/popcount.h: Use verify_true instead of if...abort.
31515 * modules/popcount: Depend on verify module.
31516 Suggested by Jim Meyering.
31518 2007-07-23 Bruno Haible <bruno@clisp.org>
31520 * gnulib-tool (func_import): Create a .cvsignore file also when the
31521 directory is not yet in CVS but the toplevel directory is. When
31522 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31523 Reported by Karl Berry.
31525 2007-07-22 Ben Pfaff <blp@gnu.org>
31527 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31529 Suggested by Eric Blake.
31531 2007-07-22 Ben Pfaff <blp@gnu.org>
31533 New module: popcount.
31534 * MODULES.html.sh: Add popcount.
31535 * modules/popcount: New file.
31536 * modules/popcount-tests: New file.
31537 * tests/test-popcount.c: New file.
31538 * lib/popcount.h: New file.
31539 * m4/popcount.m4: New file.
31541 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31543 * build-aux/announce-gen: Update to GPLv3.
31545 * build-aux/config.guess: Update from config.
31547 2007-07-21 Bruno Haible <bruno@clisp.org>
31549 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31550 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31552 2007-07-20 Jim Meyering <jim@meyering.net>
31554 * check-module: Diagnose a self-dependency.
31556 2007-07-19 Bruno Haible <bruno@clisp.org>
31558 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31560 Reported by Eric Blake.
31562 2007-07-18 Bruno Haible <bruno@clisp.org>
31564 * gnulib-tool: New options --po-base, --po-domain.
31565 (func_usage): Document them.
31566 (pobase, po_domain): New variables.
31567 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31568 DEFAULT_TEXT_DOMAIN.
31569 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31570 (func_import): Consider pobase and po_domain. Create a po/ directory.
31571 (func_create_testdir): Set pobase and po_domain to empty.
31572 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31573 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31575 2007-07-18 Bruno Haible <bruno@clisp.org>
31577 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31578 EXTRA_DIST augmentation for files in build-aux/.
31580 2007-07-16 Bruno Haible <bruno@clisp.org>
31582 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31583 * modules/getdelim (License): Likewise.
31585 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31587 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31588 * modules/d-type (License): Likewise.
31589 * modules/extensions (License): Likewise.
31590 * modules/fnmatch (License): Likewise.
31591 * modules/fseeko (License): Likewise.
31592 * modules/getaddrinfo (License): Likewise.
31593 * modules/getline (License): Likewise.
31594 * modules/getlogin_r (License): Likewise.
31595 * modules/getpass (License): Likewise.
31596 * modules/gettimeofday (License): Likewise.
31597 * modules/glob (License): Likewise.
31598 * modules/inet_ntop (License): Likewise.
31599 * modules/malloc (License): Likewise.
31600 * modules/malloca (License): Likewise.
31601 * modules/memmem (License): Likewise.
31602 * modules/mempcpy (License): Likewise.
31603 * modules/memset (License): Likewise.
31604 * modules/minmax (License): Likewise.
31605 * modules/mktime (License): Likewise.
31606 * modules/netinet_in (License): Likewise.
31607 * modules/pathmax (License): Likewise.
31608 * modules/poll (License): Likewise.
31609 * modules/regex (License): Likewise.
31610 * modules/snprintf (License): Likewise.
31611 * modules/stdbool (License): Likewise.
31612 * modules/stdint (License): Likewise.
31613 * modules/stdio (License): Likewise.
31614 * modules/strcase (License): Likewise.
31615 * modules/strcasestr (License): Likewise.
31616 * modules/strdup (License): Likewise.
31617 * modules/string (License): Likewise.
31618 * modules/strndup (License): Likewise.
31619 * modules/strnlen (License): Likewise.
31620 * modules/strpbrk (License): Likewise.
31621 * modules/strptime (License): Likewise.
31622 * modules/strsep (License): Likewise.
31623 * modules/sys_select (License): Likewise.
31624 * modules/sys_socket (License): Likewise.
31625 * modules/sys_stat (License): Likewise.
31626 * modules/sys_time (License): Likewise.
31627 * modules/time (License): Likewise.
31628 * modules/time_r (License): Likewise.
31629 * modules/timegm (License): Likewise.
31630 * modules/unistd (License): Likewise.
31631 * modules/vsnprintf (License): Likewise.
31632 * modules/wctype (License): Likewise.
31634 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31636 * modules/argz (License): LGPLv2+.
31638 2007-07-15 Karl Berry <karl@gnu.org>
31640 * doc/gnulib.texi: revise node structure per new fdl.texi.
31642 2007-07-14 Bruno Haible <bruno@clisp.org>
31644 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31646 * lib/uniname/uninames.h: Regenerated.
31648 2007-07-14 Karl Berry <karl@gnu.org>
31650 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31651 omitting sectioning and index commands.
31653 2007-07-13 Bruno Haible <bruno@clisp.org>
31655 New gnulib-tool option --more-symlinks.
31656 * gnulib-tool (func_usage): Document --more-symlinks.
31657 (do_copyrights): New variable.
31658 Recognize option --more-symlinks.
31659 (func_import): Don't add a copyright notice transform to
31660 sed_transform_lib_file if do_copyrights is empty.
31662 2007-07-13 Bruno Haible <bruno@clisp.org>
31664 * lib/vasnprintf.c (decimal_point_char): Define also if
31665 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31666 && !NEED_PRINTF_DIRECTIVE_A.
31667 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31668 Gary V. Vaughan <gary@gnu.org>.
31670 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31672 * lib/inttypes_.h: Undo previous change, since it was fixed
31673 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31675 2007-07-13 Bruno Haible <bruno@clisp.org>
31677 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31678 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31680 2007-07-13 Jim Meyering <jim@meyering.net>
31682 df: Don't fail for Tru64's "file-on-file mount".
31683 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31684 so we fall through and use statfs instead. Details here:
31685 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31686 Reported by Albert Chin.
31688 2007-07-13 Bruno Haible <bruno@clisp.org>
31690 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31691 * modules/configmake (License): Likewise.
31692 * modules/gettext (License): Likewise.
31693 * modules/gettext-h (License): Likewise.
31694 * modules/include_next (License): Likewise.
31695 * modules/link-warning (License): Likewise.
31696 * modules/localcharset (License): Likewise.
31697 * modules/localename (License): Likewise.
31698 * modules/lock (License): Likewise.
31699 * modules/relocatable-lib-lgpl (License): Likewise.
31700 * modules/size_max (License): Likewise.
31701 * modules/vasnprintf (License): Likewise.
31702 * modules/wchar (License): Likewise.
31703 * modules/xsize (License): Likewise.
31705 2007-07-13 Bruno Haible <bruno@clisp.org>
31707 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31708 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31710 2007-07-12 Bruno Haible <bruno@clisp.org>
31712 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31713 in the modules files.
31715 2007-07-11 Karl Berry <karl@gnu.org>
31717 * MODULES.html.sh (func_module): use
31718 sed -e '\|^'"${includefile}"'$|d'
31719 instead of /.../d, to avoid errors on $includefile's containing /.
31721 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31723 * gnulib-tool (func_import): Avoid duplication of --avoid
31725 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31726 names to `_' in variable names.
31728 2007-07-10 Eric Blake <ebb9@byu.net>
31730 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31731 * NEWS: Document this change.
31733 2007-07-08 Bruno Haible <bruno@clisp.org>
31735 Update to Unicode 5.0.
31736 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31737 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31738 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31739 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31740 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31741 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31742 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31743 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31744 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31745 U+10A3F, U+1D242..U+1D244.
31746 (nonspacing_table_ind): Update.
31747 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31748 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31750 2007-07-08 Bruno Haible <bruno@clisp.org>
31752 Update to Unicode 5.0.
31753 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31754 code transform. Extend the name index field of unicode_name_to_code and
31755 unicode_code_to_name from 16 to 24 bits.
31756 * lib/uniname/uniname.c (unicode_character_name,
31757 unicode_name_character): Add the range 0x12xxx to the code transform.
31758 * lib/uniname/uninames.h: Regenerated.
31759 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31761 2007-07-07 Bruno Haible <bruno@clisp.org>
31763 * modules/wcwidth-tests: New file.
31764 * tests/test-wcwidth.c: New file.
31766 Work around MacOS X wcwidth() bug.
31767 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31768 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31769 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31770 original wcwidth in non-UTF-8 locales.
31771 * modules/wcwidth (Depends-on): Add localcharset, streq,
31773 * doc/functions/wcwidth.texi: Update.
31775 2007-07-07 Bruno Haible <bruno@clisp.org>
31777 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31778 (wcwidth): New declaration.
31779 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31781 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31782 here. Prepare for creating <wchar.h> unconditionally.
31783 * modules/wchar (Depends-on): Add link-warning.
31784 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31785 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31786 * lib/wcwidth.h: Remove file.
31787 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31788 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31789 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31790 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31791 (Include): Replace wcwidth.h with <wchar.h>.
31792 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31793 * lib/mbchar.h: Don't include wcwidth.h.
31794 * lib/mbswidth.c: Likewise.
31795 * NEWS: Mention the change.
31797 2007-07-07 Bruno Haible <bruno@clisp.org>
31799 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31800 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31801 definition with an external declaration.
31802 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31803 defined as a function. Remove AC_C_INLINE requirement.
31804 * modules/wcwidth (Files): Add lib/wcwidth.c.
31805 (Makefile.am): Remove redundant statement.
31807 2007-07-07 Bruno Haible <bruno@clisp.org>
31809 * MODULES.html.sh (Unicode string functions): Add the new modules.
31811 * tests/uniwidth/test-u32-strwidth.c: New file.
31812 * modules/uniwidth/u32-strwidth-tests: New file.
31814 * lib/uniwidth/u32-strwidth.c: New file.
31815 * modules/uniwidth/u32-strwidth: New file.
31817 * tests/uniwidth/test-u16-strwidth.c: New file.
31818 * modules/uniwidth/u16-strwidth-tests: New file.
31820 * lib/uniwidth/u16-strwidth.c: New file.
31821 * modules/uniwidth/u16-strwidth: New file.
31823 * tests/uniwidth/test-u8-strwidth.c: New file.
31824 * modules/uniwidth/u8-strwidth-tests: New file.
31826 * lib/uniwidth/u8-strwidth.c: New file.
31827 * modules/uniwidth/u8-strwidth: New file.
31829 * tests/uniwidth/test-u32-width.c: New file.
31830 * modules/uniwidth/u32-width-tests: New file.
31832 * lib/uniwidth/u32-width.c: New file.
31833 * modules/uniwidth/u32-width: New file.
31835 * tests/uniwidth/test-u16-width.c: New file.
31836 * modules/uniwidth/u16-width-tests: New file.
31838 * lib/uniwidth/u16-width.c: New file.
31839 * modules/uniwidth/u16-width: New file.
31841 * tests/uniwidth/test-u8-width.c: New file.
31842 * modules/uniwidth/u8-width-tests: New file.
31844 * lib/uniwidth/u8-width.c: New file.
31845 * modules/uniwidth/u8-width: New file.
31847 * tests/uniwidth/test-uc_width.c: New file.
31848 * modules/uniwidth/width-tests: New file.
31850 * lib/uniwidth/width.c: New file, from GNU libiconv.
31851 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31852 * modules/uniwidth/width: New file.
31854 * lib/uniwidth.h: New file, from GNU libiconv.
31855 * modules/uniwidth/base: New file.
31857 2007-07-07 Bruno Haible <bruno@clisp.org>
31859 * lib/uniname.h: New file, from GNU gettext.
31860 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31861 * lib/uniname/uninames.h: New file, from GNU gettext.
31862 * lib/uniname/uniname.c: New file, from GNU gettext.
31863 * tests/uniname/test-uninames.sh: New file.
31864 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31865 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31866 * modules/uniname/base: New file.
31867 * modules/uniname/uniname: New file.
31868 * modules/uniname/uniname-tests: New file.
31869 * MODULES.html.sh (Unicode string functions): Add the new modules.
31871 2007-07-06 Bruno Haible <bruno@clisp.org>
31873 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31875 2007-07-06 Bruno Haible <bruno@clisp.org>
31877 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31878 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31879 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31880 include <sys/time.h>.
31881 Reported by Eric Blake.
31883 2007-07-06 Eric Blake <ebb9@byu.net>
31885 Fix testing canonicalize on cygwin.
31886 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31887 Revert patch from 2007-06-19.
31888 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31889 canonicalize module is also in use.
31890 * tests/test-canonicalize.c: New file.
31891 * tests/test-canonicalize.sh: Likewise.
31892 * modules/canonicalize-tests: Likewise.
31894 2007-07-06 Jim Meyering <jim@meyering.net>
31896 * lib/getugroups.c (getugroups): Detect getgrent failure.
31897 Adjust comment to reflect reality: this function may return -1.
31899 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31901 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31902 the new TP address.
31904 (gnulib_mk): New variable.
31906 2007-07-05 Jim Meyering <jim@meyering.net>
31908 Don't let endgrent clobber errno, no matter how improbable.
31909 * lib/getugroups.c (getugroups): Save and restore errno around
31912 Close the group DB even when failing with 2^31 or more members.
31913 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31915 2007-07-04 Jim Meyering <jim@meyering.net>
31917 * lib/getugroups.h: New file.
31918 * lib/getugroups.c: Include "getugroups.h".
31919 Remove uses of "register" keyword.
31920 Move local variable, "cp", down into scope where used.
31921 Give "username" parameter the "const" attribute.
31922 * modules/getugroups (Files): Add lib/getugroups.h
31924 2007-07-04 Karl Berry <karl@gnu.org>
31926 * MODULES.html.sh (func_all_modules): Complete rename of
31927 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31929 2007-07-02 Bruno Haible <bruno@clisp.org>
31931 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31932 mode, when inttypes.h comes from gnulib.
31933 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31935 2007-07-02 Simon Josefsson <simon@josefsson.org>
31937 * NEWS: Mention lgpl module name change.
31939 * modules/lgpl-2.1: Renamed from lgpl.
31941 * NEWS: Mention gpl module name change.
31943 * modules/gpl-3.0: New file, based on gpl-2.0.
31945 * modules/gpl-2.0: Renamed from gpl.
31947 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31950 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31952 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31953 #define __STDC_LIMIT_MACROS temporarily while including
31954 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31955 Problem reported by Joel E. Denny in
31956 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31958 2007-07-01 Bruno Haible <bruno@clisp.org>
31960 * lib/unistdio.h: New file.
31961 * lib/unistdio/u-asnprintf.h: New file.
31962 * lib/unistdio/u-asprintf.h: New file.
31963 * lib/unistdio/u-printf-args.c: New file.
31964 * lib/unistdio/u-printf-args.h: New file.
31965 * lib/unistdio/u-printf-parse.h: New file.
31966 * lib/unistdio/u-snprintf.h: New file.
31967 * lib/unistdio/u-sprintf.h: New file.
31968 * lib/unistdio/u-vasprintf.h: New file.
31969 * lib/unistdio/u-vsnprintf.h: New file.
31970 * lib/unistdio/u-vsprintf.h: New file.
31971 * lib/unistdio/ulc-asnprintf.c: New file.
31972 * lib/unistdio/ulc-asprintf.c: New file.
31973 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31974 * lib/unistdio/ulc-printf-parse.c: New file.
31975 * lib/unistdio/ulc-snprintf.c: New file.
31976 * lib/unistdio/ulc-sprintf.c: New file.
31977 * lib/unistdio/ulc-vasnprintf.c: New file.
31978 * lib/unistdio/ulc-vasprintf.c: New file.
31979 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31980 * lib/unistdio/ulc-vsnprintf.c: New file.
31981 * lib/unistdio/ulc-vsprintf.c: New file.
31982 * lib/unistdio/u8-asnprintf.c: New file.
31983 * lib/unistdio/u8-asprintf.c: New file.
31984 * lib/unistdio/u8-printf-parse.c: New file.
31985 * lib/unistdio/u8-snprintf.c: New file.
31986 * lib/unistdio/u8-sprintf.c: New file.
31987 * lib/unistdio/u8-vasnprintf.c: New file.
31988 * lib/unistdio/u8-vasprintf.c: New file.
31989 * lib/unistdio/u8-vsnprintf.c: New file.
31990 * lib/unistdio/u8-vsprintf.c: New file.
31991 * lib/unistdio/u8-u8-asnprintf.c: New file.
31992 * lib/unistdio/u8-u8-asprintf.c: New file.
31993 * lib/unistdio/u8-u8-snprintf.c: New file.
31994 * lib/unistdio/u8-u8-sprintf.c: New file.
31995 * lib/unistdio/u8-u8-vasnprintf.c: New file.
31996 * lib/unistdio/u8-u8-vasprintf.c: New file.
31997 * lib/unistdio/u8-u8-vsnprintf.c: New file.
31998 * lib/unistdio/u8-u8-vsprintf.c: New file.
31999 * lib/unistdio/u16-asnprintf.c: New file.
32000 * lib/unistdio/u16-asprintf.c: New file.
32001 * lib/unistdio/u16-printf-parse.c: New file.
32002 * lib/unistdio/u16-snprintf.c: New file.
32003 * lib/unistdio/u16-sprintf.c: New file.
32004 * lib/unistdio/u16-vasnprintf.c: New file.
32005 * lib/unistdio/u16-vasprintf.c: New file.
32006 * lib/unistdio/u16-vsnprintf.c: New file.
32007 * lib/unistdio/u16-vsprintf.c: New file.
32008 * lib/unistdio/u16-u16-asnprintf.c: New file.
32009 * lib/unistdio/u16-u16-asprintf.c: New file.
32010 * lib/unistdio/u16-u16-snprintf.c: New file.
32011 * lib/unistdio/u16-u16-sprintf.c: New file.
32012 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32013 * lib/unistdio/u16-u16-vasprintf.c: New file.
32014 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32015 * lib/unistdio/u16-u16-vsprintf.c: New file.
32016 * lib/unistdio/u32-asnprintf.c: New file.
32017 * lib/unistdio/u32-asprintf.c: New file.
32018 * lib/unistdio/u32-printf-parse.c: New file.
32019 * lib/unistdio/u32-snprintf.c: New file.
32020 * lib/unistdio/u32-sprintf.c: New file.
32021 * lib/unistdio/u32-vasnprintf.c: New file.
32022 * lib/unistdio/u32-vasprintf.c: New file.
32023 * lib/unistdio/u32-vsnprintf.c: New file.
32024 * lib/unistdio/u32-vsprintf.c: New file.
32025 * lib/unistdio/u32-u32-asnprintf.c: New file.
32026 * lib/unistdio/u32-u32-asprintf.c: New file.
32027 * lib/unistdio/u32-u32-snprintf.c: New file.
32028 * lib/unistdio/u32-u32-sprintf.c: New file.
32029 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32030 * lib/unistdio/u32-u32-vasprintf.c: New file.
32031 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32032 * lib/unistdio/u32-u32-vsprintf.c: New file.
32033 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32034 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32035 * tests/unistdio/test-ulc-printf1.h: New file.
32036 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32037 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32038 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32039 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32040 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32041 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32042 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32043 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32044 * tests/unistdio/test-u8-asnprintf1.c: New file.
32045 * tests/unistdio/test-u8-asnprintf1.h: New file.
32046 * tests/unistdio/test-u8-printf1.h: New file.
32047 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32048 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32049 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32050 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32051 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32052 * tests/unistdio/test-u8-vasprintf1.c: New file.
32053 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32054 * tests/unistdio/test-u8-vsprintf1.c: New file.
32055 * tests/unistdio/test-u16-asnprintf1.c: New file.
32056 * tests/unistdio/test-u16-asnprintf1.h: New file.
32057 * tests/unistdio/test-u16-printf1.h: New file.
32058 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32059 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32060 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32061 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32062 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32063 * tests/unistdio/test-u16-vasprintf1.c: New file.
32064 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32065 * tests/unistdio/test-u16-vsprintf1.c: New file.
32066 * tests/unistdio/test-u32-asnprintf1.c: New file.
32067 * tests/unistdio/test-u32-asnprintf1.h: New file.
32068 * tests/unistdio/test-u32-printf1.h: New file.
32069 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32070 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32071 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32072 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32073 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32074 * tests/unistdio/test-u32-vasprintf1.c: New file.
32075 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32076 * tests/unistdio/test-u32-vsprintf1.c: New file.
32077 * modules/unistdio/base: New file.
32078 * modules/unistdio/u-printf-args: New file.
32079 * modules/unistdio/ulc-asnprintf: New file.
32080 * modules/unistdio/ulc-asprintf: New file.
32081 * modules/unistdio/ulc-fprintf: New file.
32082 * modules/unistdio/ulc-printf-parse: New file.
32083 * modules/unistdio/ulc-snprintf: New file.
32084 * modules/unistdio/ulc-sprintf: New file.
32085 * modules/unistdio/ulc-vasnprintf: New file.
32086 * modules/unistdio/ulc-vasprintf: New file.
32087 * modules/unistdio/ulc-vfprintf: New file.
32088 * modules/unistdio/ulc-vsnprintf: New file.
32089 * modules/unistdio/ulc-vsprintf: New file.
32090 * modules/unistdio/u8-asnprintf: New file.
32091 * modules/unistdio/u8-asprintf: New file.
32092 * modules/unistdio/u8-printf-parse: New file.
32093 * modules/unistdio/u8-snprintf: New file.
32094 * modules/unistdio/u8-sprintf: New file.
32095 * modules/unistdio/u8-vasnprintf: New file.
32096 * modules/unistdio/u8-vasprintf: New file.
32097 * modules/unistdio/u8-vsnprintf: New file.
32098 * modules/unistdio/u8-vsprintf: New file.
32099 * modules/unistdio/u8-u8-asnprintf: New file.
32100 * modules/unistdio/u8-u8-asprintf: New file.
32101 * modules/unistdio/u8-u8-snprintf: New file.
32102 * modules/unistdio/u8-u8-sprintf: New file.
32103 * modules/unistdio/u8-u8-vasnprintf: New file.
32104 * modules/unistdio/u8-u8-vasprintf: New file.
32105 * modules/unistdio/u8-u8-vsnprintf: New file.
32106 * modules/unistdio/u8-u8-vsprintf: New file.
32107 * modules/unistdio/u16-asnprintf: New file.
32108 * modules/unistdio/u16-asprintf: New file.
32109 * modules/unistdio/u16-printf-parse: New file.
32110 * modules/unistdio/u16-snprintf: New file.
32111 * modules/unistdio/u16-sprintf: New file.
32112 * modules/unistdio/u16-vasnprintf: New file.
32113 * modules/unistdio/u16-vasprintf: New file.
32114 * modules/unistdio/u16-vsnprintf: New file.
32115 * modules/unistdio/u16-vsprintf: New file.
32116 * modules/unistdio/u16-u16-asnprintf: New file.
32117 * modules/unistdio/u16-u16-asprintf: New file.
32118 * modules/unistdio/u16-u16-snprintf: New file.
32119 * modules/unistdio/u16-u16-sprintf: New file.
32120 * modules/unistdio/u16-u16-vasnprintf: New file.
32121 * modules/unistdio/u16-u16-vasprintf: New file.
32122 * modules/unistdio/u16-u16-vsnprintf: New file.
32123 * modules/unistdio/u16-u16-vsprintf: New file.
32124 * modules/unistdio/u32-asnprintf: New file.
32125 * modules/unistdio/u32-asprintf: New file.
32126 * modules/unistdio/u32-printf-parse: New file.
32127 * modules/unistdio/u32-snprintf: New file.
32128 * modules/unistdio/u32-sprintf: New file.
32129 * modules/unistdio/u32-vasnprintf: New file.
32130 * modules/unistdio/u32-vasprintf: New file.
32131 * modules/unistdio/u32-vsnprintf: New file.
32132 * modules/unistdio/u32-vsprintf: New file.
32133 * modules/unistdio/u32-u32-asnprintf: New file.
32134 * modules/unistdio/u32-u32-asprintf: New file.
32135 * modules/unistdio/u32-u32-snprintf: New file.
32136 * modules/unistdio/u32-u32-sprintf: New file.
32137 * modules/unistdio/u32-u32-vasnprintf: New file.
32138 * modules/unistdio/u32-u32-vasprintf: New file.
32139 * modules/unistdio/u32-u32-vsnprintf: New file.
32140 * modules/unistdio/u32-u32-vsprintf: New file.
32141 * modules/unistdio/ulc-asnprintf-tests: New file.
32142 * modules/unistdio/ulc-vasnprintf-tests: New file.
32143 * modules/unistdio/ulc-vasprintf-tests: New file.
32144 * modules/unistdio/ulc-vsnprintf-tests: New file.
32145 * modules/unistdio/ulc-vsprintf-tests: New file.
32146 * modules/unistdio/u8-asnprintf-tests: New file.
32147 * modules/unistdio/u8-vasnprintf-tests: New file.
32148 * modules/unistdio/u8-vasprintf-tests: New file.
32149 * modules/unistdio/u8-vsnprintf-tests: New file.
32150 * modules/unistdio/u8-vsprintf-tests: New file.
32151 * modules/unistdio/u16-asnprintf-tests: New file.
32152 * modules/unistdio/u16-vasnprintf-tests: New file.
32153 * modules/unistdio/u16-vasprintf-tests: New file.
32154 * modules/unistdio/u16-vsnprintf-tests: New file.
32155 * modules/unistdio/u16-vsprintf-tests: New file.
32156 * modules/unistdio/u32-asnprintf-tests: New file.
32157 * modules/unistdio/u32-vasnprintf-tests: New file.
32158 * modules/unistdio/u32-vasprintf-tests: New file.
32159 * modules/unistdio/u32-vsnprintf-tests: New file.
32160 * modules/unistdio/u32-vsprintf-tests: New file.
32161 * MODULES.html.sh (Unicode string functions): Add the new modules.
32163 2007-07-01 Bruno Haible <bruno@clisp.org>
32165 * lib/sprintf.c (sprintf): Limit the available length estimation,
32166 to avoid address wraparound.
32167 * lib/vsprintf.c (vsprintf): Likewise.
32168 * modules/sprintf-posix (Dependencies): Add stdint.
32169 * modules/vsprintf-posix (Dependencies): Likewise.
32171 2007-07-01 Bruno Haible <bruno@clisp.org>
32173 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32174 Windows PATH as well. Conservative double-quoting. Comments.
32176 2007-07-01 Bruno Haible <bruno@clisp.org>
32177 Eric Blake <ebb9@byu.net>
32178 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32180 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32181 empty components in $PATH, denoting '.'.
32183 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32185 * gnulib-tool: Fix indentation.
32186 (func_create_megatestdir): Likewise.
32187 Report by Bruno Haible.
32189 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32191 Sync from Automake.
32192 * build-aux/gnupload: Fix shell portability issues with for loops.
32193 Report by Karl Berry.
32195 2007-06-29 Simon Josefsson <simon@josefsson.org>
32197 * build-aux/maint.mk (POURL): Use translationproject.org.
32199 2007-06-27 Simon Josefsson <simon@josefsson.org>
32200 Bruno Haible <bruno@clisp.org>
32202 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32203 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32204 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32205 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32206 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32208 2007-06-27 Bruno Haible <bruno@clisp.org>
32210 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32211 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32213 2007-06-26 Karl Berry <karl@gnu.org>
32215 * MODULES.html.sh: remove xreadlink-with-size.
32217 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32219 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32220 method that I hope also handles the double-include problem noted
32222 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32224 2007-06-23 Bruno Haible <bruno@clisp.org>
32226 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32227 Don't let the 'mostlyclean' target fail if the last subdirectory could
32229 Reported by Karl Berry.
32231 2007-06-23 Bruno Haible <bruno@clisp.org>
32233 * gnulib-tool (echo): Add a speedier workaround for ksh.
32234 * tests/test-echo.sh: Likewise.
32236 2007-06-23 Bruno Haible <bruno@clisp.org>
32238 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32239 * tests/test-echo.sh: Likewise.
32241 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32243 * gnulib-tool (IFS): Initialize early, so we don't set it to
32245 (self_abspathname): Rewrite algorithm to set it, reindent.
32246 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32247 (func_create_megatestdir): Merge some sed scripts.
32249 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32251 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32252 exposed by Sun Studio 11 cc on Solaris 8.
32254 2007-06-22 Bruno Haible <bruno@clisp.org>
32256 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32258 * tests/test-echo.sh: New file.
32260 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32262 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32263 simplify `sed_replace_build_aux' scripts, they are portable but
32264 echoing them with `echo' is not.
32265 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32267 2007-06-21 Karl Berry <karl@gnu.org>
32269 * config/srclist.txt: guess we can't handle the licenses via
32270 srclist at the moment.
32272 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32274 * MODULES.html.sh: Add include_next.
32275 * modules/include_next: New file.
32277 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32279 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32281 (gl_CHECK_NEXT_HEADERS): New macro.
32282 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32283 the obsolescent gl_ABSOLUTE_HEADER.
32284 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32285 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32286 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32287 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32288 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32289 * m4/math_h.m4 (gl_MATH_H): Likewise.
32290 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32291 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32292 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32293 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32294 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32295 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32296 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32297 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32298 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32299 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32300 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32301 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32302 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32303 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32304 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32305 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32306 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32307 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32308 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32309 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32310 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32311 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32312 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32313 * lib/float_.h: Likewise.
32314 * lib/inttypes_.h: Likewise.
32315 * lib/math_.h: Likewise.
32316 * lib/search_.h: Likewise.
32317 * lib/signal_.h: Likewise.
32318 * lib/stdint_.h: Likewise.
32319 * lib/stdio_.h: Likewise.
32320 * lib/stdlib_.h: Likewise.
32321 * lib/string_.h: Likewise.
32322 * lib/sys_stat_.h: Likewise.
32323 * lib/sys_time_.h: Likewise.
32324 * lib/time_.h: Likewise.
32325 * lib/unistd_.h: Likewise.
32326 * lib/wchar_.h: Likewise.
32327 * lib/wctype_.h: Likewise.
32328 * lib/dirent_.h: Likewise.
32329 * lib/iconv_.h: Likewise.
32330 * lib/locale_.h: Likewise.
32331 * lib/netinet_in_.h: Likewise.
32332 * lib/sys_select_.h: Likewise.
32333 * lib/sys_socket_.h: Likewise.
32334 * lib/sysexits_.h: Likewise.
32335 * modules/fcntl (Depends-on): Depend on include_next, not
32337 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32338 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32339 * modules/fchdir: Likewise.
32340 * modules/float: Likewise.
32341 * modules/iconv_open: Likewise.
32342 * modules/inttypes: Likewise.
32343 * modules/locale: Likewise.
32344 * modules/math: Likewise.
32345 * modules/netinet_in: Likewise.
32346 * modules/search: Likewise.
32347 * modules/signal: Likewise.
32348 * modules/stdint: Likewise.
32349 * modules/stdio: Likewise.
32350 * modules/stdlib: Likewise.
32351 * modules/string: Likewise.
32352 * modules/sys_select: Likewise.
32353 * modules/sys_socket: Likewise.
32354 * modules/sys_stat: Likewise.
32355 * modules/sys_time: Likewise.
32356 * modules/sysexits: Likewise.
32357 * modules/time: Likewise.
32358 * modules/unistd: Likewise.
32359 * modules/wchar: Likewise.
32360 * modules/wctype: Likewise.
32361 * modules/sys_stat: Change maintainer to "all".
32362 * modules/unistd: Likewise.
32364 2007-06-20 Karl Berry <karl@gnu.org>
32366 * config/srclist.txt: track www changes in license files.
32368 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32370 * build-aux/bootstrap: Remove stray dot.
32371 Make sure build_aux settings are honored when linking
32372 gnulib_extra_files.
32374 2007-06-19 Eric Blake <ebb9@byu.net>
32376 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32377 Allow compilation on cygwin.
32379 2007-06-19 Jim Meyering <jim@meyering.net>
32381 xreadlink-with-size: Remove module. No longer used.
32382 Ex-callers now use xreadlink or mreadlink-with-size.
32383 * modules/xreadlink-with-size: Remove module.
32384 * lib/xreadlink-with-size.c: Remove file.
32385 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32386 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32387 just before the function definition *is* accurate.
32389 Eliminate one way canonicalize_filename_mode could exit.
32390 * lib/canonicalize.c (canonicalize_filename_mode):
32391 Use mreadlink_with_size, not xreadlink_with_size.
32393 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32395 Detect porting problems to FreeBSD/arm, which has time_t wider than
32396 long int. Original problem reported for GNU diff by Xin Li in
32397 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32398 * modules/getdate (Depends-on): Add intprops, verify.
32399 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32400 is an integer type no wider than long int.
32402 2007-06-18 Jim Meyering <jim@meyering.net>
32404 New module: mreadlink-with-size.
32405 * MODULES.html.sh: Add mreadlink-with-size.
32406 * modules/mreadlink-with-size: New module
32407 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32408 not xreadlink-with-size.
32409 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32411 2007-06-16 Bruno Haible <bruno@clisp.org>
32413 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32414 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32415 Reported by Gary V. Vaughan <gary@gnu.org>.
32417 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32419 Revamp lchown so that it lives in unistd.h where it belongs.
32420 * lib/lchown.h: Remove.
32421 * lib/dirchownmod.c: Don't include lib/lchown.h.
32422 * lib/fchownat.c: Likewise.
32423 * lib/openat.c: Likewise.
32424 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32425 does not follow symlinks.
32426 (EOPNOTSUPP): Define if not defined.
32427 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32429 (lchown): New decl.
32430 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32431 Do not check for lchown decl.
32432 Set REPLACE_LCHOWN.
32433 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32435 * modules/chown: Make it clear it follows symlinks.
32436 * modules/lchown: Make it clear it doesn't follow symlinks.
32437 (Files): Remove lib/lchown.h
32438 (Depends-on): Add unistd.
32439 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32440 (Include): Include <unistd.h>, not "lchown.h".
32441 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32444 2007-06-15 Jim Meyering <jim@meyering.net>
32446 Change license (GPL to LGPL) of fsusage and dependents.
32447 * modules/fsusage (License): Change to LGPL.
32448 * modules/full-read (License): Likewise.
32449 * modules/full-write (License): Likewise.
32450 * modules/safe-read (License): Likewise.
32451 * modules/safe-write (License): Likewise.
32453 2007-06-14 Ben Pfaff <blp@gnu.org>
32455 Missing part of allocsa -> malloca transition.
32456 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32459 2007-06-12 Bruno Haible <bruno@clisp.org>
32461 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32462 to ia64, x86_64, i386.
32463 Reported by Eric Blake.
32465 2007-06-12 Bruno Haible <bruno@clisp.org>
32467 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32468 cross-compiling to x86_64.
32470 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32472 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32473 glitch reported by Ralf Wildenhues in
32474 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32476 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32479 2007-06-11 Bruno Haible <bruno@clisp.org>
32481 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32482 replacement string.
32483 Reported by Eric Blake.
32485 2007-06-10 Bruno Haible <bruno@clisp.org>
32487 Prepare vasnprintf code for use with Unicode strings.
32488 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32489 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32491 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32492 a_u32_string variants.
32493 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32494 * lib/printf-args.c: Don't include config.h and the specification
32495 header if PRINTF_FETCHARGS is already defined.
32496 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32497 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32498 TYPE_U16_STRING, TYPE_U32_STRING.
32499 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32500 u16_directive, u16_directives, u32_directive, u32_directives): New
32502 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32504 * lib/printf-parse.c: Don't include config.h and the specification
32505 header if PRINTF_PARSE is already defined. Eliminate the set of
32506 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32507 them now. Include c-ctype.h.
32508 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32509 directive and CHAR_T_ONLY_ASCII.
32510 * lib/vasnprintf.c: Don't include config.h and the specification header
32511 if VASNPRINTF is already defined.
32512 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32513 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32514 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32515 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32516 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32517 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32519 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32520 pad_ourselves also in this case, with the 'c' and 's' directives, and
32521 with a different notion of "width".
32522 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32524 2007-06-10 Bruno Haible <bruno@clisp.org>
32526 * modules/unistr/u32-mbsnlen: New file.
32527 * lib/unistr/u32-mbsnlen.c: New file.
32529 * modules/unistr/u16-mbsnlen: New file.
32530 * lib/unistr/u16-mbsnlen.c: New file.
32532 * modules/unistr/u8-mbsnlen: New file.
32533 * lib/unistr/u8-mbsnlen.c: New file.
32535 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32538 2007-06-10 Bruno Haible <bruno@clisp.org>
32540 * lib/string_.h (mbsnlen): New declaration.
32541 * lib/mbsnlen.c: New file.
32542 * m4/mbsnlen.m4: New file.
32543 * modules/mbsnlen: New file.
32544 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32545 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32546 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32548 2007-06-10 Bruno Haible <bruno@clisp.org>
32550 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32552 2007-06-10 Bruno Haible <bruno@clisp.org>
32554 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32555 * lib/mbuiter.h: Likewise.
32557 2007-06-10 Bruno Haible <bruno@clisp.org>
32559 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32562 2007-06-10 Karl Berry <karl@gnu.org>
32564 * config/srclist.txt: remove gettext entries, Bruno prefers
32565 to update individually.
32567 2007-06-10 Bruno Haible <bruno@clisp.org>
32569 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32570 'maxlen'. Ensure only length + width bytes are allocated, not
32571 length + 1 + width.
32573 2007-06-09 Bruno Haible <bruno@clisp.org>
32575 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32576 (CHAR_T): Remove macro.
32577 (VASNPRINTF): Update.
32579 2007-06-09 Bruno Haible <bruno@clisp.org>
32581 * MODULES.html.sh (Unicode string functions): Add the new modules.
32583 * modules/uniconv/u32-conv-to-enc: New file.
32584 * lib/uniconv/u32-conv-to-enc.c: New file.
32585 * modules/uniconv/u32-conv-to-enc-tests: New file.
32586 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32588 * modules/uniconv/u16-conv-to-enc: New file.
32589 * lib/uniconv/u16-conv-to-enc.c: New file.
32590 * lib/uniconv/u-conv-to-enc.h: New file.
32591 * modules/uniconv/u16-conv-to-enc-tests: New file.
32592 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32594 * modules/uniconv/u8-conv-to-enc: New file.
32595 * lib/uniconv/u8-conv-to-enc.c: New file.
32596 * modules/uniconv/u8-conv-to-enc-tests: New file.
32597 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32599 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32600 u32_conv_to_encoding): New declarations.
32602 2007-06-09 Bruno Haible <bruno@clisp.org>
32604 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32606 2007-06-09 Bruno Haible <bruno@clisp.org>
32608 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32609 * modules/malloca: Renamed from modules/allocsa, updated.
32610 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32611 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32612 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32613 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32614 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32615 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32616 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32617 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32618 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32619 * modules/c-strcasestr (Depends-on): Update.
32620 * lib/c-strcasestr.c: Update.
32621 * modules/c-strstr (Depends-on): Update.
32622 * lib/c-strstr.c: Update.
32623 * modules/canonicalize-lgpl (Depends-on): Update.
32624 * lib/canonicalize-lgpl.c: Update.
32625 * modules/clean-temp (Depends-on): Update.
32626 * lib/clean-temp.c: Update.
32627 * modules/csharpcomp (Depends-on): Update.
32628 * lib/csharpcomp.c: Update.
32629 * modules/csharpexec (Depends-on): Update.
32630 * lib/csharpexec.c: Update.
32631 * modules/javacomp (Depends-on): Update.
32632 * lib/javacomp.c: Update.
32633 * modules/javaexec (Depends-on): Update.
32634 * lib/javaexec.c: Update.
32635 * modules/mbscasestr (Depends-on): Update.
32636 * lib/mbscasestr.c: Update.
32637 * modules/mbsstr (Depends-on): Update.
32638 * lib/mbsstr.c: Update.
32639 * modules/setenv (Depends-on): Update.
32640 * lib/setenv.c: Update.
32641 * modules/strcasestr (Depends-on): Update.
32642 * lib/strcasestr.c: Update.
32643 * modules/striconveha (Depends-on): Update.
32644 * lib/striconveha.c: Update.
32645 * modules/relocatable-prog-wrapper (Files): Update.
32646 * lib/relocwrapper.c: Update.
32647 * build-aux/install-reloc: Update.
32648 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32650 2007-06-08 Bruno Haible <bruno@clisp.org>
32653 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32654 * lib/fpurge.c (fpurge): Likewise.
32655 * lib/freading.c (freading): Likewise.
32656 * lib/fseeko.c (rpl_fseeko): Likewise.
32657 * lib/fseterr.c (fseterr): Likewise.
32658 * lib/fwriting.c (fwriting): Likewise.
32659 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32661 2007-06-08 Bruno Haible <bruno@clisp.org>
32663 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32664 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32665 * modules/gettext (Files): Add m4/intlmacosx.m4.
32667 2007-06-07 Bruno Haible <bruno@clisp.org>
32669 * modules/localename-tests: New file.
32670 * tests/test-localename.c: New file.
32672 New module 'localename'.
32673 * lib/localename.h: New file.
32674 * lib/localename.c: New file, from GNU gettext.
32675 * m4/localename.m4: New file.
32676 * modules/localename: New file.
32678 2007-06-07 Bruno Haible <bruno@clisp.org>
32680 Work around the lack of <wchar.h> on some builds of uClibc.
32681 * doc/headers/wchar.texi: Update.
32682 * lib/wchar_.h: Include <wchar.h> only if it exists.
32683 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32684 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32685 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32687 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32688 * modules/mbfile (Depends-on): Add wchar.
32689 * modules/mbiter (Depends-on): Likewise.
32690 * modules/mbuiter (Depends-on): Likewise.
32691 Reported by Simon Josefsson.
32693 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32695 Work around problem reported by Steven M. Schweda in
32696 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32697 Tru64 5.1B with the Compaq compiler environment installed declares
32698 an 'isblank' function but does not define it in the C library.
32699 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32700 * lib/regex_internal.h (isblank): Likewise.
32701 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32702 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32704 2007-06-05 Bruno Haible <bruno@clisp.org>
32706 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32708 * modules/printf-safe: New file.
32709 * modules/fprintf-posix (Depends-on): Add printf-safe.
32710 * modules/printf-posix (Depends-on): Likewise.
32711 * modules/snprintf-posix (Depends-on): Likewise.
32712 * modules/sprintf-posix (Depends-on): Likewise.
32713 * modules/vasnprintf-posix (Depends-on): Likewise.
32714 * modules/vasprintf-posix (Depends-on): Likewise.
32715 * modules/vfprintf-posix (Depends-on): Likewise.
32716 * modules/vprintf-posix (Depends-on): Likewise.
32717 * modules/vsnprintf-posix (Depends-on): Likewise.
32718 * modules/vsprintf-posix (Depends-on): Likewise.
32719 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32720 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32721 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32722 "no" on i386, x86_64, ia64.
32723 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32724 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32725 on i386, x86_64, ia64.
32726 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32727 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32728 on i386, x86_64, ia64.
32729 * tests/test-vasnprintf-posix.c: Include float.h.
32730 (LDBL80_WORDS): New macro.
32731 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32732 on i386, x86_64, ia64.
32733 * tests/test-vasprintf-posix.c: Include float.h.
32734 (LDBL80_WORDS): New macro.
32735 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32736 on i386, x86_64, ia64.
32737 * tests/test-snprintf-posix.c: Include float.h.
32738 * tests/test-sprintf-posix.c: Likewise.
32739 * tests/test-vsnprintf-posix.c: Likewise.
32740 * tests/test-vsprintf-posix.c: Likewise.
32742 2007-06-05 Bruno Haible <bruno@clisp.org>
32744 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32745 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32746 non-IEEE numbers on i386, x86_64, ia64.
32747 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32748 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32749 * tests/test-isnanl.h: Include float.h.
32750 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32752 2007-06-05 Bruno Haible <bruno@clisp.org>
32754 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32755 also the %a / %A. Handle the %a / %A code before this extra handling.
32757 2007-06-05 Bruno Haible <bruno@clisp.org>
32759 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32760 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32762 2007-06-05 Bruno Haible <bruno@clisp.org>
32764 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32765 typo in variable name.
32767 2007-06-05 Eric Blake <ebb9@byu.net>
32769 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32770 Reported by Simon Josefsson.
32772 2007-06-04 Bruno Haible <bruno@clisp.org>
32774 Avoid test failures on some PowerPC platforms.
32775 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32776 Define differently for PowerPC.
32777 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32778 Reported by Gary V. Vaughan <gary@gnu.org>.
32780 2007-06-02 Bruno Haible <bruno@clisp.org>
32782 Fix test-stdint failure on FreeBSD/ia64.
32783 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32784 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32785 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32786 * doc/headers/stdint.texi: Update.
32788 2007-06-01 Bruno Haible <bruno@clisp.org>
32790 * tests/test-binary-io.c (main): Pass a third argument to open().
32791 Reported by Gary V. Vaughan <gary@gnu.org>.
32793 2007-06-01 Bruno Haible <bruno@clisp.org>
32795 * doc/functions/frexpl.texi: Update for mingw.
32797 2007-06-01 Bruno Haible <bruno@clisp.org>
32799 * tests/test-lseek.c (main): Disable test of errno for invalid third
32801 * doc/functions/lseek.texi: Update.
32802 Reported by Gary V. Vaughan <gary@gnu.org>.
32804 2007-05-28 Bruno Haible <bruno@clisp.org>
32806 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32808 2007-05-31 Eric Blake <ebb9@byu.net>
32810 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32813 2007-05-30 Eric Blake <ebb9@byu.net>
32814 and Bruno Haible <bruno@clisp.org>
32816 Work around mingw test failures exposed by m4-1.4.9b.
32817 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32818 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32821 2007-05-30 Bruno Haible <bruno@clisp.org>
32823 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32824 assuming that they are closed. Needed on HP-UX 11.
32826 2007-05-29 Bruno Haible <bruno@clisp.org>
32828 Fix a problem with #include_next.
32829 * lib/dirent_.h: Split the double-inclusion guard.
32830 * lib/fcntl_.h: Likewise.
32831 * lib/float_.h: Likewise.
32832 * lib/iconv_.h: Likewise.
32833 * lib/inttypes_.h: Likewise.
32834 * lib/locale_.h: Likewise.
32835 * lib/math_.h: Likewise.
32836 * lib/netinet_in_.h: Likewise.
32837 * lib/search_.h: Likewise.
32838 * lib/signal_.h: Likewise.
32839 * lib/stdint_.h: Likewise.
32840 * lib/stdio_.h: Likewise.
32841 * lib/stdlib_.h: Likewise.
32842 * lib/string_.h: Likewise.
32843 * lib/sys_select_.h: Likewise.
32844 * lib/sys_socket_.h: Likewise.
32845 * lib/sys_stat_.h: Likewise.
32846 * lib/sys_time_.h: Likewise.
32847 * lib/sysexits_.h: Likewise.
32848 * lib/time_.h: Likewise.
32849 * lib/unistd_.h: Likewise.
32850 * lib/wchar_.h: Likewise.
32851 * lib/wctype_.h: Likewise.
32853 2007-05-29 Bruno Haible <bruno@clisp.org>
32855 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32858 2007-05-29 Bruno Haible <bruno@clisp.org>
32860 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32862 Reported by Eric Blake.
32864 2007-05-29 Bruno Haible <bruno@clisp.org>
32866 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32869 2007-05-29 Eric Blake <ebb9@byu.net>
32870 Bruno Haible <bruno@clisp.org>
32872 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32875 2007-05-28 Eric Blake <ebb9@byu.net>
32877 * modules/closein-tests (test_closein_LDADD): Support test on
32878 cygwin with libtool.
32880 2007-05-28 Bruno Haible <bruno@clisp.org>
32882 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32883 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32884 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32885 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32886 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32887 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32888 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32889 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32890 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32892 2007-05-28 Eric Blake <ebb9@byu.net>
32894 Unconditionally include <config.h> in unit tests.
32895 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32896 * tests/test-allocsa.c, tests/test-arcfour.c,
32897 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32898 tests/test-array_list.c, tests/test-array_oset.c,
32899 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32900 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32901 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32902 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32903 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32904 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32905 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32906 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32907 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32908 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32909 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32910 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32911 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32912 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32913 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32914 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32915 test-md5.c, test-memmem.c, test-printf-posix.c,
32916 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32917 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32918 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32919 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32920 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32921 test-vasnprintf-posix2.c, test-vasnprintf.c,
32922 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32923 test-vfprintf-posix.c, test-vprintf-posix.c,
32924 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32925 test-xvasprintf.c: Likewise.
32927 2007-05-28 Bruno Haible <bruno@clisp.org>
32929 * gnulib-tool (func_import): Remember the --with-tests command-line
32930 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32931 Reported by Eric Blake.
32933 2007-05-28 Bruno Haible <bruno@clisp.org>
32935 * modules/ftell-tests: New file.
32936 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32937 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32939 * lib/ftell.c: New file.
32940 * modules/ftell: New file.
32941 * m4/ftell.m4: New file.
32942 * doc/functions/ftell.texi: Update.
32943 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32945 * lib/stdio_.h (rpl_ftell): New declaration.
32946 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32949 2007-05-28 Eric Blake <ebb9@byu.net>
32951 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32953 2007-05-28 Bruno Haible <bruno@clisp.org>
32955 * modules/fseek-tests: New file.
32956 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32957 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32959 * lib/fseek.c: New file.
32960 * modules/fseek: New file.
32961 * m4/fseek.m4: New file.
32962 * doc/functions/fseek.texi: Update.
32963 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32965 * lib/stdio_.h (rpl_fseek): New declaration.
32966 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32969 2007-05-28 Bruno Haible <bruno@clisp.org>
32971 * lib/stdio_.h (fflush): More comments.
32973 2007-05-28 Bruno Haible <bruno@clisp.org>
32975 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32978 2007-05-28 Eric Blake <ebb9@byu.net>
32980 Improve lseek module.
32981 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32982 * lib/unistd_.h (lseek): Scale back link warning message.
32983 * tests/test-lseek.c: Beef up test.
32984 * tests/test-lseek.sh: Exercise more facets of lseek.
32985 Reported by Bruno Haible.
32987 2007-05-28 Bruno Haible <bruno@clisp.org>
32989 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32992 2007-05-27 Bruno Haible <bruno@clisp.org>
32994 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32996 2007-05-27 Bruno Haible <bruno@clisp.org>
32998 * modules/openmp: New file.
32999 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33002 2007-05-26 Bruno Haible <bruno@clisp.org>
33004 * modules/chdir-long (Depends-on): Add fchdir.
33005 * modules/chdir-safer (Depends-on): Likewise.
33006 * modules/fts (Depends-on): Likewise.
33007 * modules/fts-lgpl (Depends-on): Likewise.
33008 * modules/openat (Depends-on): Likewise.
33009 * modules/savewd (Depends-on): Likewise.
33011 2007-05-24 Eric Blake <ebb9@byu.net>
33013 Fix lseek on mingw.
33014 * modules/lseek: New module.
33015 * m4/lseek.m4: New file.
33016 * lib/lseek.c: New file.
33017 * modules/lseek-tests: New file.
33018 * tests/test-lseek.c: New file.
33019 * tests/test-lseek.sh: New file.
33020 * MODULES.html.sh: Document lseek module.
33021 * modules/fflush (Depends-on): Add lseek, fseeko.
33022 * modules/fseeko (Depends-on): Likewise.
33023 * modules/ftello (Depends-on): Likewise.
33024 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33026 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33028 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33029 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33030 * lib/ftello.c (rpl_ftello): Likewise.
33031 * tests/test-fseeko.c (main): Test this.
33032 * tests/test-fseeko.sh: Likewise.
33033 * tests/test-ftello.c (main): Likewise.
33034 * tests/test-ftello.sh: Likewise.
33035 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33036 implies replacing fseek.
33037 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33039 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33040 * modules/unistd (Makefile.am): Likewise.
33041 * lib/unistd_.h (lseek): Declare a replacement.
33042 * doc/functions/lseek.texi (lseek): Document this fix.
33043 * doc/functions/fseek.texi (fseek): Likewise.
33044 * doc/functions/ftell.texi (ftell): Likewise.
33046 2007-05-24 Bruno Haible <bruno@clisp.org>
33048 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33049 in the printed representation of a NaN.
33050 * tests/test-vasprintf-posix.c (test_function): Likewise.
33051 * tests/test-snprintf-posix.h (test_function): Likewise.
33052 * tests/test-sprintf-posix.h (test_function): Likewise.
33053 Reported by Eric Blake.
33055 2007-05-23 Eric Blake <ebb9@byu.net>
33057 Fix fseeko/ftello on cygwin 1.5.24.
33058 * doc/functions/fseeko.texi (fseeko): Document the fix.
33059 * doc/functions/ftello.texi (ftello): Document the fix.
33060 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33061 * doc/functions/stdout.text (stdout): New file.
33062 * doc/functions/stderr.text (stderr): New file.
33063 * doc/gnulib.texi (Function Substitutes): Use new files.
33064 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33066 * tests/test-ftello.c (main): Likewise for ftello.
33067 * tests/test-fseeko.sh: New file.
33068 * tests/test-ftello.sh: New file.
33069 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33070 with seekable stdin.
33071 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33072 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33073 (gl_REPLACE_FSEEKO): New macro.
33074 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33075 * modules/fseeko (Files): Distribute fseeko.c.
33076 * modules/ftello (Files): Distribute ftello.c.
33077 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33079 * lib/ftello.c (rpl_ftello): New file.
33080 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33082 (gl_STDIN_LARGE_OFFSET): New macro.
33083 * modules/stdio (Makefile.am): Perform the replacement.
33084 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33086 2007-05-23 Bruno Haible <bruno@clisp.org>
33088 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33089 GNULIB_POSIXCHECK is defined.
33091 2007-05-21 Bruno Haible <bruno@clisp.org>
33093 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33094 Check also the output for NaN arguments. When cross-compiling, guess
33096 * lib/vasnprintf.c: Update comments.
33097 * tests/test-vasnprintf-posix.c (strisnan): New function.
33098 (test_function): Use it.
33099 * tests/test-vasprintf-posix.c (strisnan): New function.
33100 (test_function): Use it.
33101 * tests/test-snprintf-posix.h (strisnan): New function.
33102 (test_function): Use it.
33103 * tests/test-sprintf-posix.h (strisnan): New function.
33104 (test_function): Use it.
33105 Reported by Eric Blake.
33107 2007-05-20 Bruno Haible <bruno@clisp.org>
33109 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33110 numbers that fails on BeOS.
33111 * doc/functions/frexpl.texi: Update.
33113 2007-05-20 Jim Meyering <jim@meyering.net>
33115 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33116 forced upon us by glibc-2.6.
33118 2007-05-20 Bruno Haible <bruno@clisp.org>
33120 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33121 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33122 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33123 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33124 NEED_PRINTF_INFINITE.
33125 (is_infinitel): New function.
33126 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33127 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33128 gl_PREREQ_VASNPRINTF_INFINITE.
33129 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33130 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33131 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33132 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33133 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33134 gl_PREREQ_VASNPRINTF_INFINITE.
33135 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33136 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33137 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33138 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33139 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33140 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33141 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33142 * doc/functions/fprintf.texi: Update.
33143 * doc/functions/printf.texi: Update.
33144 * doc/functions/snprintf.texi: Update.
33145 * doc/functions/sprintf.texi: Update.
33146 * doc/functions/vfprintf.texi: Update.
33147 * doc/functions/vprintf.texi: Update.
33148 * doc/functions/vsnprintf.texi: Update.
33149 * doc/functions/vsprintf.texi: Update.
33151 2007-05-20 Bruno Haible <bruno@clisp.org>
33153 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33154 was not found in libc.
33155 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33157 2007-05-20 Bruno Haible <bruno@clisp.org>
33159 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33160 printed as "-nan" instead of "nan".
33161 * tests/test-vasprintf-posix.c (test_function): Likewise.
33162 * tests/test-snprintf-posix.h (test_function): Likewise.
33163 * tests/test-sprintf-posix.h (test_function): Likewise.
33164 Needed for HP-UX 11.
33166 2007-05-20 Jim Meyering <jim@meyering.net>
33168 Fix buggy test for the fchownat-deref bug.
33169 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33170 symlink required for the run-test. Without it, this test would
33171 always declare that fchownat doesn't work, and client code would
33172 unnecessarily use the replacement function with fixed libc.
33173 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33174 Reported by Greg Schafer.
33176 2007-05-19 Bruno Haible <bruno@clisp.org>
33178 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33179 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33180 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33181 Needed for IRIX 6.5 and Solaris 2.5.1.
33183 2007-05-19 Bruno Haible <bruno@clisp.org>
33185 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33186 (test_function): Skip tests involving -0.0 on platforms where
33188 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33189 (test_function): Skip tests involving -0.0 on platforms where
33191 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33192 (test_function): Skip tests involving -0.0 on platforms where
33194 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33195 (test_function): Skip tests involving -0.0 on platforms where
33197 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33199 * tests/test-printf-posix.h (test_function): Likewise.
33200 * tests/test-printf-posix.output: Remove all -0.0 related results.
33201 Needed for IRIX 6.5.
33203 2007-05-19 Bruno Haible <bruno@clisp.org>
33205 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33206 printed as "nan0x7fffffff" instead of "nan".
33207 * tests/test-vasprintf-posix.c (test_function): Likewise.
33208 * tests/test-snprintf-posix.h (test_function): Likewise.
33209 * tests/test-sprintf-posix.h (test_function): Likewise.
33210 * tests/test-fprintf-posix.h (NaN): Remove macro.
33211 (test_function): Remove all NaN related tests.
33212 * tests/test-printf-posix.h (NaN): Remove macro.
33213 (test_function): Remove all NaN related tests.
33214 * tests/test-printf-posix.output: Remove all NaN related results.
33215 Needed for IRIX 6.5.
33217 2007-05-19 Bruno Haible <bruno@clisp.org>
33219 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33220 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33222 2007-05-19 Bruno Haible <bruno@clisp.org>
33224 * lib/float_.h: New file.
33225 * m4/float_h.m4: New file.
33226 * modules/float: New file.
33227 * modules/isnanl (Dependencies): Add float.
33228 * modules/isnanl-nolibm (Dependencies): Likewise.
33229 * modules/mathl (Dependencies): Likewise.
33230 * modules/printf-frexpl (Dependencies): Likewise.
33231 * modules/signbit (Dependencies): Likewise.
33232 * modules/vasnprintf (Dependencies): Likewise.
33233 * doc/headers/float.texi: Update.
33235 2007-05-19 Jim Meyering <jim@meyering.net>
33237 * lib/utimens.c (gl_futimens): Rename from futimens,
33238 now that glibc-2.6 declares futimens.
33239 * lib/utimens.h: Likewise.
33241 2007-05-19 Bruno Haible <bruno@clisp.org>
33243 Avoid test failures on mingw.
33244 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33245 * tests/test-printf-posix.sh: Likewise.
33246 * tests/test-vfprintf-posix.sh: Likewise.
33247 * tests/test-vprintf-posix.sh: Likewise.
33249 2007-05-19 Bruno Haible <bruno@clisp.org>
33251 Fix *printf result for NaN, Inf, -0.0 on mingw.
33252 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33253 * lib/vasnprintf.c: Include math.h and isnan.h.
33254 (is_infinite_or_zero): New function.
33255 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33256 values in the %f, %F, %e, %E, %g, %G directives.
33257 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33258 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33259 gl_PRINTF_INFINITE and test its result. Invoke
33260 gl_PREREQ_VASNPRINTF_INFINITE.
33261 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33262 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33263 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33264 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33265 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33266 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33267 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33268 * doc/functions/fprintf.texi: Update.
33269 * doc/functions/printf.texi: Update.
33270 * doc/functions/snprintf.texi: Update.
33271 * doc/functions/sprintf.texi: Update.
33272 * doc/functions/vfprintf.texi: Update.
33273 * doc/functions/vprintf.texi: Update.
33274 * doc/functions/vsnprintf.texi: Update.
33275 * doc/functions/vsprintf.texi: Update.
33277 2007-05-19 Bruno Haible <bruno@clisp.org>
33279 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33280 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33281 Instead of multiplying with 10^k, set extra_zeroes to k.
33282 (scale10_round_long_double): Remove function.
33284 2007-05-18 Bruno Haible <bruno@clisp.org>
33286 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33287 introduced on 2007-05-06.
33289 2007-05-18 Bruno Haible <bruno@clisp.org>
33291 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33293 * tests/test-vasprintf-posix.c (test_function): Likewise.
33294 * tests/test-snprintf-posix.h (test_function): Likewise.
33295 * tests/test-sprintf-posix.h (test_function): Likewise.
33297 2007-05-18 Bruno Haible <bruno@clisp.org>
33299 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33300 (strmatch): New function.
33301 (test_function): Test the %f directive on numbers of various exponents.
33302 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33303 (strmatch): New function.
33304 (test_function): Test the %f directive on numbers of various exponents.
33305 * tests/test-snprintf-posix.h (strmatch): New function.
33306 (test_function): Test the %f directive on numbers of various exponents.
33307 * tests/test-sprintf-posix.h (strmatch): New function.
33308 (test_function): Test the %f directive on numbers of various exponents.
33309 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33310 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33311 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33312 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33314 2007-05-18 Bruno Haible <bruno@clisp.org>
33316 Add support for 'long double' number output.
33317 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33318 * lib/vasnprintf.c: Include math.h and float+.h.
33319 (mp_limb_t): New type.
33320 (GMP_LIMB_BITS): New macro.
33321 (mp_twolimb_t): New type.
33322 (GMP_TWOLIMB_BITS): New macro.
33324 (multiply, divide, convert_to_decimal, decode_long_double,
33325 scale10_round_long_double, scale10_round_decimal_long_double,
33326 floorlog10l): New functions.
33327 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33328 for the %f, %F, %e, %E, %g, %G directives.
33329 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33330 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33331 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33332 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33333 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33334 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33335 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33336 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33337 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33338 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33339 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33340 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33341 * modules/snprintf-posix (Depends-on): Likewise.
33342 * modules/sprintf-posix (Depends-on): Likewise.
33343 * modules/vasnprintf-posix (Depends-on): Likewise.
33344 * modules/vasprintf-posix (Depends-on): Likewise.
33345 * modules/vfprintf-posix (Depends-on): Likewise.
33346 * modules/vsnprintf-posix (Depends-on): Likewise.
33347 * modules/vsprintf-posix (Depends-on): Likewise.
33348 * modules/vasnprintf (Files): Add lib/float+.h.
33349 * doc/functions/fprintf.texi: Update.
33350 * doc/functions/printf.texi: Update.
33351 * doc/functions/snprintf.texi: Update.
33352 * doc/functions/sprintf.texi: Update.
33353 * doc/functions/vfprintf.texi: Update.
33354 * doc/functions/vprintf.texi: Update.
33355 * doc/functions/vsnprintf.texi: Update.
33356 * doc/functions/vsprintf.texi: Update.
33358 2007-05-18 Bruno Haible <bruno@clisp.org>
33360 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33362 2007-05-18 Bruno Haible <bruno@clisp.org>
33364 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33365 for printing 64-bit integers. Needed for mingw.
33367 2007-05-18 Bruno Haible <bruno@clisp.org>
33369 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33370 gl_FUNC_FREXPL_WORKS.
33371 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33373 2007-05-18 Bruno Haible <bruno@clisp.org>
33375 * modules/frexpl-nolibm-tests: New file.
33377 * modules/frexpl-nolibm: New file.
33378 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33380 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33382 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33383 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33384 GCC 4.2, which otherwise issues a lot of warnings.
33385 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33386 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33388 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33389 * modules/iconv_open (iconv.h): Likewise.
33390 * modules/locale (locale.h): Likewise.
33391 * modules/netinet_in (netinet/in.h): Likewise.
33392 * modules/sys_select (sys_select.h): Likewise.
33393 * modules/sys_socket (sys/socket.h): Likewise.
33394 * modules/sys_stat (sys/stat.h): Likewise.
33395 * modules/sysexits (sysexits.h): Likewise.
33396 * modules/unistd (unistd.h): Likewise.
33398 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33400 * modules/closein-tests (Makefile.am): Distribute
33403 2007-05-17 Bruno Haible <bruno@clisp.org>
33405 * tests/test-printf-posix.output: Renamed from
33406 tests/test-fprintf-posix.out.
33407 * modules/fprintf-posix-tests: Update.
33408 * modules/printf-posix-tests: Update.
33409 * modules/vfprintf-posix-tests: Update.
33410 * modules/vprintf-posix-tests: Update.
33411 * tests/test-fprintf-posix.sh: Update.
33412 * tests/test-printf-posix.sh: Update.
33413 * tests/test-vfprintf-posix.sh: Update.
33414 * tests/test-vprintf-posix.sh: Update.
33415 Reported by Ralf Wildenhues.
33417 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33419 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33420 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33421 GCC 4.2, which otherwise issues a lot of warnings.
33422 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33423 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33424 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33425 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33426 it should no longer be needed.
33427 * lib/string_.h: Likewise.
33428 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33429 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33430 * modules/inttypes (inttypes.h): Likewise.
33431 * modules/math (math.h): Likewise.
33432 * modules/search (search.h): Likewise.
33433 * modules/signal (signal.h): Likewise.
33434 * modules/stdint (stdint.h): Likewise.
33435 * modules/stdio (stdio.h): Likewise.
33436 * modules/stdlib (stdlib.h): Likewise.
33437 * modules/string (string.h): Likewise.
33438 * modules/sys_time (sys/time.h): Likewise.
33439 * modules/time (time.h): Likewise.
33440 * modules/wchar (wchar.h): Likewise.
33441 * modules/wctype (wtype.h): Likewise.
33443 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33445 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33447 2007-05-13 Bruno Haible <bruno@clisp.org>
33449 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33450 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33451 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33452 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33453 (gl_PREREQ_STRTOK_R): Don't require it here.
33455 2007-05-13 Bruno Haible <bruno@clisp.org>
33457 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33458 when used in C++ mode.
33460 2007-05-12 Bruno Haible <bruno@clisp.org>
33462 * lib/linebuffer.h: Tweak doc.
33463 * lib/linebuffer.c: Likewise.
33465 2007-05-12 James Youngman <jay@gnu.org>
33467 * lib/linebuffer.c (readlinebuffer_delim): New function,
33468 like readlinebuffer, but use a caller-specified delimiter.
33469 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33471 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33473 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33475 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33476 * modules/openat (Files): Remove openat-die.c.
33477 (Depends-on): Add openat-die.
33478 * modules/openat-die: New module.
33480 2007-05-06 Bruno Haible <bruno@clisp.org>
33482 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33483 Update with info about Cygwin.
33484 * doc/functions/fprintf.texi: Update.
33485 * doc/functions/printf.texi: Update.
33486 * doc/functions/snprintf.texi: Update.
33487 * doc/functions/sprintf.texi: Update.
33488 * doc/functions/vfprintf.texi: Update.
33489 * doc/functions/vprintf.texi: Update.
33490 * doc/functions/vsnprintf.texi: Update.
33491 * doc/functions/vsprintf.texi: Update.
33492 Reported by Eric Blake.
33494 2007-05-06 Bruno Haible <bruno@clisp.org>
33496 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33497 padding ourselves for the floating-point directives.
33498 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33500 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33501 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33502 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33503 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33504 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33505 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33506 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33507 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33508 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33509 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33510 * tests/test-snprintf-posix.h (test_function): Also check the width
33511 and some flags in the %f directive.
33512 * tests/test-sprintf-posix.h (test_function): Likewise.
33513 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33514 * tests/test-vasprintf-posix.c (test_function): Likewise.
33515 * doc/functions/fprintf.texi: Update.
33516 * doc/functions/printf.texi: Update.
33517 * doc/functions/snprintf.texi: Update.
33518 * doc/functions/sprintf.texi: Update.
33519 * doc/functions/vfprintf.texi: Update.
33520 * doc/functions/vprintf.texi: Update.
33521 * doc/functions/vsnprintf.texi: Update.
33522 * doc/functions/vsprintf.texi: Update.
33524 2007-05-06 Bruno Haible <bruno@clisp.org>
33526 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33527 pass the ' flag character to sprintf or snprintf.
33528 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33529 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33530 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33531 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33532 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33533 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33534 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33535 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33536 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33537 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33538 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33539 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33540 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33542 * tests/test-sprintf-posix.h (test_function): Likewise.
33543 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33544 * tests/test-vasprintf-posix.c (test_function): Likewise.
33545 * doc/functions/fprintf.texi: Update.
33546 * doc/functions/printf.texi: Update.
33547 * doc/functions/snprintf.texi: Update.
33548 * doc/functions/sprintf.texi: Update.
33549 * doc/functions/vfprintf.texi: Update.
33550 * doc/functions/vprintf.texi: Update.
33551 * doc/functions/vsnprintf.texi: Update.
33552 * doc/functions/vsprintf.texi: Update.
33554 2007-05-01 Bruno Haible <bruno@clisp.org>
33556 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33558 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33560 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33561 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33563 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33565 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33566 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33567 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33569 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33571 * lib/argp-help.c (struct hol_entry): New member `ord'.
33572 (HOL_ENTRY_PTRCMP): Use ord for comparison
33573 (hol_sort): Initialize ord.
33575 2007-05-01 Bruno Haible <bruno@clisp.org>
33577 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33578 Reported by Eric Blake.
33579 * doc/gnulib.texi (Function Substitutes): Update.
33581 2007-05-01 Bruno Haible <bruno@clisp.org>
33583 * doc/functions.texi: Remove file, now redundant through
33584 doc/functions/*.texi.
33586 2007-05-01 Bruno Haible <bruno@clisp.org>
33588 * modules/argp (Depends-on): Add sleep.
33590 2007-05-01 Bruno Haible <bruno@clisp.org>
33592 * modules/sleep-tests: New file.
33593 * tests/test-sleep.c: New file.
33595 * modules/sleep: New file.
33596 * lib/sleep.c: New file.
33597 * m4/sleep.m4: New file.
33598 * lib/unistd_.h (sleep): New declaration.
33599 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33601 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33602 * doc/functions/sleep.texi: Document the sleep module.
33604 2007-05-01 Bruno Haible <bruno@clisp.org>
33606 * lib/sigprocmask.h: Remove file.
33607 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33608 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33609 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33610 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33611 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33612 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33613 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33614 HAVE_SIGSET_T as a shell variable.
33615 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33616 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33617 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33618 (Depends-on): Add signal. Remove verify.
33619 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33620 (Include): Mention <signal.h> instead of sigprocmask.h.
33621 * NEWS: Mention the change.
33622 * lib/fatal-signal.c: Don't include sigprocmask.h.
33624 2007-05-01 Bruno Haible <bruno@clisp.org>
33626 * modules/signal: New file.
33627 * lib/signal_.h: New file.
33628 * m4/signal_h.m4: New file.
33630 2007-05-01 Bruno Haible <bruno@clisp.org>
33632 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33633 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33634 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33635 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33637 2007-05-01 Bruno Haible <bruno@clisp.org>
33639 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33641 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33642 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33643 * modules/sys_stat (Makefile.am): Substitute their values into
33646 2007-05-01 Bruno Haible <bruno@clisp.org>
33648 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33649 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33650 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33652 2007-05-01 Bruno Haible <bruno@clisp.org>
33654 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33655 'assert' module here.
33657 2007-05-01 Bruno Haible <bruno@clisp.org>
33659 * doc/functions/*.texi: New files.
33660 * doc/functions/google-ranking.txt: New file.
33661 * doc/gnulib.texi (Function Substitutes): New chapter.
33662 (ctime, inet_ntoa): Remove sections.
33663 * doc/ctime.texi: Remove file.
33664 * doc/inet_ntoa.texi: Remove file.
33665 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33667 (%.info): New rule, specifying a --reference-limit.
33669 2007-05-01 Bruno Haible <bruno@clisp.org>
33671 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33673 2007-05-01 Bruno Haible <bruno@clisp.org>
33675 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33676 the portability of 'mkdir' to mingw systems.
33678 2007-05-01 Bruno Haible <bruno@clisp.org>
33680 * doc/headers/google-ranking.txt: New file.
33682 2007-04-30 Eric Blake <ebb9@byu.net>
33684 Prefer fseeko to fseek.
33685 * modules/getpass (Depends-on): Add fseeko.
33686 * lib/getpass.c (getpass): Use fseeko, not fseek.
33688 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33690 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33691 assumes the sorting is stable, while most qsort implementations
33692 are not. Use argument addresses to ensure they never compare as
33695 * tests/test-argp-2.sh (usage-indent test): Fix output
33696 (func_compare): Restore diff options
33697 * tests/test-argp.c: Restore #include "progname.h"
33699 2007-04-29 Bruno Haible <bruno@clisp.org>
33701 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33702 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33703 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33704 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33705 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33706 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33707 (TESTS, check_PROGRAMS): Add test-snprintf.
33708 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33709 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33710 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33711 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33712 assertions that fail on HP-UX, OSF/1, or IRIX.
33713 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33715 2007-04-29 Bruno Haible <bruno@clisp.org>
33717 * MODULES.html.sh (posix_functions): Remove 'contents'.
33719 2007-04-29 Karl Berry <karl@gnu.org>
33721 * config/srclist.txt (gendocs_template_min): new entry.
33723 2007-04-29 Bruno Haible <bruno@clisp.org>
33725 Work around fpurge bug on BSD systems.
33726 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33727 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33728 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33729 fpurge to rpl_fpurge if the system already has this function.
33730 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33731 the case where the system already has this function. Correct invariants
33733 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33736 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33738 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33739 proposed by Sven Verdoolaege.
33741 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33743 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33744 (usage and help tests): Update
33746 2007-04-29 Bruno Haible <bruno@clisp.org>
33748 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33749 Print more information in case of failure. Disable a test on BeOS.
33751 2007-04-29 Bruno Haible <bruno@clisp.org>
33753 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33754 This helps debugging on systems on which no gdb is available.
33756 2007-04-29 Bruno Haible <bruno@clisp.org>
33758 * lib/freading.h: Improve comments.
33759 * lib/fwriting.h: Likewise.
33760 * tests/test-freading.c (main): Don't check freading immediately after
33761 repositioning. Needed for glibc.
33763 2007-04-29 Bruno Haible <bruno@clisp.org>
33765 * lib/freading.c (freading): Trivial simplification.
33767 2007-04-28 Bruno Haible <bruno@clisp.org>
33769 * tests/test-fwriting.c (main): Also test the interaction between
33770 fflush and fwriting.
33771 * modules/fwriting-tests (Depends-on): Add fflush.
33773 * tests/test-freading.c (main): Also test the interaction between
33774 fflush and freading.
33775 * modules/freading-tests (Depends-on): Add fflush.
33777 2007-04-28 Bruno Haible <bruno@clisp.org>
33779 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33781 Suggested by Eric Blake.
33783 2007-04-28 Jim Meyering <jim@meyering.net>
33785 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33786 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33787 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33789 2007-04-27 Eric Blake <ebb9@byu.net>
33791 * doc/headers/assert.texi (assert.h): Document assert module use.
33793 2007-04-27 Bruno Haible <bruno@clisp.org>
33795 * doc/headers/*.texi: New files.
33796 * doc/gnulib.texi (Header File Substitutes): New chapter.
33797 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33799 (standards.info ,standards.html, standards.dvi): Update dependencies.
33800 (mostlyclean, clean): New targets.
33802 2007-04-27 Bruno Haible <bruno@clisp.org>
33804 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33805 * modules/sysexits (Files, Makefile.am): Update.
33807 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33808 * modules/sys_socket (Files, Makefile.am): Update.
33810 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33811 * modules/sys_stat (Files, Makefile.am): Update.
33813 2007-04-27 Eric Blake <ebb9@byu.net>
33815 * lib/freading.h: Improve comments.
33816 * lib/fwriting.h: Likewise.
33817 * lib/fflush.c: Likewise.
33819 Fix closein for mingw.
33820 * modules/closein-tests: Add tests for closein.
33821 * tests/test-closein.c: New file.
33822 * tests/test-closein.sh: Likewise.
33823 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33824 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33826 2007-04-27 Bruno Haible <bruno@clisp.org>
33828 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33830 * lib/math_.h [__DECC]: Likewise.
33831 * lib/stdio_.h [__DECC]: Likewise.
33832 * lib/stdlib_.h [__DECC]: Likewise.
33833 * lib/string_.h [__DECC]: Likewise.
33834 * lib/time_.h [__DECC]: Likewise.
33835 * lib/wchar_.h [__DECC]: Likewise.
33836 * lib/wctype_.h [__DECC]: Likewise.
33838 2007-04-27 Bruno Haible <bruno@clisp.org>
33840 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33842 2007-04-27 Bruno Haible <bruno@clisp.org>
33844 * lib/fflush.c: Add comments.
33845 * modules/fpurge-tests (Depends-on): Add fflush.
33846 * modules/freadable-tests (Depends-on): Likewise.
33847 * modules/fwritable-tests (Depends-on): Likewise.
33849 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33851 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33852 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33853 Report by Bruno Haible <bruno@clisp.org>.
33855 2007-04-26 Eric Blake <ebb9@byu.net>
33857 Fix fflush on mingw.
33858 * modules/fflush (Depends-on): Add freading.
33859 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33862 2007-04-26 Eric Blake <ebb9@byu.net>
33863 and Bruno Haible <bruno@clisp.org>
33865 Implement freading and fwriting.
33866 * lib/freading.c: New file.
33867 * lib/freading.h: Likewise.
33868 * m4/freading.m4: Likewise.
33869 * modules/freading: Likewise.
33870 * modules/freading-tests: Likewise.
33871 * tests/test-freading.c: Likewise.
33872 * lib/fwriting.c: New file.
33873 * lib/fwriting.h: Likewise.
33874 * m4/fwriting.m4: Likewise.
33875 * modules/fwriting: Likewise.
33876 * modules/fwriting-tests: Likewise.
33877 * tests/test-fwriting.c: Likewise.
33878 * MODULES.html.sh (File stream based Input/Output): Mention them.
33880 2007-04-26 Bruno Haible <bruno@clisp.org>
33882 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33883 'long' when we assume it.
33884 Suggested by Eric Blake.
33886 2007-04-26 Bruno Haible <bruno@clisp.org>
33888 Ensure fseeko, ftello are declared on glibc systems.
33889 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33890 * modules/fseeko (configure.ac-early): Likewise.
33891 * modules/ftello (configure.ac-early): Likewise.
33892 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33893 AC_FUNC_FSEEKO for this.
33894 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33895 (gl_CHECK_FSEEKO): Remove macro.
33897 2007-04-26 Bruno Haible <bruno@clisp.org>
33899 * tests/test-fflush.c (main): Also check the ftell result after
33900 fflush and fseek/fseeko.
33901 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33902 file descriptor position cache in the stream.
33903 * lib/fseeko.c (rpl_fseeko): Likewise.
33905 2007-04-26 Bruno Haible <bruno@clisp.org>
33907 * modules/fflush-tests (Depends-on): Add fseeko.
33909 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33910 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33912 * lib/argz_.h: ensure error_t definition is obtained in same
33913 mechanism system argz.h would have.
33914 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33915 argz facilities are known bad. Err on the side of caution if
33918 2007-04-25 Eric Blake <ebb9@byu.net>
33920 * lib/fpurge.c (includes): Use stdlib.h for free.
33921 * tests/test-fflush.c (main): Also test fflush-fseeko.
33923 2007-04-25 Bruno Haible <bruno@clisp.org>
33925 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33926 * lib/fseeko.c: New file.
33927 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33928 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33929 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33931 (gl_FUNC_FSEEKO): Invoke it.
33932 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33933 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33934 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33936 2007-04-25 Bruno Haible <bruno@clisp.org>
33938 * modules/fflush (Depends-on): Add ftello.
33940 2007-04-25 Bruno Haible <bruno@clisp.org>
33942 * modules/ftello-tests: New file.
33943 * tests/test-ftello.c: New file.
33945 * modules/ftello: New file.
33946 * m4/ftello.m4: New file.
33947 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33949 * lib/stdio_.h (ftello): New declaration.
33950 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33953 2007-04-25 Bruno Haible <bruno@clisp.org>
33955 * modules/fseeko-tests: New file.
33956 * tests/test-fseeko.c: New file.
33958 * modules/fseeko: New file.
33959 * m4/fseeko.m4: New file.
33960 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33962 * lib/stdio_.h (fseeko): New declaration.
33963 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33966 2007-04-25 Bruno Haible <bruno@clisp.org>
33968 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33970 2007-04-25 Bruno Haible <bruno@clisp.org>
33972 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33973 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33974 * tests/test-unistd.c: Likewise.
33975 * tests/test-fcntl.c: Likewise.
33977 2007-04-23 Eric Blake <ebb9@byu.net>
33979 * lib/fflush.c: Fix missing include.
33980 Reported by Bruno Haible.
33982 2007-04-23 Bruno Haible <bruno@clisp.org>
33984 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33985 Reported by Eric Blake.
33987 2007-04-23 Bruno Haible <bruno@clisp.org>
33989 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33991 2007-04-23 Bruno Haible <bruno@clisp.org>
33993 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33995 2007-04-23 Bruno Haible <bruno@clisp.org>
33997 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33998 Needed on HP-UX 11.
34000 2007-04-16 Eric Blake <ebb9@byu.net>
34002 Make fflush rely on fpurge.
34003 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34004 open coding all variants.
34005 * modules/fflush (Depends-on): Add fpurge and unistd.
34006 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34007 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34009 Fix --with-tests compilation on cygwin.
34010 * modules/argmatch-tests (Makefile.am): List gnulib library first
34012 * modules/argp-tests (Makefile.am): Likewise.
34013 * modules/array-list-tests (Makefile.am): Likewise.
34014 * modules/array-oset-tests (Makefile.am): Likewise.
34015 * modules/avltree-list-tests (Makefile.am): Likewise.
34016 * modules/avltree-oset-tests (Makefile.am): Likewise.
34017 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34018 * modules/carray-list-tests (Makefile.am): Likewise.
34019 * modules/dirname-tests (Makefile.am): Likewise.
34020 * modules/frexp-tests (Makefile.am): Likewise.
34021 * modules/isnanl-tests (Makefile.am): Likewise.
34022 * modules/linked-list-tests (Makefile.am): Likewise.
34023 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34024 * modules/lock-tests (Makefile.am): Likewise.
34025 * modules/rbtree-list-tests (Makefile.am): Likewise.
34026 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34027 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34028 * modules/tls-tests (Makefile.am): Likewise.
34029 * modules/tsearch-tests (Makefile.am): Likewise.
34030 * modules/xvasprintf-tests (Makefile.am): Likewise.
34032 Fix fpurge for cygwin.
34033 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34035 * modules/fpurge-tests (Depends-on): Clean up trash.
34037 2007-04-16 Simon Josefsson <simon@josefsson.org>
34039 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34041 * m4/autobuild.m4: Re-indent.
34043 2007-04-13 Bruno Haible <bruno@clisp.org>
34045 * modules/fpurge-tests: New file.
34046 * tests/test-fpurge.c: New file.
34048 * modules/fpurge: New file.
34049 * lib/fpurge.h: New file.
34050 * lib/fpurge.c: New file.
34051 * m4/fpurge.m4: New file.
34053 2007-04-13 Bruno Haible <bruno@clisp.org>
34055 * modules/fbufmode-tests: New file.
34056 * tests/test-fbufmode.c: New file.
34058 * modules/fbufmode: New file.
34059 * lib/fbufmode.h: New file.
34060 * lib/fbufmode.c: New file.
34061 * m4/fbufmode.m4: New file.
34063 2007-04-13 Bruno Haible <bruno@clisp.org>
34065 * modules/fwritable-tests: New file.
34066 * tests/test-fwritable.c: New file.
34068 * modules/fwritable: New file.
34069 * lib/fwritable.h: New file.
34070 * lib/fwritable.c: New file.
34071 * m4/fwritable.m4: New file.
34073 2007-04-13 Bruno Haible <bruno@clisp.org>
34075 * modules/freadable-tests: New file.
34076 * tests/test-freadable.c: New file.
34078 * modules/freadable: New file.
34079 * lib/freadable.h: New file.
34080 * lib/freadable.c: New file.
34081 * m4/freadable.m4: New file.
34083 2007-04-13 Bruno Haible <bruno@clisp.org>
34085 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34088 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34090 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34091 gzip bootstrap.conf to avoid dragging in i18n machinery.
34092 (gnulib_tool_option): Use it.
34094 2007-04-13 Bruno Haible <bruno@clisp.org>
34096 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34098 * tests/test-vasprintf-posix.c (test_function): Likewise.
34099 * tests/test-snprintf-posix.h (test_function): Likewise.
34100 * tests/test-sprintf-posix.h (test_function): Likewise.
34101 * tests/test-fprintf-posix.h (test_function): Likewise.
34102 * tests/test-printf-posix.h (test_function): Likewise.
34103 * tests/test-fprintf-posix.out: Likewise.
34105 2007-04-13 Bruno Haible <bruno@clisp.org>
34107 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34108 * modules/tls-tests (configure.ac): Likewise.
34109 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34111 2007-04-13 Bruno Haible <bruno@clisp.org>
34113 * lib/tls.c (glthread_tls_get): Fix return type.
34114 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34116 2007-04-12 Eric Blake <ebb9@byu.net>
34118 * modules/gettime (Depends-on): Remove gettime.
34119 Reported by Dmitry V. Levin.
34121 2007-04-12 Bruno Haible <bruno@clisp.org>
34123 * modules/fflush (Include): Mention <stdio.h>.
34124 * modules/strtoimax (Include): Mention <inttypes.h>.
34125 * modules/strtoumax (Include): Likewise.
34127 2007-04-12 Eric Blake <ebb9@byu.net>
34129 * .cvsignore: New file.
34130 * .gitignore: Likewise.
34132 2007-04-12 Bruno Haible <bruno@clisp.org>
34134 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34135 not before, since $(LDADD) often contains libgnu.a.
34136 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34137 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34138 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34141 2007-04-12 Eric Blake <ebb9@byu.net>
34143 Work around glibc's failure to flush stdin on fclose.
34144 * lib/closein.c (close_stdin): Flush stdin before closing.
34146 Work around glibc's failure to reset seekable stdin on exit.
34147 * modules/closein: New module.
34148 * lib/closein.c: New file.
34149 * lib/closein.h: Likewise.
34150 * m4/closein.m4: Likewise.
34151 * MODULES.html.sh (File stream based Input/Output): Document it.
34153 2007-04-12 Simon Josefsson <simon@josefsson.org>
34155 * gnulib-tool: Rename generated 'autobuild' script to
34156 'do-autobuild' in --create-megatestdir output.
34158 * doc/gnulib.texi (Build robot for gnulib): Fix.
34160 2007-04-12 Simon Josefsson <simon@josefsson.org>
34162 * modules/sysexits (Depends-on): Add absolute-header.
34164 2007-04-12 Eric Blake <ebb9@byu.net>
34166 No need to preserve errno on success.
34167 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34168 Reported by Bruno Haible.
34170 2007-04-12 Simon Josefsson <simon@josefsson.org>
34172 * MODULES.html.sh (Support for maintaining and releasing
34173 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34175 2007-04-12 Simon Josefsson <simon@josefsson.org>
34177 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34179 2007-04-12 Simon Josefsson <simon@josefsson.org>
34181 * modules/autobuild: New module.
34183 * m4/autobuild.m4: New file.
34185 2007-04-11 Bruno Haible <bruno@clisp.org>
34187 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34188 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34189 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34190 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34191 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34192 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34193 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34194 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34195 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34196 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34197 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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 Reported by Eric Blake.
34217 2007-04-11 Bruno Haible <bruno@clisp.org>
34219 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34221 2007-04-10 Bruno Haible <bruno@clisp.org>
34223 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34224 for NaN and Infinity. Needed on FreeBSD 6.1.
34225 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34226 regarding results for "%010a" of Infinity and NaN.
34227 * tests/test-vasprintf-posix.c (test_function): Likewise.
34228 * tests/test-snprintf-posix.h (test_function): Likewise.
34229 * tests/test-sprintf-posix.h (test_function): Likewise.
34230 * tests/test-fprintf-posix.h (test_function): Likewise.
34231 * tests/test-printf-posix.h (test_function): Likewise.
34232 * tests/test-fprintf-posix.out: Likewise.
34234 2007-04-10 Bruno Haible <bruno@clisp.org>
34236 * modules/locale-tests: New file.
34237 * tests/test-locale.c: New file.
34239 * modules/locale: New file.
34240 * lib/locale_.h: New file.
34241 * m4/locale_h.m4: New file.
34243 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34244 Bruno Haible <bruno@clisp.org>
34246 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34247 be determined, test for availability of the copysignf, copysign,
34248 copysignl functions.
34249 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34250 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34251 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34253 2007-04-09 Eric Blake <ebb9@byu.net>
34255 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34256 * modules/stdio (Makefile.am): Support fflush.
34257 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34258 * modules/fflush: New file.
34259 * lib/fflush.c: Likewise.
34260 * m4/fflush.m4: Likewise.
34261 * modules/fflush-tests: New test.
34262 * tests/test-fflush.c: Likewise.
34263 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34265 2007-04-06 Bruno Haible <bruno@clisp.org>
34267 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34268 (VASNPRINTF): Use signbit for faster determination whether to print a
34270 * modules/vasnprintf (Files): Remove lib/float+.h.
34271 * modules/fprintf-posix (Depends-on): Add signbit.
34272 * modules/snprintf-posix (Depends-on): Likewise.
34273 * modules/sprintf-posix (Depends-on): Likewise.
34274 * modules/vasnprintf-posix (Depends-on): Likewise.
34275 * modules/vasprintf-posix (Depends-on): Likewise.
34276 * modules/vfprintf-posix (Depends-on): Likewise.
34277 * modules/vsnprintf-posix (Depends-on): Likewise.
34278 * modules/vsprintf-posix (Depends-on): Likewise.
34280 2007-04-06 Bruno Haible <bruno@clisp.org>
34282 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34283 * tests/test-frexpl.c (main): Likewise.
34284 * tests/test-ldexpl.c (main): Likewise.
34285 * modules/frexp-tests (Depends-on): Add signbit.
34286 * modules/frexpl-tests (Depdends-on): Likewise.
34287 * modules/ldexpl-tests (Depdends-on): Likewise.
34289 2007-04-06 Bruno Haible <bruno@clisp.org>
34291 * modules/signbit-tests: New file.
34292 * tests/test-signbit.c: New file.
34294 * modules/signbit: New file.
34295 * lib/signbitf.c: New file.
34296 * lib/signbitd.c: New file.
34297 * lib/signbitl.c: New file.
34298 * m4/signbit.m4: New file.
34299 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34300 (signbit): New macro.
34301 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34303 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34304 REPLACE_FREXPL into math.h.
34306 2007-04-06 Bruno Haible <bruno@clisp.org>
34308 * modules/isnanf-nolibm-tests: New file.
34309 * tests/test-isnanf.c: New file.
34311 * modules/isnanf-nolibm: New file.
34312 * lib/isnanf.h: New file.
34313 * lib/isnanf.c: New file.
34314 * lib/isnan.c: Consider the USE_FLOAT macro.
34315 * m4/isnanf.m4: New file.
34317 2007-04-06 Bruno Haible <bruno@clisp.org>
34319 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34320 (Link): New section.
34322 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34324 2007-04-06 Bruno Haible <bruno@clisp.org>
34326 Assume the 'long double' type.
34327 * m4/longdouble.m4: Remove file.
34328 * config/srclist.txt: Don't mention longdouble.m4.
34329 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34330 * lib/float+.h: Likewise.
34331 * lib/frexp.c: Likewise.
34332 * lib/printf-args.h: Likewise.
34333 * lib/printf-args.c: Likewise.
34334 * lib/printf-frexp.c: Likewise.
34335 * lib/printf-parse.c: Likewise.
34336 * lib/vasnprintf.c: Likewise.
34337 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34338 * m4/intl.m4: Likewise.
34339 * m4/isnanl.m4: Likewise.
34340 * m4/printf.m4: Likewise.
34341 * m4/printf-frexpl.m4: Likewise.
34342 * m4/vasnprintf.m4: Likewise.
34343 * modules/allocsa (Files): Remove m4/longdouble.m4.
34344 * modules/gettext (Files): Likewise.
34345 * modules/relocatable-prog-wrapper (Files): Likewise.
34346 * modules/vasnprintf (Files): Likewise.
34347 * modules/isnanl (Files): Likewise.
34348 (Include): Simplify.
34349 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34350 (Include): Simplify.
34351 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34352 (Include): Simplify.
34353 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34354 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34355 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34356 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34357 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34358 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34359 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34360 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34361 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34362 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34363 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34364 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34365 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34366 * tests/test-isnanl.c: Likewise.
34367 * tests/test-snprintf-posix.h: Likewise.
34368 * tests/test-sprintf-posix.h: Likewise.
34369 * tests/test-vasnprintf-posix.c: Likewise.
34370 * tests/test-vasnprintf-posix2.c: Likewise.
34371 * tests/test-vasprintf-posix.c: Likewise.
34373 2007-04-06 Bruno Haible <bruno@clisp.org>
34375 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34376 * lib/math_.h [__DECC]: Include the overridden include file through
34377 #include_next, outside the double-inclusion guard.
34378 * lib/stdio_.h [__DECC]: Likewise.
34379 * lib/stdlib_.h [__DECC]: Likewise.
34380 * lib/string_.h [__DECC]: Likewise.
34381 * lib/time_.h [__DECC]: Likewise.
34382 * lib/wchar_.h [__DECC]: Likewise.
34383 * lib/wctype_.h [__DECC]: Likewise.
34384 * lib/inttypes_.h [__DECC]: Likewise.
34385 Reported by Albert Chin <china@thewrittenword.com> in
34386 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34388 2007-04-04 Eric Blake <ebb9@byu.net>
34390 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34393 2007-04-04 Bruno Haible <bruno@clisp.org>
34395 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34396 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34398 2007-04-04 Bruno Haible <bruno@clisp.org>
34400 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34401 results for "%010a" of Infinity and NaN.
34402 * tests/test-vasprintf-posix.c (test_function): Likewise.
34403 * tests/test-snprintf-posix.h (test_function): Likewise.
34404 * tests/test-sprintf-posix.h (test_function): Likewise.
34405 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34406 * tests/test-printf-posix.h (test_function): Likewise.
34407 * tests/test-fprintf-posix.out: Update.
34408 Needed for FreeBSD 6.1.
34410 2007-04-04 Bruno Haible <bruno@clisp.org>
34412 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34413 directly used by the gnulib modules nor by gnulib-tool.
34415 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34417 * DEPENDENCIES: Give overall description of version dependency
34418 desirability. Use more-typical names for apps.
34419 Add shell, coreutils, diffutils, grep, tar, gzip.
34421 2007-04-04 Simon Josefsson <simon@josefsson.org>
34423 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34425 2007-04-04 Karl Berry <karl@gnu.org>
34427 * MODULES.html.sh (func_module): missing '.
34429 2007-04-03 Bruno Haible <bruno@clisp.org>
34431 * modules/argmatch-tests (Makefile.am): New variable
34432 test_argmatch_LDADD.
34433 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34434 * modules/array-list-tests (Makefile.am): New variable
34435 test_array_list_LDADD.
34436 * modules/array-oset-tests (Makefile.am): New variable
34437 test_array_oset_LDADD.
34438 * modules/avltree-list-tests (Makefile.am): New variable
34439 test_avltree_list_LDADD.
34440 * modules/avltree-oset-tests (Makefile.am): New variable
34441 test_avltree_oset_LDADD.
34442 * modules/avltreehash-list-tests (Makefile.am): New variable
34443 test_avltreehash_list_LDADD.
34444 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34445 test_canonicalize_lgpl_LDADD.
34446 * modules/carray-list-tests (Makefile.am): New variable
34447 test_carray_list_LDADD.
34448 * modules/dirname-tests (Makefile.am): New variable
34449 test_dirname_LDADD.
34450 * modules/linked-list-tests (Makefile.am): New variable
34451 test_linked_list_LDADD.
34452 * modules/linkedhash-list-tests (Makefile.am): New variable
34453 test_linkedhash_list_LDADD.
34454 * modules/rbtree-list-tests (Makefile.am): New variable
34455 test_rbtree_list_LDADD.
34456 * modules/rbtree-oset-tests (Makefile.am): New variable
34457 test_rbtree_oset_LDADD.
34458 * modules/rbtreehash-list-tests (Makefile.am): New variable
34459 test_rbtreehash_list_LDADD.
34460 * modules/xvasprintf-tests (Makefile.am): New variable
34461 test_xvasprintf_LDADD.
34462 Reported by Eric Blake.
34464 2007-04-03 Eric Blake <ebb9@byu.net>
34466 * DEPENDENCIES: Weaken m4 requirements.
34468 2007-04-03 Bruno Haible <bruno@clisp.org>
34470 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34471 * modules/isnanl-tests (configure.ac): Likewise.
34473 2007-04-03 Ben Pfaff <blp@gnu.org>
34475 * modules/iconv_open: Add $(srcdir)/ to source directory
34476 references in Makefile fragments that call gperf, to fix VPATH
34479 2007-04-03 Bruno Haible <bruno@clisp.org>
34481 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34482 * lib/ldexpl.c: Undo last change.
34484 2007-04-03 Bruno Haible <bruno@clisp.org>
34486 * modules/printf-frexpl (Depends-on): Undo last change.
34487 (Files): Add m4/ldexpl.m4.
34489 2007-04-03 Bruno Haible <bruno@clisp.org>
34491 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34492 * modules/isnanl (Link): New section.
34494 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34495 * modules/frexp (Link): New section.
34497 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34498 * modules/frexpl (Link): New section.
34500 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34501 * modules/ldexpl (Link): New section.
34503 2007-04-03 Bruno Haible <bruno@clisp.org>
34505 * modules/TEMPLATE-EXTENDED: New file.
34506 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34508 2007-04-03 Bruno Haible <bruno@clisp.org>
34510 * DEPENDENCIES: New file.
34511 Suggested by Simon Josefsson.
34513 2007-04-03 Bruno Haible <bruno@clisp.org>
34515 * doc/gnulib.texi: Escape @.
34517 2007-04-03 James Youngman <jay@gnu.org>
34518 and Paul Eggert <eggert@cs.ucla.edu>
34520 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34521 birthtime on all systems that have birthtime, not just those which
34522 use st_birthtimensec rather than st_birthtim. Putting zero in
34523 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34524 that the birth time is not available for files on an NFS mount.
34526 2007-04-03 Simon Josefsson <simon@josefsson.org>
34528 * modules/memxor: Move back from crypto/, suggested by Bruno.
34529 * modules/crypto/hmac-sha1: Fix memxor dependency.
34531 * modules/crypto/gc: Moved from ../.
34533 2007-04-02 Eric Blake <ebb9@byu.net>
34535 * lib/ldexpl.c (includes): Avoid libm.
34537 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34539 2007-04-02 Bruno Haible <bruno@clisp.org>
34541 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34544 2007-04-02 Bruno Haible <bruno@clisp.org>
34546 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34547 x86 or x86_64 platforms running MacOS X.
34548 Reported by Ryan Schmidt <@ryandesign.com>.
34550 2007-04-02 Bruno Haible <bruno@clisp.org>
34552 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34555 2007-04-01 Simon Josefsson <simon@josefsson.org>
34557 * modules/crypto/arcfour: Moved from ../.
34558 * modules/crypto/arcfour-tests: Moved from ../.
34559 * modules/crypto/arctwo: Moved from ../.
34560 * modules/crypto/arctwo-tests: Moved from ../.
34561 * modules/crypto/des: Moved from ../.
34562 * modules/crypto/des-tests: Moved from ../.
34563 * modules/crypto/gc-arcfour: Moved from ../.
34564 * modules/crypto/gc-arcfour-tests: Moved from ../.
34565 * modules/crypto/gc-arctwo: Moved from ../.
34566 * modules/crypto/gc-arctwo-tests: Moved from ../.
34567 * modules/crypto/gc-des: Moved from ../.
34568 * modules/crypto/gc-des-tests: Moved from ../.
34569 * modules/crypto/gc-hmac-md5: Moved from ../.
34570 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34571 * modules/crypto/gc-hmac-sha1: Moved from ../.
34572 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34573 * modules/crypto/gc-md2: Moved from ../.
34574 * modules/crypto/gc-md2-tests: Moved from ../.
34575 * modules/crypto/gc-md4: Moved from ../.
34576 * modules/crypto/gc-md4-tests: Moved from ../.
34577 * modules/crypto/gc-md5: Moved from ../.
34578 * modules/crypto/gc-md5-tests: Moved from ../.
34579 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34580 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34581 * modules/crypto/gc-random: Moved from ../.
34582 * modules/crypto/gc-rijndael: Moved from ../.
34583 * modules/crypto/gc-rijndael-tests: Moved from ../.
34584 * modules/crypto/gc-sha1: Moved from ../.
34585 * modules/crypto/gc-sha1-tests: Moved from ../.
34586 * modules/crypto/gc-tests: Moved from ../.
34587 * modules/crypto/hmac-md5: Moved from ../.
34588 * modules/crypto/hmac-md5-tests: Moved from ../.
34589 * modules/crypto/hmac-sha1: Moved from ../.
34590 * modules/crypto/hmac-sha1-tests: Moved from ../.
34591 * modules/crypto/md2: Moved from ../.
34592 * modules/crypto/md2-tests: Moved from ../.
34593 * modules/crypto/md4: Moved from ../.
34594 * modules/crypto/md4-tests: Moved from ../.
34595 * modules/crypto/md5: Moved from ../.
34596 * modules/crypto/md5-tests: Moved from ../.
34597 * modules/crypto/memxor: Moved from ../.
34598 * modules/crypto/rijndael: Moved from ../.
34599 * modules/crypto/rijndael-tests: Moved from ../.
34600 * modules/crypto/sha1: Moved from ../.
34602 2007-03-30 James Youngman <jay@gnu.org>
34604 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34605 rename() to change the ctime of a file (because ctime is unaffected
34606 by rename on jfs2 on AIX 5.1).
34607 (main): Start by doing cleanup, in case a previous run failed leaving
34610 2007-03-31 Bruno Haible <bruno@clisp.org>
34612 Support old proprietary implementations of iconv.
34613 * modules/iconv_open: New file.
34614 * lib/iconv_.h: New file.
34615 * m4/iconv_h.m4: New file.
34616 * lib/iconv_open.c: New file.
34617 * lib/iconv_open-aix.gperf: New file.
34618 * lib/iconv_open-hpux.gperf: New file.
34619 * lib/iconv_open-irix.gperf: New file.
34620 * lib/iconv_open-osf.gperf: New file.
34621 * m4/iconv_open.m4: New file.
34622 * modules/linebreak (Depends-on): Add iconv_open.
34623 * modules/striconv (Depends-on): Likewise.
34624 * modules/striconveh (Depends-on): Likewise.
34625 * modules/unicodeio (Depends-on): Likewise.
34626 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34628 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34629 conversion if cd is (iconv_t)(-1).
34630 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34633 2007-03-31 Bruno Haible <bruno@clisp.org>
34635 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34636 work on Solaris either. Protect also second use of "autodetect_jp".
34638 2007-03-31 Bruno Haible <bruno@clisp.org>
34640 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34641 the function is not present.
34643 2007-03-31 Bruno Haible <bruno@clisp.org>
34645 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34646 the function is not present.
34648 2007-03-31 Bruno Haible <bruno@clisp.org>
34650 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34651 a bug in HP-UX iconv_open().
34653 2007-03-31 Bruno Haible <bruno@clisp.org>
34655 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34656 (Mathematics <math.h>): New section, add fpieee.
34657 (Input/output <stdio.h>): Add fseterr.
34658 (Mathematics <math.h>): New section, add printf-frexp.
34659 (Container data structures): Add sublist.
34660 (Core language properties): Add fpucw, inline.
34661 (Functions for greatest-width integer types <inttypes.h>): Add
34662 imaxabs, imaxdiv, inttypes.
34663 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34664 isnanl-nolibm, ldexp.
34665 (Mathematics <math.h>): New section, add printf-frexpl.
34666 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34667 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34668 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34669 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34670 (Unicode string functions): Add unistr/u*-mbtoucr.
34671 (Java): Add javacomp-script, javaexec-script.
34672 (C#): Add csharpcomp-script, csharpexec-script.
34673 (Support for building libraries and executables): Add havelib,
34675 (Support for maintaining and releasing projects): Renamed from
34676 'Support for maintaining and release projects'. Add announce-gen.
34678 2007-03-31 Bruno Haible <bruno@clisp.org>
34680 * README: Talk primarily about git.
34681 (git and CVS): Renamed from CVS.
34682 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34683 gnulib is available through git.
34684 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34686 2007-03-30 Bruno Haible <bruno@clisp.org>
34688 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34689 * lib/poll_.h: Likewise.
34690 * lib/stat_.h: Likewise.
34691 * lib/sys_time_.h: Likewise.
34692 * lib/sysexit_.h: Likewise.
34693 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34694 * lib/stdbool_.h: Likewise.
34695 * lib/byteswap_.h: Add double-inclusion guard.
34697 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34699 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34701 2007-03-30 Karl Berry <karl@gnu.org>
34703 * config/srclist-update: double space after USA in the license
34704 substitution, since that's how it's usually (?) written.
34706 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34708 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34709 reported by Bruno Haible.
34711 2007-03-29 Bruno Haible <bruno@clisp.org>
34713 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34714 a bug in AIX iconv().
34716 2007-03-29 Bruno Haible <bruno@clisp.org>
34718 * modules/ldexpl-tests: New file.
34719 * tests/test-ldexpl.c: New file.
34721 2007-03-29 Bruno Haible <bruno@clisp.org>
34723 * lib/ldexpl.c: Include fpucw.h.
34724 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34726 * modules/ldexpl (Depends-on): Add fpucw.
34728 2007-03-29 Bruno Haible <bruno@clisp.org>
34730 * modules/ldexpl: New file.
34731 * m4/ldexpl.m4: New file.
34732 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34734 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34736 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34738 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34739 gl_FUNC_LDEXPL_WORKS.
34740 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34741 * modules/mathl (Files): Remove lib/ldexpl.c.
34742 (Depends-on): Add ldexpl.
34744 2007-03-29 Bruno Haible <bruno@clisp.org>
34746 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34748 2007-03-29 Bruno Haible <bruno@clisp.org>
34750 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34751 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34752 and possibly also HP-UX.
34753 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34754 work on AIX, IRIX, HP-UX, OSF/1.
34755 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34756 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34757 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34758 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34759 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34760 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34762 2007-03-29 Bruno Haible <bruno@clisp.org>
34764 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34766 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34768 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34769 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34771 2007-03-29 Eric Blake <ebb9@byu.net>
34773 * lib/acl-internal.h: Remove redundant include.
34774 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34775 Cygwin when a file is locked.
34777 2007-03-29 Bruno Haible <bruno@clisp.org>
34779 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34781 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34783 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34785 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34786 try to remove a parent directory if the child couldn't be removed
34787 (except for the first rmdir, which could fail because the child
34788 doesn't exist). Problem reported by Jeff Blaine in
34789 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34791 2007-03-28 Bruno Haible <bruno@clisp.org>
34793 * lib/striconveh.c (utf8conv_carefully): New function.
34794 (mem_cd_iconveh_internal): Invoke it.
34796 2007-03-28 Bruno Haible <bruno@clisp.org>
34798 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34799 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34801 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34802 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34805 2007-03-28 Bruno Haible <bruno@clisp.org>
34807 * modules/unistr/u8-mbtoucr: New file.
34808 * lib/unistr/u8-mbtoucr.c: New file.
34809 * modules/unistr/u16-mbtoucr: New file.
34810 * lib/unistr/u16-mbtoucr.c: New file.
34811 * modules/unistr/u16-mbtoucr: New file.
34812 * lib/unistr/u16-mbtoucr.c: New file.
34813 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34815 2007-03-27 Simon Josefsson <simon@josefsson.org>
34816 Bruno Haible <bruno@clisp.org>
34818 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34819 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34820 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34822 * m4/stdio_h.m4: Add stubs for vasprintf too.
34824 * modules/stdio: Support vasprintf in sed command.
34826 * modules/vasprintf: Depend on stdio for prototypes. Remove
34827 vasprintf.h. Add stdio module indicator.
34829 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34832 * lib/vasprintf.h: File removed.
34834 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34835 * lib/vasprintf.c: Ditto.
34836 * lib/xvasprintf.c: Ditto.
34837 * tests/test-vasprintf-posix.c: Ditto.
34838 * tests/test-vasprintf.c: Ditto.
34840 2007-03-27 Bruno Haible <bruno@clisp.org>
34842 Make vasnprintf multithread-safe.
34843 * lib/vasnprintf.c (decimal_point_char): New function.
34844 (VASNPRINTF): Use it.
34845 Suggested by Simon Josefsson.
34847 2007-03-27 Eric Blake <ebb9@byu.net>
34849 Support sub-second birthtime on cygwin.
34850 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34851 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34852 (get_stat_birthtime): Also work with st_birthtim.
34854 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34856 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34857 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34858 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34859 (get_stat_birthtime_ns): Simplify compile-time tests.
34860 (get_stat_birthtime): Change the API to look like
34861 get_stat_mtime etc., except return a negative tv_nsec on error.
34862 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34863 Don't check for "spare" fields.
34864 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34865 or for struct stat.st_birthtime, as these tests aren't used.
34866 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34868 2007-03-27 Bruno Haible <bruno@clisp.org>
34870 * lib/stat-time.h: Include <sys/stat.h>.
34872 2007-03-27 James Youngman <jay@gnu.org>
34874 * lib/stat-time.h (get_stat_birthtime): New function for
34875 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34876 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34878 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34879 * modules/stat-time-test: New file.
34880 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34882 2007-03-26 Bruno Haible <bruno@clisp.org>
34884 Better support of signalling NaNs.
34885 * lib/atanl.c: Include isnanl.h.
34886 (atanl): Perform test for NaN at the beginning of the function and
34887 through a call to isnanl.
34888 * lib/cosl.c: Include isnanl.h.
34889 (cosl): Perform test for NaN at the beginning of the function and
34890 through a call to isnanl.
34891 * lib/ldexpl.c: Include isnanl.h.
34892 (ldexpl): Perform test for NaN through a call to isnanl.
34893 * lib/logl.c: Include isnanl.h.
34894 (logl): Perform test for NaN at the beginning of the function and
34895 through a call to isnanl.
34896 * lib/sinl.c: Include isnanl.h.
34897 (sinl): Perform test for NaN at the beginning of the function and
34898 through a call to isnanl.
34899 * lib/sqrtl.c: Include isnanl.h.
34900 (sqrtl): Perform test for NaN at the beginning of the function and
34901 through a call to isnanl.
34902 * lib/tanl.c: Include isnanl.h.
34903 (tanl): Perform test for NaN at the beginning of the function and
34904 through a call to isnanl.
34905 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34906 * modules/mathl (Depends-on): Add isnanl.
34908 2007-03-26 Eric Blake <ebb9@byu.net>
34910 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34911 regression in logic sense of previous patch.
34913 2007-03-26 Bruno Haible <bruno@clisp.org>
34915 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34916 unportable shell command "if ! ...".
34917 Reported by Ralf Wildenhues.
34919 2007-03-25 Bruno Haible <bruno@clisp.org>
34921 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34922 <sysexits.h> file, and only add EX_CONFIG.
34923 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34924 absolute file name and whether it is sufficient. Substitute also
34925 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34926 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34927 ABSOLUTE_SYSEXITS_H into sysexits.h.
34929 2007-03-25 Bruno Haible <bruno@clisp.org>
34931 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34934 2007-03-25 Bruno Haible <bruno@clisp.org>
34936 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34937 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34939 2007-03-25 Bruno Haible <bruno@clisp.org>
34941 * lib/vasnprintf.c: Include langinfo.h.
34942 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34944 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34945 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34946 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34947 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34948 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34949 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34950 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34951 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34952 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34953 Reported by Simon Josefsson.
34955 2007-03-25 Bruno Haible <bruno@clisp.org>
34957 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34958 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34959 * modules/vasnprintf (Depends-on): Add stdint.
34961 2007-03-25 Bruno Haible <bruno@clisp.org>
34963 * modules/fpieee: New file.
34964 * m4/fpieee.m4: New file.
34965 * modules/isnan-nolibm (Depends-on): Add fpieee.
34966 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34967 * modules/isnanl (Depends-on): Add fpieee.
34969 2007-03-25 Bruno Haible <bruno@clisp.org>
34971 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34973 2007-03-25 Bruno Haible <bruno@clisp.org>
34975 Avoid test failures on IRIX 6.5.
34976 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34978 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34982 2007-03-25 Bruno Haible <bruno@clisp.org>
34984 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34985 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34986 exists but doesn't work.
34987 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34988 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34989 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34990 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34992 2007-03-25 Bruno Haible <bruno@clisp.org>
34994 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34995 returns inf. Needed on IRIX 6.5.
34997 2007-03-25 Bruno Haible <bruno@clisp.org>
34999 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35000 (main): Use isnanl instead of x != x idiom.
35001 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35003 * tests/test-frexp.c: Include isnan.h.
35004 (main): Use isnan instead of x != x idiom.
35005 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35007 2007-03-25 Bruno Haible <bruno@clisp.org>
35009 * tests/test-frexp.c (NaN): New function/macro.
35010 (main): Use it instead of 0.0 / 0.0.
35011 * tests/test-isnan.c (NaN): New function/macro.
35012 (main): Use it instead of 0.0 / 0.0.
35013 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35014 (test_function): Use it instead of 0.0 / 0.0.
35015 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35016 (test_function): Use it instead of 0.0 / 0.0.
35017 * tests/test-snprintf-posix.h (NaN): New function/macro.
35018 (test_function): Use it instead of 0.0 / 0.0.
35019 * tests/test-sprintf-posix.h (NaN): New function/macro.
35020 (test_function): Use it instead of 0.0 / 0.0.
35021 * tests/test-fprintf-posix.h (NaN): New function/macro.
35022 (test_function): Use it instead of 0.0 / 0.0.
35023 * tests/test-printf-posix.h (NaN): New function/macro.
35024 (test_function): Use it instead of 0.0 / 0.0.
35026 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35028 2007-03-25 Bruno Haible <bruno@clisp.org>
35030 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35032 2007-03-25 Bruno Haible <bruno@clisp.org>
35034 * lib/regexec.c (merge_state_with_log): Make static.
35036 2007-03-25 Bruno Haible <bruno@clisp.org>
35038 * lib/trigl.c (kernel_rem_pio2): Make static.
35040 2007-03-25 Bruno Haible <bruno@clisp.org>
35042 * lib/sincosl.c (sincosl_table): Make static.
35044 2007-03-25 Bruno Haible <bruno@clisp.org>
35046 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35047 if the compiler does not support C99.
35049 2007-03-25 Bruno Haible <bruno@clisp.org>
35051 * modules/time (Makefile.am): Ensure all rule action lines start with a
35054 2007-03-24 Bruno Haible <bruno@clisp.org>
35056 * modules/tsearch-tests: New file.
35057 * tests/test-tsearch.sh: New file.
35058 * tests/test-tsearch.c: New file, mostly copied from glibc.
35060 * modules/search-tests: New file.
35061 * tests/test-search.c: New file.
35063 * modules/search: New file.
35064 * lib/search_.h: New file, incorporating lib/tsearch.h.
35065 * m4/search_h.m4: New file.
35066 * lib/tsearch.h: Remove file.
35067 * lib/tsearch.c: Include search.h instead of tsearch.h.
35068 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35070 * modules/tsearch (Files): Remove lib/tsearch.h.
35071 (Depends-on): Add search.
35072 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35073 (Include): Change tsearch.h into search.h.
35075 2007-03-24 Bruno Haible <bruno@clisp.org>
35077 * modules/fpucw: New file.
35078 * lib/fpucw.h: New file.
35079 * lib/frexp.c: Include fpucw.h.
35080 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35082 * lib/printf-frexp.c: Include fpucw.h.
35083 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35085 * lib/vasnprintf.c: Include fpucw.h.
35086 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35087 'long double' calculations.
35088 * tests/test-frexpl.c: Include fpucw.h.
35089 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35090 * tests/test-printf-frexpl.c: Include fpucw.h.
35091 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35092 * modules/frexpl (Depends-on): Add fpucw.
35093 * modules/printf-frexpl (Depends-on): Likewise.
35094 * modules/fprintf-posix (Depends-on): Likewise.
35095 * modules/snprintf-posix (Depends-on): Likewise.
35096 * modules/sprintf-posix (Depends-on): Likewise.
35097 * modules/vasnprintf-posix (Depends-on): Likewise.
35098 * modules/vasprintf-posix (Depends-on): Likewise.
35099 * modules/vfprintf-posix (Depends-on): Likewise.
35100 * modules/vsnprintf-posix (Depends-on): Likewise.
35101 * modules/vsprintf-posix (Depends-on): Likewise.
35102 * modules/frexpl-tests (Depends-on): Likewise.
35103 * modules/printf-frexpl-tests (Depends-on): Likewise.
35105 2007-03-24 Bruno Haible <bruno@clisp.org>
35107 * lib/float+.h: New file.
35108 * lib/isnan.c: Include float+.h.
35110 (FUNC): Compare only SIZE bytes of the value.
35111 * lib/vasnprintf.c: Include float+.h.
35112 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35113 SIZEOF_LDBL or SIZEOF_DBL bytes.
35114 * modules/isnan-nolibm (Files): Add lib/float+.h.
35115 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35116 * modules/isnanl (Files): Add lib/float+.h.
35117 * modules/vasnprintf (Files): Add lib/float+.h.
35119 2007-03-24 Bruno Haible <bruno@clisp.org>
35121 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35122 include isnanl-nolibm.h.
35124 2007-03-24 Bruno Haible <bruno@clisp.org>
35126 * tests/test-read-file.c (main): Don't produce spurious output for
35127 expected situations. Make the test fail if it encountered unexpected
35130 2007-03-24 Bruno Haible <bruno@clisp.org>
35132 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35133 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35135 2007-03-24 Bruno Haible <bruno@clisp.org>
35137 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35139 2007-03-24 Bruno Haible <bruno@clisp.org>
35141 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35142 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35144 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35145 * modules/utf8-ucs4: Turn into a symbolic link to module
35148 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35150 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35151 unistr/u8-mbtouc-unsafe.
35153 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35154 * modules/utf16-ucs4: Turn into a symbolic link to module
35157 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35159 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35160 unistr/u16-mbtouc-unsafe.
35162 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35163 * modules/ucs4-utf8: Turn into a symbolic link to module
35166 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35167 * modules/ucs4-utf16: Turn into a symbolic link to module
35170 2007-03-24 Bruno Haible <bruno@clisp.org>
35172 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35173 Enable the function only if HAVE_INLINE.
35174 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35175 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35176 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35177 Enable the function only if HAVE_INLINE.
35178 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35179 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35180 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35181 Enable the function only if HAVE_INLINE.
35182 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35183 Enable the function only if HAVE_INLINE.
35184 * modules/utf8-ucs4: Update.
35185 * modules/utf8-ucs4-unsafe: Update.
35186 * modules/utf16-ucs4: Update.
35187 * modules/utf16-ucs4-unsafe: Update.
35188 * modules/ucs4-utf8: Update.
35189 * modules/ucs4-utf16: Update.
35191 2007-03-24 Bruno Haible <bruno@clisp.org>
35193 * lib/utf8-ucs4.h: Remove file.
35194 * lib/utf8-ucs4-unsafe.h: Remove file.
35195 * lib/utf16-ucs4.h: Remove file.
35196 * lib/utf16-ucs4-unsafe.h: Remove file.
35197 * lib/ucs4-utf8.h: Remove file.
35198 * lib/ucs4-utf16.h: Remove file.
35199 * lib/unistr.h: Include their previous contents.
35200 * m4/utf-ucs4.m4: Remove file.
35201 * m4/ucs4-utf.m4: Remove file.
35202 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35203 (Depends-on): Add unistr/base.
35204 (configure.ac): Remove gl_UTF_UCS4.
35205 (Makefile.am): Update.
35206 (Include): Change to unistr.h.
35207 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35208 (Depends-on): Add unistr/base.
35209 (configure.ac): Remove gl_UTF_UCS4.
35210 (Makefile.am): Update.
35211 (Include): Change to unistr.h.
35212 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35213 (Depends-on): Add unistr/base.
35214 (configure.ac): Remove gl_UTF_UCS4.
35215 (Makefile.am): Update.
35216 (Include): Change to unistr.h.
35217 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35218 (Depends-on): Add unistr/base.
35219 (configure.ac): Remove gl_UTF_UCS4.
35220 (Makefile.am): Update.
35221 (Include): Change to unistr.h.
35222 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35223 (Depends-on): Add unistr/base.
35224 (configure.ac): Remove gl_UCS4_UTF.
35225 (Makefile.am): Update.
35226 (Include): Change to unistr.h.
35227 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35228 (Depends-on): Add unistr/base.
35229 (configure.ac): Remove gl_UCS4_UTF.
35230 (Makefile.am): Update.
35231 (Include): Change to unistr.h.
35232 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35233 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35234 utf8-ucs4-unsafe.h.
35235 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35236 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35237 utf16-ucs4-unsafe.h.
35238 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35239 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35240 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35241 * lib/unistr/u8-strchr.c: Likewise.
35242 * lib/unistr/u8-strrchr.c: Likewise.
35243 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35244 * lib/unistr/u16-strchr.c: Likewise.
35245 * lib/unistr/u16-strrchr.c: Likewise.
35246 * lib/striconveh.c: Update.
35247 * lib/linebreak.c: Update.
35249 2007-03-24 Bruno Haible <bruno@clisp.org>
35251 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35252 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35254 2007-03-22 Bruno Haible <bruno@clisp.org>
35256 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35258 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35260 * MODULES.html.sh (File system functions): New module write-any-file.
35261 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35262 * m4/write-any-file.m4: New files.
35264 2007-03-23 Eric Blake <ebb9@byu.net>
35266 * gnulib-tool: Rearrange space-tab sequences, since some editors
35269 2007-03-23 Eric Blake <ebb9@byu.net>
35271 * lib/version-etc.c (version_etc_va): Update license wording to
35272 be more concise. Recommended by Richard Stallman.
35274 2007-03-22 Bruno Haible <bruno@clisp.org>
35276 * lib/poll.c (MSG_PEEK): New fallback definition.
35278 2007-03-22 Bruno Haible <bruno@clisp.org>
35280 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35281 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35283 Fixes a compilation error on BeOS.
35285 2007-03-22 Bruno Haible <bruno@clisp.org>
35287 * modules/frexpl-tests: New file.
35288 * tests/test-frexpl.c: New file.
35290 * modules/frexpl: New file.
35291 * m4/frexpl.m4: New file.
35292 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35293 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35294 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35295 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35296 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35297 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35299 2007-03-22 Bruno Haible <bruno@clisp.org>
35301 * lib/frexpl.c: Share code with lib/frexp.c.
35302 * modules/mathl (Files): Add lib/frexp.c.
35303 (Depends-on): Add isnanl-nolibm.
35305 2007-03-22 Bruno Haible <bruno@clisp.org>
35307 * modules/printf-frexp (Files): Add m4/frexp.m4.
35308 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35309 only if the found frexp function actually works.
35311 2007-03-22 Bruno Haible <bruno@clisp.org>
35313 * lib/frexp.c: Remove older implementation that uses divisions.
35315 2007-03-21 Bruno Haible <bruno@clisp.org>
35317 * modules/frexp-tests: New file.
35318 * tests/test-frexp.c: New file.
35320 * modules/frexp: New file.
35321 * lib/frexp.c: New file.
35322 * m4/frexp.m4: New file.
35323 * lib/math_.h (frexp): New declaration.
35324 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35326 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35328 2007-03-21 Bruno Haible <bruno@clisp.org>
35330 * modules/isnanl-tests: New file.
35331 * tests/test-isnanl.c: New file.
35333 * modules/isnanl: New file.
35334 * lib/isnanl.h: New file.
35335 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35336 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35337 gl_FUNC_ISNANL_WORKS.
35338 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35341 2007-03-21 Bruno Haible <bruno@clisp.org>
35343 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35346 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35347 * lib/vasnprintf.c: Update.
35348 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35349 tests/test-isnanl.h, remove tests/test-isnanl.c.
35350 (Makefile.am): Update.
35351 * tests/test-isnanl-nolibm.c: New file.
35352 * tests/test-isnanl.h: New file.
35353 * tests/test-isnanl.c: Remove file.
35355 2007-03-21 Jim Meyering <jim@meyering.net>
35357 When trying to open ".", treat ESTALE like EACCES.
35358 * lib/savewd.c (savewd_save): Resort to forking not just upon
35359 failure with EACCES, but also when errno is ESTALE.
35361 2007-03-20 Bruno Haible <bruno@clisp.org>
35363 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35364 Needed on AIX 5.1. Reported by Matthew Woehlke.
35366 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35368 Suggestions by Bruno Haible:
35369 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35371 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35372 * modules/acl (Depends-on): Add gettext.
35374 2007-03-19 Bruno Haible <bruno@clisp.org>
35376 * modules/iconvme: Remove file.
35377 * lib/iconvme.h: Remove file.
35378 * lib/iconvme.c: Remove file.
35379 * m4/iconvme.m4: Remove file.
35381 2007-03-19 Bruno Haible <bruno@clisp.org>
35383 * doc/relocatable-maint.texi: Break long shell script line.
35384 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35386 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35388 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35389 handle file_has_acl.
35390 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35391 * lib/acl.c: Move header inclusions and related macro defns into
35392 lib/acl-internal.h.
35393 (S_ISLNK): Remove defn, since that's now done for us.
35394 (file_has_acl): Move to lib/file-has-acl.c.
35395 Call acl_trivial if available. This is the crucial part of the fix.
35396 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35397 shared within the library. Rewrite a bit, partly to make it compatible
35398 with the GNU coding style.
35399 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35400 Remove unnecessary double-quotes.
35401 Don't test for acl_to_text; the build will catch that.
35402 Replace acl_entries if it doesn't exist and it is needed.
35403 Check for -lsec and acl_trivial (as used on Solaris 10).
35404 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35405 lib/file-has-acl.c.
35406 (Depends-on): Add sys_stat, for S_ISLNK.
35408 2007-03-19 Ben Pfaff <blp@gnu.org>
35410 * doc/gnulib.texi: Fix typos.
35411 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35413 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35415 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35416 If size is zero here, buf must be zero.
35418 2007-03-19 Simon Josefsson <simon@josefsson.org>
35420 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35423 2007-03-18 Bruno Haible <bruno@clisp.org>
35425 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35426 Suggested by Eric Blake.
35428 2007-03-18 Ben Pfaff <blp@gnu.org>
35430 * doc/relocatable.texi: Recommend using as prefix a directory
35431 that does not exist and will never be created. Based on
35432 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35435 2007-03-17 Bruno Haible <bruno@clisp.org>
35437 * lib/fchownat.c: Include lchown.h.
35439 2007-03-17 Bruno Haible <bruno@clisp.org>
35441 Fix endless loop when the given allocated size was > INT_MAX.
35442 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35443 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35444 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35445 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35446 * lib/sprintf.c (sprintf): Likewise.
35448 2007-03-17 Bruno Haible <bruno@clisp.org>
35450 * tests/test-argp-2.sh (func_compare): Output a context diff.
35452 2007-03-17 Bruno Haible <bruno@clisp.org>
35454 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35455 locale's decimal-point character.
35457 2007-03-17 Bruno Haible <bruno@clisp.org>
35459 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35460 before comparing it. Needed because on some platforms (e.g. x86) a
35461 'long double' occupies less bytes than sizeof (long double).
35463 2007-03-17 Bruno Haible <bruno@clisp.org>
35465 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35466 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35467 * tests/test-getaddrinfo.c (simple): Likewise.
35468 * tests/test-read-file.c (main): Likewise.
35470 2007-03-17 Bruno Haible <bruno@clisp.org>
35472 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35474 2007-03-17 Bruno Haible <bruno@clisp.org>
35476 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35479 2007-03-17 Bruno Haible <bruno@clisp.org>
35481 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35482 * tests/test-c-strncasecmp.c: Likewise.
35484 2007-03-17 Bruno Haible <bruno@clisp.org>
35486 * modules/stdlib (Depends-on): Add unistd.
35487 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35488 Needed for MacOS X 10.3.
35490 2007-03-17 Bruno Haible <bruno@clisp.org>
35492 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35494 2007-03-17 Bruno Haible <bruno@clisp.org>
35496 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35498 2007-03-17 Bruno Haible <bruno@clisp.org>
35500 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35501 to reflect files copied from gnulib (with or without modifications).
35502 Suggested by Jim Meyering.
35504 2007-03-17 Eric Blake <ebb9@byu.net>
35506 * NEWS: Document stdlib change from 2007-02-18.
35508 2007-03-17 Jim Meyering <jim@meyering.net>
35510 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35511 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35512 someone uses a name containing shell meta-characters.
35513 Reported by Alfred M. Szmidt.
35515 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35517 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35519 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35520 and copy gettext configuration files only if configure.ac contains
35521 a use of AM_GNU_GETTEXT_VERSION.
35523 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35525 * build-aux/bootstrap (gnulib_name): New variable.
35526 (gnulib_tool_options): Use it.
35528 2007-03-13 Simon Josefsson <simon@josefsson.org>
35530 * tests/test-des.c: Use new namespace.
35532 2007-03-15 Bruno Haible <bruno@clisp.org>
35534 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35535 Reported by James Youngman <jay@gnu.org>.
35537 2007-03-15 Bruno Haible <bruno@clisp.org>
35539 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35540 declared prototype. Needed with cc on OSF/1 5.1.
35542 2007-03-15 Bruno Haible <bruno@clisp.org>
35544 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35545 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35546 (struct gl_list_implementation): Add dispose_fn argument to the
35547 'create_empty', 'create' methods.
35548 (struct gl_list_impl_base): Add field 'dispose_fn'.
35549 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35551 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35552 dispose_fn argument.
35553 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35554 dispose_fn on the dropped values.
35555 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35556 dispose_fn argument.
35557 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35559 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35560 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35561 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35562 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35563 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35565 (gl_tree_list_free): Call dispose_fn on the dropped values.
35566 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35567 the dropped values.
35568 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35569 Add dispose_fn argument.
35570 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35571 Call dispose_fn on the dropped values.
35572 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35573 Add dispose_fn argument.
35574 (gl_sublist_create): Initialize the 'dispose_fn' field.
35575 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35576 * tests/test-array_list.c (main): Update.
35577 * tests/test-carray_list.c (main): Update.
35578 * tests/test-avltree_list.c (main): Update.
35579 * tests/test-rbtree_list.c (main): Update.
35580 * tests/test-avltreehash_list.c (main): Update.
35581 * tests/test-rbtreehash_list.c (main): Update.
35582 * tests/test-linked_list.c (main): Update.
35583 * tests/test-linkedhash_list.c (main): Update.
35584 * tests/test-array_oset.c (main): Update.
35586 2007-03-15 Bruno Haible <bruno@clisp.org>
35588 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35589 (gl_oset_create_empty): Add dispose_fn argument.
35590 (struct gl_oset_implementation): Add dispose_fn argument to
35591 'create_empty' method.
35592 (struct gl_oset_impl_base): Add dispose_fn field.
35593 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35594 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35595 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35597 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35598 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35599 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35601 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35603 * tests/test-array_oset.c (main): Update.
35604 * tests/test-avltree_oset.c (main): Update.
35605 * tests/test-rbtree_oset.c (main): Update.
35606 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35608 2007-03-13 Bruno Haible <bruno@clisp.org>
35610 * tests/test-stdbool.c (i): Update after last patch.
35612 2007-03-12 Bruno Haible <bruno@clisp.org>
35614 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35615 the iswprint macro. Needed on Solaris 2.5.1.
35617 2007-03-12 Bruno Haible <bruno@clisp.org>
35619 * tests/test-printf-frexp.c (main): Declare x as volatile.
35621 2007-03-12 Simon Josefsson <simon@josefsson.org>
35623 * doc/gnulib.texi (Build robot for gnulib): New section.
35625 2007-03-12 Jim Meyering <jim@meyering.net>
35627 * build-aux/bootstrap: New file.
35628 * build-aux/bootstrap.conf: New file, from coreutils.
35630 2007-03-11 Bruno Haible <bruno@clisp.org>
35632 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35634 2007-03-12 Simon Josefsson <simon@josefsson.org>
35636 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35637 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35638 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35640 2007-03-11 Bruno Haible <bruno@clisp.org>
35642 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35643 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35645 2007-03-11 Bruno Haible <bruno@clisp.org>
35647 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35648 formula. Needed for SunPRO C 5.0.
35650 2007-03-11 Bruno Haible <bruno@clisp.org>
35652 * modules/long-options (Depends-on): Add getopt.
35654 2007-03-11 Bruno Haible <bruno@clisp.org>
35656 * modules/modechange (Depends-on): Add stdbool.
35658 2007-03-11 Bruno Haible <bruno@clisp.org>
35660 * modules/i-ring (Depends-on): Add stdbool.
35662 2007-03-11 Bruno Haible <bruno@clisp.org>
35664 * modules/gc-des (Depends-on): Add stdbool.
35666 2007-03-11 Bruno Haible <bruno@clisp.org>
35668 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35670 2007-03-11 Bruno Haible <bruno@clisp.org>
35672 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35674 2007-03-11 Bruno Haible <bruno@clisp.org>
35676 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35678 2007-03-11 Bruno Haible <bruno@clisp.org>
35680 * lib/vasnprintf.c (sprintf): Undefine.
35682 2007-03-11 Bruno Haible <bruno@clisp.org>
35684 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35685 initializers in SunPRO C and Compaq C compilers.
35687 2007-03-11 Bruno Haible <bruno@clisp.org>
35689 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35690 decrementing code ANSI C compliant.
35692 2007-03-11 Bruno Haible <bruno@clisp.org>
35694 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35695 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35697 2007-03-11 Bruno Haible <bruno@clisp.org>
35699 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35700 <stdbool.h> substitute doesn't pass.
35702 2007-03-11 Bruno Haible <bruno@clisp.org>
35704 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35706 2007-03-11 Bruno Haible <bruno@clisp.org>
35708 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35709 script, for submission to autobuild.josefsson.org.
35711 2007-03-10 Bruno Haible <bruno@clisp.org>
35713 * modules/canonicalize-lgpl-tests: New file.
35714 * tests/test-canonicalize-lgpl.sh: New file.
35715 * tests/test-canonicalize-lgpl.c: New file.
35717 * modules/c-strcase-tests: New file.
35718 * tests/test-c-strcase.sh: New file.
35719 * tests/test-c-strcasecmp.c: New file.
35720 * tests/test-c-strncasecmp.c: New file.
35722 * modules/atexit-tests: New file.
35723 * tests/test-atexit.sh: New file.
35724 * tests/test-atexit.c: New file.
35726 2007-03-10 Bruno Haible <bruno@clisp.org>
35728 * tests/test-binary-io.sh: Use temporary filenames that are not so
35729 likely to clash with those of other tests (in a parallel make).
35730 * tests/test-binary-io.c: Likewise.
35732 2007-03-10 Bruno Haible <bruno@clisp.org>
35734 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35735 fallback; use #error instead.
35736 Suggested by Simon Josefsson.
35738 2007-03-10 Bruno Haible <bruno@clisp.org>
35740 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35741 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35742 first and the last.
35744 2007-03-10 Bruno Haible <bruno@clisp.org>
35746 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35748 2007-03-10 Bruno Haible <bruno@clisp.org>
35750 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35752 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35753 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35754 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35756 2007-03-10 Bruno Haible <bruno@clisp.org>
35758 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35760 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35763 2007-03-09 Eric Blake <ebb9@byu.net>
35764 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35766 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35767 types are not being provided by gnulib.
35768 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35769 types are supported.
35771 2007-03-10 Bruno Haible <bruno@clisp.org>
35773 * lib/stdio_.h (__attribute__): New macro.
35774 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35775 vsprintf): Specify __attribute__ __format__ for GCC.
35776 Suggested by Eric Blake.
35778 2007-03-09 Bruno Haible <bruno@clisp.org>
35780 * modules/printf-posix-tests: New file.
35781 * tests/test-printf-posix.sh: New file.
35782 * tests/test-printf-posix.c: New file.
35784 * modules/printf-posix: New file.
35785 * lib/printf.c: New file.
35786 * m4/printf-posix-rpl.m4: New file.
35787 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35789 * lib/stdio_.h (printf): New declaration.
35790 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35791 ____strfmon____): New macros.
35792 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35795 2007-03-09 Bruno Haible <bruno@clisp.org>
35797 * tests/test-vasnprintf-posix2.sh: New file.
35798 * tests/test-vasnprintf-posix2.c: New file.
35799 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35800 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35801 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35803 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35804 a locale dependent decimal point, rather than always '.'.
35806 2007-03-09 Eric Blake <ebb9@byu.net>
35808 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35809 spite of platforms like Tandem/NSK that define it to -1.
35811 2007-03-08 Bruno Haible <bruno@clisp.org>
35813 * modules/vprintf-posix-tests: New file.
35814 * tests/test-vprintf-posix.sh: New file.
35815 * tests/test-vprintf-posix.c: New file.
35816 * tests/test-printf-posix.h: New file.
35818 * modules/vprintf-posix: New file.
35819 * lib/vprintf.c: New file.
35820 * m4/vprintf-posix.m4: New file.
35821 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35823 * lib/stdio_.h (vprintf): New declaration.
35824 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35827 2007-03-08 Bruno Haible <bruno@clisp.org>
35829 * modules/fprintf-posix-tests: New file.
35830 * tests/test-fprintf-posix.sh: New file.
35831 * tests/test-fprintf-posix.c: New file.
35833 * modules/fprintf-posix: New file.
35834 * lib/fprintf.c: New file.
35835 * m4/fprintf-posix.m4: New file.
35836 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35838 * lib/stdio_.h (fprintf): New declaration.
35839 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35842 2007-03-08 Bruno Haible <bruno@clisp.org>
35844 * modules/vfprintf-posix-tests: New file.
35845 * tests/test-vfprintf-posix.sh: New file.
35846 * tests/test-vfprintf-posix.c: New file.
35847 * tests/test-fprintf-posix.h: New file.
35848 * tests/test-fprintf-posix.out: New file.
35850 * modules/vfprintf-posix: New file.
35851 * lib/vfprintf.c: New file.
35852 * m4/vfprintf-posix.m4: New file.
35853 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35855 * lib/stdio_.h (vfprintf): New declaration.
35856 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35859 2007-03-08 Bruno Haible <bruno@clisp.org>
35861 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35863 2007-03-08 Bruno Haible <bruno@clisp.org>
35865 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35866 instead of 'expr' invocations.
35867 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35868 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35869 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35870 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35871 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35872 Suggested by Paul Eggert.
35874 2007-03-08 Bruno Haible <bruno@clisp.org>
35876 * modules/fseterr-tests: New file.
35877 * tests/test-fseterr.c: New file.
35879 * modules/fseterr: New file.
35880 * lib/fseterr.h: New file.
35881 * lib/fseterr.c: New file.
35883 2007-03-08 Bruno Haible <bruno@clisp.org>
35885 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35886 * lib/getopt_.h: Likewise.
35887 * lib/mbswidth.h: Likewise.
35888 * lib/setenv.h: Likewise.
35889 * lib/vasnprintf.h: Likewise.
35890 * lib/vasprintf.h: Likewise.
35891 * lib/verror.h: Likewise.
35892 * lib/xsetenv.h: Likewise.
35893 * lib/xvasprintf.h: Likewise.
35895 2007-03-08 Jim Meyering <jim@meyering.net>
35897 * users.txt: Add parted.
35899 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35901 2007-03-07 Bruno Haible <bruno@clisp.org>
35903 * m4/printf.m4: Make the shell script snippets copy&pastable.
35905 2007-03-02 Bruno Haible <bruno@clisp.org>
35907 * lib/netinet_in_.h: New file.
35908 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35909 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35910 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35911 (Depends-on): Add absolute-header.
35912 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35915 2007-03-03 Bruno Haible <bruno@clisp.org>
35917 * lib/sys_select_.h: New file.
35918 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35919 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35920 * modules/sys_select (Files): Add lib/sys_select_.h.
35921 (Depends-on): Add absolute-header.
35922 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35925 2007-03-02 Bruno Haible <bruno@clisp.org>
35927 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35928 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35930 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35931 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35932 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35933 * modules/sys_socket (Depends-on): Add absolute-header.
35934 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35935 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35936 (Include): Remove requirement of inclusion of <sys/types.h>.
35938 2007-03-02 Bruno Haible <bruno@clisp.org>
35940 * lib/byteswap_.h (bswap_32): Fix formula.
35942 2007-03-06 Bruno Haible <bruno@clisp.org>
35944 * modules/sprintf-posix-tests: New file.
35945 * tests/test-sprintf-posix.c: New file.
35947 * modules/sprintf-posix: New file.
35948 * lib/sprintf.c: New file.
35949 * m4/sprintf-posix.m4: New file.
35950 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35952 * lib/stdio_.h (sprintf): New declaration.
35953 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35956 2007-03-06 Bruno Haible <bruno@clisp.org>
35958 * modules/vsprintf-posix-tests: New file.
35959 * tests/test-vsprintf-posix.c: New file.
35960 * tests/test-sprintf-posix.h: New file.
35962 * modules/vsprintf-posix: New file.
35963 * lib/vsprintf.c: New file.
35964 * m4/vsprintf-posix.m4: New file.
35965 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35967 * lib/stdio_.h (vsprintf): New declaration.
35968 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35971 2007-03-06 Bruno Haible <bruno@clisp.org>
35973 * modules/vsnprintf (Depend-on): Remove minmax.
35975 2007-03-06 Bruno Haible <bruno@clisp.org>
35977 * modules/snprintf-posix-tests: New file.
35978 * tests/test-snprintf-posix.c: New file.
35980 * modules/snprintf-posix: New file.
35981 * m4/snprintf-posix.m4: New file.
35982 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35984 (gl_FUNC_SNPRINTF): Invoke it.
35985 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35986 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35988 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35990 2007-03-06 Bruno Haible <bruno@clisp.org>
35992 * modules/vsnprintf-posix-tests: New file.
35993 * tests/test-vsnprintf-posix.c: New file.
35994 * tests/test-snprintf-posix.h: New file.
35996 * modules/vsnprintf-posix: New file.
35997 * m4/vsnprintf-posix.m4: New file.
35998 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36000 (gl_FUNC_VSNPRINTF): Invoke it.
36001 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36002 * lib/stdio_.h (vsnprintf): Define as a replacement if
36003 REPLACE_VSNPRINTF is set.
36004 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36006 2007-03-06 Bruno Haible <bruno@clisp.org>
36008 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36009 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36011 2007-03-06 Bruno Haible <bruno@clisp.org>
36013 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36014 (asinl): Declare also if HAVE_DECL_ASINL is set.
36015 (atanl): Declare also if HAVE_DECL_ATANL is set.
36016 (ceill): Declare also if HAVE_DECL_CEILL is set.
36017 (cosl): Declare also if HAVE_DECL_COSL is set.
36018 (expl): Declare also if HAVE_DECL_EXPL is set.
36019 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36020 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36021 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36022 (logl): Declare also if HAVE_DECL_LOGL is set.
36023 (sinl): Declare also if HAVE_DECL_SINL is set.
36024 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36025 (tanl): Declare also if HAVE_DECL_TANL is set.
36026 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36027 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36028 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36029 declaration of frexpl, ldexpl.
36030 * modules/printf-frexpl (Depends-on): Add math.
36031 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36033 2007-03-05 Bruno Haible <bruno@clisp.org>
36035 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36036 frexpl and ldexpl are declared.
36037 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36039 2007-03-05 Bruno Haible <bruno@clisp.org>
36041 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36042 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36044 2007-03-05 Bruno Haible <bruno@clisp.org>
36046 * lib/stdio_.h: Include <stddef.h>.
36048 2007-03-05 Bruno Haible <bruno@clisp.org>
36050 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36052 2007-03-05 Bruno Haible <bruno@clisp.org>
36054 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36055 NetBSD 4, from Ralf Wildenhues.
36057 2007-03-04 Bruno Haible <bruno@clisp.org>
36059 * lib/vasprintf.h: Update #if logic for the case when the functions
36060 exist but are overridden.
36062 2007-03-04 Bruno Haible <bruno@clisp.org>
36064 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36065 implementations: glibc-2.4 and MacOS X 10.3.
36066 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36067 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36068 * tests/test-vasprintf-posix.c (test_function): Likewise.
36070 2007-03-04 Bruno Haible <bruno@clisp.org>
36072 * modules/vasprintf-posix-tests: New file.
36073 * tests/test-vasprintf-posix.c: New file.
36075 * modules/vasprintf-posix: New file.
36076 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36078 * m4/vasprintf-posix.m4: New file.
36079 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36081 (gl_FUNC_VASPRINTF): Invoke it.
36082 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36084 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36086 2007-03-04 Bruno Haible <bruno@clisp.org>
36088 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36089 REPLACE_GETTIMEOFDAY.
36090 * modules/sys_time (Makefile.am): Likewise.
36091 * m4/sys_time_h.m4: Likewise.
36092 * m4/gettimeofday.m4: Likewise.
36094 2007-03-04 Bruno Haible <bruno@clisp.org>
36096 * modules/vasnprintf-posix-tests: New file.
36097 * tests/test-vasnprintf-posix.c: New file.
36099 * modules/vasnprintf-posix: New file.
36100 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36102 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36103 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36104 REPLACE_VASNPRINTF is defined.
36105 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36106 gl_FUNC_VASNPRINTF.
36107 (gl_FUNC_VASNPRINTF): Invoke it.
36108 * m4/vasnprintf-posix.m4: New file.
36109 * m4/printf.m4: New file.
36111 2007-03-04 Bruno Haible <bruno@clisp.org>
36113 Compile progreloc.c only if --enable-relocatable is specified.
36114 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36115 if --enable-relocatable was specified.
36116 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36119 2007-03-04 Jim Meyering <jim@meyering.net>
36121 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36122 Use it consistently, rather than enumerating errno constants.
36124 2007-03-04 Bruno Haible <bruno@clisp.org>
36126 * modules/xvasprintf-tests: New file.
36127 * tests/test-xvasprintf.c: New file.
36129 * modules/vasprintf-tests: New file.
36130 * tests/test-vasprintf.c: New file.
36132 * modules/vasnprintf-tests: New file.
36133 * tests/test-vasnprintf.c: New file.
36135 * modules/vsnprintf-tests: New file.
36136 * tests/test-vsnprintf.c: New file.
36138 * modules/snprintf-tests: New file.
36139 * tests/test-snprintf.c: New file.
36141 2007-03-04 Bruno Haible <bruno@clisp.org>
36143 Compile relocatable.c only if --enable-relocatable is specified.
36144 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36145 gl_RELOCATABLE_LIBRARY.
36146 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36147 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36148 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36149 gl_RELOCATABLE_LIBRARY.
36150 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36151 (Makefile.am): Remove lib_SOURCES.
36152 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36153 gl_RELOCATABLE_LIBRARY.
36154 (Makefile.am): Remove lib_SOURCES.
36155 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36157 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36158 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36160 2007-03-04 Bruno Haible <bruno@clisp.org>
36162 * modules/argmatch-tests: New file.
36163 * tests/test-argmatch.c: New file.
36165 * tests/test-allocsa.c (main): Halve the number of loop runs.
36167 * modules/alloca-opt-tests: New file.
36168 * tests/test-alloca-opt.c: New file.
36170 2007-03-04 Jim Meyering <jim@meyering.net>
36172 Work around difference between Linux ACLs and Solaris 10 ZFS.
36173 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36176 2007-03-03 Bruno Haible <bruno@clisp.org>
36178 * modules/relocatable-prog (Depends-on): Add back progreloc's
36179 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36181 2007-03-03 Bruno Haible <bruno@clisp.org>
36183 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36184 * modules/relocatable-lib: New file.
36186 2007-03-03 Bruno Haible <bruno@clisp.org>
36188 * modules/relocatable-prog: Renamed from modules/relocatable.
36189 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36191 2007-03-03 Bruno Haible <bruno@clisp.org>
36193 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36194 m4/relocatable-lib.m4.
36195 (Depends-on): Remove 'relocatable'.
36196 (configure.ac): Add gl_RELOCATABLE_NOP.
36198 2007-03-03 Bruno Haible <bruno@clisp.org>
36200 * modules/relocatable-prog-wrapper: New file.
36201 * modules/relocatable (Depends-on): Add it. Remove all other
36202 dependencies except progname.
36203 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36205 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36206 (gl_FUNC_STRERROR): Nop.
36207 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36209 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36210 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36212 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36213 (gl_FUNC_READLINK): Update.
36215 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36217 2007-03-03 Bruno Haible <bruno@clisp.org>
36219 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36220 * modules/xreadlink (Depends-on): Add unistd.
36221 * modules/xreadlink-with-size (Depends-on): Likewise.
36223 2007-03-03 Bruno Haible <bruno@clisp.org>
36225 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36226 extracted from gt_FUNC_SETENV.
36227 (gt_FUNC_SETENV): Remove macro.
36228 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36229 remove gt_FUNC_SETENV.
36231 2007-03-03 Bruno Haible <bruno@clisp.org>
36233 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36234 ENABLE_RELOCATABLE here.
36235 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36237 2007-03-03 Bruno Haible <bruno@clisp.org>
36239 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36240 * tests/test-rbtreehash_list.c: Include progname.h.
36241 (main): Call set_program_name.
36243 * modules/rbtree-oset-tests (Depends-on): Add progname.
36244 * tests/test-rbtree_oset.c: Include progname.h.
36245 (main): Call set_program_name.
36247 * modules/rbtree-list-tests (Depends-on): Add progname.
36248 * tests/test-rbtree_list.c: Include progname.h.
36249 (main): Call set_program_name.
36251 * modules/linked-list-tests (Depends-on): Add progname.
36252 * tests/test-linked_list.c: Include progname.h.
36253 (main): Call set_program_name.
36255 2007-03-03 Bruno Haible <bruno@clisp.org>
36257 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36258 All uses of __restrict changed to _Restrict_.
36259 * lib/glob_.h (__restrict): Remove macro.
36261 2007-03-02 Bruno Haible <bruno@clisp.org>
36263 * modules/gettext (configure.ac): Require gettext infrastructure
36264 from version 0.16.1.
36266 2007-03-02 Bruno Haible <bruno@clisp.org>
36268 * modules/linkedhash-list-tests (Depends-on): Add progname.
36269 * tests/test-linkedhash_list.c: Include progname.h.
36270 (main): Call set_program_name.
36272 * modules/carray-list-tests (Depends-on): Add progname.
36273 * tests/test-carray_list.c: Include progname.h.
36274 (main): Call set_program_name.
36276 * modules/avltreehash-list-tests (Depends-on): Add progname.
36277 * tests/test-avltreehash_list.c: Include progname.h.
36278 (main): Call set_program_name.
36280 * modules/avltree-oset-tests (Depends-on): Add progname.
36281 * tests/test-avltree_oset.c: Include progname.h.
36282 (main): Call set_program_name.
36284 * modules/avltree-list-tests (Depends-on): Add progname.
36285 * tests/test-avltree_list.c: Include progname.h.
36286 (main): Call set_program_name.
36288 * modules/array-oset-tests (Depends-on): Add progname.
36289 * tests/test-array_oset.c: Include progname.h.
36290 (main): Call set_program_name.
36292 * modules/array-list-tests (Depends-on): Add progname.
36293 * tests/test-array_list.c: Include progname.h.
36294 (main): Call set_program_name.
36296 * modules/argp-tests (Depends-on): Add progname.
36297 * tests/test-argp.c: Include argp.h first. Include progname.h.
36298 (main): Call set_program_name.
36300 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36302 * doc/gnulib-tool.texi (Initial import): Reword description of
36303 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36304 limited effect even if defined after the first system include.
36306 2007-03-01 Bruno Haible <bruno@clisp.org>
36308 * build-aux/config.libpath: Update to libtool-1.5.22.
36309 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36311 2007-03-01 Bruno Haible <bruno@clisp.org>
36313 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36315 Reported by Ralf Wildenhues.
36317 2007-03-01 Bruno Haible <bruno@clisp.org>
36319 * build-aux/install-reloc: Remove object files left over by some
36321 Reported by Ralf Wildenhues.
36323 2007-03-01 Bruno Haible <bruno@clisp.org>
36325 * build-aux/install-reloc: Break long lines.
36327 2007-03-01 Bruno Haible <bruno@clisp.org>
36329 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36330 Reported by Ralf Wildenhues.
36332 2007-03-01 Bruno Haible <bruno@clisp.org>
36334 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36335 include ordering constraints.
36337 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36339 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36340 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36341 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36342 as another example.
36343 * lib/time_.h: Fix misspelling.
36344 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36345 Require gl_HEADER_TIME_H_DEFAULTS.
36346 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36347 * m4/time_r.m4 (gl_TIME_R): Likewise.
36348 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36350 2007-03-01 Bruno Haible <bruno@clisp.org>
36352 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36353 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36355 2007-03-01 Jim Meyering <jim@meyering.net>
36357 * modules/xreadlink (Maintainer): Add my name.
36358 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36360 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36361 Bruno Haible <bruno@clisp.org>
36363 * build-aux/install-reloc: Compile also c-ctype.c.
36364 * build-aux/relocatable.sh.in: New file.
36365 * doc/relocatable.texi: New file.
36366 * doc/relocatable-maint.texi: New file.
36367 * doc/gnulib.texi: Include relocatable-maint.texi.
36368 * lib/progreloc.c: Include unistd.h unconditionally.
36369 * lib/relocwrapper.c: Include unistd.h unconditionally.
36371 (add_dotbin): Use c_tolower.
36372 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36373 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36374 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36375 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36376 to m4/relocatable-lib.m4.
36377 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36378 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36379 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36380 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36381 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36382 * modules/relocatable: New file.
36383 * modules/relocatable-lib: New file.
36384 * modules/relocatable-script: New file.
36386 2007-02-28 Bruno Haible <bruno@clisp.org>
36388 Import --enable-relocatable infrastructure.
36389 * build-aux/config.libpath: New file, from GNU gettext.
36390 * build-aux/install-reloc: New file, from GNU gettext.
36391 * build-aux/reloc-ldflags: New file, from GNU gettext.
36392 * lib/relocatable.h: New file, from GNU gettext.
36393 * lib/relocatable.c: New file, from GNU gettext.
36394 * lib/relocwrapper.c: New file, from GNU gettext.
36395 * m4/relocatable.m4: New file, from GNU gettext.
36397 2007-02-28 Bruno Haible <bruno@clisp.org>
36399 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36401 * modules/xreadlink: New file, from GNU gettext with modifications.
36402 * lib/xreadlink.c: New file, from GNU gettext.
36403 * lib/xreadlink.h: Add comments.
36404 (xreadlink): New declaration.
36406 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36407 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36408 lib/xreadlink-with-size.c.
36409 (configure.ac): Remove gl_XREADLINK invocation.
36410 (Makefile.am): Augment lib_SOURCES.
36411 * m4/xreadlink.m4: Remove file.
36412 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36413 (xreadlink_with_size): Renamed from xreadink.
36414 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36415 * modules/canonicalize (Depends-on): Replace xreadlink with
36416 xreadlink-with-size.
36417 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36419 2007-02-25 Jim Meyering <jim@meyering.net>
36421 * build-aux/announce-gen: When complaining about excess arguments,
36424 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36426 * README: Document signed integer overflow situation more
36429 2007-02-25 Bruno Haible <bruno@clisp.org>
36431 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36432 'a' or 'A' conversion.
36434 2007-02-25 Bruno Haible <bruno@clisp.org>
36436 * modules/filename: Renamed from modules/pathname.
36437 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36438 lib/concatpath.c with lib/concat-filename.c.
36439 (Makefile.am): Update.
36440 (Include): Replace pathname.h with filename.h.
36441 * lib/filename.h: Renamed from lib/pathname.h.
36442 (concatenated_filename): Renamed from concatenated_pathname.
36443 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36444 (concatenated_filename): Renamed from concatenated_pathname.
36445 * lib/findprog.c: Include filename.h instead of pathname.h.
36446 (find_in_path): Update.
36447 * lib/javacomp.c: Include filename.h instead of pathname.h.
36448 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36449 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36450 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36451 is_oldgcj_14_13_usable, is_javac_usable): Update.
36452 * lib/javaexec.c: Include filename.h instead of pathname.h.
36453 (execute_java_class): Update.
36454 * modules/findprog: Update.
36455 * modules/javacomp: Update.
36456 * modules/javaexec: Update.
36457 * MODULES.html.sh (File system functions): Add 'filename', remove
36460 2007-02-25 Bruno Haible <bruno@clisp.org>
36462 * modules/printf-frexpl-tests: New file.
36463 * tests/test-printf-frexpl.c: New file.
36465 * modules/printf-frexpl: New file.
36466 * lib/printf-frexpl.h: New file.
36467 * lib/printf-frexpl.c: New file.
36468 * m4/printf-frexpl.m4: New file.
36470 2007-02-25 Bruno Haible <bruno@clisp.org>
36472 * modules/printf-frexp-tests: New file.
36473 * tests/test-printf-frexp.c: New file.
36475 * modules/printf-frexp: New file.
36476 * lib/printf-frexp.h: New file.
36477 * lib/printf-frexp.c: New file.
36478 * m4/printf-frexp.m4: New file.
36480 2007-02-25 Bruno Haible <bruno@clisp.org>
36482 Assume automake >= 1.10 for the tests.
36483 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36484 * modules/arctwo-tests: Likewise.
36485 * modules/argp-tests: Likewise.
36486 * modules/avltree-list-tests: Likewise.
36487 * modules/avltree-oset-tests: Likewise.
36488 * modules/avltreehash-list-tests: Likewise.
36489 * modules/carray-list-tests: Likewise.
36490 * modules/crc-tests: Likewise.
36491 * modules/des-tests: Likewise.
36492 * modules/gc-arcfour-tests: Likewise.
36493 * modules/gc-arctwo-tests: Likewise.
36494 * modules/gc-des-tests: Likewise.
36495 * modules/gc-hmac-md5-tests: Likewise.
36496 * modules/gc-hmac-sha1-tests: Likewise.
36497 * modules/gc-md2-tests: Likewise.
36498 * modules/gc-md4-tests: Likewise.
36499 * modules/gc-md5-tests: Likewise.
36500 * modules/gc-pbkdf2-sha1-tests: Likewise.
36501 * modules/gc-rijndael-tests: Likewise.
36502 * modules/gc-sha1-tests: Likewise.
36503 * modules/gc-tests: Likewise.
36504 * modules/getaddrinfo-tests: Likewise.
36505 * modules/hmac-md5-tests: Likewise.
36506 * modules/hmac-sha1-tests: Likewise.
36507 * modules/linked-list-tests: Likewise.
36508 * modules/linkedhash-list-tests: Likewise.
36509 * modules/lock-tests: Likewise.
36510 * modules/md2-tests: Likewise.
36511 * modules/md4-tests: Likewise.
36512 * modules/md5-tests: Likewise.
36513 * modules/rbtree-list-tests: Likewise.
36514 * modules/rbtree-oset-tests: Likewise.
36515 * modules/rbtreehash-list-tests: Likewise.
36516 * modules/read-file-tests: Likewise.
36517 * modules/rijndael-tests: Likewise.
36518 * modules/stdint-tests: Likewise.
36519 * modules/tls-tests: Likewise.
36521 2007-02-24 Bruno Haible <bruno@clisp.org>
36523 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36524 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36525 function; instead check whether isnan with a double argument links.
36526 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36527 function; instead check whether isnan with a 'long double' argument
36529 Reported by Eric Blake <ebb9@byu.net>.
36531 2007-02-24 Bruno Haible <bruno@clisp.org>
36533 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36535 * lib/isnanl.c: Remove all code. Just include isnan.c.
36536 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36538 2007-02-25 Jim Meyering <jim@meyering.net>
36540 Avoid conflicting types for 'unsetenv' on FreeBSD.
36541 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36542 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36545 2007-02-24 Bruno Haible <bruno@clisp.org>
36547 * modules/isnanl-nolibm-tests: New file.
36548 * tests/test-isnanl.c: New file.
36550 * modules/isnanl-nolibm: New file.
36551 * lib/isnanl.h: New file.
36552 * lib/isnanl.c: New file.
36553 * m4/isnanl.m4: New file.
36555 2007-02-24 Bruno Haible <bruno@clisp.org>
36557 * modules/isnan-nolibm-tests: New file.
36558 * tests/test-isnan.c: New file.
36560 * modules/isnan-nolibm: New file.
36561 * lib/isnan.h: New file.
36562 * lib/isnan.c: New file.
36563 * m4/isnan.m4: New file.
36565 2007-02-24 Bruno Haible <bruno@clisp.org>
36567 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36568 assume that an exponent fits in 20 bits.
36570 2007-02-24 Jim Meyering <jim@meyering.net>
36572 * m4/regex.m4: Update the description of the configure-time option,
36573 --without-included-regex, to state accurately what the defaults are,
36574 and perhaps to give people an idea why using this option is risky.
36576 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36578 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36579 loops on small arguments. This attempts to avoid the problem
36580 Bruno Haible reported for AIX 4.3.2 in
36581 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36583 2007-02-23 Bruno Haible <bruno@clisp.org>
36585 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36586 Needed for help2man.
36588 2007-02-23 Karl Berry <karl@gnu.org>
36590 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36591 exists, foo.h should be cvs-ignored, not committed.
36593 2007-02-23 Eric Blake <ebb9@byu.net>
36595 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36596 * lib/stat-time.h (includes): Likewise.
36597 * lib/utimecmp.c (includes): Likewise.
36598 * lib/utimens.h (includes): Likewise.
36599 * lib/getdate.y (includes): Also include "timespec.h" for use
36600 internal to the module.
36601 * modules/utimens (Depends-on): Revert yesterday's patch.
36602 * modules/nanosleep (Depends-on): Add missing dependency.
36604 2007-02-22 Bruno Haible <bruno@clisp.org>
36606 * lib/glob.c: Don't include getlogin_r.h.
36608 2007-02-22 Jim Meyering <jim@meyering.net>
36610 * modules/utimens (Depends-on): Add timespec, required for
36611 utimens.h's inclusion of timespec.h.
36613 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36615 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36616 long unreadable paths in GNU/Linux. Problem reported by Andreas
36618 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36619 I'll try to think of a better way to fix the Solaris problem.
36621 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36622 like glibc; on Solaris 10, it fails with errno == EINVAL.
36623 POSIX says the behavior is unspecified if the first argument is NULL,
36624 so play it safe and never pass NULL to the system getcwd.
36626 2007-02-21 Jim Meyering <jim@meyering.net>
36628 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36629 of gettimeofday. It would conflict with the one now always
36630 provided via sys_time_.h. Reported by Matthew Woehlke, as
36631 an IRIX 6.5 build failure.
36633 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36635 Minor fixups to port to Solaris 10 with Sun C 5.8.
36636 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36637 * modules/getcwd (Depends-on): Add dirfd.
36638 * lib/putenv.c (putenv): #undef it.
36639 (rpl_putenv): New decl.
36640 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36642 2007-02-20 Bruno Haible <bruno@clisp.org>
36644 * modules/stdio-tests: New file.
36645 * tests/test-stdio.c: New file.
36647 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36648 (Depends-on): Add stdio.
36649 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36650 (Include): Use <stdio.h> instead of vsnprintf.h.
36651 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36652 HAVE_DECL_VSNPRINTF.
36653 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36655 * modules/snprintf (Files): Remove lib/snprintf.h.
36656 (Depends-on): Add stdio.
36657 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36658 (Include): Use <stdio.h> instead of snprintf.h.
36659 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36660 HAVE_DECL_SNPRINTF.
36661 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36662 * lib/getaddrinfo.c: Likewise.
36664 * modules/stdio: New file.
36665 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36666 * lib/snprintf.h: Remove file.
36667 * lib/vsnprintf.h: Remove file.
36668 * lib/.cppi-disable: Remove snprintf.h.
36669 * m4/stdio_h.m4: New file.
36670 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36672 2007-02-20 Jim Meyering <jim@meyering.net>
36674 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36675 used by e.g., mingw. From Bruno Haible.
36677 2007-02-19 Bruno Haible <bruno@clisp.org>
36679 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36681 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36683 2007-02-19 Bruno Haible <bruno@clisp.org>
36685 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36688 2007-02-19 Bruno Haible <bruno@clisp.org>
36690 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36692 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36694 2007-02-19 Jim Meyering <jim@meyering.net>
36696 Don't use FD after a successful "fdopendir (fd)".
36697 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36698 Reset it by calling dirfd on the just-obtained DIR*.
36700 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36701 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36703 2007-02-18 Bruno Haible <bruno@clisp.org>
36705 * lib/readlink.c: Include <unistd.h>.
36706 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36708 * modules/readlink (Depends-on): Add unistd.
36709 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36710 (Include): Add <unistd.h>.
36712 * lib/getlogin_r.h: Remove file.
36713 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36714 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36715 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36716 HAVE_DECL_GETLOGIN_R.
36717 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36718 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36719 (Include): Use <unistd.h> instead of getlogin_r.h.
36721 * lib/getcwd.h: Remove file.
36722 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36723 * lib/xgetcwd.c: Likewise.
36724 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36725 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36726 * modules/getcwd (Files): Remove lib/getcwd.h.
36727 (Depends-on): Add unistd.
36728 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36729 (Include): Use <unistd.h> instad of getcwd.h.
36731 * lib/ftruncate.c: Include <unistd.h> first.
36732 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36733 Set HAVE_FTRUNCATE.
36734 * modules/ftruncate (Depends-on): Add unistd.
36735 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36737 * lib/fchdir.c: Include <unistd.h> first.
36738 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36739 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36740 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36741 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36742 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36744 * lib/dup2.c: Include <unistd.h> first.
36745 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36747 * modules/dup2 (Depends-on): Add unistd.
36748 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36750 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36751 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36752 REPLACE_CHOWN. Don't define chown as a macro here.
36753 * modules/chown (Depends-on): Add unistd.
36754 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36756 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36757 Add definition for GL_LINK_WARNING.
36758 (chown, dup2): New declarations.
36759 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36761 (ftruncate): New declaration.
36762 (getcwd): New declaration, taken from old getcwd.h.
36763 (getlogin_r): New declaration, taken from old getlogin_r.h.
36764 (readlink): New declaration.
36765 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36766 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36767 (gl_PREREQ_UNISTD): Remove macro.
36768 (gl_UNISTD_MODULE_INDICATOR): New macro.
36769 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36770 many new variables. Don't set UNISTD_H.
36771 * modules/unistd (Description): Change.
36772 (Depends-on): Add link-warning.
36773 (configure.ac): Update.
36774 (Makefile.am): Create unistd.h always. Substitute many new variables
36777 2007-02-18 Bruno Haible <bruno@clisp.org>
36779 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36780 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36782 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36783 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36784 * lib/getsubopt.h: Remove file.
36785 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36786 (Depends-on): Add stdlib.
36787 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36788 (Includes): Use <stdlib.h> instead of getsubopt.h.
36789 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36790 Set HAVE_GETSUBOPT.
36791 * lib/getsubopt.c: Don't include getsubopt.h.
36793 2007-02-18 Bruno Haible <bruno@clisp.org>
36795 * modules/fchdir (Depends-on): Add dup2.
36797 2007-02-18 Bruno Haible <bruno@clisp.org>
36799 * lib/stdlib_.h: Handle glibc's special invocation convention
36802 2007-02-18 Bruno Haible <bruno@clisp.org>
36804 * modules/stdlib-tests: New file.
36805 * tests/test-stdlib.c: New file.
36807 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36808 (Depends-on): Add stdlib.
36809 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36810 (Includes): Use <stdlib.h> instead of mkstemp.h.
36811 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36812 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36813 * lib/mkstemp.c: Don't include mkstemp.h.
36814 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36815 * lib/stdlib--.h: Don't include mkstemp.h.
36817 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36818 (Depends-on): Add stdlib.
36819 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36820 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36821 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36823 * lib/mkdtemp.c: Don't include mkdtemp.h.
36824 * lib/clean-temp.c: Don't include mkdtemp.h.
36826 * modules/exit (Files): Remove lib/exit.h.
36827 (Depends-on): Add stdlib.
36828 (Makefile.am): Remove lib_SOURCES.
36829 (Include): Use <stdlib.h> instead of exit.h.
36830 * lib/argmatch.c: Don't include exit.h.
36831 * lib/execute.c: Likewise.
36832 * lib/pagealign_alloc.c: Likewise.
36833 * lib/pipe.c: Likewise.
36834 * lib/wait-process.c: Likewise.
36835 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36836 * lib/exitfail.c: Likewise.
36837 * lib/savewd.c: Likewise.
36838 * lib/xsetenv.c: Likewise.
36840 * modules/stdlib: New file.
36841 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36842 and extra comments about mkstemp().
36843 * lib/exit.h: Remove file.
36844 * lib/mkdtemp.h: Remove file.
36845 * lib/mkstemp.h: Remove file.
36846 * m4/stdlib_h.m4: New file.
36847 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36849 2007-02-18 Bruno Haible <bruno@clisp.org>
36851 * modules/math-tests: New file.
36852 * tests/test-math.c: New file.
36854 * modules/math: New file.
36855 * modules/mathl (Files): Remove lib/mathl.h.
36856 (Depends-on): Add math.
36857 (Makefile.am): Don't mention mathl.h.
36858 (Include): Use <math.h> instead of mathl.h.
36859 * lib/math_.h: New file.
36860 * lib/mathl.h: Remove file.
36861 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36863 * lib/asinl.c: Likewise.
36864 * lib/atanl.c: Likewise.
36865 * lib/ceill.c: Likewise.
36866 * lib/cosl.c: Likewise.
36867 * lib/expl.c: Likewise.
36868 * lib/floorl.c: Likewise.
36869 * lib/frexpl.c: Likewise.
36870 * lib/ldexpl.c: Likewise.
36871 * lib/logl.c: Likewise.
36872 * lib/sincosl.c: Likewise.
36873 * lib/sinl.c: Likewise.
36874 * lib/sqrtl.c: Likewise.
36875 * lib/tanl.c: Likewise.
36876 * lib/trigl.c: Likewise.
36877 * m4/math_h.m4: New file.
36878 * MODULES.html.sh (Mathematics): Add math.
36880 2007-02-17 Bruno Haible <bruno@clisp.org>
36882 * modules/wctype-tests: New file.
36883 * tests/test-wctype.c: New file.
36885 * modules/wchar-tests: New file.
36886 * tests/test-wchar.c: New file.
36888 * modules/unistd-tests: New file.
36889 * tests/test-unistd.c: New file.
36891 * modules/time-tests: New file.
36892 * tests/test-time.c: New file.
36894 * modules/sysexits-tests: New file.
36895 * tests/test-sysexits.c: New file.
36897 * modules/sys_time-tests: New file.
36898 * tests/test-sys_time.c: New file.
36900 * modules/sys_stat-tests: New file.
36901 * tests/test-sys_stat.c: New file.
36903 * modules/sys_socket-tests: New file.
36904 * tests/test-sys_socket.c: New file.
36906 * modules/sys_select-tests: New file.
36907 * tests/test-sys_select.c: New file.
36909 * modules/string-tests: New file.
36910 * tests/test-string.c: New file.
36912 * modules/stdbool-tests: New file.
36913 * tests/test-stdbool.c: New file.
36915 * modules/netinet_in-tests: New file.
36916 * tests/test-netinet_in.c: New file.
36918 * modules/inttypes-tests: New file.
36919 * tests/test-inttypes.c: New file.
36921 * modules/fcntl-tests: New file.
36922 * tests/test-fcntl.c: New file.
36924 * modules/byteswap-tests: New file.
36925 * tests/test-byteswap.c: New file.
36927 * modules/arpa_inet-tests: New file.
36928 * tests/test-arpa_inet.c: New file.
36930 2007-02-17 Bruno Haible <bruno@clisp.org>
36932 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36933 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36934 if the corresponding module is not enabled. Emit link warnings if
36935 the function is used nevertheless.
36936 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36937 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36938 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36939 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36940 * modules/inttypes (Depends-on): Add link-warning.
36941 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36942 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36943 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36944 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36945 * modules/imaxdiv (configure.ac): Likewise.
36946 * modules/strtoimax (configure.ac): Likewise.
36947 * modules/strtoumax (configure.ac): Likewise.
36949 2007-02-17 Bruno Haible <bruno@clisp.org>
36951 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36952 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36953 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36954 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36956 2007-02-17 Bruno Haible <bruno@clisp.org>
36958 * modules/link-warning: New file.
36959 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36960 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36961 * modules/string (Depends-on): Add link-warning.
36962 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36964 * MODULES.html.sh (Support for building libraries and executables): Add
36967 2007-02-17 Bruno Haible <bruno@clisp.org>
36969 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36970 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36971 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36974 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36975 Bruno Haible <bruno@clisp.org>
36977 * modules/tmpfile: New file.
36978 * lib/tmpfile.c: New file.
36979 * m4/tmpfile.m4: New file.
36980 * MODULES.html.sh (func_all_modules): New section "Input/output".
36982 2007-02-15 Bruno Haible <bruno@clisp.org>
36984 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36985 (supports_delete_on_close): New function.
36986 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36988 2007-02-14 Bruno Haible <bruno@clisp.org>
36990 * modules/mbspcasecmp-tests: New file.
36991 * tests/test-mbspcasecmp.sh: New file.
36992 * tests/test-mbspcasecmp.c: New file.
36994 New module mbspcasecmp.
36995 * modules/mbspcasecmp: New file.
36996 * lib/mbspcasecmp.c: New file.
36997 * lib/string_.h (strncasecmp): Change warning message.
36998 (mbspcasecmp): New declaration.
36999 * m4/mbspcasecmp.m4: New file.
37000 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37001 GNULIB_MBSPCASECMP.
37002 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37003 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37005 2007-02-14 Bruno Haible <bruno@clisp.org>
37007 * modules/mbsncasecmp-tests: New file.
37008 * tests/test-mbsncasecmp.sh: New file.
37009 * tests/test-mbsncasecmp.c: New file.
37011 New module mbsncasecmp.
37012 * modules/mbsncasecmp: New file.
37013 * lib/mbsncasecmp.c: New file.
37014 * lib/string_.h (mbsncasecmp): New declaration.
37015 * m4/mbsncasecmp.m4: New file.
37016 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37017 GNULIB_MBSNCASECMP.
37018 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37019 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37021 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37023 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37024 Verify that it doesn't overlap with our flags.
37025 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37026 do not have the desired effect in multibyte locales; instead, use
37028 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37029 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37030 we don't require GNU fnmatch ourselves (if our users require it, they
37031 should do so explicitly).
37033 Fix regex code so it doesn't rely on strcasecmp.
37034 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37035 Otherwise, include gnulib's langinfo.h.
37036 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37037 undesirable behavior in non-C locales. Instead, rely on localecharset.
37038 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37039 * modules/regex (FILES): Remove m4/codeset.m4.
37040 (Depends-on): Add localcharset. Remove strcase.
37042 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37044 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37045 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37047 2007-02-13 Bruno Haible <bruno@clisp.org>
37049 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37050 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37052 2007-02-12 Bruno Haible <bruno@clisp.org>
37054 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37055 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37056 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37057 time warning rather than a link error.
37059 2007-02-12 Bruno Haible <bruno@clisp.org>
37061 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37062 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37063 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37065 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37067 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37070 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37072 New module 'time', so that apps can include <time.h> as per
37073 POSIX and GNU instead of separate include files like time_r.h
37074 and timegm.h. This implementation tries out a simpler approach
37075 for replacing decls in standard include files (as compared to
37076 the string module), somewhat as an experiment.
37078 * config/srclist.txt: Comment out mktime.c for now.
37079 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37080 since it doesn't apply any more. Use generic wording instead.
37081 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37083 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37084 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37085 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37086 Don't include <sys/types.h>; no longer needed since we assume C89.
37087 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37088 * lib/strftime.c: Likewise.
37089 * lib/time_r.c: Likewise.
37090 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37091 * lib/nanosleep.c: Include <time.h> first, to check interface.
37092 * lib/strptime.c: Likewise.
37093 * lib/time_r.c: Likewise.
37094 * lib/timegm.c: Likewise.
37095 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37097 * lib/timegm.c: Don't include timegm.h; no longer needed.
37098 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37099 time.h now handles any problems in that area.
37100 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37101 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37102 that time.h defines struct timespec.
37103 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37104 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37106 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37107 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37108 needed. Set REPLACE_LOCALTIME.
37109 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37110 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37111 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37112 nanosleep; time_h.m4 now does that. Don't require
37113 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37114 module handles this now.
37115 * modules/getdate (Depends-on): Remove timespec. Add time.
37116 * modules/nanosleep (Depends-on): Likewise.
37117 * modules/stat-time (Depends-on): Likewise.
37118 * modules/nanosleep (Include): Include time.h, not timespec.h.
37119 * modules/strptime (Files): Remove lib/strptime.h.
37120 (Depends-on): Add extensions, time.
37121 (Include): Include time.h, not strptime.h.
37122 * modules/time_r (Files): Remove lib/time_r.h.
37123 (Depends-on): Add time.
37124 (Include): Include time.h, not time_r.h.
37125 * modules/timegm: Likewise.
37126 * modules/timespec (Description): Now does timespec-related decls
37127 of our own, instead of struct timespec itself.
37128 (Depends-on): Add time; remove extensions.
37129 (Maintainer): Add self.
37130 * modules/utimecmp (Depends-on): Add time; remove timespec.
37131 * modules/utimens (Depends-on): Likewise.
37132 * modules/xnanosleep (Depends-on): Likewise.
37134 2007-02-11 Bruno Haible <bruno@clisp.org>
37136 * lib/c-strstr.c: Include allocsa.h.
37137 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37138 * lib/c-strcasestr.c: Include allocsa.h.
37139 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37140 * lib/strcasestr.c: Include allocsa.h.
37141 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37142 * lib/mbsstr.c: Include allocsa.h.
37143 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37144 allocsa/freesa instead of malloc/free.
37145 * lib/mbscasestr.c: Include allocsa.h.
37146 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37147 allocsa/freesa instead of malloc/free.
37148 * modules/c-strstr (Depends-on): Add allocsa.
37149 * modules/c-strcasestr (Depends-on): Likewise.
37150 * modules/strcasestr (Depends-on): Likewise.
37151 * modules/mbsstr (Depends-on): Likewise.
37152 * modules/mbscasestr (Depends-on): Likewise.
37154 2007-02-11 Bruno Haible <bruno@clisp.org>
37156 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37158 * modules/mbsspn-tests: New file.
37159 * tests/test-mbsspn.sh: New file.
37160 * tests/test-mbsspn.c: New file.
37162 2007-02-11 Bruno Haible <bruno@clisp.org>
37164 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37166 * modules/mbspbrk-tests: New file.
37167 * tests/test-mbspbrk.sh: New file.
37168 * tests/test-mbspbrk.c: New file.
37170 2007-02-11 Bruno Haible <bruno@clisp.org>
37172 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37175 * modules/mbscspn-tests: New file.
37176 * tests/test-mbscspn.sh: New file.
37177 * tests/test-mbscspn.c: New file.
37179 2007-02-11 Bruno Haible <bruno@clisp.org>
37181 * modules/mbscasecmp-tests: New file.
37182 * tests/test-mbscasecmp.sh: New file.
37183 * tests/test-mbscasecmp.c: New file.
37185 2007-02-11 Bruno Haible <bruno@clisp.org>
37187 Ensure O(n) worst-case complexity of mbscasestr.
37188 * lib/mbscasestr.c: Include stdbool.h.
37189 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37191 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37192 the bookkeeping indicates that it's worth it.
37193 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37195 * modules/mbscasestr-tests: New file.
37196 * tests/test-mbscasestr1.c: New file.
37197 * tests/test-mbscasestr2.sh: New file.
37198 * tests/test-mbscasestr2.c: New file.
37199 * tests/test-mbscasestr3.sh: New file.
37200 * tests/test-mbscasestr3.c: New file.
37201 * tests/test-mbscasestr4.sh: New file.
37202 * tests/test-mbscasestr4.c: New file.
37203 * m4/locale-tr.m4: New file.
37205 2007-02-11 Bruno Haible <bruno@clisp.org>
37207 Ensure O(n) worst-case complexity of mbsstr.
37208 * lib/mbsstr.c: Include stdbool.h.
37209 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37211 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37212 bookkeeping indicates that it's worth it.
37213 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37215 * modules/mbsstr-tests: New file.
37216 * tests/test-mbsstr1.c: New file.
37217 * tests/test-mbsstr2.sh: New file.
37218 * tests/test-mbsstr2.c: New file.
37219 * tests/test-mbsstr3.sh: New file.
37220 * tests/test-mbsstr3.c: New file.
37221 * m4/locale-fr.m4: New file.
37223 2007-02-11 Bruno Haible <bruno@clisp.org>
37225 * lib/mbsrchr.c (mbsrchr): Fix bug.
37227 * modules/mbsrchr-tests: New file.
37228 * tests/test-mbsrchr.sh: New file.
37229 * tests/test-mbsrchr.c: New file.
37231 2007-02-11 Bruno Haible <bruno@clisp.org>
37233 * lib/mbschr.c (mbschr): Fix bug.
37235 * modules/mbschr-tests: New file.
37236 * tests/test-mbschr.sh: New file.
37237 * tests/test-mbschr.c: New file.
37238 * m4/locale-zh.m4: New file.
37240 2007-02-11 Bruno Haible <bruno@clisp.org>
37242 Support for copying multibyte string iterators.
37243 * lib/mbiter.h: Include <string.h>.
37244 (mbiter_multi_copy): New function.
37245 (mbi_copy): New macro.
37246 * lib/mbuiter.h: Include <string.h>.
37247 (mbuiter_multi_copy): New function.
37248 (mbui_copy): New macro.
37250 2007-02-11 Bruno Haible <bruno@clisp.org>
37253 * modules/mbslen: New file.
37254 * lib/mbslen.c: New file.
37255 * lib/string_.h (mbslen): New declaration.
37256 * m4/mbslen.m4: New file.
37257 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37259 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37260 * MODULES.html.sh (Internationalization functions): Add mbslen.
37262 2007-02-11 Bruno Haible <bruno@clisp.org>
37264 Ensure O(n) worst-case complexity of strcasestr substitute.
37265 * lib/strcasestr.c: Include stdbool.h.
37266 (knuth_morris_pratt): New function.
37267 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37268 bookkeeping indicates that it's worth it.
37269 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37271 * modules/strcasestr-tests: New file.
37272 * tests/test-strcasestr.c: New file.
37274 2007-02-11 Bruno Haible <bruno@clisp.org>
37276 Ensure O(n) worst-case complexity of c_strcasestr.
37277 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37278 (knuth_morris_pratt): New function.
37279 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37280 the bookkeeping indicates that it's worth it.
37281 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37283 * modules/c-strcasestr-tests: New file.
37284 * tests/test-c-strcasestr.c: New file.
37286 2007-02-11 Bruno Haible <bruno@clisp.org>
37288 Ensure O(n) worst-case complexity of c_strstr.
37289 * lib/c-strstr.c: Include stdbool.h, string.h.
37290 (knuth_morris_pratt): New function.
37291 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37292 bookkeeping indicates that it's worth it.
37293 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37295 * lib/c-strstr.c: Complete rewrite for maintainability.
37297 * modules/c-strstr-tests: New file.
37298 * tests/test-c-strstr.c: New file.
37300 2007-02-11 Bruno Haible <bruno@clisp.org>
37302 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37303 5.2.1 and earlier, whereby \055 was treated just like the range
37305 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37307 2007-02-08 Bruno Haible <bruno@clisp.org>
37309 * modules/regex (Depends-on): Add stdbool.
37310 Reported by Dalibor Topic <robilad@kaffe.org>.
37312 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37314 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37315 Prefer returning from main to exiting from it.
37316 Remove unnecessary parens after sizeof.
37318 2007-02-05 Bruno Haible <bruno@clisp.org>
37321 * modules/mbssep: New file.
37322 * lib/mbssep.c: New file.
37323 * lib/string_.h (strsep): Add a conditional link warning.
37324 (mbssep): New declaration.
37325 * m4/mbssep.m4: New file.
37326 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37328 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37329 * MODULES.html.sh (Internationalization functions): Add mbssep.
37331 2007-02-05 Bruno Haible <bruno@clisp.org>
37333 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37334 Optimize search in case of 1 delimiter.
37336 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37338 * lib/acl.h: Include sys/types.h before sys/acl.h.
37340 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37342 Merge upstream fix for glibc bugzilla #3957:
37344 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37346 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37347 bit for RE_HAT_LISTS_NOT_NEWLINE.
37348 (build_charclass_op): Remove bogus comment.
37350 2007-02-05 Simon Josefsson <simon@josefsson.org>
37352 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37354 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37356 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37357 * lib/memmem.c [!defined _LIBC]: Include config.h.
37359 2007-02-04 Bruno Haible <bruno@clisp.org>
37361 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37364 2007-02-04 Bruno Haible <bruno@clisp.org>
37366 New module mbstok_r.
37367 * modules/mbstok_r: New file.
37368 * lib/mbstok_r.c: New file.
37369 * lib/string_.h (strtok_r): Change argument names to match the
37370 comments. Add a conditional link warning.
37371 (mbstok_r): New declaration.
37372 * m4/mbstok_r.m4: New file.
37373 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37375 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37376 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37378 2007-02-04 Bruno Haible <bruno@clisp.org>
37381 * modules/mbsspn: New file.
37382 * lib/mbsspn.c: New file.
37383 * lib/string_.h (strspn): Add a conditional link warning.
37384 (mbsspn): New declaration.
37385 * m4/mbsspn.m4: New file.
37386 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37388 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37389 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37391 2007-02-04 Bruno Haible <bruno@clisp.org>
37393 New module mbspbrk.
37394 * modules/mbspbrk: New file.
37395 * lib/mbspbrk.c: New file.
37396 * lib/string_.h (strpbrk): Add a conditional link warning.
37397 (mbspbrk): New declaration.
37398 * m4/mbspbrk.m4: New file.
37399 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37401 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37402 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37404 2007-02-04 Bruno Haible <bruno@clisp.org>
37406 New module mbscspn.
37407 * modules/mbscspn: New file.
37408 * lib/mbscspn.c: New file.
37409 * lib/string_.h (strcspn): Add a conditional link warning.
37410 (mbscspn): New declaration.
37411 * m4/mbscspn.m4: New file.
37412 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37414 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37415 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37417 2007-02-04 Bruno Haible <bruno@clisp.org>
37419 New module mbscasestr, reduced goal of strcasestr.
37420 * modules/mbscasestr: New file.
37421 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37422 (mbscasestr): Renamed from strcasestr.
37423 * lib/strcasestr.c: Don't include mbuiter.h.
37424 (strcasestr): Remove support for multibyte locales.
37425 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37426 Change the conditional link warning.
37427 (mbscasestr): New declaration.
37428 * m4/mbscasestr.m4: New file.
37429 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37430 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37431 REPLACE_STRCASESTR.
37432 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37433 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37434 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37435 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37436 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37437 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37438 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37439 (Depends-on): Remove mbuiter.
37440 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37442 2007-02-04 Bruno Haible <bruno@clisp.org>
37444 Simplify handling of strncasecmp.
37445 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37446 the conditional link warning.
37447 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37448 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37449 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37450 * modules/strcase (configure.ac): Don't invoke
37451 gl_STRING_MODULE_INDICATOR.
37452 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37454 2007-02-04 Bruno Haible <bruno@clisp.org>
37456 New module mbscasecmp, reduced goal of strcasecmp.
37457 * modules/mbscasecmp: New file.
37458 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37459 (mbscasecmp): Renamed from strcasecmp.
37460 * lib/strcasecmp.c: Don't include mbuiter.h.
37461 (strcasecmp): Remove support for multibyte locales.
37462 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37463 Change the conditional link warning.
37464 (mbscasecmp): New declaration.
37465 * m4/mbscasecmp.m4: New file.
37466 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37467 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37468 REPLACE_STRCASECMP.
37469 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37470 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37472 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37473 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37474 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37475 (Depends-on): Remove mbuiter.
37476 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37478 2007-02-04 Bruno Haible <bruno@clisp.org>
37480 New module mbsstr. Remove module strstr.
37481 * modules/mbsstr: New file.
37482 * modules/strstr: Remove file.
37483 * lib/mbsstr.c: Renamed from lib/strstr.c.
37484 (mbsstr): Renamed from strstr.
37485 * lib/string_.h (strstr): Remove declaration. Change the conditional
37487 (mbsstr): New declaration.
37488 * m4/mbsstr.m4: New file.
37489 * m4/strstr.m4: Remove file.
37490 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37492 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37493 Don't initialize GNULIB_STRSTR.
37494 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37495 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37496 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37497 (Support for systems lacking ANSI C 89): Remove strstr.
37499 2007-02-04 Bruno Haible <bruno@clisp.org>
37501 New module mbsrchr.
37502 * modules/mbsrchr: New file.
37503 * lib/mbsrchr.c: New file.
37504 * lib/string_.h (strrchr): Add a conditional link warning.
37505 (mbsrchr): New declaration.
37506 * m4/mbsrchr.m4: New file.
37507 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37509 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37510 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37512 2007-02-04 Bruno Haible <bruno@clisp.org>
37515 * modules/mbschr: New file.
37516 * lib/mbschr.c: New file.
37517 * lib/string_.h (strchr): Add a conditional link warning.
37518 (mbschr): New declaration.
37519 * m4/mbschr.m4: New file.
37520 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37522 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37523 * MODULES.html.sh (Internationalization functions): Add mbschr.
37525 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37527 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37529 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37531 2007-02-04 Bruno Haible <bruno@clisp.org>
37533 New module description section 'configure.ac-early'.
37534 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37535 (func_get_autoconf_early_snippet): New function.
37536 (func_import, func_create_testdir): Use it. Remove special cases for
37537 modules 'extensions' and 'lock'.
37538 * modules/extensions (configure.ac-early): Require
37539 gl_USE_SYSTEM_EXTENSIONS.
37540 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37542 2007-02-04 Bruno Haible <bruno@clisp.org>
37544 Make use of gcj-4.3's -fsource and -ftarget option.
37545 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37546 and if so try the options -fsource and -ftarget.
37547 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37548 source_version, ftarget_option, target_version arguments.
37549 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37550 (is_envjavac_oldgcj_14_14_usable): Renamed from
37551 is_envjavac_gcj_14_14_usable.
37552 (is_envjavac_oldgcj_14_13_usable): Renamed from
37553 is_envjavac_gcj_14_13_usable.
37554 (is_gcj_present): Update.
37555 (is_gcj_43, is_gcj43_usable): New functions.
37556 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37557 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37558 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37559 try the options -fsource and -ftarget.
37561 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37563 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37564 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37567 2007-02-03 Jim Meyering <jim@meyering.net>
37569 Give tools a better chance to allocate space for very large buffers.
37570 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37572 Make pwd and readlink work also when run with an unreadable parent dir
37573 on systems with openat support.
37574 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37575 provided getcwd function, even when we have openat support.
37576 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37578 2007-02-02 Bruno Haible <bruno@clisp.org>
37580 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37581 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37582 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37583 portability problems if one of these functions is only used on specific
37585 Reported by Paul Eggert.
37587 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37589 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37590 is causing more trouble than it's curing.
37591 * lib/regex_internal.h (__mempcpy): Remove.
37592 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37593 (and make the code a tad smaller to boot).
37594 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37596 2007-02-02 Jim Meyering <jim@meyering.net>
37598 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37599 section, not in the Makefile.am: one.
37601 2007-02-02 Eric Blake <ebb9@byu.net>
37603 * lib/strchrnul.c: Always include config.h first.
37605 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37606 gnulib strstr is not necessary here.
37608 2007-02-02 Simon Josefsson <simon@josefsson.org>
37610 * m4/socklen.m4: Fix typo.
37612 2007-02-02 Eric Blake <ebb9@byu.net>
37614 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37615 * modules/netinet_in (Makefile.am): Likewise.
37617 2007-02-01 Bruno Haible <bruno@clisp.org>
37619 * lib/string_.h (GL_LINK_WARNING): New macro.
37620 (strcasecmp, strstr, strcasestr): If provided by the system,
37621 conditionally define as a macro that leads to a warning instead of to
37623 (strncasecmp): Conditionally define as a macro that leads to a warning.
37625 2007-02-01 Karl Berry <karl@gnu.org>
37627 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37629 2007-02-01 Bruno Haible <bruno@clisp.org>
37631 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37634 2007-02-01 Eric Blake <ebb9@byu.net>
37636 * modules/regex (Depends-on): Revert dependence on mempcpy.
37637 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37638 module's definition of mempcpy.
37639 Reported by Paul Eggert.
37641 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37643 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37644 the symbol XYZ before redefining it. This fixes a problem with
37645 programs that don't use XYZ, when compiled on systems that define
37646 XYZ to something else.
37648 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37650 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37651 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37652 writeable to group or other and (2) is intended to have a special
37653 mode bit that is set or cleared. In such a case, the directory
37654 should be neither group- nor other-writeable until the special
37655 mode bits are right.
37657 2007-01-31 Eric Blake <ebb9@byu.net>
37659 * modules/mountlist (Depends-on): Add strstr.
37661 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37663 * modules/string (Makefile.am): Remove redundant replacement.
37664 * modules/regex (Depends-on): Add mempcpy.
37666 2007-01-31 Bruno Haible <bruno@clisp.org>
37668 New module description field 'Link'.
37669 * gnulib-tool (func_usage): Document --extract-link-directive.
37670 (sed_extract_prog): Recognize 'Link' directive.
37671 (func_get_link_directive): New function.
37672 (func_import): Show summary of link directives.
37673 Handle --extract-link-directive option.
37674 * modules/acl (Link): New section.
37675 * modules/clock-time (Link): New section.
37676 * modules/euidaccess (Link): New section.
37677 * modules/gettext (Link): New section.
37678 * modules/iconv (Link): New section.
37679 * modules/lock (Link): New section.
37680 * modules/nanosleep (Link): New section.
37681 * modules/readline (Link): New section.
37683 2007-01-27 Bruno Haible <bruno@clisp.org>
37685 Enforce the use of gnulib modules for unportable <string.h> functions.
37686 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37687 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37688 (gl_HEADER_STRING_H_BODY): Require it.
37689 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37690 the symbol XYZ to one that gives a link error.
37691 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37692 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37693 * modules/mempcpy (configure.ac): Likewise.
37694 * modules/memrchr (configure.ac): Likewise.
37695 * modules/stpcpy (configure.ac): Likewise.
37696 * modules/stpncpy (configure.ac): Likewise.
37697 * modules/strcase (configure.ac): Likewise.
37698 * modules/strcasestr (configure.ac): Likewise.
37699 * modules/strchrnul (configure.ac): Likewise.
37700 * modules/strdup (configure.ac): Likewise.
37701 * modules/strndup (configure.ac): Likewise.
37702 * modules/strnlen (configure.ac): Likewise.
37703 * modules/strpbrk (configure.ac): Likewise.
37704 * modules/strsep (configure.ac): Likewise.
37705 * modules/strstr (configure.ac): Likewise.
37706 * modules/strtok_r (configure.ac): Likewise.
37708 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37710 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37712 2007-01-30 Jim Meyering <jim@meyering.net>
37714 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37716 2007-01-29 Bruno Haible <bruno@clisp.org>
37718 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37719 * lib/execute.c: Likewise.
37720 * lib/pipe.c: Likewise.
37721 * lib/printf-args.h: Likewise.
37722 * lib/printf-args.c: Likewise.
37723 * lib/printf-parse.c: Likewise.
37724 * lib/vasnprintf.c: Likewise.
37726 2007-01-29 Eric Blake <ebb9@byu.net>
37728 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37731 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37733 * lib/strptime.h (strptime): Use 'restrict' for args where
37734 POSIX requires this.
37735 * lib/strptime.c (strptime): Likewise.
37736 Change license notice from LGPL to GPL, since gnulib-tool will
37737 change this as needed.
37738 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37740 Include "strptime.h" first, to check interface.
37741 Do not #undef _LIBC and _NL_CURRENT.
37742 Do not include <stdlib.h>; no longer needed.
37743 Include "time_r.h" and declare ptime_locale_status
37744 only if _LIBC is not defined.
37745 (__P): Remove unused macro.
37746 (match_string): Bring back glibc version, but use it only if _LIBC
37748 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37749 Remove unnecessary assertion and abort() call.
37750 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37751 * m4/strptime.m4: Fix serial number comment.
37752 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37753 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37754 (Depends-on): Add time_r.
37756 2007-01-29 Bruno Haible <bruno@clisp.org>
37758 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37760 * modules/strptime (Depends-on): Add stdbool.
37761 * lib/strptime.h: Include <time.h> always. Add comments.
37763 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37765 * modules/strptime: New file.
37766 * lib/strptime.h: New file.
37767 * lib/strptime.c: New file.
37768 * m4/strptime.m4: New file.
37770 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37772 * MODULES.html.sh: New module mpsort.
37773 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37775 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37776 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37777 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37779 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37781 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37783 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37784 the parameter matches the prototype.
37786 2007-01-28 Jim Meyering <jim@meyering.net>
37788 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37789 sys/time.h here, reverting that part of the previous patch:
37790 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37792 2007-01-28 Bruno Haible <bruno@clisp.org>
37794 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37795 value of $(SYS_TIME_H).
37796 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37797 remove it conditionally, too. [added by Jim Meyering]
37798 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37799 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37800 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37801 GETTIMEOFDAY_REPLACEMENT to 1.
37803 2007-01-28 Bruno Haible <bruno@clisp.org>
37805 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37806 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37807 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37808 Set UNISTD_H instead of UNISTD_H2.
37809 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37811 2007-01-28 Bruno Haible <bruno@clisp.org>
37813 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37814 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37816 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37818 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37819 (func_create_testdir): Ensure C locale for `grep' and `tr'
37821 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37822 ACLOCAL_AMFLAGS parsing state machine.
37824 2007-01-27 Bruno Haible <bruno@clisp.org>
37826 * modules/unistr/base: Update.
37828 2007-01-27 Bruno Haible <bruno@clisp.org>
37830 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37831 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37832 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37833 modules/unistr/u32-mbtouc.
37834 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37835 * lib/unistr.h: Update.
37836 * lib/linebreak.c: Update.
37837 * modules/unistr/u32-mbtouc: Renamed from
37838 modules/unistr/u32-mbtouc-safe.
37839 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37840 * lib/unistr.h: Update.
37841 * lib/unistr/u32-to-u8.c: Update.
37842 * lib/unistr/u32-to-u16.c: Update.
37844 2007-01-27 Bruno Haible <bruno@clisp.org>
37846 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37847 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37848 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37849 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37850 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37851 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37852 modules/unistr/u16-mbtouc.
37853 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37854 * lib/unistr.h: Update.
37855 * lib/linebreak.c: Update.
37856 * modules/linebreak: Update.
37857 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37858 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37859 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37860 * modules/unistr/u16-mbtouc: Renamed from
37861 modules/unistr/u16-mbtouc-safe.
37862 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37863 * lib/unistr.h: Update.
37864 * lib/unistr/u16-to-u8.c: Update.
37865 * modules/unistr/u16-to-u8: Update.
37866 * lib/unistr/u16-to-u32.c: Update.
37867 * modules/unistr/u16-to-u32: Update.
37869 2007-01-27 Bruno Haible <bruno@clisp.org>
37871 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37872 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37873 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37874 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37875 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37876 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37877 modules/unistr/u8-mbtouc.
37878 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37879 * lib/unistr.h: Update.
37880 * lib/striconveh.c: Update.
37881 * modules/striconveh: Update.
37882 * lib/linebreak.c: Update.
37883 * modules/linebreak: Update.
37884 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37885 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37886 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37887 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37888 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37889 * lib/unistr.h: Update.
37890 * lib/striconveh.c: Update.
37891 * modules/striconveh: Update.
37892 * lib/unistr/u8-to-u16.c: Update.
37893 * modules/unistr/u8-to-u16: Update.
37894 * lib/unistr/u8-to-u32.c: Update.
37895 * modules/unistr/u8-to-u32: Update.
37897 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37900 * lib/argz.c: Do not include strings.h nor memory.h, include
37901 string.h unconditionally. Patch by Simon Josefsson.
37903 2007-01-27 Bruno Haible <bruno@clisp.org>
37905 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37906 from gl_HEADER_STRING_H_BODY.
37907 (gl_HEADER_STRING_H_BODY): Require it.
37908 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37909 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37910 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37911 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37912 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37913 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37914 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37915 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37916 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37917 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37918 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37919 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37920 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37921 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37922 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37924 2007-01-27 Bruno Haible <bruno@clisp.org>
37926 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37927 check_PROGRAMS into noinst_PROGRAMS.
37928 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37929 check_PROGRAMS in this case.
37930 (func_import): Set for_test to false.
37931 (func_create_testdir): Set for_test to true.
37933 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37934 Bruno Haible <bruno@clisp.org>
37936 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37937 (Depends-on): Add string.
37938 (Includes): Use <string.h> instead of strcasestr.h.
37939 * modules/string (Makefile.am): Also substitute the value of
37940 REPLACE_STRCASESTR.
37941 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37942 assume strcasestr is declared in <string.h> not <strings.h>. Also
37943 set REPLACE_STRCASESTR.
37944 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37945 REPLACE_STRCASESTR.
37946 * lib/strcasestr.h: Remove file.
37947 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37948 * lib/string_.h (strcasestr): New declaration.
37950 2007-01-27 Bruno Haible <bruno@clisp.org>
37952 * lib/string_.h: Use 'extern'.
37954 2007-01-27 Jim Meyering <jim@meyering.net>
37956 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37957 of set-but-not-used local, "q".
37959 * lib/mempcpy.c: Include <config.h> before <string.h>.
37960 This fixes a compilation error on HP-UX, due to the system's
37961 "restrict"-using mempcpy prototype.
37963 2007-01-26 Bruno Haible <bruno@clisp.org>
37965 Small optimization.
37966 * lib/javacomp.c: Include c-strstr.h.
37967 (is_envjavac_gcj): Use c_strstr instead of strstr.
37968 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37970 2007-01-26 Bruno Haible <bruno@clisp.org>
37972 * MODULES.html.sh (Unicode string functions): Add the new modules.
37974 * modules/uniconv/u32-strconv-to-locale: New file.
37975 * lib/uniconv/u32-strconv-to-locale.c: New file.
37977 * modules/uniconv/u16-strconv-to-locale: New file.
37978 * lib/uniconv/u16-strconv-to-locale.c: New file.
37980 * modules/uniconv/u8-strconv-to-locale: New file.
37981 * lib/uniconv/u8-strconv-to-locale.c: New file.
37983 * modules/uniconv/u32-strconv-from-locale: New file.
37984 * lib/uniconv/u32-strconv-from-locale.c: New file.
37986 * modules/uniconv/u16-strconv-from-locale: New file.
37987 * lib/uniconv/u16-strconv-from-locale.c: New file.
37989 * modules/uniconv/u8-strconv-from-locale: New file.
37990 * lib/uniconv/u8-strconv-from-locale.c: New file.
37992 * modules/uniconv/u32-strconv-to-enc: New file.
37993 * lib/uniconv/u32-strconv-to-enc.c: New file.
37994 * modules/uniconv/u32-strconv-to-enc-tests: New file.
37995 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37997 * modules/uniconv/u16-strconv-to-enc: New file.
37998 * lib/uniconv/u16-strconv-to-enc.c: New file.
37999 * lib/uniconv/u-strconv-to-enc.h: New file.
38000 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38001 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38003 * modules/uniconv/u8-strconv-to-enc: New file.
38004 * lib/uniconv/u8-strconv-to-enc.c: New file.
38005 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38006 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38008 * modules/uniconv/u32-strconv-from-enc: New file.
38009 * lib/uniconv/u32-strconv-from-enc.c: New file.
38010 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38011 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38013 * modules/uniconv/u16-strconv-from-enc: New file.
38014 * lib/uniconv/u16-strconv-from-enc.c: New file.
38015 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38016 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38018 * modules/uniconv/u8-strconv-from-enc: New file.
38019 * lib/uniconv/u8-strconv-from-enc.c: New file.
38020 * lib/uniconv/u-strconv-from-enc.h: New file.
38021 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38022 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38024 * modules/uniconv/u32-conv-from-enc: New file.
38025 * lib/uniconv/u32-conv-from-enc.c: New file.
38026 * modules/uniconv/u32-conv-from-enc-tests: New file.
38027 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38029 * modules/uniconv/u16-conv-from-enc: New file.
38030 * lib/uniconv/u16-conv-from-enc.c: New file.
38031 * lib/uniconv/u-conv-from-enc.h: New file.
38032 * modules/uniconv/u16-conv-from-enc-tests: New file.
38033 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38035 * modules/uniconv/u8-conv-from-enc: New file.
38036 * lib/uniconv/u8-conv-from-enc.c: New file.
38037 * modules/uniconv/u8-conv-from-enc-tests: New file.
38038 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38040 * modules/uniconv/base: New file.
38041 * lib/uniconv.h: New file.
38043 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38045 * doc/gnulib-tool.texi (Initial import): Update to match current
38046 behavior with strdup module.
38047 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38048 * lib/memmem.h: Remove; all uses removed. This is now done
38050 * lib/mempcpy.h: Likewise.
38051 * lib/memrchr.h: Likewise.
38052 * lib/stpcpy.h: Likewise.
38053 * lib/stpncpy.h: Likewise.
38054 * lib/strcase.h: Likewise.
38055 * lib/strchrnul.h: Likewise.
38056 * lib/strdup.h: Likewise.
38057 * lib/strndup.h: Likewise.
38058 * lib/strnlen.h: Likewise.
38059 * lib/strpbrk.h: Likewise.
38060 * lib/strsep.h: Likewise.
38061 * lib/strstr.h: Likewise.
38062 * lib/strtok_r.h: Likewise.
38063 * lib/string_.h: New file.
38064 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38065 Rely on <string.h> instead.
38066 * lib/canon-host.c: Likewise.
38067 * lib/chdir-long.c: Likewise.
38068 * lib/concatpath.c: Likewise.
38069 * lib/exclude.c: Likewise.
38070 * lib/fchdir.c: Likewise.
38071 * lib/getaddrinfo.c: Likewise.
38072 * lib/getcwd.c: Likewise.
38073 * lib/getsubopt.c: Likewise.
38074 * lib/glob.c: Likewise.
38075 * lib/hard-locale.c: Likewise.
38076 * lib/iconvme.c: Likewise.
38077 * lib/javacomp.c: Likewise.
38078 * lib/mempcpy.c: Likewise.
38079 * lib/memrchr.c: Likewise.
38080 * lib/regex_internal.h: Likewise.
38081 * lib/stpncpy.c: Likewise.
38082 * lib/strcasecmp.c: Likewise.
38083 * lib/strchrnul.c: Likewise.
38084 * lib/strdup.c: Likewise.
38085 * lib/striconv.c: Likewise.
38086 * lib/striconveh.c: Likewise.
38087 * lib/striconveha.c: Likewise.
38088 * lib/strncasecmp.c: Likewise.
38089 * lib/strndup.c: Likewise.
38090 * lib/strnlen.c: Likewise.
38091 * lib/strsep.c: Likewise.
38092 * lib/strstr.c: Likewise.
38093 * lib/strtok_r.c: Likewise.
38094 * lib/userspec.c: Likewise.
38095 * lib/w32spawn.h: Likewise.
38096 * lib/xstrndup.c: Likewise.
38097 * lib/mountlist.c (strstr): Remove decl.
38098 * m4/string_h.m4: New file.
38099 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38100 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38101 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38102 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38103 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38104 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38105 Set REPLACE_STRCASECMP if necessary.
38106 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38107 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38108 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38109 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38110 HAVE_DECL_STRDUP if necessary.
38111 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38112 since gl_FUNC_STRNDUP does that now.
38113 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38114 Check for decl here...
38115 (gl_PREREQ_STRNLEN): ... not here.
38116 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38117 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38118 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38119 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38121 * modules/string: New file.
38122 * modules/memmem (Files): Remove special-purpose include file.
38123 (Depends-on): Add string.
38124 (Include): Include <string.h>, not the removed file.
38125 * modules/mempcpy: Likewise.
38126 * modules/memrchr: Likewise.
38127 * modules/stpcpy: Likewise.
38128 * modules/stpncpy: Likewise.
38129 * modules/strcase: Likewise.
38130 * modules/strchrnul: Likewise.
38131 * modules/strdup: Likewise.
38132 * modules/strndup: Likewise.
38133 * modules/strnlen: Likewise.
38134 * modules/strpbrk: Likewise.
38135 * modules/strsep: Likewise.
38136 * modules/strstr: Likewise.
38137 * modules/strtok_r: Likewise.
38138 * tests/test-dirname.c: Don't include "strdup.h", since
38139 <string.h> now suffices.
38140 * tests/test-memmem.c: Don't include "memmem.h", since
38141 <string.h> now suffices.
38143 2007-01-25 Bruno Haible <bruno@clisp.org>
38145 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38148 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38149 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38150 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38151 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38153 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38154 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38155 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38156 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38157 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38158 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38160 2007-01-24 Bruno Haible <bruno@clisp.org>
38162 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38163 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38164 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38165 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38167 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38168 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38169 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38170 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38171 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38172 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38174 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38176 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38177 Reported by Ralf Wildenhues.
38179 2007-01-24 Bruno Haible <bruno@clisp.org>
38181 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38182 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38184 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38185 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38186 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38188 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38190 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38191 Don't use 'exit'; just return from 'main'.
38192 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38194 * lib/fnmatch_.h: Readjust white space and comments to match
38195 glibc, to avoid spurious diffs.
38197 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38199 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38200 2004-12-01 change by Jakub Jelinek, since this code won't compile
38201 if !LIBC. Problem reported by Bob Proulx.
38203 2007-01-23 Bruno Haible <bruno@clisp.org>
38205 * lib/striconveh.c: Include c-strcaseeq.h.
38206 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38207 * modules/striconveh (Depends-on): Add c-strcaseeq.
38209 2007-01-23 Bruno Haible <bruno@clisp.org>
38211 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38213 * modules/c-strcaseeq: New file.
38214 * lib/c-strcaseeq.h: New file.
38216 * modules/streq: New file.
38217 * lib/streq.h: New file.
38219 2007-01-23 Bruno Haible <bruno@clisp.org>
38221 * modules/striconveha-tests: New file.
38222 * tests/test-striconveha.c: New file.
38224 * lib/striconveha.h: Include <stdbool.h>.
38225 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38226 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38227 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38228 (mem_iconveha): New function.
38229 (str_iconveha_notranslit): Renamed from str_iconveha.
38230 (str_iconveha): New function.
38231 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38234 2007-01-23 Bruno Haible <bruno@clisp.org>
38236 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38237 encodings without forgiving before trying any encoding with handler.
38238 (str_iconveha): Try all encodings without forgiving before trying any
38239 encoding with handler.
38241 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38243 Import the following changes from libc.
38245 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38247 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38249 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38251 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38252 normal_bracket label.
38254 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38257 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38258 to normal_bracket after fetching the next character.
38260 2007-01-22 Bruno Haible <bruno@clisp.org>
38262 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38264 * lib/striconveh.c (iconv_carefully_1): New function.
38265 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38267 (str_cd_iconveh): Update.
38268 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38269 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38270 * tests/test-striconveh.c (MAGIC): New macro.
38271 (new_offsets): New function.
38272 (main): Test call with and without offsets.
38274 2007-01-22 Bruno Haible <bruno@clisp.org>
38276 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38277 * modules/sys_select (Makefile.am): Likewise.
38278 * modules/sys_socket (Makefile.am): Likewise.
38279 * modules/sys_time (Makefile.am): Likewise.
38281 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38283 * modules/gettimeofday (License): Change from GPL to LGPL, since
38284 gettimeofday is a library function.
38286 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38288 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38290 2007-01-21 Bruno Haible <bruno@clisp.org>
38292 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38294 2007-01-21 Bruno Haible <bruno@clisp.org>
38296 * modules/striconveha: New file.
38297 * lib/striconveha.h: New file.
38298 * lib/striconveha.c: New file.
38299 * MODULES.html.sh (Internationalization functions): Add striconveha.
38300 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38302 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38304 2007-01-21 Bruno Haible <bruno@clisp.org>
38306 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38307 * lib/striconveh.c (str_iconveh): Likewise.
38309 2007-01-21 Bruno Haible <bruno@clisp.org>
38311 * lib/striconveh.h (mem_iconveh): New declaration.
38312 * lib/striconveh.c (mem_iconveh): New function.
38313 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38315 2007-01-21 Bruno Haible <bruno@clisp.org>
38317 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38319 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38320 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38321 original result buffer.
38322 (str_cd_iconveh): Update.
38323 * tests/test-striconveh.c (main): Update.
38325 * lib/striconv.h (mem_cd_iconv): Change specification.
38326 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38328 (str_cd_iconv): Update.
38329 * tests/test-striconv.c (main): Update.
38331 2007-01-21 Bruno Haible <bruno@clisp.org>
38333 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38335 2007-01-20 Jim Meyering <jim@meyering.net>
38337 * lib/userspec.c (parse_with_separator): If a user or group string
38338 starts with "+", skip the corresponding name-to-ID look-up, since
38339 such a look-up must fail: user and group names may not include "+".
38341 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38343 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38344 since we now assume the sys_time module.
38345 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38346 check for sys/time.h; no longer needed.
38347 * modules/poll (Depends-on): Depend on sys_time.
38349 2007-01-18 Bruno Haible <bruno@clisp.org>
38351 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38352 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38354 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38357 * tests/test-gettimeofday.c: Include <time.h>.
38358 (dummy): Remove variable.
38360 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38361 gl_HEADER_SYS_TIME_H.
38362 (gl_HEADER_SYS_TIME_H): New macro.
38364 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38365 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38366 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38367 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38368 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38369 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38370 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38371 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38372 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38373 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38374 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38376 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38377 last change; it caused a compilation error when cross-compiling to
38380 2007-01-18 Jim Meyering <jim@meyering.net>
38382 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38383 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38384 than the race-prone "test -d sys || mkdir sys".
38385 (configure.ac): Use AC_PROG_MKDIR_P.
38386 * modules/sys_select: Likewise.
38387 * modules/sys_socket: Likewise.
38388 * modules/sys_time: Likewise.
38390 2007-01-18 Eric Blake <ebb9@byu.net>
38392 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38393 replace gettimeofday.
38394 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38395 name, to avoid infinite recursion.
38397 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38399 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38401 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38402 assume timespec.h defines struct timeval.
38403 * lib/settime.c: Likewise.
38404 * lib/utimens.c: Likewise.
38405 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38406 since we now assume the gettimeofday module.
38407 * lib/tempname.c (__gen_tempname): Likewise.
38408 * lib/gettimeofday.h: Remove.
38409 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38410 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38411 Include <time.h>, for 'time()'.
38412 (localtime_buffer_addr): Also use this workaround if
38413 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38414 to simplify the uses. All uses changed.
38415 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38416 that #undef is inside {}, and 'const' follows type name consistently.
38417 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38418 (gettimeofday): Do not use the maximum possible value for
38419 tv->tv_usec, since that might break usages other than ls.c.
38420 Instead, we'll leave ls.c alone. This undoes today's patch
38421 by Bruno. Add a compile-time warning for 1s-clock resolution;
38422 we've never observed the problem but might as well keep the
38424 * lib/nanosleep.c: Include timespec.h first, for interface check.
38425 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38426 now assume the sys_time module.
38427 * lib/tempname.c: Likewise.
38428 * lib/timespec.h: Likewise.
38429 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38431 * lib/strftime.c: Likewise.
38432 * lib/timespec.h: Likewise.
38433 * lib/posixtm.c: Include posixtm.h first, for interface check.
38434 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38435 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38436 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38437 * lib/sys_time_.h: New file.
38438 * lib/timespec.h (struct timespec): Use long int, not long.
38439 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38440 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38441 Remove obsolescent call to AC_HEADER_TIME.
38442 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38443 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38444 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38445 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38447 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38448 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38449 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38450 into the sys_time module. Check for gettimeofday just once.
38451 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38452 for gettimeofday signature to just check the signature. Merely
38453 compile it, since linking doesn't test signature. Improve test for
38454 whether gettimeofday.o is actually needed.
38455 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38456 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38457 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38458 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38459 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38460 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38461 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38462 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38463 than worrying about sys/time.h.
38464 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38465 Don't bother worrying about TIME_WITH_SYS_TIME.
38466 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38467 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38468 * m4/sys_time_h.m4: New file.
38469 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38470 Don't include sys/time.h. Return from main rather than exiting.
38471 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38473 * modules/gethrxtime (Depends-on): Add sys_time.
38474 * modules/gettime (Depends-on): Likewise.
38475 * modules/gettimeofday (Depends-on): Likewise.
38476 * modules/nanosleep (Depends-on): Likewise.
38477 * modules/settime (Depends-on): Likewise.
38478 * modules/tempname (Depends-on): Likewise.
38479 * modules/utimens (Depends-on): Likewise.
38480 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38481 (Include:) Change back to <sys/time.h>.
38482 (Maintainer:) Add self.
38483 * modules/sys_time: New file.
38484 * modules/tempname (Depends-on): Add gettimeofday.
38485 * tests/test-gettimeofday.c: Include <sys/time.h>
38486 rather than gettimeofday.h.
38488 2007-01-17 Bruno Haible <bruno@clisp.org>
38490 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38491 the license default to GPL.
38492 (func_create_testdir): Don't complain if a module is LGPL and its
38493 tests module depends on GPLed modules.
38495 2007-01-17 Bruno Haible <bruno@clisp.org>
38497 * lib/gettimeofday.c (gettimeofday): Add code for the case
38498 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38499 maximum possible value for tv->tv_usec, rather than the minimum one.
38501 2005-10-08 Martin Lambers <marlam@marlam.de>
38502 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38503 2007-01-16 Bruno Haible <bruno@clisp.org>
38505 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38506 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38507 gl_FUNC_GETTIMEOFDAY.
38508 (Include): Add gettimeofday.h.
38509 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38510 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38511 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38512 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38513 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38514 * lib/gettimeofday.h: New file.
38515 * lib/gettimeofday.c: Include <sys/timeb.h>.
38516 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38517 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38518 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38519 fall back on time().
38521 * tests/test-gettimeofday.c: New file.
38522 * modules/gettimeofday-tests: New file.
38524 2007-01-16 Eric Blake <ebb9@byu.net>
38526 * modules/fnmatch (Depends-on): Depend on wchar.
38527 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38528 * m4/fnmatch.m4: Likewise.
38529 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38530 * m4/mbchar.m4: Likewise.
38531 * modules/mbswidth (Depends-on): Depend on wchar.
38532 * lib/mbswidth.c: Assume <wchar.h>.
38533 * m4/mbswidth.m4: Likewise.
38534 * modules/quotearg (Depends-on): Depend on wchar.
38535 * lib/quotearg.c: Assume <wchar.h>.
38536 * m4/quotearg.m4: Likewise.
38537 * modules/regex (Depends-on): Depend on wchar.
38538 * lib/regex_internal.h: Assume <wchar.h>.
38539 * m4/regex.m4: Likewise.
38540 * modules/stdint (Depends-on): Depend on wchar.
38541 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38542 * m4/stdint.m4: Likewise.
38543 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38544 * modules/strftime (Depends-on): Depend on wchar.
38545 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38546 * modules/strtol (Depends-on): Depend on wchar.
38547 * lib/strtol.c: Assume <wchar.h>.
38548 * modules/wcwidth (Depends-on): Depend on wchar.
38549 * lib/wcwidth.h: Assume <wchar.h>.
38550 * m4/wcwidth.m4: Likewise.
38552 2007-01-16 Bruno Haible <bruno@clisp.org>
38554 * modules/csharpexec-script: New, created from...
38555 * modules/csharpexec: ... this.
38557 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38559 * modules/javaexec-script: New, created from...
38560 * modules/javaexec: ... this.
38562 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38564 * modules/poll (Dependencies): Add sys_select.
38566 2007-01-15 Jim Meyering <jim@meyering.net>
38568 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38569 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38570 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38571 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38573 2007-01-15 Bruno Haible <bruno@clisp.org>
38575 * modules/striconveh: New file.
38576 * lib/striconveh.h: New file.
38577 * lib/striconveh.c: New file.
38578 * MODULES.html.sh (Internationalization functions): Add striconveh.
38580 * modules/striconveh-tests: New file.
38581 * tests/test-striconveh.c: New file.
38583 2007-01-15 Bruno Haible <bruno@clisp.org>
38585 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38586 not from GNU libiconv or GNU libc.
38588 2007-01-15 Bruno Haible <bruno@clisp.org>
38590 * doc/gnulib-intro.texi (Copyright): Explain the different license
38591 terms for module descriptions, autoconf macros, tests, documentation.
38593 2007-01-14 Bruno Haible <bruno@clisp.org>
38595 * modules/striconv-tests: New file.
38596 * tests/test-striconv.c: New file.
38598 2007-01-14 Bruno Haible <bruno@clisp.org>
38600 * modules/iconv-tests: New file.
38601 * tests/test-iconv.c: New file.
38603 2007-01-14 Bruno Haible <bruno@clisp.org>
38605 * gnulib-tool (func_get_license): For test modules, use the license of
38608 2007-01-14 Bruno Haible <bruno@clisp.org>
38610 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38611 if iconv is found to exist.
38613 2007-01-14 Bruno Haible <bruno@clisp.org>
38615 * modules/c-ctype-tests: New file.
38616 * tests/test-c-ctype.c: New file.
38618 2007-01-14 Bruno Haible <bruno@clisp.org>
38620 * modules/binary-io-tests: New file.
38621 * tests/test-binary-io.sh: New file.
38622 * tests/test-binary-io.c: New file.
38624 2007-01-14 Bruno Haible <bruno@clisp.org>
38626 * modules/array-oset-tests: New file.
38627 * tests/test-array_oset.c: New file.
38629 2007-01-14 Bruno Haible <bruno@clisp.org>
38631 * modules/array-list-tests: New file.
38632 * tests/test-array_list.c: New file.
38634 2007-01-14 Bruno Haible <bruno@clisp.org>
38636 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38638 Reported by Simon Josefsson in
38639 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38641 2007-01-14 Bruno Haible <bruno@clisp.org>
38643 * modules/allocsa-tests: New file.
38644 * tests/test-allocsa.c: New file.
38646 2007-01-14 Bruno Haible <bruno@clisp.org>
38648 * modules/fchdir (Depends-on): Add absolute-header.
38649 * modules/unistd (Depends-on): Likewise.
38651 2006-12-30 Bruno Haible <bruno@clisp.org>
38653 * modules/fchdir: New file.
38654 * modules/unistd (Files): Add lib/unistd_.h.
38655 (Makefile.am): Generate unistd.h from unistd_.h.
38656 * lib/fchdir.c: New file.
38657 * lib/dirent_.h: New file.
38658 * lib/unistd_.h: New file.
38659 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38660 * m4/fchdir.m4: New file.
38661 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38662 (gl_HEADER_UNISTD): Invoke it.
38663 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38665 * lib/backupfile.c (opendir, closedir): Undefine.
38666 * lib/chown.c (open, close): Undefine.
38667 * lib/clean-temp.c (open, close): Undefine.
38668 * lib/copy-file.c (open, close): Undefine.
38669 * lib/execute.c (open, close): Undefine.
38670 * lib/fsusage.c (open, close): Undefine.
38671 * lib/gc-gnulib.c (open, close): Undefine.
38672 * lib/getcwd.c (opendir, closedir): Undefine.
38673 * lib/glob.c (opendir, closedir): Undefine.
38674 * lib/javacomp.c (open, close): Undefine.
38675 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38676 * lib/openat-proc.c (open, close): Undefine.
38677 * lib/pagealign_alloc.c (open, close): Undefine.
38678 * lib/pipe.c (open, close): Undefine.
38679 * lib/progreloc.c (open, close): Undefine.
38680 * lib/savedir.c (opendir, closedir): Undefine.
38681 * lib/utime.c (open, close): Undefine.
38682 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38684 2007-01-10 Bruno Haible <bruno@clisp.org>
38686 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38688 2007-01-12 Eric Blake <ebb9@byu.net>
38690 Provide a robust <wchar.h>. Further simplifications are now
38691 possible in other modules, but not included here.
38692 * modules/wchar: New module.
38693 * m4/wchar.m4: New file.
38694 * lib/wchar_.h: Likewise.
38695 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38697 * MODULES.html.sh (Extended multibyte and wide character utilities):
38700 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38702 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38703 to a reasonable default for memory allocation.
38704 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38705 file system that reports garbage st_size values for symlinks.
38706 Problem reported by Liyang Hu.
38708 2007-01-11 Simon Josefsson <simon@josefsson.org>
38710 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38711 Emacs .#* auto-save files).
38713 2007-01-11 Bruno Haible <bruno@clisp.org>
38715 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38718 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38720 Use @...@ consistently in lib/wctype_.h.
38721 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38722 on it being set to 1 or 0.
38723 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38724 go back to AC_SUBSTing it.
38725 * modules/wctype (Makefile.am): Undo previous change.
38727 2007-01-10 Eric Blake <ebb9@byu.net>
38729 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38730 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38731 * modules/wctype (Makefile.am): Likewise.
38732 Reported by Chris McGuire.
38734 2007-01-10 Jim Meyering <jim@meyering.net>
38736 fts.c: a small readability/maintainability improvement
38737 * lib/fts.c (fts_read): Make this code slightly more readable and
38738 maintainable by hoisting the "sp->fts_cur = p" assignments to
38739 immediately follow the statements that set P. Derived from
38740 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38742 2007-01-10 Eric Blake <ebb9@byu.net>
38744 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38745 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38746 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38747 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38748 Reported by Chris McGuire.
38750 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38752 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38755 2007-01-09 Bruno Haible <bruno@clisp.org>
38757 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38758 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38760 (func_module): Use them.
38762 2007-01-09 Bruno Haible <bruno@clisp.org>
38764 * modules/unistr/base: New file.
38765 * lib/unistr.h: New file.
38767 * modules/unistr/u8-to-u16: New file.
38768 * lib/unistr/u8-to-u16.c: New file.
38770 * modules/unistr/u8-to-u32: New file.
38771 * lib/unistr/u8-to-u32.c: New file.
38773 * modules/unistr/u16-to-u8: New file.
38774 * lib/unistr/u16-to-u8.c: New file.
38776 * modules/unistr/u16-to-u32: New file.
38777 * lib/unistr/u16-to-u32.c: New file.
38779 * modules/unistr/u32-to-u8: New file.
38780 * lib/unistr/u32-to-u8.c: New file.
38782 * modules/unistr/u32-to-u16: New file.
38783 * lib/unistr/u32-to-u16.c: New file.
38785 * modules/unistr/u8-check: New file.
38786 * modules/unistr/u16-check: New file.
38787 * modules/unistr/u32-check: New file.
38788 * lib/unistr/u8-check.c: New file.
38789 * lib/unistr/u16-check.c: New file.
38790 * lib/unistr/u32-check.c: New file.
38792 * modules/unistr/u8-chr: New file.
38793 * modules/unistr/u16-chr: New file.
38794 * modules/unistr/u32-chr: New file.
38795 * lib/unistr/u8-chr.c: New file.
38796 * lib/unistr/u16-chr.c: New file.
38797 * lib/unistr/u32-chr.c: New file.
38799 * modules/unistr/u8-cmp: New file.
38800 * modules/unistr/u16-cmp: New file.
38801 * modules/unistr/u32-cmp: New file.
38802 * lib/unistr/u8-cmp.c: New file.
38803 * lib/unistr/u16-cmp.c: New file.
38804 * lib/unistr/u32-cmp.c: New file.
38806 * modules/unistr/u8-cpy: New file.
38807 * modules/unistr/u16-cpy: New file.
38808 * modules/unistr/u32-cpy: New file.
38809 * lib/unistr/u8-cpy.c: New file.
38810 * lib/unistr/u16-cpy.c: New file.
38811 * lib/unistr/u32-cpy.c: New file.
38812 * lib/unistr/u-cpy.h: New file.
38814 * modules/unistr/u8-cpy-alloc: New file.
38815 * modules/unistr/u16-cpy-alloc: New file.
38816 * modules/unistr/u32-cpy-alloc: New file.
38817 * lib/unistr/u8-cpy-alloc.c: New file.
38818 * lib/unistr/u16-cpy-alloc.c: New file.
38819 * lib/unistr/u32-cpy-alloc.c: New file.
38820 * lib/unistr/u-cpy-alloc.h: New file.
38822 * modules/unistr/u8-endswith: New file.
38823 * modules/unistr/u16-endswith: New file.
38824 * modules/unistr/u32-endswith: New file.
38825 * lib/unistr/u8-endswith.c: New file.
38826 * lib/unistr/u16-endswith.c: New file.
38827 * lib/unistr/u32-endswith.c: New file.
38828 * lib/unistr/u-endswith.h: New file.
38830 * modules/unistr/u8-mblen: New file.
38831 * modules/unistr/u16-mblen: New file.
38832 * modules/unistr/u32-mblen: New file.
38833 * lib/unistr/u8-mblen.c: New file.
38834 * lib/unistr/u16-mblen.c: New file.
38835 * lib/unistr/u32-mblen.c: New file.
38837 * modules/unistr/u8-mbtouc: New file.
38838 * modules/unistr/u16-mbtouc: New file.
38839 * modules/unistr/u32-mbtouc: New file.
38840 * lib/unistr/u8-mbtouc.c: New file.
38841 * lib/unistr/u16-mbtouc.c: New file.
38842 * lib/unistr/u32-mbtouc.c: New file.
38844 * modules/unistr/u8-mbtouc-safe: New file.
38845 * modules/unistr/u16-mbtouc-safe: New file.
38846 * modules/unistr/u32-mbtouc-safe: New file.
38847 * lib/unistr/u8-mbtouc-safe.c: New file.
38848 * lib/unistr/u16-mbtouc-safe.c: New file.
38849 * lib/unistr/u32-mbtouc-safe.c: New file.
38851 * modules/unistr/u8-move: New file.
38852 * modules/unistr/u16-move: New file.
38853 * modules/unistr/u32-move: New file.
38854 * lib/unistr/u8-move.c: New file.
38855 * lib/unistr/u16-move.c: New file.
38856 * lib/unistr/u32-move.c: New file.
38857 * lib/unistr/u-move.h: New file.
38859 * modules/unistr/u8-next: New file.
38860 * modules/unistr/u16-next: New file.
38861 * modules/unistr/u32-next: New file.
38862 * lib/unistr/u8-next.c: New file.
38863 * lib/unistr/u16-next.c: New file.
38864 * lib/unistr/u32-next.c: New file.
38866 * modules/unistr/u8-prev: New file.
38867 * modules/unistr/u16-prev: New file.
38868 * modules/unistr/u32-prev: New file.
38869 * lib/unistr/u8-prev.c: New file.
38870 * lib/unistr/u16-prev.c: New file.
38871 * lib/unistr/u32-prev.c: New file.
38873 * modules/unistr/u8-set: New file.
38874 * modules/unistr/u16-set: New file.
38875 * modules/unistr/u32-set: New file.
38876 * lib/unistr/u8-set.c: New file.
38877 * lib/unistr/u16-set.c: New file.
38878 * lib/unistr/u32-set.c: New file.
38879 * lib/unistr/u-set.h: New file.
38881 * modules/unistr/u8-startswith: New file.
38882 * modules/unistr/u16-startswith: New file.
38883 * modules/unistr/u32-startswith: New file.
38884 * lib/unistr/u8-startswith.c: New file.
38885 * lib/unistr/u16-startswith.c: New file.
38886 * lib/unistr/u32-startswith.c: New file.
38887 * lib/unistr/u-startswith.h: New file.
38889 * modules/unistr/u8-stpcpy: New file.
38890 * modules/unistr/u16-stpcpy: New file.
38891 * modules/unistr/u32-stpcpy: New file.
38892 * lib/unistr/u8-stpcpy.c: New file.
38893 * lib/unistr/u16-stpcpy.c: New file.
38894 * lib/unistr/u32-stpcpy.c: New file.
38895 * lib/unistr/u-stpcpy.h: New file.
38897 * modules/unistr/u8-stpncpy: New file.
38898 * modules/unistr/u16-stpncpy: New file.
38899 * modules/unistr/u32-stpncpy: New file.
38900 * lib/unistr/u8-stpncpy.c: New file.
38901 * lib/unistr/u16-stpncpy.c: New file.
38902 * lib/unistr/u32-stpncpy.c: New file.
38903 * lib/unistr/u-stpncpy.h: New file.
38905 * modules/unistr/u8-strcat: New file.
38906 * modules/unistr/u16-strcat: New file.
38907 * modules/unistr/u32-strcat: New file.
38908 * lib/unistr/u8-strcat.c: New file.
38909 * lib/unistr/u16-strcat.c: New file.
38910 * lib/unistr/u32-strcat.c: New file.
38911 * lib/unistr/u-strcat.h: New file.
38913 * modules/unistr/u8-strchr: New file.
38914 * modules/unistr/u16-strchr: New file.
38915 * modules/unistr/u32-strchr: New file.
38916 * lib/unistr/u8-strchr.c: New file.
38917 * lib/unistr/u16-strchr.c: New file.
38918 * lib/unistr/u32-strchr.c: New file.
38920 * modules/unistr/u8-strcmp: New file.
38921 * modules/unistr/u16-strcmp: New file.
38922 * modules/unistr/u32-strcmp: New file.
38923 * lib/unistr/u8-strcmp.c: New file.
38924 * lib/unistr/u16-strcmp.c: New file.
38925 * lib/unistr/u32-strcmp.c: New file.
38927 * modules/unistr/u8-strcpy: New file.
38928 * modules/unistr/u16-strcpy: New file.
38929 * modules/unistr/u32-strcpy: New file.
38930 * lib/unistr/u8-strcpy.c: New file.
38931 * lib/unistr/u16-strcpy.c: New file.
38932 * lib/unistr/u32-strcpy.c: New file.
38933 * lib/unistr/u-strcpy.h: New file.
38935 * modules/unistr/u8-strcspn: New file.
38936 * modules/unistr/u16-strcspn: New file.
38937 * modules/unistr/u32-strcspn: New file.
38938 * lib/unistr/u8-strcspn.c: New file.
38939 * lib/unistr/u16-strcspn.c: New file.
38940 * lib/unistr/u32-strcspn.c: New file.
38941 * lib/unistr/u-strcspn.h: New file.
38943 * modules/unistr/u8-strdup: New file.
38944 * modules/unistr/u16-strdup: New file.
38945 * modules/unistr/u32-strdup: New file.
38946 * lib/unistr/u8-strdup.c: New file.
38947 * lib/unistr/u16-strdup.c: New file.
38948 * lib/unistr/u32-strdup.c: New file.
38949 * lib/unistr/u-strdup.h: New file.
38951 * modules/unistr/u8-strlen: New file.
38952 * modules/unistr/u16-strlen: New file.
38953 * modules/unistr/u32-strlen: New file.
38954 * lib/unistr/u8-strlen.c: New file.
38955 * lib/unistr/u16-strlen.c: New file.
38956 * lib/unistr/u32-strlen.c: New file.
38957 * lib/unistr/u-strlen.h: New file.
38959 * modules/unistr/u8-strmblen: New file.
38960 * modules/unistr/u16-strmblen: New file.
38961 * modules/unistr/u32-strmblen: New file.
38962 * lib/unistr/u8-strmblen.c: New file.
38963 * lib/unistr/u16-strmblen.c: New file.
38964 * lib/unistr/u32-strmblen.c: New file.
38966 * modules/unistr/u8-strmbtouc: New file.
38967 * modules/unistr/u16-strmbtouc: New file.
38968 * modules/unistr/u32-strmbtouc: New file.
38969 * lib/unistr/u8-strmbtouc.c: New file.
38970 * lib/unistr/u16-strmbtouc.c: New file.
38971 * lib/unistr/u32-strmbtouc.c: New file.
38973 * modules/unistr/u8-strncat: New file.
38974 * modules/unistr/u16-strncat: New file.
38975 * modules/unistr/u32-strncat: New file.
38976 * lib/unistr/u8-strncat.c: New file.
38977 * lib/unistr/u16-strncat.c: New file.
38978 * lib/unistr/u32-strncat.c: New file.
38979 * lib/unistr/u-strncat.h: New file.
38981 * modules/unistr/u8-strncmp: New file.
38982 * modules/unistr/u16-strncmp: New file.
38983 * modules/unistr/u32-strncmp: New file.
38984 * lib/unistr/u8-strncmp.c: New file.
38985 * lib/unistr/u16-strncmp.c: New file.
38986 * lib/unistr/u32-strncmp.c: New file.
38988 * modules/unistr/u8-strncpy: New file.
38989 * modules/unistr/u16-strncpy: New file.
38990 * modules/unistr/u32-strncpy: New file.
38991 * lib/unistr/u8-strncpy.c: New file.
38992 * lib/unistr/u16-strncpy.c: New file.
38993 * lib/unistr/u32-strncpy.c: New file.
38994 * lib/unistr/u-strncpy.h: New file.
38996 * modules/unistr/u8-strnlen: New file.
38997 * modules/unistr/u16-strnlen: New file.
38998 * modules/unistr/u32-strnlen: New file.
38999 * lib/unistr/u8-strnlen.c: New file.
39000 * lib/unistr/u16-strnlen.c: New file.
39001 * lib/unistr/u32-strnlen.c: New file.
39002 * lib/unistr/u-strnlen.h: New file.
39004 * modules/unistr/u8-strpbrk: New file.
39005 * modules/unistr/u16-strpbrk: New file.
39006 * modules/unistr/u32-strpbrk: New file.
39007 * lib/unistr/u8-strpbrk.c: New file.
39008 * lib/unistr/u16-strpbrk.c: New file.
39009 * lib/unistr/u32-strpbrk.c: New file.
39010 * lib/unistr/u-strpbrk.h: New file.
39012 * modules/unistr/u8-strrchr: New file.
39013 * modules/unistr/u16-strrchr: New file.
39014 * modules/unistr/u32-strrchr: New file.
39015 * lib/unistr/u8-strrchr.c: New file.
39016 * lib/unistr/u16-strrchr.c: New file.
39017 * lib/unistr/u32-strrchr.c: New file.
39019 * modules/unistr/u8-strspn: New file.
39020 * modules/unistr/u16-strspn: New file.
39021 * modules/unistr/u32-strspn: New file.
39022 * lib/unistr/u8-strspn.c: New file.
39023 * lib/unistr/u16-strspn.c: New file.
39024 * lib/unistr/u32-strspn.c: New file.
39025 * lib/unistr/u-strspn.h: New file.
39027 * modules/unistr/u8-strstr: New file.
39028 * modules/unistr/u16-strstr: New file.
39029 * modules/unistr/u32-strstr: New file.
39030 * lib/unistr/u8-strstr.c: New file.
39031 * lib/unistr/u16-strstr.c: New file.
39032 * lib/unistr/u32-strstr.c: New file.
39033 * lib/unistr/u-strstr.h: New file.
39035 * modules/unistr/u8-strtok: New file.
39036 * modules/unistr/u16-strtok: New file.
39037 * modules/unistr/u32-strtok: New file.
39038 * lib/unistr/u8-strtok.c: New file.
39039 * lib/unistr/u16-strtok.c: New file.
39040 * lib/unistr/u32-strtok.c: New file.
39041 * lib/unistr/u-strtok.h: New file.
39043 * modules/unistr/u8-uctomb: New file.
39044 * modules/unistr/u16-uctomb: New file.
39045 * modules/unistr/u32-uctomb: New file.
39046 * lib/unistr/u8-uctomb.c: New file.
39047 * lib/unistr/u16-uctomb.c: New file.
39048 * lib/unistr/u32-uctomb.c: New file.
39050 * MODULES.html.sh (Unicode string functions): Add the new modules.
39052 2007-01-08 Bruno Haible <bruno@clisp.org>
39054 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39055 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39058 2007-01-08 Karl Berry <karl@gnu.org>
39060 * doc/error.texi: mention that main() fns must set program_name
39061 when progname is used.
39063 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39065 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39066 WCTYPE_H is empty, for the benefit of builds from non-distclean
39067 directories. Problem reported by Eric Blake in
39068 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39070 2007-01-08 Bruno Haible <bruno@clisp.org>
39072 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39073 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39074 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39075 PROVIDE_CANONICALIZE_FILENAME_MODE.
39076 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39078 2007-01-08 Bruno Haible <bruno@clisp.org>
39080 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39081 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39082 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39083 * lib/fts.c: Likewise.
39084 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39086 2006-12-25 Bruno Haible <bruno@clisp.org>
39088 * modules/utf8-ucs4-safe: New file.
39089 * lib/utf8-ucs4-safe.h: New file.
39090 * lib/unistr/utf8-ucs4-safe.c: New file.
39092 * modules/utf16-ucs4-safe: New file.
39093 * lib/utf16-ucs4-safe.h: New file.
39094 * lib/unistr/utf16-ucs4-safe.c: New file.
39096 * MODULES.html.sh (Unicode string functions): Add the new modules.
39098 2007-01-08 Bruno Haible <bruno@clisp.org>
39100 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39101 (Depends-on): Add unitypes.
39102 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39103 (u8_mbtouc_aux): Move out to separate file.
39104 (u8_mbtouc): Use ucs4_t, uint8_t types.
39105 * lib/unistr/utf8-ucs4.c: New file.
39107 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39108 (Depends-on): Add unitypes.
39109 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39110 (u16_mbtouc_aux): Move out to separate file.
39111 (u16_mbtouc): Use ucs4_t, uint16_t types.
39112 * lib/unistr/utf16-ucs4.c: New file.
39114 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39115 (Depends-on): Add unitypes.
39116 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39117 (u8_uctomb_aux): Move out to separate file.
39118 (u8_uctomb): Use ucs4_t, uint8_t types.
39119 * lib/unistr/ucs4-utf8.c: New file.
39121 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39122 (Depends-on): Add unitypes.
39123 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39124 (u16_uctomb_aux): Move out to separate file.
39125 (u16_uctomb): Use ucs4_t, uint16_t types.
39126 * lib/unistr/ucs4-utf16.c: New file.
39128 2006-12-25 Bruno Haible <bruno@clisp.org>
39130 * modules/unitypes: New file.
39131 * lib/unitypes.h: New file.
39132 * MODULES.html.sh (func_all_modules): New section "Unicode string
39133 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39134 this section. Add unitypes.
39136 2007-01-08 Bruno Haible <bruno@clisp.org>
39138 Avoid variable names that conflict with those from libtool.
39139 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39140 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39141 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39142 library_names_spec to acl_library_names_spec, hardcode_* to
39144 Reported by Ralf Wildenhues.
39146 2007-01-08 Bruno Haible <bruno@clisp.org>
39148 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39150 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39152 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39153 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39155 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39157 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39158 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39159 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39160 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39162 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39164 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39165 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39166 GC_USE_<algorithm>.
39167 * lib/gc-libgcrypt.c: Likewise.
39168 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39169 * modules/gc-arctwo (configure.ac): Likewise.
39170 * modules/gc-des (configure.ac): Likewise.
39171 * modules/gc-hmac-md5 (configure.ac): Likewise.
39172 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39173 * modules/gc-md2 (configure.ac): Likewise.
39174 * modules/gc-md4 (configure.ac): Likewise.
39175 * modules/gc-md5 (configure.ac): Likewise.
39176 * modules/gc-random (configure.ac): Likewise.
39177 * modules/gc-rijndael (configure.ac): Likewise.
39178 * modules/gc-sha1 (configure.ac): Likewise.
39180 2007-01-08 Bruno Haible <bruno@clisp.org>
39182 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39184 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39186 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39188 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39189 * modules/fcntl-safer (configure.ac): Likewise.
39190 * modules/fopen-safer (configure.ac): Likewise.
39191 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39192 GNULIB_FWRITEERROR macro definition.
39194 2007-01-08 Bruno Haible <bruno@clisp.org>
39196 * m4/gnulib-common.m4: New file.
39197 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39198 (func_get_filelist): Add m4/gnulib-common.m4.
39200 2007-01-08 Bruno Haible <bruno@clisp.org>
39202 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39205 2007-01-08 Jim Meyering <jim@meyering.net>
39207 Use a more robust test for a "can't happen" condition.
39208 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39209 narrowed the st_size value. Presuming the "can't happen" condition
39210 is true, that narrowing could conceivably convert an invalid st_size
39211 value into a valid one. Instead, use a change based on Matthew
39212 Woehlke's original patch.
39214 Slight readability improvement: use an assert-like macro
39215 in place of literal "abort ()" uses.
39216 * lib/fts.c (fts_assert): Define.
39217 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39218 Use this macro instead of a bare 'abort'.
39220 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39222 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39223 simply work around them.
39224 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39225 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39226 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39228 Don't bother to define as macros, since the standard doesn't require it.
39229 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39230 longer worry about IRIX 5.3.
39231 (HAVE_WCTYPE_CTMP_BUG): Remove.
39233 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39235 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39236 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39237 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39238 Problems reported by Georg Schwarz for IRIX 5.3.
39240 * gnulib-tool (autoconf_minversion): Take the maximum version number
39241 found, not the minimum. Problem reported by James Youngman.
39243 2007-01-03 Karl Berry <karl@gnu.org>
39245 * doc/error.texi: new file, explaining interaction with progname.
39246 * doc/gnulib.texi: include it. Update copyright.
39248 2007-01-03 Simon Josefsson <simon@josefsson.org>
39250 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39251 AC_CANONICAL_HOST, to improve autobuild outputs.
39253 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39254 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39256 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39257 sockets, server sockets, and other file descriptors. Count errors
39258 to compute the return value. Reorder the code a bit to be easier
39259 to follow. Don't set event bits that were not requested (except
39260 POLLERR and POLLHUP).
39262 2007-01-01 Bruno Haible <bruno@clisp.org>
39264 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39266 2007-01-03 Jim Meyering <jim@meyering.net>
39268 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39270 2007-01-02 Bruno Haible <bruno@clisp.org>
39272 * modules/settime (Include): Require timespec.h.
39273 * modules/nanosleep (Include): Likewise.
39275 2007-01-01 Bruno Haible <bruno@clisp.org>
39277 * gnulib-tool (func_emit_copyright_notice): Bump year.
39278 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39280 2007-01-01 Bruno Haible <bruno@clisp.org>
39282 Improve support for OpenBSD.
39283 * build-aux/config.rpath (libname_spec): Export.
39284 (library_names_spec): New variable. Export.
39285 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39286 library_names_spec from the config.rpath output. Locate shared library
39287 through the name pattern in library_names_spec.
39289 2007-01-01 Eric Blake <ebb9@byu.net>
39291 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39293 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39295 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39296 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39297 assume the C locale, and avoid an "eval" that could cause trouble.
39298 Problem with SORT reported by Bob Proulx.
39300 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39301 Define. Trivial patch from Henning Nielsen Lund, originally
39302 sent to bug-grep@gnu.org today.
39304 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39306 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39307 struct stat. Problem reported by Henning Nielsen Lund.
39308 * lib/acl.c: Include acl.h first, to check interface. Don't
39309 bother to include sys/types.h and sys/stat.h again.
39311 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39313 Import the following change from libc; problem reported by
39316 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39319 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39321 2006-12-28 Jim Meyering <jim@meyering.net>
39323 * build-aux/announce-gen: Do not assume that the package
39324 builds any of tar.gz, tar.bz2, and .xdelta files.
39325 Suggestion from Simon Josefsson.
39327 2006-12-28 Simon Josefsson <simon@josefsson.org>
39329 * modules/announce-gen: New file.
39331 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39333 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39334 handles its gotchas now.
39335 * lib/mbswidth.c: Likewise.
39336 * lib/wcwidth.h: Likewise.
39337 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39338 and iswcntrl; the wctype module does this stuff now.
39339 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39340 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39341 * modules/mbchar (Depends-on): Add wctype.
39342 * modules/mbswidth (Depends-on): Likewise.
39343 * modules/wcwidth (Depends-on): Likewise.
39345 2006-12-27 Eric Blake <ebb9@byu.net>
39347 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39348 module uses more than what <wctype.h> is required to provide.
39350 2006-12-26 Eric Blake <ebb9@byu.net>
39352 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39354 2006-12-26 Eric Blake <ebb9@byu.net>
39356 * modules/absolute-header: New module.
39357 * modules/fcntl (Depends-on): Depend on it.
39358 * modules/inttypes (Depends-on): Likewise.
39359 * modules/stdint (Depends-on): Likewise.
39360 * modules/sys_stat (Depends-on): Likewise.
39361 * modules/wctype (Depends-on): Likewise.
39362 * MODULES.html.sh (Support for building libraries and
39363 executables): Document it.
39365 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39367 * gnulib-tool (SED): Remove, undoing previous change.
39368 The problem was that it broke coreutils on Solaris, because
39369 "sed --posix" leaked into a makefile.
39370 (sed): New alias, if 'alias' and GNU sed.
39372 2006-12-24 Jim Meyering <jim@meyering.net>
39374 Work around an fchownat bug in glibc-2.4:
39375 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39376 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39377 in spite of the -P option.
39378 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39380 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39381 * modules/openat (Files): Add lib/fchownat.c.
39382 * lib/openat.c (fchownat): Don't define here. Move to...
39383 * lib/fchownat.c: ...this new file.
39385 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39387 Fix bug reported by Bruno Haible in
39388 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39389 where quotearg.c didn't compile on Mac OS X 10.2 because it
39390 lacks <wchar.h> and wint_t.
39391 * lib/wctype_.h (__wctype_wint_t): New type.
39392 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39393 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39394 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39395 Arg is now of type __wctype_wint_t, not wint_t.
39396 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39397 substitute HAVE_WINT_T.
39398 * modules/wctype (Files): Add m4/wint_t.m4.
39399 (wctype.h): Substitute HAVE_WINT_T.
39401 2006-12-23 Bruno Haible <bruno@clisp.org>
39403 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39405 2006-12-23 Bruno Haible <bruno@clisp.org>
39407 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39409 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39412 2006-12-22 Bruno Haible <bruno@clisp.org>
39414 * lib/copy-file.c: Include acl.h.
39415 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39416 Close the file descriptors only after being done with copy_acl.
39417 * modules/copy-file (Depends-on): Add acl.
39419 2006-12-22 Bruno Haible <bruno@clisp.org>
39421 * gnulib-tool (SED): New variable.
39422 Use $SED instead of sed everywhere.
39424 2006-12-22 Bruno Haible <bruno@clisp.org>
39426 * modules/no-c++: New file.
39427 * m4/no-c++.m4: New file.
39428 * MODULES.html.sh (Support for building libraries and executables):
39431 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39433 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39434 Include <limits.h>, and use its INT_MAX to rewrite the
39435 j loop so that it does not overflow 'int'. Problem reported by
39437 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39438 Play it safe by shifting left by 1 rather than multiplying by 2,
39439 as GCC is less likely to optimize this away when the value
39440 is signed (when it assumes overflow leads to undefined behavior).
39441 Also, don't assume time_t uses two's complement.
39443 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39445 * MODULES.html.sh: New module wctype.
39446 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39447 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39448 <wctype.h>, since the new wctype module should fix this.
39449 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39450 the wctype module should arrange for it.
39451 * lib/regex_internal.h: Likewise.
39452 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39453 since the wctype module should handle this now.
39454 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39455 * modules/fnmatch (Depends-on): Add wctype.
39456 * modules/quotearg (Depends-on): Likewise.
39457 * modules/regex (Depends-on): Likewise.
39459 2006-12-19 Bruno Haible <bruno@clisp.org>
39461 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39462 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39464 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39466 * modules/savewd (Depends-on): Fix dependency on fcntl.
39468 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39470 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39471 conforms to C99, rather than relying on the user's environment
39472 setting of STDINT_H.
39474 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39475 and Eric Blake <ebb9@byu.net>
39477 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39478 This is more consistent with the other defines here.
39479 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39480 Port to z/OS. Problem reported by Paul Gilmartin.
39481 Change local vars to use gl_ prefix rather than ac_.
39482 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39483 with other defines.
39484 * modules/double-slash-root: New module.
39485 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39486 (Depends-on): Add double-slash-root.
39487 * MODULES.html.sh (File system functions): Mention new module.
39489 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39491 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39492 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39493 This is for the benefit of gzip, which doesn't do i18n.
39495 2006-12-12 Jim Meyering <jim@meyering.net>
39497 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39498 Reported by Andreas Schwab <schwab@suse.de>.
39500 2006-12-12 Bruno Haible <bruno@clisp.org>
39502 Merge these changes.
39503 2006-09-05 Bruno Haible <bruno@clisp.org>
39504 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39505 iconv_alloc succeeded.
39506 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39507 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39508 test for " && dest " at the end - dest is always != NULL there. Call
39509 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39510 with 2xNULL arguments, also to flush the state storage. Handle the
39511 IRIX iconv behaviour. Realloc the final result, to throw away unused
39514 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39516 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39517 and fchmodat unconditionally, since glibc 2.4 has them.
39518 Problem reported by Arkadiusz Miskiewicz.
39520 2006-12-10 Bruno Haible <bruno@clisp.org>
39522 * gnulib-tool (func_import): Show the include files only for those
39523 modules that are copied and specified.
39524 Reported by Karl Berry.
39526 2006-12-08 Jim Meyering <jim@meyering.net>
39528 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39529 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39531 * build-aux/announce-gen: Add two new options, both optional:
39532 --bootstrap-tools=TOOL_LIST
39533 a comma-separated list of tools, e.g.,
39534 autoconf,automake,bison,gnulib
39535 --gnulib-snapshot-date=DATE
39536 if gnulib is in the bootstrap tool list,
39537 then report this as the snapshot date.
39538 If not specified, use the current date/time.
39539 If you specify a date here, be sure it's UTC.
39541 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39543 * tests/test-argp-2.sh: Fix test to match actual output.
39544 (func_compare): Fix sed script to be portable.
39546 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39548 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39549 workaround for this case. It is not autoconfigured now; offhand
39550 it's hard to see how to autoconfigure it.
39552 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39554 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39555 a directory that is about to be chowned. Such a directory's
39556 initial file permissions should permit the owner only and this
39557 should not be changed until after the chown, since the group and
39558 other bits would be incorrect if they granted permission before
39561 Fix porting problem for iswctype reported by Georg Schwarz in:
39562 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39563 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39564 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39565 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39566 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39568 2006-12-03 Jim Meyering <jim@meyering.net>
39570 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39571 p->fts_statp may not yet be defined.
39572 (fts_read): Instead, set it in the caller, once p->fts_statp is
39573 sure to be defined, and corresponds to a top-level directory.
39574 This bug made du -x fail. Here's the coreutils test case:
39575 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39576 Reported by Mike Frysinger.
39578 2006-12-01 Jim Meyering <jim@meyering.net>
39580 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39581 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39582 Reported by Simon Josefsson.
39584 2006-11-30 Jim Meyering <jim@meyering.net>
39586 * m4/warning.m4: Use the all-permissive copyright notice
39587 recommended by RMS (rather than LGPL).
39588 * m4/vararrays.m4: Likewise.
39589 * m4/flexmember.m4: Likewise.
39591 2006-11-29 Bruno Haible <bruno@clisp.org>
39593 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39594 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39596 Reported by Simon Josefsson <simon@josefsson.org>.
39598 2006-11-28 James Youngman <jay@gnu.org>
39600 * README: Advise users that they might find the bug-gnulib@gnu.org
39601 and autotools-announce@gnu.org mailing lists useful.
39603 2006-11-28 Bruno Haible <bruno@clisp.org>
39605 * m4/ptrdiff_max.m4: Remove file.
39607 2006-11-21 Bruno Haible <bruno@clisp.org>
39609 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39611 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39612 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39614 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39615 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39617 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39619 2006-11-28 Jim Meyering <jim@meyering.net>
39621 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39622 warning from "gcc -Wshadow" about shadowing the builtin.
39624 2006-11-27 Bruno Haible <bruno@clisp.org>
39626 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39628 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39630 2006-11-27 Bruno Haible <bruno@clisp.org>
39631 Paul Eggert <eggert@cs.ucla.edu>
39633 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39635 2006-11-26 Bruno Haible <bruno@clisp.org>
39637 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39638 noinst_LTLIBRARIES.
39640 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39641 Bruno Haible <bruno@clisp.org>
39643 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39644 if compiling with "gcc -ansi".
39646 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39648 Fix some incompatibilities with gcc -ansi -pedantic.
39649 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39650 if compiling pedantically with GCC, unless it's C99 or later.
39651 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39652 it mishandles gcc -ansi -pedantic as well.
39653 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39655 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39656 initializers for struct if -pedantic, unless it's C99 or later.
39658 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39660 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39661 Don't close an fd more than once. Identical atimes indicate
39662 success, not failure.
39664 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39666 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39668 2006-11-23 Jim Meyering <jim@meyering.net>
39670 * build-aux/announce-gen: New file. From coreutils.
39672 2006-11-22 Jim Meyering <jim@meyering.net>
39674 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39675 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39676 (fts_read): Use a temporary to narrow the overused st_size member
39677 before using it in a switch statement. Reported by Matthew Woehlke.
39679 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39680 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39682 2006-11-20 Bruno Haible <bruno@clisp.org>
39684 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39685 changequote instead of pairs of brackets.
39686 Reported by Andreas Schwab <schwab@suse.de>.
39688 2006-11-21 Jim Meyering <jim@meyering.net>
39690 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39691 so as to remain compatible with older compilers.
39692 Patch from Michael Deutschmann.
39694 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39696 * MODULES.html.sh (File system functions): Add openat.
39698 * lib/openat.h (rpl_fstatat): New macro, if
39699 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39700 (fstatat): Define to rpl_fstatat under the same conditions,
39701 unless COMPILING_FSTATAT.
39702 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39703 seems to have the bug.
39704 * lib/fstatat.c: New file.
39705 * modules/openat (Files): Add it.
39707 2006-11-20 Bruno Haible <bruno@clisp.org>
39709 * Makefile: New file.
39711 2006-11-20 Jim Meyering <jim@meyering.net>
39713 The beginnings of syntax-related checks for gnulib.
39714 * lib/Makefile: New file.
39715 * lib/t-idcache: New script. Ensure that the two halves of
39716 idcache.c stay in sync.
39718 * lib/idcache.c: Adjust comments in user- and group- portions to
39719 be more accurate, and to be consistent with one another.
39721 2006-11-20 Jim Meyering <jim@meyering.net>
39723 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39724 continue using the flexible array member (thus, this module performs
39725 half as many malloc calls), with the addition that...
39726 (getgroup, getuser): Consistently record a non-match via an empty
39727 "name" string, and map an empty string match to a NULL return value.
39728 * modules/idcache (Depends-on): Re-add flexmember.
39730 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39731 (getuidbyname, getgroup, getgidbyname): Likewise.
39733 Use cleaner syntax: NULL rather than 0.
39734 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39736 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39738 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39739 It mishandled the case where the group was missing.
39740 Problem reported by Greg Schafer.
39741 * modules/idcache: Likewise.
39743 2006-11-18 Jim Meyering <jim@meyering.net>
39745 * check-module (%exempt_header): Add exception for some
39746 conditionally-included headers.
39748 * modules/i-ring (Depends-on): Add verify.
39749 (License): Change to LGPL.
39751 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39753 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39754 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39755 and inttostr.h. Use snprintf rather than uinttostr, so that
39756 LGPLed code doesn't depend on GPLed.
39758 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39760 * modules/inline (License): Change from GPL to LGPL.
39762 2006-11-17 Jim Meyering <jim@meyering.net>
39764 * modules/d-type (License): Switch to LGPL.
39766 2006-11-15 Bruno Haible <bruno@clisp.org>
39768 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39770 2006-11-15 Eric Blake <ebb9@byu.net>
39772 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39773 the module dependency.
39775 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39776 Bruno Haible <bruno@clisp.org>
39778 * gnulib-tool (func_create_testdir): Add license consistency check.
39780 2006-11-15 Eric Blake <ebb9@byu.net>
39782 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39783 random "(cached)" in configure output.
39785 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39787 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39788 test for conforming inttypes.h is both announced and cached.
39790 * MODULES.html.sh (seen_modules, seen_files): New variables.
39791 (func_module): Rewrite to use a few less gnulib-tool and sed
39792 invocations. Avoid a couple of quadratic algorithms for ...
39793 (missed_modules, missed_files): ... these, with ...
39794 (func_append, func_tmpdir): ... these new functions, from
39795 gnulib-tool. Analogously, install traps for cleanup.
39797 * tests/test-gc.c (main): Remove unused variables.
39798 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39800 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39802 * modules/inttostr (License): Change to LGPL.
39804 2006-11-14 Eric Blake <ebb9@byu.net>
39806 * modules/tempname (License): Change to LGPL.
39808 2006-11-14 Eric Blake <ebb9@byu.net>
39810 * doc/functions.texi (Function Portability): *printf functions on
39811 Cygwin now understand all POSIX size specifiers.
39813 2006-11-14 Bruno Haible <bruno@clisp.org>
39815 * modules/c-ctype (License): Change to LGPL.
39817 2006-11-12 Bruno Haible <bruno@clisp.org>
39819 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39820 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39821 for GNOME libraries, for which the include files are installed in
39822 subdirectories of $prefix/include.
39824 2006-11-12 Bruno Haible <bruno@clisp.org>
39826 * m4/lib-link.m4: Require at least autoconf-2.54.
39827 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39828 name to underscores for the --with option.
39830 2006-11-13 Bruno Haible <bruno@clisp.org>
39832 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39833 the tests directory.
39834 Reported by Ralf Wildenhues.
39836 2006-11-13 Bruno Haible <bruno@clisp.org>
39838 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39839 (func_emit_initmacro_end): Undo the override here.
39840 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39841 Works around the famous automake error in coreutils.
39843 2006-11-13 Eric Blake <ebb9@byu.net>
39845 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39846 element, not its node.
39848 2006-11-12 Bruno Haible <bruno@clisp.org>
39850 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39851 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39853 2006-11-12 Bruno Haible <bruno@clisp.org>
39855 * gnulib-tool: New option --local-symlink.
39856 (func_usage): Document it.
39857 (lsymbolic): New variable.
39858 (func_import, func_create_testdir): If --symlink was not specified,
39859 test whether --local-symlink was specified and the file comes from
39860 the local_gnulib_dir.
39862 2006-11-12 Bruno Haible <bruno@clisp.org>
39864 * gnulib-tool (func_ln): New function.
39865 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39867 2006-11-12 Bruno Haible <bruno@clisp.org>
39869 Finish support for source files in subdirectories.
39870 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39871 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39873 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39875 2006-11-12 Bruno Haible <bruno@clisp.org>
39877 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39878 EXTRA_lib_SOURCES augmentation.
39879 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39881 2006-11-12 Jim Meyering <jim@meyering.net>
39883 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39884 file descriptors. This also averts a failure on systems with
39885 native openat support when a traversed directory lacks "x" access.
39886 * lib/fts_.h: Include "i-ring.h"
39887 (struct FTS) [fts_fd_ring]: New member.
39888 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39889 (FCHDIR): Add parentheses.
39890 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39891 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39892 When descending, rather than simply closing the previous
39893 fts_cwd_fd value, push that file descriptor onto the ring.
39894 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39895 (fts_open): Initialize the new fd_ring member.
39896 (fts_close): Clear the ring.
39897 (fts_safe_changedir): When possible, use our new fd_ring to skip
39898 the diropen and fstat and dev/ino comparison that would normally
39899 accompany a virtual `chdir ("..")'.
39901 * modules/fts (Depends-on): Add i-ring.
39902 * modules/i-ring: New module.
39903 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39904 * m4/i-ring.m4: New file.
39906 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39908 * gnulib-tool (func_create_testdir): Fix replacement of
39909 `build-aux' in configure.ac. Run autotools in gltests
39911 (func_create_testdir, func_create_megatestdir, test): There is
39912 no need for '--force' in most autotool invocations in a new
39913 tree. Actually fail the whole test if any of the tools, or the
39914 configure or make stages fail.
39916 Sync from Automake.
39917 * build-aux/gnupload: Revert last change. Add pointer to upload
39918 instructions of the GNU Maintenance Instructions.
39919 Suggestion by Karl Berry.
39921 2006-11-10 Jim Meyering <jim@meyering.net>
39923 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39925 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39927 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39928 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39929 (bind_textdomain_codeset) [! ENABLE_NLS]:
39930 Evaluate all the arguments. That way, callers get compatible behavior
39931 if the arguments have side effects. Also, it avoids some GCC
39932 diagnostics in some cases; Joel E. Denny reported problems when Bison
39933 was configured with --enable-gcc-warnigs.
39935 2006-11-10 Jim Meyering <jim@meyering.net>
39937 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39938 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39941 2006-11-10 Jim Meyering <jim@meyering.net>
39943 * modules/inline: New file/module.
39944 * modules/xalloc (Files): Remove m4/inline.m4.
39945 (Depends-on): Add inline, instead.
39946 * modules/oset: Likewise.
39947 * modules/list: Likewise.
39949 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39951 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39952 Problem reported by Matthew Woehlke.
39954 2006-11-09 Bruno Haible <bruno@clisp.org>
39956 * lib/tempname.c (gen_tempname): Remove variant that invokes
39958 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39961 2006-11-08 Bruno Haible <bruno@clisp.org>
39963 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39964 to 'yes' instead of 'cross-compiling'.
39966 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39968 * lib/quotearg.h (quotearg_free): New decl.
39969 * lib/quotearg.c (quotearg_free): New function.
39970 (slot0, nslots, slotvec0, slotvec):
39971 Now file-scope so that quotearg_free can get at them.
39973 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39975 Sync from Automake.
39976 * build-aux/gnupload: Add missing 'gnu' to example URL.
39977 Report by Karl Berry.
39979 2006-11-08 Bruno Haible <bruno@clisp.org>
39981 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39982 Suggested by Paul Eggert.
39984 2006-11-08 Jim Meyering <jim@meyering.net>
39986 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39987 It's already included if !_LIBC.
39988 (fts_safe_changedir): Add a comment.
39990 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39992 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39993 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39996 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39997 definitions up, to avoid colliding with change below.
39998 (static_inline) [HAVE_INLINE]: New macro.
39999 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40000 Provide extern decls when !HAVE_INLINE. Do not define unless
40001 static_inline is defined, either by us or by xmalloc.c. Use
40002 static_inline rather than static inline.
40003 (XCALLOC): Optimize sizeof(T) = 1 case.
40004 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40006 2006-11-07 Bruno Haible <bruno@clisp.org>
40008 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40009 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40011 * modules/xalloc (Files): Add m4/inline.m4.
40013 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40015 * README: Fix typo.
40016 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40017 (Miscellanous Notes): ...from this.
40019 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40021 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40022 Mention that offsetof should be used instead of sizeof.
40025 2006-11-07 Bruno Haible <bruno@clisp.org>
40027 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40029 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40031 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40032 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40033 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40034 (gl_tree_add_before, gl_tree_add_after):
40035 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40036 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40037 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40038 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40039 (gl_linked_add_after, gl_linked_add_at): Likewise.
40040 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40041 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40042 (gl_tree_add_before, gl_tree_add_after): Likewise.
40043 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40044 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40045 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40047 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40049 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40051 2006-11-06 Bruno Haible <bruno@clisp.org>
40053 * m4/inline.m4: New file.
40054 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40055 * modules/list (Files): Add m4/inline.m4.
40056 * modules/oset (Files): Likewise.
40058 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40060 * lib/idcache.c: Include <stddef.h>, for offsetof.
40061 (struct userid.name): Change from char * to a flexible array member.
40063 * modules/idcache (Depends-on): Add flexmember.
40065 * MODULES.html.sh (Core language properties): New module flexmember.
40066 * modules/flexmember, m4/flexmember.m4: New files.
40068 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40069 inline functions that are identical with the old xnmalloc_inline,
40070 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40071 that we can avoid some unnecessary integer multiplications and
40072 divisions in the common case where the element size is known at
40074 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40076 (xnboundedmalloc): Remove.
40077 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40078 arguments, for consistency with rest of this header.
40079 (xcharalloc): Rewrite using XNMALLOC.
40080 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40081 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40082 versions have been moved to lib/xalloc.h and renamed to be the
40083 non-*_inline versions.
40084 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40085 and xnrealloc functions, since those functions are now inline and
40087 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40088 renaming described above.
40089 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40090 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40091 captures the dependency in AC_C_INLINE.
40093 New module canonicalize-lgpl, proposed by Charles Wilson in
40094 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40095 with a few small changes afterwards.
40096 * MODULES.html.sh (File system functions): New module
40098 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40099 and canonicalize_file_name.
40100 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40101 * modules/canonicalize-lgpl: New files.
40103 2006-11-05 Bruno Haible <bruno@clisp.org>
40105 * gnulib-tool (func_import, func_create_testdir): Create directories
40106 also for files in subdirectories of lib/.
40108 2006-11-05 Bruno Haible <bruno@clisp.org>
40110 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40113 2006-11-03 Bruno Haible <bruno@clisp.org>
40115 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40116 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40117 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40118 (xnboundedmalloc): New inline function.
40119 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40120 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40122 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40124 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40125 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40126 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40128 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40129 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40131 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40132 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40133 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40135 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40136 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40137 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40138 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40139 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40140 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40141 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40143 2006-11-03 Bruno Haible <bruno@clisp.org>
40145 * lib/c-ctype.h [C++]: Define functions without name mangling.
40146 * lib/fwriteerror.h [C++]: Likewise.
40147 * lib/gcd.h [C++]: Likewise.
40148 * lib/linebreak.h [C++]: Likewise.
40150 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40152 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40153 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40154 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40155 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40156 Check for functions and headers just once.
40157 Check for declaration of canonicalize_file_name.
40158 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40160 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40162 * gnulib-tool (func_import): Fix typo in actioncmd.
40164 2006-11-02 Bruno Haible <bruno@clisp.org>
40166 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40167 newline sequence in the Makefile.am snippet as a space, like "make"
40169 Reported by Roger Persson <perrog@gmail.com>.
40171 2006-11-01 Bruno Haible <bruno@clisp.org>
40173 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40174 already declared in <string.h>.
40175 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40177 2006-11-01 Bruno Haible <bruno@clisp.org>
40179 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40180 * lib/strcase.h: Include <string.h>.
40181 (strcasecmp): Define to rpl_strcasecmp here.
40183 2006-11-01 Bruno Haible <bruno@clisp.org>
40185 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40187 2006-11-01 Eric Blake <ebb9@byu.net>
40189 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40191 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40193 2006-10-29 Bruno Haible <bruno@clisp.org>
40195 Make it compile in C++ mode.
40196 * lib/full-write.c (full_rw): Add a cast.
40198 2006-11-01 Bruno Haible <bruno@clisp.org>
40200 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40201 be POSIX compliant.
40202 Reported by Roger Persson <perrog@gmail.com>.
40204 2006-11-01 Eric Blake <ebb9@byu.net>
40206 * lib/getopt_.h: Fix comments.
40208 2006-10-31 Eric Blake <ebb9@byu.net>
40210 * modules/tmpdir (Depends-on): Add sys_stat.
40211 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40212 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40213 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40214 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40217 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40219 Avoid some C++ diagnostics reported by Bruno Haible.
40220 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40222 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40223 (struct slotvec): Move to top level.
40224 (quotearg_n_options): Rewrite to avoid xmalloc.
40225 * lib/xalloc.h (xcharalloc): New function.
40226 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40227 [defined __cplusplus]: Add function template that provides result
40228 type propagation. This part of the change is from Bruno Haible.
40230 2006-10-29 Bruno Haible <bruno@clisp.org>
40232 Make it compile in C++ mode.
40233 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40234 * lib/strnlen1.c (strnlen1): Cast memchr result.
40235 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40236 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40237 (create_temp_dir): Rename local variable 'template'.
40238 (compile_csharp_using_sscli): Add cast.
40239 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40240 * lib/findprog.c (find_in_path): Likewise.
40241 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40242 * lib/wait-process.c (register_slave_subprocess): Likewise.
40244 2006-10-22 Bruno Haible <bruno@clisp.org>
40246 * modules/tsearch: New file.
40247 * lib/tsearch.h: New file.
40248 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40249 * m4/tsearch.m4: New file.
40250 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40252 2006-10-29 Eric Blake <ebb9@byu.net>
40254 * lib/arcfour.c: Assume config.h.
40255 * lib/arctwo.c: Likewise.
40256 * lib/base64.c: Likewise.
40257 * lib/check-version.c: Likewise.
40258 * lib/crc.c: Likewise.
40259 * lib/des.c: Likewise.
40260 * lib/gc-gnulib.c: Likewise.
40261 * lib/gc-libgcrypt.c: Likewise.
40262 * lib/gc-pbkdf2-sha1.c: Likewise.
40263 * lib/getaddrinfo.c: Likewise.
40264 * lib/getdelim.c: Likewise.
40265 * lib/getline.c: Likewise.
40266 * lib/hmac-md5.c: Likewise.
40267 * lib/hmac-sha1.c: Likewise.
40268 * lib/iconvme.c: Likewise.
40269 * lib/md2.c: Likewise.
40270 * lib/md4.c: Likewise.
40271 * lib/memxor.c: Likewise.
40272 * lib/read-file.c: Likewise.
40273 * lib/readline.c: Likewise.
40274 * lib/rijndael-alg-fst.c: Likewise.
40275 * lib/rijndael-api-fst.c: Likewise.
40276 * lib/xgetdomainname.c: Likewise.
40278 2006-10-28 Eric Blake <ebb9@byu.net>
40280 * lib/xstrndup.c: Assume config.h.
40282 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40284 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40285 stat-macros.h is now for our own macros, whereas stat_h is for
40286 macros in the <sys/stat.h> name space.
40287 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40288 (STAT_MACROS_H): Remove.
40289 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40290 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40291 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40292 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40293 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40294 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40295 Move these macros to ...
40296 * lib/stat_.h: here. Don't include stat-macros.h.
40297 * lib/canonicalize.c: Don't include stat-macros.h.
40298 * lib/chown.c: Likewise.
40299 * lib/euidaccess.c: Likewise.
40300 * lib/file-type.c: Likewise.
40301 * lib/filemode.c: Likewise.
40302 * lib/glob.c: Likewise.
40303 * lib/isapipe.c: Likewise.
40304 * lib/lchown.c: Likewise.
40305 * lib/lstat.c: Likewise.
40306 * lib/mkdir-p.c: Likewise.
40307 * lib/rmdir.c: Likewise.
40308 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40309 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40310 unless mkdir isn't declared, to speed up 'configure'.
40311 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40312 would define all the S_* symbols.
40313 * modules/canonicalize (Depends-on):
40314 Depend on sys_stat, not stat-macros.
40315 * modules/chown: Likewise.
40316 * modules/euidaccess: Likewise.
40317 * modules/filemode: Likewise.
40318 * modules/file-type: Likewise.
40319 * modules/glob: Likewise.
40320 * modules/isapipe: Likewise.
40321 * modules/lchown: Likewise.
40322 * modules/lstat: Likewise.
40323 * modules/mkancesdirs: Likewise.
40324 * modules/rmdir: Likewise.
40325 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40326 * modules/modechange: Likewise.
40327 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40328 (configure.ac): Remove gl_STAT_MACROS.
40329 * modules/sys_stat (Depends-on): Remove stat-macros.
40331 2006-10-27 Bruno Haible <bruno@clisp.org>
40333 * m4/signed.m4: Remove file.
40334 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40336 * modules/vasnprintf (Files): Remove m4/signed.m4.
40338 2006-10-27 Bruno Haible <bruno@clisp.org>
40340 Update to GNU gettext 0.16.
40341 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40342 m4/inttypes-h.m4, m4/signed.m4.
40343 * m4/gettext.m4: Update to GNU gettext 0.16.
40344 * m4/intl.m4: New file, from GNU gettext.
40345 * m4/intldir.m4: New file, from GNU gettext.
40346 * config/srclist.txt: Update
40348 2006-10-27 Eric Blake <ebb9@byu.net>
40350 * MODULES.html.sh: Document tempname.
40351 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40353 (Files): Move lib/tempname.c...
40354 * modules/tempname: ...to this new module.
40355 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40356 (gl_PREREQ_TEMPNAME): Move...
40357 * m4/tempname.m4: ...to this new file.
40358 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40359 * modules/sys_stat (Depends-on): Add stat-macros.
40360 * lib/stat_.h (includes): Pick up stat macros.
40361 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40362 if stat macros are broken.
40363 * lib/tempname.c (includes): No need to include "stat-macros.h".
40364 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40365 (direxists, __path_search) [!_LIBC]: Don't compile these in
40366 gnulib; the tmpdir module covers that.
40367 * lib/tempname.h: New file.
40369 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40371 * COPYING: Explain how gnulib-tool converts licence headers.
40372 Almost all wording by Eric Blake.
40374 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40376 * lib/mbchar.h (is_basic_table): Make read-only.
40377 * lib/mbchar.c (is_basic_table): Likewise.
40378 Reported by John Darrington.
40380 2006-10-25 Bruno Haible <bruno@clisp.org>
40382 * lib/progname.h (set_program_name): Undefine before defining.
40384 2006-10-25 Bruno Haible <bruno@clisp.org>
40386 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40387 false for non-gcc C++ compilers.
40388 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40390 2006-10-24 Bruno Haible <bruno@clisp.org>
40392 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40393 iconv implementations like Irix iconv.
40395 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40397 * modules/vararrays: New file.
40398 * m4/vararrays.m4: New file, taken from diffutils.
40399 * MODULES.html.sh: New module vararrays.
40401 2006-10-24 Karl Berry <karl@gnu.org>
40403 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40404 Don't call GNU Unix.
40406 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40408 * users.txt: Add Libtool.
40412 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40414 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40415 to gnulib's policy of including config.h unconditionally.
40417 2006-10-24 Bruno Haible <bruno@clisp.org>
40419 * modules/wcwidth (Files): Add m4/wint_t.m4.
40420 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40421 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40423 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40425 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40426 to pacify GCC with some -W flags enabled. Problem reported by
40429 2006-10-24 Jim Meyering <jim@meyering.net>
40431 * MODULES.html.sh: Remove uinttostr. It's not a module.
40432 Reported by Karl Berry.
40434 2006-10-23 Bruno Haible <bruno@clisp.org>
40436 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40438 2006-10-24 Bruno Haible <bruno@clisp.org>
40440 * lib/gl_list.h: Use C comment style, not C++ comment style.
40442 2006-10-23 Eric Blake <ebb9@byu.net>
40444 * lib/getaddrinfo.c (includes): Add missing include.
40446 2006-10-23 Bruno Haible <bruno@clisp.org>
40447 Paul Eggert <eggert@cs.ucla.edu>
40449 Ability to rename obstack_free.
40450 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40452 (obstack_free): Invoke the __obstack_free macro.
40453 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40455 2006-10-23 Bruno Haible <bruno@clisp.org>
40456 Paul Eggert <eggert@cs.ucla.edu>
40458 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40459 __argc, __argv from the declaration. (They are defined as macros on
40462 2006-10-22 Bruno Haible <bruno@clisp.org>
40464 * doc/gnulib-intro.texi: New file.
40465 * doc/gnulib.texi: Include it.
40467 2006-10-21 Bruno Haible <bruno@clisp.org>
40469 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40470 "Introduction", "Miscellanous Notes", "Particular Modules".
40472 2006-10-21 Bruno Haible <bruno@clisp.org>
40474 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40475 Change mostlyclean-local rule to avoid sh syntax error from bash
40476 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40478 2006-10-23 Jim Meyering <jim@meyering.net>
40480 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40481 in place of snprintf.
40483 * modules/inttostr (Files): Add lib/uinttostr.c.
40484 * lib/uinttostr.c (inttostr): New file/function.
40485 * lib/inttostr.h (uinttostr): Declare.
40486 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40487 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40489 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40491 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40493 * lib/canonicalize.c (ELOOP): Define if not already defined.
40494 Problem reported by Bruno Haible in
40495 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40497 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40499 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40500 Problem reported by Perry Smith and Ville Laurikari.
40502 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40505 2006-10-19 Bruno Haible <bruno@clisp.org>
40507 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40510 2006-10-19 Bruno Haible <bruno@clisp.org>
40512 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40515 2006-10-19 Bruno Haible <bruno@clisp.org>
40517 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40519 2006-10-19 Bruno Haible <bruno@clisp.org>
40521 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40524 2006-10-19 Bruno Haible <bruno@clisp.org>
40526 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40529 2006-10-19 Bruno Haible <bruno@clisp.org>
40531 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40532 mountlist by default.
40534 2006-10-16 Bruno Haible <bruno@clisp.org>
40536 * lib/c-strstr.c: Include c-strstr.h.
40538 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40540 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40543 2006-10-18 Bruno Haible <bruno@clisp.org>
40545 * lib/lock.h [C++]: Wrap definitions in extern "C".
40547 2006-10-18 Bruno Haible <bruno@clisp.org>
40549 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40552 2006-10-18 Bruno Haible <bruno@clisp.org>
40554 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40556 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40558 * lib/xstrtol.h: Include gettext.h.
40559 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40560 Problem reported by Eric Blake.
40561 * modules/xstrtol (Depends-on): Add gettext-h.
40563 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40565 * lib/strftime.c (advance): New macro.
40566 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40567 incomplete type, so you can't add 0 to it. Problem and patch
40568 reported by Eelco Dolstra for dietlibc.
40570 2006-10-18 Jim Meyering <jim@meyering.net>
40572 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40573 type for a local, and rename it: s/up/user_proc/.
40575 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40577 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40578 READ_UTMP_USER_PROCESS.
40579 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40581 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40583 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40584 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40586 2006-10-17 Eric Blake <ebb9@byu.net>
40588 * lib/sigprocmask.c (sigprocmask): Fix typo.
40590 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40592 * modules/clean-temp (Makefile.am): Don't add to make output...
40593 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40596 2006-10-17 Bruno Haible <bruno@clisp.org>
40598 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40599 differently if DEFAULT_TEXT_DOMAIN is set.
40601 2006-10-16 Bruno Haible <bruno@clisp.org>
40603 * lib/clean-temp.c: Include fwriteerror.h.
40605 2006-10-16 Bruno Haible <bruno@clisp.org>
40607 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40609 2006-10-16 Bruno Haible <bruno@clisp.org>
40611 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40612 * lib/sigprocmask.h: Include <sys/types.h>.
40613 (sigset_t): Use the system's definition if present.
40615 2006-10-17 Eric Blake <ebb9@byu.net>
40617 * lib/xvasprintf.c (includes): Assume config.h.
40618 * lib/xasprintf.c (includes): Likewise.
40620 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40622 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40623 at least as wide as intmax_t.
40625 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40627 (Imported from Automake.)
40628 * build-aux/gnupload: Update to version 1.1 of directive file.
40630 2006-10-16 Eric Blake <ebb9@byu.net>
40632 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40633 match Automake 1.10a.
40635 2006-10-14 Bruno Haible <bruno@clisp.org>
40637 * modules/sigprocmask: New file.
40638 * lib/sigprocmask.h: New file.
40639 * lib/sigprocmask.c: New file.
40640 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40641 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40642 request sigprocmask.o.
40643 (gl_PREREQ_SIGPROCMASK): New macro.
40644 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40645 (Depends-on): Add sigprocmask.
40646 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40647 gt_SIGNALBLOCKING. Test for 'raise' only once.
40648 * lib/fatal-signal.c: Include sigprocmask.h.
40649 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40650 unblock_fatal_signals): Define always.
40651 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40654 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40656 Sync from Automake.
40657 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40658 which incorrectly sets the mode of an existing destination
40659 directory. In some cases the unpatched install-sh could do the
40660 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40661 system. We hope this is rare in practice, but it's clearly worth
40662 fixing. Problem reported by Alex Unleashed in
40663 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40664 Also, don't bother to check for -m bugs unless we're using -m;
40665 suggested by Stepan Kasal.
40667 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40669 Sync from Automake.
40670 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40671 `-c' flag, so they appear at the same position as in %FASTDEP%
40672 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40673 which ignores unknown options only after the first non-option.
40674 Bug report against M4 by Nelson H. F. Beebe.
40676 2006-10-13 Jim Meyering <jim@meyering.net>
40678 Fix a bug in yesterday's change.
40679 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40680 p->fts_statp->st_dev would be used uninitialized.
40681 Ensures that we always call fts_stat on the very first entry.
40682 Miklos Szeredi reported that find -xdev stopped working.
40684 2006-10-12 Bruno Haible <bruno@clisp.org>
40686 * gnulib-tool (func_get_automake_snippet): Append an automatically
40687 computed EXTRA_DIST augmentation.
40688 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40689 * modules/alloca-opt (Makefile.am): Likewise.
40690 * modules/allocsa (Makefile.am): Likewise.
40691 * modules/arcfour (Makefile.am): Likewise.
40692 * modules/arctwo (Makefile.am): Likewise.
40693 * modules/argmatch (Makefile.am): Likewise.
40694 * modules/argz (Makefile.am): Likewise.
40695 * modules/atexit (Makefile.am): Likewise.
40696 * modules/backupfile (Makefile.am): Likewise.
40697 * modules/byteswap (Makefile.am): Likewise.
40698 * modules/c-strtod (Makefile.am): Likewise.
40699 * modules/c-strtold (Makefile.am): Likewise.
40700 * modules/calloc (Makefile.am): Likewise.
40701 * modules/canon-host (Makefile.am): Likewise.
40702 * modules/canonicalize (Makefile.am): Likewise.
40703 * modules/chdir-long (Makefile.am): Likewise.
40704 * modules/chdir-safer (Makefile.am): Likewise.
40705 * modules/check-version (Makefile.am): Likewise.
40706 * modules/chown (Makefile.am): Likewise.
40707 * modules/cloexec (Makefile.am): Likewise.
40708 * modules/close-stream (Makefile.am): Likewise.
40709 * modules/closeout (Makefile.am): Likewise.
40710 * modules/crc (Makefile.am): Likewise.
40711 * modules/csharpexec (Makefile.am): Likewise.
40712 * modules/cycle-check (Makefile.am): Likewise.
40713 * modules/des (Makefile.am): Likewise.
40714 * modules/dev-ino (Makefile.am): Likewise.
40715 * modules/dirfd (Makefile.am): Likewise.
40716 * modules/dirname (Makefile.am): Likewise.
40717 * modules/dup2 (Makefile.am): Likewise.
40718 * modules/eealloc (Makefile.am): Likewise.
40719 * modules/error (Makefile.am): Likewise.
40720 * modules/euidaccess (Makefile.am): Likewise.
40721 * modules/exclude (Makefile.am): Likewise.
40722 * modules/exitfail (Makefile.am): Likewise.
40723 * modules/fcntl-safer (Makefile.am): Likewise.
40724 * modules/fcntl (Makefile.am): Likewise.
40725 * modules/file-type (Makefile.am): Likewise.
40726 * modules/fileblocks (Makefile.am): Likewise.
40727 * modules/filemode (Makefile.am): Likewise.
40728 * modules/filenamecat (Makefile.am): Likewise.
40729 * modules/fnmatch (Makefile.am): Likewise.
40730 * modules/fopen-safer (Makefile.am): Likewise.
40731 * modules/fpending (Makefile.am): Likewise.
40732 * modules/fprintftime (Makefile.am): Likewise.
40733 * modules/free (Makefile.am): Likewise.
40734 * modules/fsusage (Makefile.am): Likewise.
40735 * modules/ftruncate (Makefile.am): Likewise.
40736 * modules/fts (Makefile.am): Likewise.
40737 * modules/gc-arcfour (Makefile.am): Likewise.
40738 * modules/gc-des (Makefile.am): Likewise.
40739 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40740 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40741 * modules/gc-md4 (Makefile.am): Likewise.
40742 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40743 * modules/gc-sha1 (Makefile.am): Likewise.
40744 * modules/gc (Makefile.am): Likewise.
40745 * modules/getaddrinfo (Makefile.am): Likewise.
40746 * modules/getcwd (Makefile.am): Likewise.
40747 * modules/getdelim (Makefile.am): Likewise.
40748 * modules/getdomainname (Makefile.am): Likewise.
40749 * modules/getgroups (Makefile.am): Likewise.
40750 * modules/gethostname (Makefile.am): Likewise.
40751 * modules/gethrxtime (Makefile.am): Likewise.
40752 * modules/getline (Makefile.am): Likewise.
40753 * modules/getloadavg (Makefile.am): Likewise.
40754 * modules/getlogin_r (Makefile.am): Likewise.
40755 * modules/getndelim2 (Makefile.am): Likewise.
40756 * modules/getopt (Makefile.am): Likewise.
40757 * modules/getpagesize (Makefile.am): Likewise.
40758 * modules/getpass-gnu (Makefile.am): Likewise.
40759 * modules/getpass (Makefile.am): Likewise.
40760 * modules/getsubopt (Makefile.am): Likewise.
40761 * modules/gettime (Makefile.am): Likewise.
40762 * modules/gettimeofday (Makefile.am): Likewise.
40763 * modules/getugroups (Makefile.am): Likewise.
40764 * modules/getusershell (Makefile.am): Likewise.
40765 * modules/glob (Makefile.am): Likewise.
40766 * modules/group-member (Makefile.am): Likewise.
40767 * modules/hard-locale (Makefile.am): Likewise.
40768 * modules/hash (Makefile.am): Likewise.
40769 * modules/hmac-md5 (Makefile.am): Likewise.
40770 * modules/hmac-sha1 (Makefile.am): Likewise.
40771 * modules/human (Makefile.am): Likewise.
40772 * modules/idcache (Makefile.am): Likewise.
40773 * modules/imaxabs (Makefile.am): Likewise.
40774 * modules/imaxdiv (Makefile.am): Likewise.
40775 * modules/inet_ntop (Makefile.am): Likewise.
40776 * modules/inet_pton (Makefile.am): Likewise.
40777 * modules/intprops (Makefile.am): Likewise.
40778 * modules/inttostr (Makefile.am): Likewise.
40779 * modules/inttypes (Makefile.am): Likewise.
40780 * modules/isapipe (Makefile.am): Likewise.
40781 * modules/javaversion (Makefile.am): Likewise.
40782 * modules/lchmod (Makefile.am): Likewise.
40783 * modules/lchown (Makefile.am): Likewise.
40784 * modules/localcharset (Makefile.am): Likewise.
40785 * modules/long-options (Makefile.am): Likewise.
40786 * modules/lstat (Makefile.am): Likewise.
40787 * modules/malloc (Makefile.am): Likewise.
40788 * modules/mathl (Makefile.am): Likewise.
40789 * modules/mbchar (Makefile.am): Likewise.
40790 * modules/md2 (Makefile.am): Likewise.
40791 * modules/md4 (Makefile.am): Likewise.
40792 * modules/md5 (Makefile.am): Likewise.
40793 * modules/memcasecmp (Makefile.am): Likewise.
40794 * modules/memchr (Makefile.am): Likewise.
40795 * modules/memcmp (Makefile.am): Likewise.
40796 * modules/memcoll (Makefile.am): Likewise.
40797 * modules/memcpy (Makefile.am): Likewise.
40798 * modules/memmem (Makefile.am): Likewise.
40799 * modules/memmove (Makefile.am): Likewise.
40800 * modules/mempcpy (Makefile.am): Likewise.
40801 * modules/memrchr (Makefile.am): Likewise.
40802 * modules/memset (Makefile.am): Likewise.
40803 * modules/memxor (Makefile.am): Likewise.
40804 * modules/mkancesdirs (Makefile.am): Likewise.
40805 * modules/mkdir-p (Makefile.am): Likewise.
40806 * modules/mkdir (Makefile.am): Likewise.
40807 * modules/mkdtemp (Makefile.am): Likewise.
40808 * modules/mkstemp (Makefile.am): Likewise.
40809 * modules/mktime (Makefile.am): Likewise.
40810 * modules/modechange (Makefile.am): Likewise.
40811 * modules/mountlist (Makefile.am): Likewise.
40812 * modules/nanosleep (Makefile.am): Likewise.
40813 * modules/obstack (Makefile.am): Likewise.
40814 * modules/openat (Makefile.am): Likewise.
40815 * modules/pagealign_alloc (Makefile.am): Likewise.
40816 * modules/pathmax (Makefile.am): Likewise.
40817 * modules/physmem (Makefile.am): Likewise.
40818 * modules/poll (Makefile.am): Likewise.
40819 * modules/posixtm (Makefile.am): Likewise.
40820 * modules/posixver (Makefile.am): Likewise.
40821 * modules/putenv (Makefile.am): Likewise.
40822 * modules/quote (Makefile.am): Likewise.
40823 * modules/quotearg (Makefile.am): Likewise.
40824 * modules/raise (Makefile.am): Likewise.
40825 * modules/read-file (Makefile.am): Likewise.
40826 * modules/readline (Makefile.am): Likewise.
40827 * modules/readlink (Makefile.am): Likewise.
40828 * modules/readtokens (Makefile.am): Likewise.
40829 * modules/readutmp (Makefile.am): Likewise.
40830 * modules/realloc (Makefile.am): Likewise.
40831 * modules/regex (Makefile.am): Likewise.
40832 * modules/rename-dest-slash (Makefile.am): Likewise.
40833 * modules/rename (Makefile.am): Likewise.
40834 * modules/rijndael (Makefile.am): Likewise.
40835 * modules/rmdir (Makefile.am): Likewise.
40836 * modules/rpmatch (Makefile.am): Likewise.
40837 * modules/safe-read (Makefile.am): Likewise.
40838 * modules/safe-write (Makefile.am): Likewise.
40839 * modules/same-inode (Makefile.am): Likewise.
40840 * modules/same (Makefile.am): Likewise.
40841 * modules/save-cwd (Makefile.am): Likewise.
40842 * modules/savedir (Makefile.am): Likewise.
40843 * modules/setenv (Makefile.am): Likewise.
40844 * modules/settime (Makefile.am): Likewise.
40845 * modules/sha1 (Makefile.am): Likewise.
40846 * modules/sig2str (Makefile.am): Likewise.
40847 * modules/snprintf (Makefile.am): Likewise.
40848 * modules/stat-macros (Makefile.am): Likewise.
40849 * modules/stat-time (Makefile.am): Likewise.
40850 * modules/stdbool (Makefile.am): Likewise.
40851 * modules/stdint (Makefile.am): Likewise.
40852 * modules/stdlib-safer (Makefile.am): Likewise.
40853 * modules/stpcpy (Makefile.am): Likewise.
40854 * modules/stpncpy (Makefile.am): Likewise.
40855 * modules/strcase (Makefile.am): Likewise.
40856 * modules/strcasestr (Makefile.am): Likewise.
40857 * modules/strchrnul (Makefile.am): Likewise.
40858 * modules/strcspn (Makefile.am): Likewise.
40859 * modules/strdup (Makefile.am): Likewise.
40860 * modules/strerror (Makefile.am): Likewise.
40861 * modules/strftime (Makefile.am): Likewise.
40862 * modules/strndup (Makefile.am): Likewise.
40863 * modules/strnlen (Makefile.am): Likewise.
40864 * modules/strpbrk (Makefile.am): Likewise.
40865 * modules/strsep (Makefile.am): Likewise.
40866 * modules/strstr (Makefile.am): Likewise.
40867 * modules/strtod (Makefile.am): Likewise.
40868 * modules/strtoimax (Makefile.am): Likewise.
40869 * modules/strtok_r (Makefile.am): Likewise.
40870 * modules/strtol (Makefile.am): Likewise.
40871 * modules/strtoll (Makefile.am): Likewise.
40872 * modules/strtoul (Makefile.am): Likewise.
40873 * modules/strtoull (Makefile.am): Likewise.
40874 * modules/strtoumax (Makefile.am): Likewise.
40875 * modules/strverscmp (Makefile.am): Likewise.
40876 * modules/sys_socket (Makefile.am): Likewise.
40877 * modules/sys_stat (Makefile.am): Likewise.
40878 * modules/sysexits (Makefile.am): Likewise.
40879 * modules/time_r (Makefile.am): Likewise.
40880 * modules/timegm (Makefile.am): Likewise.
40881 * modules/timespec (Makefile.am): Likewise.
40882 * modules/tmpfile-safer (Makefile.am): Likewise.
40883 * modules/trim (Makefile.am): Likewise.
40884 * modules/unistd-safer (Makefile.am): Likewise.
40885 * modules/unlinkdir (Makefile.am): Likewise.
40886 * modules/unlocked-io (Makefile.am): Likewise.
40887 * modules/userspec (Makefile.am): Likewise.
40888 * modules/utime (Makefile.am): Likewise.
40889 * modules/utimecmp (Makefile.am): Likewise.
40890 * modules/utimens (Makefile.am): Likewise.
40891 * modules/vasnprintf (Makefile.am): Likewise.
40892 * modules/vasprintf (Makefile.am): Likewise.
40893 * modules/vsnprintf (Makefile.am): Likewise.
40894 * modules/xalloc (Makefile.am): Likewise.
40895 * modules/xgetcwd (Makefile.am): Likewise.
40896 * modules/xnanosleep (Makefile.am): Likewise.
40897 * modules/xreadlink (Makefile.am): Likewise.
40898 * modules/xstrtod (Makefile.am): Likewise.
40899 * modules/xstrtol (Makefile.am): Likewise.
40900 * modules/xstrtold (Makefile.am): Likewise.
40901 * modules/yesno (Makefile.am): Likewise.
40902 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40904 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40906 * modules/error (Makefile.am): Distribute files through
40907 EXTRA_DIST, not lib_SOURCES.
40909 2006-10-12 Eric Blake <ebb9@byu.net>
40911 * modules/error (Makefile.am): Distribute files in /lib.
40912 * modules/obstack (Makefile.am): Likewise.
40914 2006-10-12 Bruno Haible <bruno@clisp.org>
40916 * modules/acl (Makefile.am): Distribute all files in lib/ through
40918 * modules/arcfour (Makefile.am): Likewise.
40919 * modules/arctwo (Makefile.am): Likewise.
40920 * modules/argmatch (Makefile.am): Likewise.
40921 * modules/argz (Makefile.am): Likewise.
40922 * modules/atexit (Makefile.am): Likewise.
40923 * modules/backupfile (Makefile.am): Likewise.
40924 * modules/c-strtod (Makefile.am): Likewise.
40925 * modules/c-strtold (Makefile.am): Likewise.
40926 * modules/calloc (Makefile.am): Likewise.
40927 * modules/canon-host (Makefile.am): Likewise.
40928 * modules/canonicalize (Makefile.am): Likewise.
40929 * modules/chdir-long (Makefile.am): Likewise.
40930 * modules/chdir-safer (Makefile.am): Likewise.
40931 * modules/check-version (Makefile.am): Likewise.
40932 * modules/chown (Makefile.am): Likewise.
40933 * modules/cloexec (Makefile.am): Likewise.
40934 * modules/close-stream (Makefile.am): Likewise.
40935 * modules/closeout (Makefile.am): Likewise.
40936 * modules/crc (Makefile.am): Likewise.
40937 * modules/cycle-check (Makefile.am): Likewise.
40938 * modules/des (Makefile.am): Likewise.
40939 * modules/dirfd (Makefile.am): Likewise.
40940 * modules/dirname (Makefile.am): Likewise.
40941 * modules/dup2 (Makefile.am): Likewise.
40942 * modules/euidaccess (Makefile.am): Likewise.
40943 * modules/exclude (Makefile.am): Likewise.
40944 * modules/exitfail (Makefile.am): Likewise.
40945 * modules/fcntl-safer (Makefile.am): Likewise.
40946 * modules/file-type (Makefile.am): Likewise.
40947 * modules/fileblocks (Makefile.am): Likewise.
40948 * modules/filemode (Makefile.am): Likewise.
40949 * modules/filenamecat (Makefile.am): Likewise.
40950 * modules/fnmatch (Makefile.am): Likewise.
40951 * modules/fopen-safer (Makefile.am): Likewise.
40952 * modules/fpending (Makefile.am): Likewise.
40953 * modules/fprintftime (Makefile.am): Likewise.
40954 * modules/free (Makefile.am): Likewise.
40955 * modules/fsusage (Makefile.am): Likewise.
40956 * modules/ftruncate (Makefile.am): Likewise.
40957 * modules/fts (Makefile.am): Likewise.
40958 * modules/gc (Makefile.am): Likewise.
40959 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40960 * modules/getaddrinfo (Makefile.am): Likewise.
40961 * modules/getcwd (Makefile.am): Likewise.
40962 * modules/getdelim (Makefile.am): Likewise.
40963 * modules/getdomainname (Makefile.am): Likewise.
40964 * modules/getgroups (Makefile.am): Likewise.
40965 * modules/gethostname (Makefile.am): Likewise.
40966 * modules/gethrxtime (Makefile.am): Likewise.
40967 * modules/getline (Makefile.am): Likewise.
40968 * modules/getloadavg (Makefile.am): Likewise.
40969 * modules/getlogin_r (Makefile.am): Likewise.
40970 * modules/getopt (Makefile.am): Likewise.
40971 * modules/getpass (Makefile.am): Likewise.
40972 * modules/getpass-gnu (Makefile.am): Likewise.
40973 * modules/getsubopt (Makefile.am): Likewise.
40974 * modules/gettime (Makefile.am): Likewise.
40975 * modules/gettimeofday (Makefile.am): Likewise.
40976 * modules/getugroups (Makefile.am): Likewise.
40977 * modules/getusershell (Makefile.am): Likewise.
40978 * modules/glob (Makefile.am): Likewise.
40979 * modules/group-member (Makefile.am): Likewise.
40980 * modules/hard-locale (Makefile.am): Likewise.
40981 * modules/hash (Makefile.am): Likewise.
40982 * modules/hmac-md5 (Makefile.am): Likewise.
40983 * modules/hmac-sha1 (Makefile.am): Likewise.
40984 * modules/human (Makefile.am): Likewise.
40985 * modules/idcache (Makefile.am): Likewise.
40986 * modules/imaxabs (Makefile.am): Likewise.
40987 * modules/imaxdiv (Makefile.am): Likewise.
40988 * modules/inet_ntop (Makefile.am): Likewise.
40989 * modules/inet_pton (Makefile.am): Likewise.
40990 * modules/inttostr (Makefile.am): Likewise.
40991 * modules/isapipe (Makefile.am): Likewise.
40992 * modules/lchown (Makefile.am): Likewise.
40993 * modules/long-options (Makefile.am): Likewise.
40994 * modules/lstat (Makefile.am): Likewise.
40995 * modules/malloc (Makefile.am): Likewise.
40996 * modules/mathl (Makefile.am): Likewise.
40997 * modules/mbchar (Makefile.am): Likewise.
40998 * modules/md2 (Makefile.am): Likewise.
40999 * modules/md4 (Makefile.am): Likewise.
41000 * modules/md5 (Makefile.am): Likewise.
41001 * modules/memcasecmp (Makefile.am): Likewise.
41002 * modules/memchr (Makefile.am): Likewise.
41003 * modules/memcmp (Makefile.am): Likewise.
41004 * modules/memcoll (Makefile.am): Likewise.
41005 * modules/memcpy (Makefile.am): Likewise.
41006 * modules/memmem (Makefile.am): Likewise.
41007 * modules/memmove (Makefile.am): Likewise.
41008 * modules/mempcpy (Makefile.am): Likewise.
41009 * modules/memrchr (Makefile.am): Likewise.
41010 * modules/memset (Makefile.am): Likewise.
41011 * modules/memxor (Makefile.am): Likewise.
41012 * modules/mkancesdirs (Makefile.am): Likewise.
41013 * modules/mkdir (Makefile.am): Likewise.
41014 * modules/mkdir-p (Makefile.am): Likewise.
41015 * modules/mkdtemp (Makefile.am): Likewise.
41016 * modules/mkstemp (Makefile.am): Likewise.
41017 * modules/mktime (Makefile.am): Likewise.
41018 * modules/modechange (Makefile.am): Likewise.
41019 * modules/mountlist (Makefile.am): Likewise.
41020 * modules/nanosleep (Makefile.am): Likewise.
41021 * modules/openat (Makefile.am): Likewise.
41022 * modules/pagealign_alloc (Makefile.am): Likewise.
41023 * modules/physmem (Makefile.am): Likewise.
41024 * modules/poll (Makefile.am): Likewise.
41025 * modules/posixtm (Makefile.am): Likewise.
41026 * modules/posixver (Makefile.am): Likewise.
41027 * modules/putenv (Makefile.am): Likewise.
41028 * modules/quote (Makefile.am): Likewise.
41029 * modules/quotearg (Makefile.am): Likewise.
41030 * modules/raise (Makefile.am): Likewise.
41031 * modules/read-file (Makefile.am): Likewise.
41032 * modules/readline (Makefile.am): Likewise.
41033 * modules/readlink (Makefile.am): Likewise.
41034 * modules/readtokens (Makefile.am): Likewise.
41035 * modules/readutmp (Makefile.am): Likewise.
41036 * modules/realloc (Makefile.am): Likewise.
41037 * modules/regex (Makefile.am): Likewise.
41038 * modules/rename (Makefile.am): Likewise.
41039 * modules/rename-dest-slash (Makefile.am): Likewise.
41040 * modules/rijndael (Makefile.am): Likewise.
41041 * modules/rmdir (Makefile.am): Likewise.
41042 * modules/rpmatch (Makefile.am): Likewise.
41043 * modules/safe-read (Makefile.am): Likewise.
41044 * modules/safe-write (Makefile.am): Likewise.
41045 * modules/same (Makefile.am): Likewise.
41046 * modules/save-cwd (Makefile.am): Likewise.
41047 * modules/savedir (Makefile.am): Likewise.
41048 * modules/setenv (Makefile.am): Likewise.
41049 * modules/settime (Makefile.am): Likewise.
41050 * modules/sha1 (Makefile.am): Likewise.
41051 * modules/sig2str (Makefile.am): Likewise.
41052 * modules/snprintf (Makefile.am): Likewise.
41053 * modules/stdlib-safer (Makefile.am): Likewise.
41054 * modules/stpcpy (Makefile.am): Likewise.
41055 * modules/stpncpy (Makefile.am): Likewise.
41056 * modules/strcase (Makefile.am): Likewise.
41057 * modules/strcasestr (Makefile.am): Likewise.
41058 * modules/strchrnul (Makefile.am): Likewise.
41059 * modules/strcspn (Makefile.am): Likewise.
41060 * modules/strdup (Makefile.am): Likewise.
41061 * modules/strerror (Makefile.am): Likewise.
41062 * modules/strftime (Makefile.am): Likewise.
41063 * modules/strndup (Makefile.am): Likewise.
41064 * modules/strnlen (Makefile.am): Likewise.
41065 * modules/strpbrk (Makefile.am): Likewise.
41066 * modules/strsep (Makefile.am): Likewise.
41067 * modules/strstr (Makefile.am): Likewise.
41068 * modules/strtod (Makefile.am): Likewise.
41069 * modules/strtoimax (Makefile.am): Likewise.
41070 * modules/strtok_r (Makefile.am): Likewise.
41071 * modules/strtol (Makefile.am): Likewise.
41072 * modules/strtoll (Makefile.am): Likewise.
41073 * modules/strtoul (Makefile.am): Likewise.
41074 * modules/strtoull (Makefile.am): Likewise.
41075 * modules/strtoumax (Makefile.am): Likewise.
41076 * modules/strverscmp (Makefile.am): Likewise.
41077 * modules/time_r (Makefile.am): Likewise.
41078 * modules/timegm (Makefile.am): Likewise.
41079 * modules/tmpfile-safer (Makefile.am): Likewise.
41080 * modules/unistd-safer (Makefile.am): Likewise.
41081 * modules/unlinkdir (Makefile.am): Likewise.
41082 * modules/userspec (Makefile.am): Likewise.
41083 * modules/utime (Makefile.am): Likewise.
41084 * modules/utimecmp (Makefile.am): Likewise.
41085 * modules/utimens (Makefile.am): Likewise.
41086 * modules/vasnprintf (Makefile.am): Likewise.
41087 * modules/vasprintf (Makefile.am): Likewise.
41088 * modules/vsnprintf (Makefile.am): Likewise.
41089 * modules/xalloc (Makefile.am): Likewise.
41090 * modules/xgetcwd (Makefile.am): Likewise.
41091 * modules/xnanosleep (Makefile.am): Likewise.
41092 * modules/xreadlink (Makefile.am): Likewise.
41093 * modules/xstrtod (Makefile.am): Likewise.
41094 * modules/xstrtol (Makefile.am): Likewise.
41095 * modules/xstrtold (Makefile.am): Likewise.
41096 * modules/yesno (Makefile.am): Likewise.
41098 2006-10-12 Jim Meyering <jim@meyering.net>
41100 * m4/getloadavg.m4: Revert the change below.
41102 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41103 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41104 fail with a symlink, which is what coreutils' ./bootstrap now
41105 creates by default.
41107 2006-10-12 Bruno Haible <bruno@clisp.org>
41109 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41111 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41112 MSVC and mingw explicitly.
41114 2006-10-11 Simon Josefsson <jas@extundo.com>
41115 Bruno Haible <bruno@clisp.org>
41117 Add support for multiple gnulib-tool invocations in the scope of a
41118 single configure.ac file.
41119 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41120 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41121 with the same contents as the _LIBADD variable.
41122 (func_emit_initmacro_start, func_emit_initmacro_end,
41123 func_emit_initmacro_done): New functions.
41124 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41125 gl_LIBOBJS and gl_LTLIBOBJS.
41127 2006-10-11 Bruno Haible <bruno@clisp.org>
41129 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41130 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41131 autoreconf. Instead, invoke autopoint explicitly but move back the
41132 *.m4 files from gnulib.
41134 2006-10-11 Bruno Haible <bruno@clisp.org>
41136 * gnulib-tool (func_usage): Make module names after --create-testdir
41138 (func_create_testdir): If no module was specified, use nearly all
41141 2006-10-12 Jim Meyering <jim@meyering.net>
41143 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41144 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41145 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41146 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41147 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41148 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41149 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41150 (fts_set_stat_required): New function.
41151 (fts_open): Defer the calls to fts_stat, if possible or requested.
41152 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41153 into fts_stat itself.
41154 (fts_read): Perform any required (deferred) fts_stat call.
41155 (fts_build): Likewise, for the directory we're about to open and read.
41156 In the readdir loop, carefully decide whether each entry will require
41157 an eventual call to fts_stat, using dirent.d_type info if available.
41158 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41159 a command line argument into this function. Update all callers.
41160 Map a return value of FTS_DOT to FTS_D for a command line argument.
41161 * modules/fts (Depends-on): Add d-type. Alphabetize.
41162 Thanks to Miklos Szeredi for his tenacity and for the initial
41163 bug report about "find" failing on a FUSE-based file system.
41165 * lib/fts.c (fts_open): Use consistent indentation.
41167 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41169 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41170 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41171 reported by Jim Meyering. All uses of cache variables renamed
41172 to match Autoconf's.
41173 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41176 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41177 Fix misspelling in diagnostic.
41179 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41181 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41182 defined. Problem reported by Matthew Woehlke.
41184 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41185 Add support for Tandem NonStop R series.
41186 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41189 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41190 (has_trailing_slash): Omit size arg; all callers changed.
41191 Omit 'inline', since it doesn't help performance and we'd
41192 need to configure it.
41193 Don't count //, ///, etc. as having a trailing slash.
41194 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41195 (rpl_rename_dest_slash): On failure, use rename's errno rather
41196 than (in some cases) an incorrect or junk errno.
41197 Simplify code by removing need to compute length; this does
41198 cause it to make two passes instead of one over the file name,
41201 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41202 change, since Autoconf's version may no longer be appropriate now
41203 that we are using CVS Autoconf's version. Add support for Tandem.
41205 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41206 Bruno Haible <bruno@clisp.org>
41208 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41209 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41210 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41211 gl_AC_TYPE_LONG_LONG.
41213 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41214 instead of HAVE_LONG_LONG.
41215 * lib/printf-args.c (printf_fetchargs): Likewise.
41216 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41217 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41218 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41219 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41220 gl_AC_TYPE_LONG_LONG.
41222 2006-10-11 Bruno Haible <bruno@clisp.org>
41224 * m4/longlong.m4: Add comments.
41225 * m4/ulonglong.m4: Likewise.
41227 2006-10-10 Bruno Haible <bruno@clisp.org>
41229 Make it possible to #define stpcpy, strdup to aliases.
41230 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41231 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41233 2006-10-10 Bruno Haible <bruno@clisp.org>
41235 Make it possible to #define gcd to an alias.
41236 * lib/gcd.c: Include config.h.
41238 2006-10-10 Bruno Haible <bruno@clisp.org>
41240 Make it possible to #define c_isascii to an alias.
41241 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41242 defined. Undefine the macros before defining them, to avoid gcc
41244 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41245 define NO_C_CTYPE_MACROS early.
41247 2006-10-10 Bruno Haible <bruno@clisp.org>
41249 Make it possible to #define set_program_name to an alias.
41250 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41251 ENABLE_RELOCATABLE early.
41253 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41255 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41256 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41257 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41258 More generally, don't assume that 64-bit signed int is available
41259 if unsigned int is, and vice versa.
41260 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41261 unsigned symbols, not on their signed counterparts.
41262 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41263 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41264 (UINT64_C, UINTMAX_C):
41266 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41267 unsigned counterparts.
41268 (Have_long_long, Unsigned): New macros.
41269 (Int): Renamed from INT.
41270 (strtoimax): Use the new macros.
41271 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41272 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41273 * modules/inttypes (inttypes.h): Substitute
41274 HAVE_UNSIGNED_LONG_LONG_INT.
41275 * modules/stdint (stdint.h): Likewise.
41276 (Files): Add m4/ulonglong.m4.
41278 2006-10-10 Bruno Haible <bruno@clisp.org>
41280 Fix a gcc -Wshadow warning.
41281 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41283 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41284 gl_linked_indexof_from_to): Likewise.
41285 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41287 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41289 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41290 Reported by Eric Blake.
41292 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41294 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41295 for NetBSD. Problem reported by Bruno Haible.
41297 2006-10-09 Jim Meyering <jim@meyering.net>
41299 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41300 Patch from Bruno Haible.
41302 2006-10-09 Jim Meyering <jim@meyering.net>
41304 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41305 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41306 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41308 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41310 Don't include <config.h> twice; this doesn't work in some cases,
41311 e.g., when config.h has "#define intmax_t long long int" and
41312 we include <config.h>, <inttypes.h>, <config.h> in that order.
41313 Problem reported by Matthew Woehlke in:
41314 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41315 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41316 * lib/fts-cycle.c: Don't include config.h.
41317 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41318 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41319 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41320 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41322 * lib/xstrtoumax.c: Likewise.
41323 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41324 __strtol and the like, so that this module is more like its siblings.
41325 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41326 Remove; no longer needed now that we assume gnulib inttypes.h.
41328 2006-10-08 Bruno Haible <bruno@clisp.org>
41330 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41333 2006-10-07 Jim Meyering <jim@meyering.net>
41335 * modules/inttypes (inttypes.h): Revert what seems to have been
41336 an inadvertent part of today's change: use "|", not "/" in the
41337 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41339 2006-10-07 Bruno Haible <bruno@clisp.org>
41341 * modules/sublist: New file.
41343 2006-10-07 Bruno Haible <bruno@clisp.org>
41345 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41346 * modules/argz (argz.h): Likewise.
41347 * modules/arpa_inet (arpa/inet.h): Likewise.
41348 * modules/byteswap (byteswap.h): Likewise.
41349 * modules/configmake (configmake.h): Likewise.
41350 * modules/fcntl (fcntl.h): Likewise.
41351 * modules/fnmatch (fnmatch.h): Likewise.
41352 * modules/getopt (getopt.h): Likewise.
41353 * modules/glob (glob.h): Likewise.
41354 * modules/inttypes (inttypes.h): Likewise.
41355 * modules/netinet_in (netinet/in.h): Likewise.
41356 * modules/poll (poll.h): Likewise.
41357 * modules/stdbool (stdbool.h): Likewise.
41358 * modules/stdint (stdint.h): Likewise.
41359 * modules/sys_select (sys/select.h): Likewise.
41360 * modules/sys_socket (sys/socket.h): Likewise.
41361 * modules/sys_stat (sys/stat.h): Likewise.
41362 * modules/sysexits (sysexits.h): Likewise.
41363 * modules/unistd (unistd.h): Likewise.
41364 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41365 Add a "DO NOT EDIT" comment to the generated file.
41366 (func_import): Likewise for gnulib-comp.m4.
41368 2006-10-07 Bruno Haible <bruno@clisp.org>
41370 * lib/gl_sublist.h: New file.
41371 * lib/gl_sublist.c: New file.
41373 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41375 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41376 name (relative to the original working directory) and the file
41377 name component (relative to the temporary working directory). All
41379 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41380 * lib/mkdir-p.c (make_dir_parents): Likewise.
41381 * lib/mkdir-p.h (make_dir_parents): Likewise.
41383 2006-10-06 Eric Blake <ebb9@byu.net>
41385 Define several macros for use by the clean-temp module.
41386 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41387 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41388 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41390 * lib/clean-temp.h (close_stream_temp): New declaration.
41391 * lib/clean-temp.c (includes): Pull in headers according to what
41392 other modules are in use.
41393 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41395 2006-10-06 Bruno Haible <bruno@clisp.org>
41397 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41398 instead of fopen, fwriteerror.
41400 2006-10-06 Bruno Haible <bruno@clisp.org>
41402 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41403 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41405 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41406 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41407 Return an error indicator.
41408 Suggested by Eric Blake.
41410 2006-10-06 Bruno Haible <bruno@clisp.org>
41412 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41413 Reported by Eric Blake.
41415 2006-10-06 Bruno Haible <bruno@clisp.org>
41417 * modules/closeout (Description): Mention stderr too.
41419 2006-10-06 Bruno Haible <bruno@clisp.org>
41420 and Paul Eggert <eggert@cs.ucla.edu>
41422 * lib/closeout.c (close_stdout): Also close stderr.
41423 * lib/closeout.h: Update comment.
41425 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41427 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41428 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41429 * lib/dirchownmod.c: Include lchown.h.
41430 * lib/lchown.c: Don't include files that lchown.h now includes.
41431 Don't declare chown, since lchown.h now does that.
41432 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41433 (lchown): Define to rpl_chown if lchown is declared but
41434 does not exist. Declare using a prototype if lchown is not
41435 declared. Add a copyright notice.
41436 * lib/mkstemp.h: Include <unistd.h>.
41437 * lib/openat.c: Include lchown.h.
41439 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41440 we now test for that separately.
41441 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41442 rather than O_NOFOLLOW, when testing whether it's possible to
41443 avoid a race condition reliably.
41444 * lib/savewd.c (savewd_chdir): Likewise.
41446 Remove macros that are no longer needed now that stdint.h is
41448 * lib/fsusage.c (UINTMAX_MAX): Remove.
41449 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41450 * lib/utimecmp.c (SIZE_MAX): Remove.
41452 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41454 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41455 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41458 2006-10-05 Bruno Haible <bruno@clisp.org>
41460 * lib/gl_list.h (gl_sortedlist_search_from_to,
41461 gl_sortedlist_indexof_from_to): New declarations.
41462 (gl_list_implementation): New fields sortedlist_search_from_to,
41463 sortedlist_indexof_from_to.
41464 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41466 * lib/gl_list.c (gl_sortedlist_search_from_to,
41467 gl_sortedlist_indexof_from_to): New functions.
41468 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41470 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41471 (gl_array_sortedlist_search_from_to): New function.
41472 (gl_array_list_implementation): Update.
41473 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41475 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41476 (gl_carray_sortedlist_search_from_to): New function.
41477 (gl_carray_list_implementation): Update.
41478 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41479 gl_linked_sortedlist_indexof_from_to): New functions.
41480 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41481 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41482 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41483 gl_tree_sortedlist_indexof_from_to): New functions.
41484 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41485 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41487 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41488 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41491 2006-10-05 Bruno Haible <bruno@clisp.org>
41493 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41494 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41495 (struct gl_list_implementation): Add fields search_from_to,
41496 indexof_from_to. Remove fields search, indexof.
41497 (gl_list_search): Use the search_from_to method.
41498 (gl_list_search_from, gl_list_search_from_to): New functions.
41499 (gl_list_indexof): Use the indexof_from_to method.
41500 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41501 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41502 (gl_list_search_from, gl_list_search_from_to): New functions.
41503 (gl_list_indexof): Use the indexof_from_to method.
41504 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41505 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41506 gl_array_indexof. Add start_index, end_index arguments.
41507 (gl_array_search_from_to): Renamed from gl_array_search. Add
41508 start_index, end_index arguments.
41509 (gl_array_remove, gl_array_list_implementation): Update.
41510 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41511 gl_carray_indexof. Add start_index, end_index arguments.
41512 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41513 start_index, end_index arguments.
41514 (gl_carray_remove, gl_carray_list_implementation): Update.
41515 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41516 gl_linked_search. Add start_index, end_index arguments.
41517 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41518 start_index, end_index arguments.
41519 (gl_linked_remove): Update.
41520 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41521 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41522 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41524 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41525 gl_tree_search. Add start_index, end_index arguments.
41526 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41527 start_index, end_index arguments.
41528 (gl_tree_remove): Update.
41529 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41530 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41531 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41533 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41534 gl_tree_search. Add start_index, end_index arguments.
41535 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41536 start_index, end_index arguments.
41537 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41539 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41541 2006-10-05 Bruno Haible <bruno@clisp.org>
41543 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41545 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41546 fwriteerror_temp): New declarations.
41547 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41548 (descriptors): New variable.
41549 (cleanup): First, close the descriptors.
41550 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41551 fclose_temp, fwriteerror_temp): New functions.
41553 2006-10-04 Jim Meyering <jim@meyering.net>
41555 * lib/fts.c (fts_open): Tiny comment change.
41557 2006-10-04 Bruno Haible <bruno@clisp.org>
41559 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41560 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41562 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41563 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41564 gl_LOCK_EARLY_BODY.
41565 (gl_LOCK): Require gl_LOCK_BODY.
41567 2006-10-04 Bruno Haible <bruno@clisp.org>
41569 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41570 (gl_oset_search_atleast): New declaration.
41571 (struct gl_oset_implementation): Add field 'search_atleast'.
41572 (gl_oset_search_atleast): New inline function.
41573 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41574 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41575 (gl_array_oset_implementation): Update.
41576 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41577 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41578 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41580 2006-10-04 Bruno Haible <bruno@clisp.org>
41582 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41584 2006-10-03 Bruno Haible <bruno@clisp.org>
41586 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41587 from gl_avltreehash_list_implementation.
41589 2006-10-03 Bruno Haible <bruno@clisp.org>
41591 * lib/gl_oset.c (gl_oset_add): Fix return type.
41593 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41595 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41597 2006-10-02 Eric Blake <ebb9@byu.net>
41599 * modules/strnlen (Depends-on): Add extensions.
41601 2006-10-02 Eric Blake <ebb9@byu.net>
41603 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41604 definition in 2.60+.
41606 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41608 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41611 2006-10-02 Bruno Haible <bruno@clisp.org>
41613 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41614 to the AUTOMAKE_OPTIONS.
41615 Reported by Jim Meyering.
41617 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41619 Work around bug in Solaris 10 /proc file system:
41620 /proc/self/fd/NNN/.. isn't the parent directory of
41621 the directory whose file descriptor is NNN. This needs to
41622 be worked around at run time, not compile time, since a
41623 program might be built on Solaris 8, where things work, and
41625 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41626 to use the following interface instead:
41627 (OPENAT_BUFFER_SIZE): New macro.
41628 (openat_proc_name): New function.
41629 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41630 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41632 * lib/openat-proc.c: New file.
41633 * modules/openat (Files): Add lib/openat-proc.c.
41634 (Depends-on): Add same-inode, stdbool.
41635 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41637 2006-09-29 Bruno Haible <bruno@clisp.org>
41639 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41640 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41641 argument. Set stdout_closed before testing for ferror, not after.
41642 (fwriteerror, fwriteerror_no_ebadf): New functions.
41644 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41646 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41648 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41650 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41651 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41653 2006-09-28 Jim Meyering <jim@meyering.net>
41655 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41656 Include <unistd.h>.
41658 2006-09-28 Bruno Haible <bruno@clisp.org>
41660 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41661 * modules/linkedhash-list (Depends-on): Likewise.
41662 * modules/rbtreehash-list (Depends-on): Likewise.
41664 2006-09-28 Bruno Haible <bruno@clisp.org>
41666 * lib/strndup.h: Simplify the redefinition of strndup.
41667 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41668 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41670 2006-09-28 Bruno Haible <bruno@clisp.org>
41672 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41673 * lib/gl_linkedhash_list.c: Likewise.
41674 * lib/gl_rbtreehash_list.c: Likewise.
41676 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41678 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41681 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41682 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41683 it causes <stdio_ext.h> to cause a compile-time error.
41684 Problem reported by Nelson H. F. Beebe.
41685 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41686 of HAVE_DECL___PENDING.
41688 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41689 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41692 2006-09-27 Jim Meyering <jim@meyering.net>
41694 This file could end up with a definition for a function
41695 named __strndup, rather than rpl_strndup on a system with
41696 incomplete weak_alias support.
41697 * lib/strndup.c (strndup): Rename from __strndup.
41698 Remove #defines that used to map __strndup to strndup.
41699 Don't use K&R prototypes.
41700 Remove LIBC-related code, since this file is not sync'd with glibc.
41701 * lib/strndup.h: Revamp, accordingly.
41702 * m4/strndup.m4: Modernize.
41704 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41706 * modules/savewd (Depends-on): Add 'raise'.
41707 * lib/savewd.c: Include <signal.h>, for 'raise'.
41709 2006-09-26 Jim Meyering <jim@meyering.net>
41711 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41712 when we detect Darwin 8.7.0's acl_get_file bug.
41713 Rearrange to perform the new (below) run-test while $LIBS
41714 contains any acl-related library. Set USE_ACL at the end.
41715 (gl_ACL_GET_FILE): New function.
41717 2006-09-26 Eric Blake <ebb9@byu.net>
41719 * lib/verror.c: Include <config.h> unconditionally.
41721 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41723 * modules/clock-time (Maintainer): Add self.
41724 * modules/getlogin_r (Depends-on): Add extensions.
41726 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41728 * modules/clock-time: New module.
41729 * modules/nanosleep (Depends-on): Add clock-time.
41730 * modules/gethrxtime (Depends-on): Likewise.
41731 * modules/gettime (Depends-on): Likewise.
41732 * modules/settime (Depends-on): Likewise.
41734 * modules/fts-lgpl: Depend on openat.
41735 * modules/mkancesdirs: Depend on savewd.
41736 * modules/mkdir-p: Likewise.
41738 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41740 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41742 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41743 `gl_have_arbitrary_file_name_length_limit' to
41744 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41745 actually works between configure runs.
41747 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41748 Bruno Haible <bruno@clisp.org>
41750 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41752 2006-09-25 Jim Meyering <jim@meyering.net>
41754 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41755 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41757 2006-09-25 Eric Blake <ebb9@byu.net>
41759 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41760 exec's in 2006-09-18 patch when shuffling fds.
41762 2006-09-25 Bruno Haible <bruno@clisp.org>
41764 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41765 Reported by Jim Meyering.
41767 2006-09-24 Jim Meyering <jim@meyering.net>
41769 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41770 compare a pointer against a literal "0". That caused failures with
41771 at least HP-UX's hpcc.
41773 2006-09-22 Simon Josefsson <jas@extundo.com>
41777 * modules/gc-hmac-sha1:
41778 * modules/gc-hmac-md5:
41780 * modules/gc-arcfour: Distribute more files.
41782 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41784 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41785 (gl_linked_iterator_from_to): Initialize struct completely.
41786 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41787 (gl_tree_iterator_from_to): Likewise
41788 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41789 * lib/gl_array_list.c [lint] (gl_array_iterator)
41790 (gl_array_iterator_from_to): Likewise.
41791 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41792 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41793 (gl_carray_iterator_from_to): Likewise.
41795 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41796 * lib/md4.c (md4_process_block): Remove unused variable.
41797 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41798 parentheses for clarity.
41800 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41802 * modules/bison-i18n (Depends-on): Add gettext.
41804 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41806 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41807 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41808 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41809 also add missing comma that caused broken test.
41810 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41811 stdlib.h, for `abort'.
41812 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41814 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41815 include unistd.h if present, for `rmdir'.
41816 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41818 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41819 in the process include standard headers for prototypes.
41820 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41821 gets declared on GNU/Linux.
41822 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41823 unistd.h, for `rmdir'.
41824 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41826 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41828 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41830 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41832 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41834 * gnulib-tool (func_version): Create output all at once. This
41835 may help avoid triggering unnecessary SIGPIPEs, and at any
41836 rate it doesn't hurt.
41838 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41839 Bruno Haible <bruno@clisp.org>
41841 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41842 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41843 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41845 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41846 (gl_FUNC_VASPRINTF): Invoke it.
41848 2006-09-22 Bruno Haible <bruno@clisp.org>
41850 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41851 getloadavg.c as first argument.
41853 2006-09-22 Bruno Haible <bruno@clisp.org>
41855 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41856 at the beginning of the gl_INIT macro.
41857 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41860 2006-09-22 Bruno Haible <bruno@clisp.org>
41862 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41864 Suggested by Ralf Wildenhues.
41866 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41868 Import this patch from libc:
41870 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41872 * lib/regex_internal.c (re_string_reconstruct): Handle
41873 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41874 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41875 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41876 re_string_context_at.
41878 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41880 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41881 gl_REGEX now does it for us.
41882 (gl_REGEX): Add test taken from
41883 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41885 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41886 Check that large offsets work. Modernize Autoconf usages.
41887 Prefer "yes" to mean a good thing rather than a bad.
41888 Don't put "#define mkstemp" in config.h, as this might interfere
41889 with standard system headers that "#define mkstemp mkstemp64".
41891 * modules/mkstemp (Depends-on): Add extensions, so that
41892 mkstemp is visible on some platforms.
41893 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41894 (Include): Change to "mkstemp.h" from <stdlib.h>.
41895 (Files): Add mkstemp.h.
41897 * lib/mkstemp.h: New file, since some standard headers
41899 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41900 Include "mkstemp.h".
41901 Make the _LIBC code resemble glibc original more,
41902 e.g., use K&R style.
41903 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41904 (mkstemp): Remove, since mkstemp.h does this for us.
41905 * lib/stdlib--.h: Include mkstemp.h.
41907 Import this patch from libc:
41909 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41911 * lib/tempname.c (__gen_tempname): Change attempts_min
41912 into a macro. Use preprocessor to decide how to initialize
41913 attempts [Coverity CID 67].
41915 2006-09-20 Bruno Haible <bruno@clisp.org>
41917 * lib/mkdtemp.c: Import from libc.
41918 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41919 * sysdeps/posix/tempname.c (__gen_tempname): Change
41920 attempts_min into a macro. Use preprocessor to decide how to
41921 initialize attempts [Coverity CID 67].
41922 2001-11-27 Paul Eggert <eggert@twinsun.com>
41923 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41924 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41926 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41928 * gnulib-tool (func_exit): New function, to allow to pass the
41929 exit status portably through the trap. Use everywhere.
41930 (--help, --version): Signal a write error.
41931 (trap): catch SIGPIPE, for write errors.
41932 Exit at the end of the trap, with the correct exit status.
41934 2006-09-19 Karl Berry <karl@gnu.org>
41936 * doc/gnulib.texi: note about the license texinfo files.
41938 2006-09-19 Eric Blake <ebb9@byu.net>
41940 * gnulib-tool: Avoid space-tab.
41942 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41944 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41945 that prevented coreutils 6.1 from building. Problem reported
41946 by Petter Reinholdtsen.
41948 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41950 * gnulib-tool (avoidlist): Fix typo that broke options like
41951 --avoid=lock that are used by coreutils bootstrap.
41953 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41955 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41956 more systematically.
41958 2006-09-18 Jim Meyering <jim@meyering.net>
41960 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41962 2006-09-18 Bruno Haible <bruno@clisp.org>
41964 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41966 2006-09-18 Bruno Haible <bruno@clisp.org>
41968 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41969 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41970 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41971 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41972 * m4/gettext.m4: Require autoconf >= 2.52.
41973 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41974 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41975 of gl_cv_header_inttypes_h.
41977 2006-09-18 Bruno Haible <bruno@clisp.org>
41979 * lib/javaversion.c: Include configmake.h.
41981 2006-09-18 Bruno Haible <bruno@clisp.org>
41983 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41984 avoid that the while loops be executed in a subshell.
41986 2006-09-18 Bruno Haible <bruno@clisp.org>
41988 * MODULES.html.sh (func_module): Break long lines.
41989 Suggested by Bruce Korb <bkorb@gnu.org>.
41991 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41993 Speed up by a factor of 1.12.
41994 * gnulib-tool (nl): New variable.
41995 (func_import): Rewrite include directive extraction to only read each
41998 2006-09-17 Bruno Haible <bruno@clisp.org>
42000 * modules/javaversion (Makefile.am): Remove DEFS setting.
42001 (Depends-on): Add configmake, for PKGDATADIR definition.
42003 2006-09-17 Bruno Haible <bruno@clisp.org>
42005 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42007 2006-09-17 Bruno Haible <bruno@clisp.org>
42009 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42010 (func_modules_transitive_closure, func_modules_add_dummy,
42011 func_modules_to_filelist, func_import, func_create_testdir,
42012 func_create_megatestdir, ...): Use it wherever possible.
42013 Suggested by Ralf Wildenhues.
42015 2006-09-16 Karl Berry <karl@gnu.org>
42017 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42018 to avoid sectioning errors.
42019 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42020 [ifinfo]: blank line after @center-ed titles.
42021 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42022 Spell FSF address consistently with others.
42023 (These changes approved by rms.)
42025 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42027 Speed up by a factor of 1.61.
42028 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42029 already checked module names again.
42031 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42033 Speed up by a factor of 1.13.
42034 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42035 for new_files, and the input to func_add_or_update.
42037 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42039 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42040 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42042 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42044 * modules/mkancesdirs (Depends-on): Add fcntl.
42045 * modules/savewd: New file.
42046 * MODULES.html.sh (File system functions): Add savewd.
42048 * modules/configmake (Makefile.am): Add support for the
42049 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42051 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42053 * m4/savewd.m4: New file.
42055 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42057 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42058 (dirchownmod): New arg FD. All callers changed.
42059 Use FD rather than opening the directory ourself, as opening is
42060 now the caller's responsibility.
42061 * lib/dirchownmod.h: Likewise.
42062 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42063 hosts that require <sys/types.h> before <sys/stat.h>. Include
42064 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42065 (test_dir): Remove.
42066 (mkancesdirs): Return length of prefix of FILE that has already
42067 been made, or -2 if there is a child doing the work. Redo
42068 algorithm so that it is O(N) rather than O(N**2). Optimize away
42069 ".", and treat ".." specially since it might stray back into
42070 already-created areas. Use a subprocess if necessary. New arg
42071 WD; all users changed. MAKE_DIR function should now return 1
42072 if it creates a directory that is not readable. Return -2 if
42073 a child process is spun off.
42074 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42075 Adjust signature to match code.
42076 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42077 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42079 * lib/savewd.c, lib/savewd.h: New files.
42081 2006-09-15 Jim Meyering <jim@meyering.net>
42083 * modules/rename-dest-slash: New module.
42084 * MODULES.html.sh (posix_compat): Add it here.
42086 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42088 2006-09-15 Jim Meyering <jim@meyering.net>
42090 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42093 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42095 2006-09-15 Jim Meyering <jim@meyering.net>
42097 * lib/rename-dest-slash.c (has_trailing_slash): Use
42098 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42099 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42100 test before testing whether SRC is a directory.
42101 Suggestions from Bruno Haible.
42103 Avoid a warning about an unused variable.
42104 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42105 into the #ifdef block where it's used.
42107 * lib/rename-dest-slash.c: New file.
42109 2006-09-14 Bruno Haible <bruno@clisp.org>
42111 * lib/allocsa.c: Include <config.h> unconditionally.
42112 * lib/asnprintf.c: Likewise.
42113 * lib/asprintf.c: Likewise.
42114 * lib/c-strcasecmp.c: Likewise.
42115 * lib/c-strcasestr.c: Likewise.
42116 * lib/c-strncasecmp.c: Likewise.
42117 * lib/c-strstr.c: Likewise.
42118 * lib/classpath.c: Likewise.
42119 * lib/clean-temp.c: Likewise.
42120 * lib/concatpath.c: Likewise.
42121 * lib/copy-file.c: Likewise.
42122 * lib/csharpcomp.c: Likewise.
42123 * lib/csharpexec.c: Likewise.
42124 * lib/execute.c: Likewise.
42125 * lib/fatal-signal.c: Likewise.
42126 * lib/findprog.c: Likewise.
42127 * lib/fwriteerror.c: Likewise.
42128 * lib/gl_array_list.c: Likewise.
42129 * lib/gl_array_oset.c: Likewise.
42130 * lib/gl_avltree_list.c: Likewise.
42131 * lib/gl_avltree_oset.c: Likewise.
42132 * lib/gl_avltreehash_list.c: Likewise.
42133 * lib/gl_carray_list.c: Likewise.
42134 * lib/gl_linked_list.c: Likewise.
42135 * lib/gl_linkedhash_list.c: Likewise.
42136 * lib/gl_list.c: Likewise.
42137 * lib/gl_oset.c: Likewise.
42138 * lib/gl_rbtree_list.c: Likewise.
42139 * lib/gl_rbtree_oset.c: Likewise.
42140 * lib/gl_rbtreehash_list.c: Likewise.
42141 * lib/imaxabs.c: Likewise.
42142 * lib/imaxdiv.c: Likewise.
42143 * lib/javacomp.c: Likewise.
42144 * lib/javaexec.c: Likewise.
42145 * lib/javaversion.c: Likewise.
42146 * lib/linebreak.c: Likewise.
42147 * lib/localcharset.c: Likewise.
42148 * lib/lock.c: Likewise.
42149 * lib/mbchar.c: Likewise.
42150 * lib/mbswidth.c: Likewise.
42151 * lib/mkdtemp.c: Likewise.
42152 * lib/pipe.c: Likewise.
42153 * lib/printf-args.c: Likewise.
42154 * lib/printf-parse.c: Likewise.
42155 * lib/progname.c: Likewise.
42156 * lib/progreloc.c: Likewise.
42157 * lib/readlink.c: Likewise.
42158 * lib/sh-quote.c: Likewise.
42159 * lib/stpcpy.c: Likewise.
42160 * lib/stpncpy.c: Likewise.
42161 * lib/strcasecmp.c: Likewise.
42162 * lib/strcasestr.c: Likewise.
42163 * lib/strcspn.c: Likewise.
42164 * lib/striconv.c: Likewise.
42165 * lib/strncasecmp.c: Likewise.
42166 * lib/strnlen1.c: Likewise.
42167 * lib/strstr.c: Likewise.
42168 * lib/strtok_r.c: Likewise.
42169 * lib/tls.c: Likewise.
42170 * lib/tmpdir.c: Likewise.
42171 * lib/unicodeio.c: Likewise.
42172 * lib/unsetenv.c: Likewise.
42173 * lib/vasnprintf.c: Likewise.
42174 * lib/vasprintf.c: Likewise.
42175 * lib/wait-process.c: Likewise.
42176 * lib/xallocsa.c: Likewise.
42177 * lib/xsetenv.c: Likewise.
42178 * lib/xstriconv.c: Likewise.
42180 2006-09-13 Simon Josefsson <jas@extundo.com>
42182 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42183 that internally, suggested by Ralf Wildenhues
42184 <Ralf.Wildenhues@gmx.de>.
42186 2006-09-13 Simon Josefsson <jas@extundo.com>
42188 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42190 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42192 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42194 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42195 longer worry about uses that don't define HAVE_CONFIG_H.
42196 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42197 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42198 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42199 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42200 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42201 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42202 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42203 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42204 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42205 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42206 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42207 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42208 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42209 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42210 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42211 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42212 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42213 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42214 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42215 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42216 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42217 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42218 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42219 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42220 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42221 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42222 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42223 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42224 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42225 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42226 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42227 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42228 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42229 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42230 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42231 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42232 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42233 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42234 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42235 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42236 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42239 2006-09-13 Eric Blake <ebb9@byu.net>
42241 * lib/getopt.c: Fix typo in last commit.
42243 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42245 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42248 2006-09-12 Jim Meyering <jim@meyering.net>
42250 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42251 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42252 Reported by Nelson H. F. Beebe.
42254 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42256 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42257 program_invocation_name and program_invocation_short_name are
42259 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42260 and program_invocation_short_name to argp.h, so they are visible
42262 * lib/argp.h: Likewise
42264 2006-09-10 Bruno Haible <bruno@clisp.org>
42266 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42267 m4/inttypes_h.m4, m4/uintmax_t.m4.
42269 2006-09-10 Bruno Haible <bruno@clisp.org>
42271 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42272 gl_AC_TYPE_UINTMAX_T.
42274 2006-09-10 Bruno Haible <bruno@clisp.org>
42276 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42278 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42280 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42281 convention. Text proposed by Bruno Haible.
42282 (struct argp_option): Document the use of N_() wrappers.
42284 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42285 '\v', and translate the two parts separately, instead of feeding
42286 the whole string to gettext. This allows to exclude
42287 '\v' from the strings visible to the translator by writing doc
42288 strings as N_("..") "\v" N_("..").
42290 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42292 * config/srclist.txt: Undo latest change; the bug was fixed.
42294 2006-09-09 Bruno Haible <bruno@clisp.org>
42296 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42297 assignments if building a library without libtool.
42298 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42299 in func_emit_lib_Makefile_am.
42300 (func_import): When building a static library libfoo.a, arrange to
42301 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42302 (func_create_testdir): Likewise.
42303 * modules/gc (configure.ac, Makefile.am): If building statically,
42304 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42305 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42306 * modules/striconv (configure.ac, Makefile.am): Likewise.
42307 Based on a suggestion by Ralf Wildenhues.
42309 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42311 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42312 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42315 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42316 Add year_2050_test to catch glibc bug 2821
42317 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42319 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42320 Prefer #ifdef to #if.
42322 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42323 Return from 'main' instead of calling 'exit'.
42325 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42327 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42328 returned the maximum time_t value rather than (time_t) -1.
42329 Problem originally reported by William Bardwell
42330 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42332 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42334 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42337 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42339 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42342 2006-09-08 Jim Meyering <jim@meyering.net>
42344 Don't make generated files read-only. That would bother too many
42345 people. However, do retain the ability to work when targets are
42346 read-only: remove the destination and temporary files before writing
42347 them (when generated via sed or echo), or by using the -f option for
42348 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42349 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42350 * modules/byteswap, modules/configmake, modules/fcntl:
42351 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42352 * modules/localcharset, modules/netinet_in, modules/poll:
42353 * modules/stdbool, modules/stdint, modules/sys_select:
42354 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42356 2006-09-08 Jim Meyering <jim@meyering.net>
42358 Avoid new build failure on FreeBSD 6.0.
42359 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42360 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42361 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42363 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42365 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42367 2006-09-07 Jim Meyering <jim@meyering.net>
42369 Fix global typo in last change: use chmod u-w, not chmod u-x.
42370 Spotted by Paul Eggert and Bruce Korb.
42371 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42372 * modules/byteswap, modules/configmake, modules/fcntl:
42373 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42374 * modules/localcharset, modules/netinet_in, modules/poll:
42375 * modules/stdbool, modules/stdint, modules/sys_select:
42376 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42378 2006-09-06 Jim Meyering <jim@meyering.net>
42380 Make generated files be read-only.
42381 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42382 Ensure that each generated file is now read-only.
42383 * modules/argz: Likewise.
42384 * modules/arpa_inet: Likewise.
42385 * modules/byteswap: Likewise.
42386 * modules/configmake: Likewise.
42387 * modules/fcntl: Likewise.
42388 * modules/fnmatch: Likewise.
42389 * modules/getopt: Likewise.
42390 * modules/glob: Likewise.
42391 * modules/inttypes: Likewise.
42392 * modules/netinet_in: Likewise.
42393 * modules/poll: Likewise.
42394 * modules/stdbool: Likewise.
42395 * modules/stdint: Likewise.
42396 * modules/sys_select: Likewise.
42397 * modules/sys_socket: Likewise.
42398 * modules/sys_stat: Likewise.
42399 * modules/sysexits: Likewise.
42400 * modules/localcharset: Same as above, but continue using temporary
42401 file named "t-$@" (why different?) rather than the "$@-t" used
42404 * modules/sysexits (Makefile.am): Replace literal occurrences
42405 of "sysexit.h" more readable, and more consistent, "$@".
42407 2006-09-06 Bruno Haible <bruno@clisp.org>
42409 * modules/striconv: New file.
42410 * modules/xstriconv: New file.
42411 * MODULES.html.sh (Internationalization functions): Add striconv,
42414 2006-09-06 Bruno Haible <bruno@clisp.org>
42416 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42417 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42418 not using libtool correctly.
42420 2006-09-06 Bruno Haible <bruno@clisp.org>
42422 * lib/striconv.h: New file.
42423 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42425 * lib/xstriconv.h: New file.
42426 * lib/xstriconv.c: New file.
42428 2006-09-06 Bruno Haible <bruno@clisp.org>
42430 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42433 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42435 * lib/argz_.h: Sync from Libtool.
42437 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42438 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42440 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42442 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42444 * modules/trim: New file.
42446 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42448 * lib/trim.h: New file.
42449 * lib/trim.c: New file.
42451 2006-09-05 Bruno Haible <bruno@clisp.org>
42453 * MODULES.html.sh (String handling): Add trim.
42455 2006-09-04 Karl Berry <karl@gnu.org>
42457 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42458 until next release.
42460 2006-09-03 Bruno Haible <bruno@clisp.org>
42462 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42465 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42467 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42468 not gl_GETLOADAVG. Omit unneeded semicolons.
42469 Problems reported by Ralf Wildenhues in
42470 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42471 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42472 at the end, which is the usual gnulib style.
42474 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42475 of doing all the work ourselves.
42476 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42477 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42479 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42481 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42482 Problem reported by Ralf Wildenhues in
42483 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42485 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42486 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42488 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42490 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42491 yesterday's patch by changing test -n to test -z.
42493 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42495 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42496 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42497 the former is now obsolescent.
42499 * modules/chdir-long (Depends-on): Add fcntl.
42501 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42503 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42504 obsolescent, and programs should use gnulib instead.
42505 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42506 but with prefixes changed.
42508 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42510 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42511 or stdbool.h, because they might not exist while configuring.
42513 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42514 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42516 (O_DIRECTORY): Remove.
42518 2006-08-31 Eric Blake <ebb9@byu.net>
42520 * gnulib-tool: Don't let emacs change spaces to TAB.
42522 2006-08-31 Bruno Haible <bruno@clisp.org>
42524 * gnulib-tool: When calling func_import more than once, do it in a
42526 Reported by Eric Blake <ebb9@byu.net>.
42528 2006-08-31 Bruno Haible <bruno@clisp.org>
42530 * gnulib-tool (nl): Remove variable.
42531 (sed_transform_lib_file): Use more robust test for config-h module.
42532 (func_import): Fix typo in 2006-08-25 patch.
42534 2006-08-31 Bruno Haible <bruno@clisp.org>
42536 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42537 specified, augment Makefile.am variables instead of assigning them.
42539 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42541 Work around a bug in both the Linux and SunOS 64-bit kernels:
42542 nanosleep mishandles sleeps for longer than 2**31 seconds.
42543 Problem reported by Frank v Waveren in
42544 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42545 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42546 Check for nanosleep bug.
42547 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42549 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42551 Work around a bug in both the Linux and SunOS 64-bit kernels:
42552 nanosleep mishandles sleeps for longer than 2**31 seconds.
42553 Problem reported by Frank v Waveren in
42554 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42555 * lib/nanosleep.c (BILLION): New constant.
42556 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42557 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42560 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42562 * modules/nanosleep (Depends-on): Add gettime.
42564 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42565 and Simon Josefsson <jas@extundo.com>
42566 and Oskar Liljeblad <oskar@osk.mine.nu>
42568 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42569 * gnulib-tool (func_import): New license type 'unmodifiable license
42571 * modules/fdl: Use it. Longer description.
42572 * module/gpl, module/lgpl: New files.
42574 2006-08-30 Jim Meyering <jim@meyering.net>
42576 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42577 shadowing the parameter.
42579 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42583 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42585 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42586 sharing with gnulib. Report by Eric Blake.
42588 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42590 * modules/isapipe: New file.
42591 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42593 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42595 * modules/configmake (Makefile.am): Add a comment, and omit
42596 the CONFIGMAKE_ prefix from generated macro names. Suggested
42599 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42601 * m4/isapipe.m4: New file.
42603 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42605 * lib/isapipe.c, lib/isapipe.h: New files.
42607 2006-08-29 Jim Meyering <jim@meyering.net>
42609 * modules/configmake (Makefile.am): Make configmake.h depend on
42610 Makefile. Otherwise, a stale configmake.h could hang around.
42612 2006-08-29 Eric Blake <ebb9@byu.net>
42614 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42615 resolution of upstream bug 3044.
42617 2006-08-29 Bruno Haible <bruno@clisp.org>
42619 * modules/localcharset (Depends-on): Add configmake.
42620 (Makefile.am): Remove setting of LIBDIR through DEFS.
42622 2006-08-29 Bruno Haible <bruno@clisp.org>
42624 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42627 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42629 * modules/fcntl: New file.
42630 * modules/chdir-safer (Depends-on): Add fcntl.
42631 * modules/fts: Likewise.
42632 * modules/mkdir-p: Likewise.
42634 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42635 This undoes the most recent change, since we're now addressing the
42636 problem in a different way.
42638 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42639 into output, since the output might be called Makefile.am even
42640 if $makefile_name is something different.
42641 (func_import): Use $makefile_am rather than
42642 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42645 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42647 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42649 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42650 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42651 recent change to stdint.m4, since we're now addressing the problem in a
42654 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42656 * m4/fcntl_h.m4: New file.
42658 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42660 * lib/fcntl_.h: New file.
42661 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42663 * lib/dirchownmod.c: Likewise.
42664 * lib/fts.c: Likewise.
42666 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42667 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42668 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42669 just before including <inttypes.h>, to avoid circular inclusion.
42671 2006-08-28 Jim Meyering <jim@meyering.net>
42673 * doc/visibility.texi: Actually read and correct the grammar of the
42674 sentence affected by yesterday's change.
42676 2006-08-28 Eric Blake <ebb9@byu.net>
42678 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42681 2006-08-28 Eric Blake <ebb9@byu.net>
42683 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42685 2006-08-28 Eric Blake <ebb9@byu.net>
42687 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42689 2006-08-28 Bruno Haible <bruno@clisp.org>
42691 * modules/c-strstr: New file, from GNU gettext.
42692 * MODULES.html.sh (String handling): Add c-strstr.
42694 2006-08-28 Bruno Haible <bruno@clisp.org>
42696 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42698 Reported by Eric Blake.
42700 2006-08-28 Bruno Haible <bruno@clisp.org>
42702 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42703 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42704 * lib/vasprintf.c: Include errno.h, limits.h.
42705 (EOVERFLOW): New fallback definition.
42706 (vasprintf): Test here whether the string length is > INT_MAX.
42707 * lib/vsnprintf.c: Include errno.h, limits.h.
42708 (EOVERFLOW): New fallback definition.
42709 (vsnprintf): Fix bug when generated string was too long for the buffer.
42710 Test here whether the string length is > INT_MAX.
42712 2006-08-28 Bruno Haible <bruno@clisp.org>
42714 * lib/inttypes_.h (SCNX*): Remove definitions.
42715 Reported by Eric Blake.
42717 2006-08-28 Bruno Haible <bruno@clisp.org>
42719 * lib/c-strstr.h: New file, from GNU gettext.
42720 * lib/c-strstr.c: New file, from GNU gettext.
42722 2006-08-28 Bruno Haible <bruno@clisp.org>
42724 * gnulib-tool: Reorder some statements.
42726 2006-08-28 Bruno Haible <bruno@clisp.org>
42728 * gnulib-tool: New option --makefile-name.
42729 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42731 (func_import): Write $makefile_name to the cache file, and read it from
42732 there unless explicitly specified. Use $makefile_name as file name
42733 instead of Makefile.am. Adjust the recommendations accordingly.
42735 2006-08-28 Bruno Haible <bruno@clisp.org>
42737 * gnulib-tool (func_verify_module): Check against misapplying patch.
42739 2006-08-28 Bruno Haible <bruno@clisp.org>
42741 * gnulib-tool (func_relativize, func_relconcat): New functions.
42742 Give an error if --local-dir is given with --update.
42743 Remove trailing slashes from $local_gnulib_dir.
42744 (func_import): Store the relativized $local_gnulib_dir in
42745 gnulib-cache.m4, and read it from there if not specified explicitly.
42747 2006-08-28 Bruno Haible <bruno@clisp.org>
42749 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42750 is the current directory. Respect also $local_gnulib_dir.
42752 2006-08-28 Bruno Haible <bruno@clisp.org>
42753 Simon Josefsson <jas@extundo.com>
42756 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42758 2006-08-27 Jim Meyering <jim@meyering.net>
42760 * doc/visibility.texi: Remove duplicate word: "pointer".
42762 2006-08-26 Bruno Haible <bruno@clisp.org>
42764 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42765 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42766 (Makefile.am): Create inttypes.h from inttypes_.h.
42767 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42769 * modules/imaxabs: New file.
42771 * modules/imaxdiv: New file.
42773 2006-08-26 Bruno Haible <bruno@clisp.org>
42775 * m4/inttypes.m4: New file.
42776 * m4/_inttypes_h.m4: Remove file.
42777 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42779 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42781 * m4/imaxabs.m4: New file.
42783 * m4/imaxdiv.m4: New file.
42785 2006-08-26 Bruno Haible <bruno@clisp.org>
42787 * lib/inttypes_.h: New file.
42788 * lib/inttypes.h: Remove file.
42789 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42791 * lib/imaxabs.c: New file.
42793 * lib/imaxdiv.c: New file.
42795 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42797 New config-h module, so that "make" output needn't be cluttered
42798 by -DHAVE_CONFIG_H.
42799 * MODULES.html.sh (Support for building libraries and executables):
42801 * modules/config-h: New file.
42802 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42803 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42804 the config-h module is used.
42806 New configmake module, so that "make" output needn't be cluttered
42807 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42808 * MODULES.html.sh (Support for building libraries and executables):
42810 * modules/configmake: New file.
42812 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42814 * m4/config-h.m4: New file.
42816 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42818 * config/srclist.txt: Add elisp-comp.
42820 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42822 * MODULES.html.sh (Support for building libraries and executables):
42824 * build-aux/elisp-comp: New file.
42825 * modules/elisp-comp: New file.
42827 2006-08-24 Bruno Haible <bruno@clisp.org>
42829 * gnulib-tool (func_create_testdir): Use non-default values of
42830 sourcebase and m4base.
42832 2006-08-24 Bruno Haible <bruno@clisp.org>
42834 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42837 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42839 * modules/openat (Depends-on): Add lchown.
42841 2006-08-23 Bruno Haible <bruno@clisp.org>
42843 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42844 of gl_LOCK_EARLY instead of gl_LOCK.
42846 2006-08-23 Bruno Haible <bruno@clisp.org>
42848 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42850 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42852 2006-08-23 Bruno Haible <bruno@clisp.org>
42854 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42857 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42858 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42859 (gl_LOCK): New macro.
42861 2006-08-22 Simon Josefsson <jas@extundo.com>
42863 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42866 2006-08-22 Simon Josefsson <jas@extundo.com>
42868 * MODULES.html.sh: Add "Support for maintaining and release
42871 * build-aux/gnupload: New file, from coreutils.
42873 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42875 Avoid the need for AC_LIBSOURCES in m4 macros.
42876 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42877 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42878 * modules/check-version (EXTRA_DIST): Add check-version.h.
42879 * modules/crc (EXTRA_DIST): Add crc.h.
42880 * modules/des (EXTRA_DIST): Add des.h.
42881 * modules/gc (EXTRA_DIST): Add gc.h.
42882 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42883 * modules/getline (EXTRA_DIST): Add getline.h.
42884 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42885 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42886 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42887 * modules/md2 (EXTRA_DIST): Add md2.h.
42888 * modules/md4 (EXTRA_DIST): Add md4.h.
42889 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42890 * modules/read-file (EXTRA_DIST): Add read-file.h.
42891 * modules/readline (EXTRA_DIST): Add readline.h.
42892 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42893 rijndael-api-fst.h.
42895 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42897 * m4/rijndael.m4 (gl_ARCFOUR):
42898 * m4/arctwo.m4 (gl_ARCTWO):
42899 * m4/check-version.m4 (gl_CHECK_VERSION):
42900 * m4/crc.m4 (gl_CRC):
42901 * m4/des.m4 (gl_DES):
42902 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42903 * m4/gc.m4 (gl_GC):
42904 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42905 * m4/getline.m4 (gl_FUNC_GETLINE):
42906 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42907 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42908 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42909 * m4/md2.m4 (gl_MD2):
42910 * m4/md4.m4 (gl_MD4):
42911 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42912 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42913 * m4/readline.m4 (gl_FUNC_READLINE):
42914 * m4/rijndael.m4 (gl_RIJNDAEL):
42915 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42916 to get the necessary .h files and whatnot.
42918 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42920 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42921 gnulib rather than the other way around.
42922 * config/srclistvars.sh (COREUTILS): Remove.
42924 2006-08-22 Jim Meyering <jim@meyering.net>
42926 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42928 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42930 2006-08-22 Eric Blake <ebb9@byu.net>
42932 * modules/regexprops-generic: New file.
42933 * MODULES.html.sh (Support for building documentation): List it.
42935 2006-08-22 Eric Blake <ebb9@byu.net>
42937 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42938 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42939 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42940 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42942 2006-08-22 Bruno Haible <bruno@clisp.org>
42944 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42945 and lib_LTLIBRARIES like the other lib_* variables.
42947 2006-08-22 Bruno Haible <bruno@clisp.org>
42949 * build-aux/x-to-1.in: New file, from GNU gettext.
42951 2006-08-22 Bruno Haible <bruno@clisp.org>
42953 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42956 2006-08-22 Bruno Haible <bruno@clisp.org>
42958 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42961 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42964 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42966 Problem reported by Bruno Haible.
42968 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42970 Avoid the need for AC_LIBSOURCES in m4 macros.
42971 * modules/acl (EXTRA_DIST): Add acl.h.
42972 * modules/argmatch (Files): Add m4/argmatch.m4.
42973 (configure.ac): Add gl_ARGMATCH.
42974 (EXTRA_DIST): Renamed from lib_SOURCES, for
42975 consistency with the other modules. Remove argmatch.c.
42976 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42977 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42978 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42979 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42980 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42981 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42982 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42983 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42984 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42985 * modules/closeout (EXTRA_DIST): Add closeout.h.
42986 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42987 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42988 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42989 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
42990 dirname.h; remove basename.c and stripslash.c.
42991 * modules/exclude (EXTRA_DIST): Add exclude.h.
42992 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42993 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42994 * modules/file-type (EXTRA_DIST): Add file-type.h.
42995 * modules/filemode (EXTRA_DIST): Add filemode.h.
42996 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42997 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42998 * modules/fpending (EXTRA_DIST): Add __fpending.h.
42999 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43000 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43001 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43002 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43003 * modules/getdate (EXTRA_DIST): Add getdate.c.
43004 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43005 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43006 * modules/getpass (EXTRA_DIST): Add getpass.h.
43007 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43008 * modules/group-member (EXTRA_DIST): Add group-member.h.
43009 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43010 * modules/hash (EXTRA_DIST): Add hash.h.
43011 * modules/human (EXTRA_DIST): Add human.h.
43012 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43013 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43014 * modules/lchown (EXTRA_DIST): Add lchown.h.
43015 * modules/long-options (EXTRA_DIST): Add long-options.h.
43016 * modules/lstat (EXTRA_DIST): Add lstat.h.
43017 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43018 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43019 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43020 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43021 * modules/memxor (EXTRA_DIST): Add memxor.h.
43022 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43023 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43024 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43025 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43026 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43027 * modules/physmem (EXTRA_DIST): Add physmem.h.
43028 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43029 * modules/posixver (EXTRA_DIST): Add posixver.h.
43030 * modules/quote (EXTRA_DIST): Add quote.h.
43031 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43032 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43033 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43034 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43035 regex_internal.h regexec.c.
43036 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43037 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43038 * modules/same (EXTRA_DIST): Add same.h.
43039 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43040 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43041 * modules/savedir (EXTRA_DIST): Add savedir.h.
43042 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43043 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43044 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43045 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43046 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43047 * modules/strdup (EXTRA_DIST): Add strdup.h.
43048 * modules/strftime (EXTRA_DIST): Add strftime.h.
43049 * modules/strndup (EXTRA_DIST): Add strndup.h.
43050 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43051 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43052 * modules/time_r (EXTRA_DIST): Add time_r.h.
43053 * modules/timespec (EXTRA_DIST): Add timespec.h.
43054 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43055 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43056 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43057 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43058 * modules/userspec (EXTRA_DIST): Add userspec.h.
43059 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43060 * modules/utimens (EXTRA_DIST): Add utimens.h.
43061 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43062 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43063 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43064 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43065 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43066 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43067 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43068 * modules/yesno (EXTRA_DIST): Add yesno.h.
43070 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43072 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43074 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43075 * m4/dev-ino.m4, same-inode.m4: Remove.
43077 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43078 * m4/acl.m4 (AC_FUNC_ACL):
43079 * m4/backupfile.m4 (gl_BACKUPFILE):
43080 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43081 * m4/canon-host.m4 (gl_CANON_HOST):
43082 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43083 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43084 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43085 * m4/cloexec.m4 (gl_CLOEXEC):
43086 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43087 * m4/closeout.m4 (gl_CLOSEOUT):
43088 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43089 * m4/dirname.m4 (gl_DIRNAME):
43090 * m4/exclude.m4 (gl_EXCLUDE):
43091 * m4/exitfail.m4 (gl_EXITFAIL):
43092 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43093 * m4/file-type.m4 (gl_FILE_TYPE):
43094 * m4/filemode.m4 (gl_FILEMODE):
43095 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43096 * m4/fpending.m4 (gl_FUNC_FPENDING):
43097 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43098 * m4/fts.m4 (gl_FUNC_FTS):
43099 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43100 * m4/getdate.m4 (gl_GETDATE):
43101 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43102 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43103 * m4/getpass.m4 (gl_FUNC_GETPASS):
43104 * m4/gettime.m4 (gl_GETTIME):
43105 * m4/getugroups.m4 (gl_GETUGROUPS):
43106 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43107 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43108 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43109 * m4/hash.m4 (gl_HASH):
43110 * m4/idcache.m4 (gl_IDCACHE):
43111 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43112 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43113 * m4/long-options.m4 (gl_LONG_OPTIONS):
43114 * m4/lstat.m4 (gl_FUNC_LSTAT):
43115 * m4/md5.m4 (gl_MD5):
43116 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43117 * m4/memcoll.m4 (gl_MEMCOLL):
43118 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43119 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43120 * m4/memxor.m4 (gl_MEMXOR):
43121 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43122 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43123 * m4/modechange.m4 (gl_MODECHANGE):
43124 * m4/mountlist.m4 (gl_MOUNTLIST):
43125 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43126 * m4/openat.m4 (gl_FUNC_OPENAT):
43127 * m4/pathmax.m4 (gl_PATHMAX):
43128 * m4/physmem.m4 (gl_PHYSMEM):
43129 * m4/posixtm.m4 (gl_POSIXTM):
43130 * m4/posixver.m4 (gl_POSIXVER):
43131 * m4/quote.m4 (gl_QUOTE):
43132 * m4/quotearg.m4 (gl_QUOTEARG):
43133 * m4/readtokens.m4 (gl_READTOKENS):
43134 * m4/readutmp.m4 (gl_READUTMP):
43135 * m4/regex.m4 (gl_REGEX):
43136 * m4/safe-read.m4 (gl_SAFE_READ):
43137 * m4/safe-write.m4 (gl_SAFE_WRITE):
43138 * m4/same.m4 (gl_SAME):
43139 * m4/save-cwd.m4 (gl_SAVE_CWD):
43140 * m4/savedir.m4 (gl_SAVEDIR):
43141 * m4/settime.m4 (gl_SETTIME):
43142 * m4/sha1.m4 (gl_SHA1):
43143 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43144 * m4/stat-macros.m4 (gl_STAT_MACROS):
43145 * m4/stat-time.m4 (gl_STAT_TIME):
43146 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43147 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43148 * m4/strdup.m4 (gl_FUNC_STRDUP):
43149 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43150 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43151 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43152 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43153 * m4/time_r.m4 (gl_TIME_R):
43154 * m4/timespec.m4 (gl_TIMESPEC):
43155 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43156 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43157 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43158 * m4/userspec.m4 (gl_USERSPEC):
43159 * m4/utimecmp.m4 (gl_UTIMECMP):
43160 * m4/utimens.m4 (gl_UTIMENS):
43161 * m4/xalloc.m4 (gl_XALLOC):
43162 * m4/xgetcwd.m4 (gl_XGETCWD):
43163 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43164 * m4/xreadlink.m4 (gl_XREADLINK):
43165 * m4/xstrtod.m4 (gl_XSTRTOD):
43166 * m4/yesno.m4 (gl_YESNO):
43167 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43168 to get the necessary .h files and whatnot.
43170 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43171 Bruno Haible <bruno@clisp.org>
43173 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43174 /bin/sh understanding of '!' conditional negation.
43176 2006-08-21 Jim Meyering <jim@meyering.net>
43178 * modules/openat (Depends-on): Really alphabetize.
43180 * modules/acl (Depends-on): Add error and quote.
43182 * check-module (find_included_lib_files): Add at-func.c to the
43183 ok-to-include-more-than-once white list.
43185 * modules/openat (Depends-on): Add lstat. Alphabetize.
43187 2006-08-21 Bruno Haible <bruno@clisp.org>
43189 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43190 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43191 Reported by Martin Lambers <marlam@marlam.de>.
43193 2006-08-21 Bruno Haible <bruno@clisp.org>
43195 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43196 specify an installation location, don't emit a noinst_LIBRARIES or
43197 noinst_LTLIBRARIES assignment.
43199 2006-08-21 Bruno Haible <bruno@clisp.org>
43202 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43203 BeOS has mbrtowc() but no <wctype.h>.
43205 2006-08-21 Bruno Haible <bruno@clisp.org>
43208 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43211 2006-08-21 Bruno Haible <bruno@clisp.org>
43214 * lib/mbchar.h: Include <wctype.h> only if it exists.
43216 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43218 Remove files that are no longer needed by their respective modules.
43219 * m4/obstack.m4: Remove.
43220 * m4/strerror_r.m4: Remove.
43221 * m4/uint32_t.m4: Remove.
43222 * m4/uintptr_t.m4: Remove.
43223 * m4/ullong_max.m4: Remove.
43224 * m4/xstrtoimax.m4: Remove.
43225 * m4/xstrtoumax.m4: Remove.
43227 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43228 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43229 dependencies now capture this.
43231 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43232 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43233 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43234 * m4/human.m4 (gl_HUMAN): Likewise.
43235 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43236 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43238 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43240 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43241 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43243 * m4/human.m4 (gl_HUMAN): Likewise.
43244 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43245 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43246 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43247 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43248 * m4/xstrtol (gl_XSTRTOL): Likewise.
43250 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43251 AC_TYPE_LONG_LONG_INT.
43252 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43253 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43254 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43255 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43257 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43260 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43261 (gl_PREREQ_XSTRTOUL): Remove.
43263 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43265 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43268 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43270 Add and change modules to make it easier for coreutils to use
43272 * modules/backupfile (Files): Remove m4/d-ino.m4.
43273 (Depends-on): Add d-ino.
43274 * modules/cycle-check (Depends-on): Add stdint.
43275 (lib_SOURCES): Add cycle-check.h.
43276 * modules/d-ino: New module.
43277 * modules/d-type: New module.
43278 * modules/error (Files): Remove m4/strerror_r.m4.
43279 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43280 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43281 m4/inttypes_h.m4, m4/uintmax_t.m4.
43282 (Depends-on): Add stdint.
43283 (lib_SOURCES): Add fsusage.h.
43284 * modules/getcwd (Files): Remove d-ino.m4.
43285 (Depends-on): Add d-ino.
43286 * modules/getndelim2 (Depends-on): Add stdint.
43287 * modules/glob (Files): Remove m4/d-type.m4.
43288 (Depends-on): Add d-type.
43289 * modules/host-os: New module.
43290 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43291 m4/inttypes_h.m4, m4/uintmax_t.m4.
43292 * Depends-on: Add stdint.
43293 (lib_SOURCES): Add human.h.
43294 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43295 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43296 m4/uintmax_t.m4, m4/ulonglong.m4.
43297 (Depends-on): Add stdint.
43298 (EXTRA_DIST): Add inttostr.h.
43299 * modules/lchmod: New module.
43300 * modules/link-follow: New module.
43301 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43302 (Depends-on): Add lchmod.
43303 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43304 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43305 (Depends-on): Add stdint.
43306 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43307 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43308 (Depends-on): Add stdint.
43309 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43310 * modules/perl: New module.
43311 * modules/regex (Depends-on): Add stdint.
43312 * modules/rmdir-errno: New module.
43313 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43315 (Depends-on): Add stdint.
43316 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43318 (Depends-on): Add stdint.
43319 * modules/unlink-busy: New module.
43320 * modules/utimecmp (Depends-on): Add stdint.
43321 * modules/uptime: New module.
43322 * modules/winsz-ioctl: New module.
43323 * modules/winsz-termios: New module.
43324 * modules/xnanosleep (Depends-on): Add nanosleep.
43325 * modules/ullong_max: Remove.
43326 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43327 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43328 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43329 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43330 (Depends-on): Add inttypes.
43331 (lib_SOURCES): Add xstrtol.h.
43332 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43333 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43334 * MODULES.html.sh: Move 'assert' into the assert section.
43335 Move 'dummy' into the linking section.
43337 Add section for compatibility checks for POSIX:2001 functions,
43338 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43339 winsz-ioctl, and winsz-termios into it.
43341 Add top-level Misc section and put host-os, perl, and uptime
43344 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43346 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43347 now assume the stdint module. Do not include inttypes.h.
43348 * lib/fsusage.h: Likewise.
43349 * lib/getndelim2.c: Likewise.
43350 * lib/human.h: Likewise.
43351 * lib/inttostr.h: Likewise.
43352 * lib/obstack.c: Likewise.
43353 * lib/regex_internal.h: Likewise.
43354 * lib/tempname.c: Likewise.
43355 * lib/utimecmp.c: Likewise.
43356 * lib/xstrtol.h: Likewise.
43358 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43360 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43361 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43362 * lib/xtime.h: Likewise.
43364 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43366 * modules/openat (Files): Add lib/fchmodat.c.
43367 Fixes problem reported by Jay Youngman.
43369 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43371 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43372 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43374 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43375 Bruno Haible <bruno@clisp.org>
43377 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43378 and is a script that invokes bison. Tighten the code. Add comments.
43380 2006-08-18 Jim Meyering <jim@meyering.net>
43382 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43383 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43384 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43385 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43387 2006-08-18 Bruno Haible <bruno@clisp.org>
43389 * modules/bison-i18n: New file.
43390 * MODULES.html.sh (Internationalization functions): Add it.
43392 2006-08-18 Bruno Haible <bruno@clisp.org>
43394 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43395 sys/statvfs.h. When getmntinfo was found, check its declaration and
43396 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43398 2006-08-18 Bruno Haible <bruno@clisp.org>
43400 * m4/bison-i18n.m4: New file, from bison.
43402 2006-08-18 Bruno Haible <bruno@clisp.org>
43404 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43405 (ME_DUMMY): Treat "kernfs" as a dummy.
43406 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43408 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43410 Update from coreutils.
43412 2006-08-15 Jim Meyering <jim@meyering.net>
43414 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43416 2006-01-17 Jim Meyering <jim@meyering.net>
43418 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43420 2006-01-11 Jim Meyering <jim@meyering.net>
43422 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43423 Check for the lchmod function.
43425 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43427 Update from coreutils.
43429 * lib/__fpending.h: Add copyright notice.
43430 * lib/fprintftime.h: Likewise.
43431 * lib/savedir.c: Use (C) in copyright notice.
43432 * lib/savedir.h: Likewise.
43434 2006-08-15 Jim Meyering <jim@meyering.net>
43436 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43437 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43438 in support of the EXPECTED_ERRNO macro.
43439 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43440 definitions. Instead, define the appropriate symbols and include
43442 * lib/mkdirat.c (mkdirat): Likewise.
43443 * lib/fchmodat.c (fchmodat): Likewise.
43444 (ENOSYS): Remove definition.
43445 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43446 it. Don't include "unistd--.h" -- it wasn't ever used.
43448 2006-01-17 Jim Meyering <jim@meyering.net>
43450 Rewrite fts.c not to change the current working directory,
43451 by using openat, fstatat, fdopendir, etc..
43453 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43454 (HAVE_OPENAT_SUPPORT): Define.
43455 [_LIBC] (fchdir): Don't undef or define; no longer used.
43456 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43457 Now, this `function' always succeeds, and consumes its file descriptor
43458 parameter -- so callers must not close such FDs. Update callers.
43459 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43460 (diropen): Add parameter, SP. Adjust all callers.
43461 Implement using diropen_fd, rather than open.
43462 (fts_open): Initialize new member, fts_cwd_fd.
43463 Remove fts_rft-setting code.
43464 (fts_close): Close fts_cwd_fd, if necessary.
43465 (__opendir2): Define in terms of opendir or opendirat,
43466 depending on whether the FST_NOCHDIR flag is set.
43467 (fts_build): Since fts_safe_changedir consumes its FD, and since
43468 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43469 and close the dup'd file descriptor upon failure.
43470 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43471 (fts_safe_changedir): Tweak semantics to reflect that this function
43472 now calls cwd_advance_fd and hence consumes its FD argument.
43473 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43474 [struct FTS] (fts_rft): Remove now-unused member.
43475 [struct FTS] (fts_cycle.state): Improve comment.
43477 * lib/openat.c (openat_needs_fchdir): New function.
43478 * lib/openat.h (openat_needs_fchdir): Declare it.
43480 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43482 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43483 Problem and fix reported by Pádraig Brady in
43484 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43486 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43488 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43490 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43492 * lib/memcoll.c (memcoll): Optimize for the common case where the
43493 arguments are bytewise equal.
43495 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43497 * doc/regexprops-generic.texi: Add a copyright notice.
43499 2006-08-15 Bruno Haible <bruno@clisp.org>
43501 * modules/tmpdir (License): Change to LGPL.
43503 2006-08-15 Bruno Haible <bruno@clisp.org>
43505 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43508 2006-08-14 Simon Josefsson <jas@extundo.com>
43510 * config/srclist.txt: Add gnupload.
43512 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43514 Change copyright notice from LGPL 2 to GPL 2, since that's the
43515 standard form used in the gnulib repository.
43516 * tests/test-lock.c: Likewise.
43517 * tests/test-stdint.c: Likewise.
43518 * tests/test-tls.c: Likewise.
43520 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43521 prelude-manager. User shorter URLs for GNU projects, without '?'.
43522 Add copyright notice.
43524 * check-module: Add copyright notice. Output a copyright
43525 notice if "--version" is specified.
43526 * modules/COPYING: New file.
43527 * tests/test-getaddrinfo.c: Add copyright notice.
43528 * tests/test-verify.c: Likewise.
43530 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43532 Change copyright notice from LGPL 2 to GPL 2, since that's the
43533 standard form used in the gnulib repository.
43534 * lib/lock.c: LGPL -> GPL.
43535 * lib/lock.h: Likewise.
43536 * lib/strnlen1.c: Likewise.
43537 * lib/strnlen1.h: Likewise.
43538 * lib/tls.c: Likewise.
43539 * lib/tls.h: Likewise.
43540 * lib/tmpdir.c: Likewise.
43542 * lib/TODO: Remove; this belongs only in coreutils.
43544 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43546 Add copyright notices to long-enough files that lack them, since
43547 otherwise the files aren't clearly free. Use the same notice that
43548 getdate.texi already uses.
43549 * doc/alloca-opt.texi: Add copyright notice.
43550 * doc/alloca.texi: Likewise.
43551 * doc/ctime.texi: Likewise.
43552 * doc/functions.texi: Likewise.
43553 * doc/gcd.texi: Likewise.
43554 * doc/gnulib-tool.texi: Likewise.
43555 * doc/inet_ntoa.texi: Likewise.
43556 * doc/visibility.texi: Likewise.
43558 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43559 * doc/quote.texi: Add copyright notice.
43561 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43562 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43563 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43564 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43565 is now obsolete, and give a pointer to the Sun list.
43566 Add copyright notice.
43568 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43570 * config/srclistvars.sh: Add copyright notice.
43572 2006-08-14 Eric Blake <ebb9@byu.net>
43574 Import the following change from libc:
43576 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43579 * lib/misc/error.c: Add space between program name and message if file
43582 2006-08-12 Karl Berry <karl@gnu.org>
43584 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43585 remove, these originate in gnulib now.
43587 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43589 * doc/Makefile (standards.info standards.html standards.dvi):
43590 Also depend on make-stds.texi.
43592 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43594 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43595 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43597 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43598 in wchar_t. Problem reported by Eric Blake.
43600 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43601 LEN is smaller than SIZE. Suggested by Bruno Haible.
43602 Also, help the compiler to keep LEN in a register.
43604 2006-08-11 Eric Blake <ebb9@byu.net>
43606 * users.txt: Sort. Add tar.
43608 2006-08-11 Bruno Haible <bruno@clisp.org>
43610 * users.txt: New file.
43612 2006-08-11 Bruno Haible <bruno@clisp.org>
43614 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43615 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43617 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43619 * modules/snprintf (Depends-on): Remove minmax.
43620 (Maintainer): Add self and Bruno.
43622 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43624 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43625 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43626 (EOVERFLOW): Define if the system does not.
43627 Do not include "minmax.h"; it wasn't used.
43628 (snprintf): Don't assume size_t promotes to an unsigned type.
43629 Fix bug when generated string was too long for the buffer: the
43630 buffer's contents are supposed to be the initial prefix of the
43631 output. Don't assume vasnprintf returns EOVERFLOW if the size
43632 exceeds INT_MAX; do the check ourselves.
43634 Import the following changes from libc:
43636 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43638 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43639 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43640 set wc to the byte which couldn't be converted.
43641 (re_string_reconstruct): Don't clear valid_raw_len before calling
43642 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43643 tip_context using re_string_context_at.
43645 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43647 * lib/posix/regex.h: g++ still cannot handled [restrict].
43649 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43651 * lib/posix/regex.h: Remove special handling for VMS.
43653 2006-08-10 Jim Meyering <jim@meyering.net>
43655 * modules/same-inode: New module.
43656 * modules/dev-ino: New module.
43657 * modules/cycle-check: Depend on these modules, rather than simply
43658 including their .h files.
43659 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43660 required via m4/cycle-check.m4.
43661 * modules/same: Depend on new same-inode module, rather than
43662 including same-inode.h.
43663 * modules/chdir-safer: New file.
43665 * modules/chown (Depends-on): Add stat-macros.
43667 2006-08-10 Jim Meyering <jim@meyering.net>
43669 * m4/cycle-check.m4: New file.
43670 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43671 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43673 2006-08-10 Eric Blake <ebb9@byu.net>
43675 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43676 in from original proposal.
43678 2006-08-10 Eric Blake <ebb9@byu.net>
43679 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43681 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43684 2006-08-10 Bruno Haible <bruno@clisp.org>
43686 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43689 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43691 Sync from coreutils.
43693 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43695 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43696 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43698 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43700 * modules/restrict: Remove; no longer needed now that we assume
43701 Autoconf 2.59 or later.
43702 * MODULES.html.sh: Remove 'restrict'.
43703 * modules/argp (Depends-on): Remove 'restrict'.
43704 * modules/base64 (Depends-on): Likewise.
43705 * modules/gc (Depends-on): Likewise.
43706 * modules/getaddrinfo (Depends-on): Likewise.
43707 * modules/glob (Depends-on): Likewise.
43708 * modules/inet_ntop (Depends-on): Likewise.
43709 * modules/inet_pton (Depends-on): Likewise.
43710 * modules/memxor (Depends-on): Likewise.
43711 * modules/regex (Depends-on): Likewise.
43712 * modules/strtok_r (Depends-on): Likewise.
43713 * modules/time_r (Depends-on): Likewise.
43715 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43717 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43718 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43719 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43720 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43721 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43722 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43723 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43724 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43726 Merge from coreutils.
43727 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43728 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43729 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43730 * m4/time_r.m4 (gl_TIME_R): Likewise.
43732 2006-08-09 Karl Berry <karl@gnu.org>
43734 * config/srclist.txt: no more gettext-tools, per Bruno.
43736 2006-08-08 Eric Blake <ebb9@byu.net>
43738 * modules/verror: New module.
43739 * MODULES.html.sh: Document it.
43741 2006-08-08 Eric Blake <ebb9@byu.net>
43743 * lib/verror.h, lib/verror.c: New files.
43745 2006-08-08 Eric Blake <ebb9@byu.net>
43747 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43748 verror_at_line output complies with GNU Coding Standards even when
43751 2006-08-07 Bruno Haible <bruno@clisp.org>
43753 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43755 Reported by Ralf Wildenhues.
43757 2006-08-07 Bruno Haible <bruno@clisp.org>
43759 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43760 in an AC_DEFUN. Needed so that the autoconf snippets can use
43763 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43765 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43766 Initialize pkgdata_DATA.
43767 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43770 2006-08-06 Eric Blake <ebb9@byu.net>
43772 * lib/error.h: Fold in some upstream changes from glibc.
43773 * lib/error.c: Likewise.
43775 2006-08-04 Bruno Haible <bruno@clisp.org>
43777 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43778 Make the mostlyclean-local rule depend on mostlyclean-generic.
43779 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43781 2006-07-31 Bruno Haible <bruno@clisp.org>
43783 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43784 <stdlib.h>, <string.h>.
43786 2006-07-30 Bruno Haible <bruno@clisp.org>
43788 * modules/readlink (License): Change to LGPL.
43790 2006-07-30 Bruno Haible <bruno@clisp.org>
43792 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43793 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43794 set PKGDATADIR to point to it.
43796 2006-07-30 Bruno Haible <bruno@clisp.org>
43798 * modules/csharpexec (configure.ac): Comment out macro invocation.
43799 * modules/javaexec (configure.ac): Likewise.
43800 * modules/javacomp-script (configure.ac): Likewise.
43802 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43804 2006-07-30 Bruno Haible <bruno@clisp.org>
43806 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43809 2006-07-30 Bruno Haible <bruno@clisp.org>
43811 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43813 2006-07-30 Bruno Haible <bruno@clisp.org>
43815 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43816 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43819 2006-07-29 Bruno Haible <bruno@clisp.org>
43821 Make it possible for gnulib-tool to work with locally modified or
43822 augmented gnulib repositories.
43823 * gnulib-tool (func_usage): Document --local-dir option.
43824 (local_gnulib_dir): New variable.
43825 Handle --local-dir option.
43826 (func_lookup_file): New function.
43827 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43828 (func_get_description, func_get_filelist, func_get_description,
43829 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43830 func_get_automake_snippet, func_get_include_directive,
43831 func_get_license, func_get_maintainer): Use func_lookup_file.
43832 (func_import, func_create_testdir): Use func_lookup_file.
43834 2006-07-29 Bruno Haible <bruno@clisp.org>
43836 * modules/setenv (Depends-on): Add unistd.
43838 2006-07-29 Bruno Haible <bruno@clisp.org>
43840 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43842 2006-07-29 Bruno Haible <bruno@clisp.org>
43844 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43846 2006-07-29 Bruno Haible <bruno@clisp.org>
43848 * gnulib-tool (import, update): If there is no Makefile.am, look at
43849 aclocal.m4, instead of bailing out.
43851 2006-07-29 Bruno Haible <bruno@clisp.org>
43853 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43854 Categorize the options by when they are useful.
43856 2006-07-29 Bruno Haible <bruno@clisp.org>
43858 * gnulib-tool (func_usage): Document option --no-libtool.
43859 Handle option --no-libtool.
43860 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43861 for changed semantics of $libtool variable.
43862 (func_import): Likewise. If libtool is not used, show this through
43863 an option --no-libtool.
43864 (func_create_testdir): Update.
43866 2006-07-29 Bruno Haible <bruno@clisp.org>
43868 * gnulib-tool (func_import): Extend error message about missing
43871 2006-07-29 Bruno Haible <bruno@clisp.org>
43873 * gnulib-tool (func_import): Don't create the $docbase directory if
43874 there is no file to store there.
43876 2006-07-29 Bruno Haible <bruno@clisp.org>
43878 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43879 relevant, look for configure.ac there, not in the current directory.
43880 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43882 2006-07-29 Bruno Haible <bruno@clisp.org>
43884 * gnulib-tool (SORT): New variable.
43885 (func_usage): Undocument --assume-autoconf option.
43886 Remove --assume-autoconf option handling.
43887 (autoconf_minversion): Determine from the contents of configure.ac.
43888 (func_import): Remove autoconf_minversion handling.
43889 Suggested by Eric Blake.
43891 2006-07-29 Bruno Haible <bruno@clisp.org>
43893 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43895 2006-07-29 Bruno Haible <bruno@clisp.org>
43897 * config/srclist.txt (*setenv.[ch]): Remove rules.
43899 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43901 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43903 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43905 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43908 2006-07-28 Simon Josefsson <jas@extundo.com>
43910 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43911 * modules/inet_pton (Depends-on): Likewise.
43913 2006-07-28 Simon Josefsson <jas@extundo.com>
43915 * m4/netinet_in_h.m4: New file.
43917 2006-07-28 Simon Josefsson <jas@extundo.com>
43919 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43922 2006-07-28 Simon Josefsson <jas@extundo.com>
43924 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43927 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43929 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43930 setgid on directories only if they set these bits.
43931 * lib/modechange.h: Remove obsolete comment about masks.
43933 2006-07-28 Eric Blake <ebb9@byu.net>
43935 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43938 2006-07-28 Bruno Haible <bruno@clisp.org>
43940 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43942 2006-07-28 Bruno Haible <bruno@clisp.org>
43944 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43946 2006-07-28 Bruno Haible <bruno@clisp.org>
43948 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43949 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43951 Avoids link error on FreeBSD 4.x.
43952 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43954 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43956 * lib/mbswidth.c (iswcntrl): Likewise.
43958 2006-07-27 Bruno Haible <bruno@clisp.org>
43960 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43963 2006-07-27 Bruno Haible <bruno@clisp.org>
43965 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43966 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43969 2006-07-26 Eric Blake <ebb9@byu.net>
43971 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43973 2006-07-26 Eric Blake <ebb9@byu.net>
43975 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43976 like mingw that lack mkstemp.
43977 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43978 avoid compilation warning on mingw.
43980 2006-07-26 Bruno Haible <bruno@clisp.org>
43982 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43983 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43984 INT_FAST*_MIN, INTPTR_MIN.
43986 2006-07-25 Bruno Haible <bruno@clisp.org>
43988 * modules/version-etc (Depends-on): Add stdarg.
43990 2006-07-25 Bruno Haible <bruno@clisp.org>
43992 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43995 2006-07-25 Bruno Haible <bruno@clisp.org>
43997 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43998 defined in <stdarg.h> or config.h.
44000 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44002 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44003 (gl_STDIO_SAFER): Remove.
44005 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44007 * MODULES.html.sh (File stream based Input/Output):
44008 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44009 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44010 * modules/fopen-safer, modules/tmpfile-safer: New files.
44011 * modules/stdio-safer: Remove.
44013 2006-07-24 Bruno Haible <bruno@clisp.org>
44015 * modules/tmpdir: New file.
44016 * MODULES.html.sh (File system functions): Add it.
44018 2006-07-24 Bruno Haible <bruno@clisp.org>
44020 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44021 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44023 2006-07-24 Bruno Haible <bruno@clisp.org>
44025 * modules/clean-temp: New file.
44027 2006-07-24 Bruno Haible <bruno@clisp.org>
44029 * m4/tmpdir.m4: New file, from GNU gettext.
44031 2006-07-24 Bruno Haible <bruno@clisp.org>
44033 * lib/tmpdir.h: New file, from GNU gettext.
44034 * lib/tmpdir.c: New file, from GNU gettext.
44036 2006-07-24 Bruno Haible <bruno@clisp.org>
44038 * lib/clean-temp.h: New file, from GNU gettext.
44039 * lib/clean-temp.c: New file, from GNU gettext.
44041 2006-07-23 Eric Blake <ebb9@byu.net>
44043 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44044 (Depends-on): Add binary-io.
44046 2006-07-23 Eric Blake <ebb9@byu.net>
44048 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44050 2006-07-23 Eric Blake <ebb9@byu.net>
44052 * lib/tmpfile-safer.c: New file.
44053 * lib/stdio-safer.h (fopen_safer): Add prototype.
44054 * lib/stdio--.h (tmpfile): Make safer.
44056 2006-07-23 Bruno Haible <bruno@clisp.org>
44058 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44059 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44060 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44061 gl_linked_remove_at): Use it.
44063 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44064 and Simon Josefsson <jas@extundo.com>
44066 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44068 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44070 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44072 * modules/close-stream: New file.
44073 * modules/closeout (Description): Make it clear that it exits
44074 with a diagnostic on error.
44075 (Depends-on): Add close-stream. Remove fpending, stdbool.
44076 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44078 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44080 * m4/close-stream.m4: New file.
44082 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44084 * lib/close-stream.c, lib/close-stream.h: New files.
44086 2006-07-22 Bruno Haible <bruno@clisp.org>
44088 Merge from GNU gettext 0.15.
44090 2006-05-01 Bruno Haible <bruno@clisp.org>
44092 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44094 2006-07-22 Bruno Haible <bruno@clisp.org>
44096 * modules/javaversion: New file.
44097 * MODULES.html.sh (Java): Add javaversion.
44099 2006-03-12 Bruno Haible <bruno@clisp.org>
44101 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44103 2005-12-04 Bruno Haible <bruno@clisp.org>
44105 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44108 2006-06-21 Bruno Haible <bruno@clisp.org>
44110 Avoid warnings from recent versions of mcs.
44111 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44112 -o, -L, -r any more. Use options documented since mcs-1.0
44113 instead. Similarly for -g.
44115 2005-12-04 Bruno Haible <bruno@clisp.org>
44117 * build-aux/csharpcomp.sh.in: Suffix for resources is
44118 .resources, not .resource.
44120 2005-07-09 Bruno Haible <bruno@clisp.org>
44122 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44124 Reported by Mark Junker <mjscod@gmx.de>.
44126 2006-07-22 Bruno Haible <bruno@clisp.org>
44128 * modules/gettext: Upgrade to gettext-0.15.
44129 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44131 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44133 2006-07-22 Bruno Haible <bruno@clisp.org>
44135 Merge from GNU gettext 0.15.
44137 2006-03-25 Bruno Haible <bruno@clisp.org>
44139 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44141 2006-07-21 Bruno Haible <bruno@clisp.org>
44143 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44146 2006-05-09 Bruno Haible <bruno@clisp.org>
44148 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44149 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44150 for the conftestver execution.
44152 2006-05-01 Bruno Haible <bruno@clisp.org>
44154 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44155 optional target-version argument. Verify that the compiler
44156 groks source of the specified source-version, or add -source
44157 option as necessary. Verify that the compiler produces
44158 bytecode in the specified target-version, or add -target and
44159 -source options as necessary. Make the result of the test
44160 available as variable CONF_JAVAC. Also log error output in
44163 2006-03-11 Bruno Haible <bruno@clisp.org>
44165 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44167 2006-05-09 Bruno Haible <bruno@clisp.org>
44169 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44170 CLASSPATH_SEPARATOR to a semicolon.
44172 2006-03-12 Bruno Haible <bruno@clisp.org>
44174 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44175 available as variable CONF_JAVA, for subsequent autoconf
44176 tests. Also log error output in config.log.
44178 2006-07-19 Bruno Haible <bruno@clisp.org>
44180 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44181 that getline works on glibc2 systems. Needed to avoid trouble
44183 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44185 2005-12-04 Bruno Haible <bruno@clisp.org>
44187 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44188 launcher (untested).
44190 2005-12-04 Bruno Haible <bruno@clisp.org>
44192 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44194 2006-07-22 Bruno Haible <bruno@clisp.org>
44196 * gettext.m4: Update from GNU gettext-0.15.
44197 * nls.m4: Likewise.
44199 * inttypes-pri.m4: Likewise.
44200 * inttypes-h.m4: Renamed from inttypes.m4.
44201 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44203 2006-07-22 Bruno Haible <bruno@clisp.org>
44205 Merge from GNU gettext 0.15.
44207 2005-07-05 Bruno Haible <bruno@clisp.org>
44209 * printf-args.c (printf_fetchargs): Work around broken
44210 definition of wint_t on mingw.
44212 2005-02-12 Bruno Haible <bruno@clisp.org>
44214 * xallocsa.h: Add extern "C" for C++.
44216 2006-05-17 Bruno Haible <bruno@clisp.org>
44218 Cygwin portability.
44219 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44221 2006-04-30 Bruno Haible <bruno@clisp.org>
44223 * progreloc.c: Include <mach-o/dyld.h> if available.
44224 (find_executable): Use _NSGetExecutablePath when possible.
44226 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44228 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44231 2005-12-29 Bruno Haible <bruno@clisp.org>
44233 * progreloc.c (set_program_name_and_installdir): Fix
44236 2005-12-04 Bruno Haible <bruno@clisp.org>
44238 Cygwin portability.
44239 * progreloc.c: Include <windows.h> also on Cygwin.
44240 (find_executable): Add support for Cygwin.
44241 (set_program_name_and_installdir): Handle also platforms with
44244 2006-07-11 Bruno Haible <bruno@clisp.org>
44246 * javacomp.c: Fix a comment.
44247 Reported by Jim Meyering.
44249 2006-04-30 Bruno Haible <bruno@clisp.org>
44251 * javacomp.h (compile_java_class): Add source_version,
44252 target_version arguments.
44253 * javacomp.c: Rewritten to choose only a compiler that
44254 respects the specified source_version and target_version.
44256 2006-06-27 Bruno Haible <bruno@clisp.org>
44258 Assume correct S_ISDIR macro.
44259 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44261 2006-07-22 Bruno Haible <bruno@clisp.org>
44263 * javaversion.h: New file, from GNU gettext.
44264 * javaversion.c: New file, from GNU gettext.
44265 * javaversion.java: New file, from GNU gettext.
44266 * javaversion.class: New file, from GNU gettext.
44268 2006-05-17 Bruno Haible <bruno@clisp.org>
44270 Cygwin portability.
44271 * javaexec.c (execute_java_class): Test for jview program
44274 2006-04-09 Bruno Haible <bruno@clisp.org>
44276 * fatal-signal.c: Don't include string.h.
44277 (at_fatal_signal): Use a copying loop instead of memcpy.
44279 2005-12-04 Bruno Haible <bruno@clisp.org>
44281 * csharpexec.c: Add support for 'clix' launcher (untested).
44282 (execute_csharp_using_sscli): New function.
44283 (execute_csharp_program): Call it.
44285 2006-06-21 Bruno Haible <bruno@clisp.org>
44287 Avoid warnings from recent versions of mcs.
44288 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44289 -o, -L, -r any more. Use options documented since mcs-1.0
44290 instead. Similarly for -g.
44292 2005-07-09 Bruno Haible <bruno@clisp.org>
44294 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44296 Reported by Mark Junker <mjscod@gmx.de>.
44298 2006-06-17 Bruno Haible <bruno@clisp.org>
44300 * config.charset: Update for NetBSD 3.0.
44302 2006-05-17 Bruno Haible <bruno@clisp.org>
44304 Cygwin portability.
44305 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44307 2006-05-16 Bruno Haible <bruno@clisp.org>
44309 * localcharset.c [CYGWIN]: Include <windows.h>.
44310 (get_charset_aliases): For Cygwin, return the same CPxxx
44311 aliases list as under WIN32.
44312 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44313 the environment variables. Fall back to GetACP().
44315 2006-04-05 Bruno Haible <bruno@clisp.org>
44317 * config.charset: Update Juan Manuel Guerrero's address.
44319 2005-02-12 Bruno Haible <bruno@clisp.org>
44321 * allocsa.h: Add extern "C" for C++.
44323 2005-02-10 Bruno Haible <bruno@clisp.org>
44325 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44326 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44328 2006-07-22 Bruno Haible <bruno@clisp.org>
44330 * gettext.h: Update to GNU gettext-0.15.
44332 2006-07-22 Bruno Haible <bruno@clisp.org>
44334 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44335 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44336 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44338 2006-07-21 Eric Blake <ebb9@byu.net>
44340 * modules/stdlib-safer: New file.
44341 * MODULES.html.sh (File stream based Input/Output): Add
44344 2006-07-21 Eric Blake <ebb9@byu.net>
44346 * lib/stdlib-safer.h: New file from coreutils, required by
44349 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44351 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44353 2006-07-20 Bruno Haible <bruno@clisp.org>
44355 * gnulib-tool: Recognize new option --assume-autoconf.
44356 (autoconf_minversion): New variable.
44357 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44359 2006-07-20 Bruno Haible <bruno@clisp.org>
44361 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44363 2006-07-19 Derek R. Price <derek@ximbiot.com>
44365 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44366 Reindent and repaginate.
44368 2006-07-19 Derek Price <derek@ximbiot.com>
44370 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44373 2006-07-17 Bruno Haible <bruno@clisp.org>
44375 * modules/list: New file.
44376 * modules/array-list: New file.
44377 * modules/carray-list, modules/carray-list-tests: New files.
44378 * modules/linked-list, modules/linked-list-tests: New files.
44379 * modules/avltree-list, modules/avltree-list-tests: New files.
44380 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44381 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44382 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44383 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44384 * modules/oset: New file.
44385 * modules/array-oset: New file.
44386 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44387 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44388 * tests/test-carray_list.c: New file.
44389 * tests/test-linked_list.c: New file.
44390 * tests/test-avltree_list.c: New file.
44391 * tests/test-rbtree_list.c: New file.
44392 * tests/test-linkedhash_list.c: New file.
44393 * tests/test-avltreehash_list.c: New file.
44394 * tests/test-rbtreehash_list.c: New file.
44395 * tests/test-avltree_oset.c: New file.
44396 * tests/test-rbtree_oset.c: New file.
44397 * MODULES.html.sh (Container data structures): New section.
44399 2006-07-17 Bruno Haible <bruno@clisp.org>
44401 * m4/gl_list.m4: New file.
44403 2006-07-17 Bruno Haible <bruno@clisp.org>
44405 * lib/gl_list.h: New file.
44406 * lib/gl_list.c: New file.
44407 * lib/gl_array_list.h: New file.
44408 * lib/gl_array_list.c: New file.
44409 * lib/gl_carray_list.h: New file.
44410 * lib/gl_carray_list.c: New file.
44411 * lib/gl_linked_list.h: New file.
44412 * lib/gl_linked_list.c: New file.
44413 * lib/gl_anylinked_list1.h: New file.
44414 * lib/gl_anylinked_list2.h: New file.
44415 * lib/gl_avltree_list.h: New file.
44416 * lib/gl_avltree_list.c: New file.
44417 * lib/gl_anyavltree_list1.h: New file.
44418 * lib/gl_anyavltree_list2.h: New file.
44419 * lib/gl_rbtree_list.h: New file.
44420 * lib/gl_rbtree_list.c: New file.
44421 * lib/gl_anyrbtree_list1.h: New file.
44422 * lib/gl_anyrbtree_list2.h: New file.
44423 * lib/gl_anytree_list1.h: New file.
44424 * lib/gl_anytree_list2.h: New file.
44425 * lib/gl_linkedhash_list.h: New file.
44426 * lib/gl_linkedhash_list.c: New file.
44427 * lib/gl_anyhash_list1.h: New file.
44428 * lib/gl_anyhash_list2.h: New file.
44429 * lib/gl_avltreehash_list.h: New file.
44430 * lib/gl_avltreehash_list.c: New file.
44431 * lib/gl_rbtreehash_list.h: New file.
44432 * lib/gl_rbtreehash_list.c: New file.
44433 * lib/gl_anytreehash_list1.h: New file.
44434 * lib/gl_anytreehash_list2.h: New file.
44436 * lib/gl_oset.h: New file.
44437 * lib/gl_oset.c: New file.
44438 * lib/gl_array_oset.h: New file.
44439 * lib/gl_array_oset.c: New file.
44440 * lib/gl_avltree_oset.h: New file.
44441 * lib/gl_avltree_oset.c: New file.
44442 * lib/gl_rbtree_oset.h: New file.
44443 * lib/gl_rbtree_oset.c: New file.
44444 * lib/gl_anytree_oset.h: New file.
44446 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44448 * m4/mkancesdirs.m4: New file.
44449 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44450 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44451 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44454 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44456 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44457 * lib/mkancesdirs.h: New files.
44458 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44459 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44460 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44461 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44462 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44463 callers changed. Revamp internals significantly, by not
44464 attempting to create directories that are temporarily more
44465 permissive than the final results. Do not attempt to use
44466 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44467 This removes some race conditions, fixes some bugs, and simplifies
44468 things. Use new dirchownmod function to do owner and mode changes.
44469 * lib/mkdir-p.h: Likewise.
44470 * lib/modechange.c (octal_to_mode): New function.
44471 (struct mode_change): New member mentioned.
44472 (make_node_op_equals): New arg mentioned. All callers changed.
44473 (mode_compile): Keep track of which mode bits the user has explicitly
44475 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44476 New arg PMODE_BITS, to keep track of which mode bits the user
44477 mentioned; it treats S_ISUID and S_ISGID speciall.
44478 All callers changed.
44479 * lib/modechange.h: Likewise.
44481 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44483 * MODULES.html.sh: Add mkancestors.
44484 * modules/mkancesdirs: New module.
44485 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44486 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44487 The chdir-safer and afs files are now orphans; I'll remove them
44488 unless someone speaks up.
44489 Add lib/dirchownmod.c, lib/dirchownmod.h.
44490 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44491 Add lchown, mkancesdirs.
44492 (Maintainer): Add self.
44494 2006-07-15 Karl Berry <karl@gnu.org>
44496 * gnulib-tool: help message wording/arrangement.
44498 2006-07-14 Simon Josefsson <jas@extundo.com>
44500 * doc/gnulib.texi (Libtool and Windows): New section.
44502 2006-07-12 Simon Josefsson <jas@extundo.com>
44504 * modules/gendocs (License): Fix license, approved by Karl.
44506 2006-07-12 Eric Blake <ebb9@byu.net>
44508 * MODULES.html.sh: Add gendocs.
44510 2006-07-11 Eric Blake <ebb9@byu.net>
44512 * modules/fdl: New module, to install doc/fdl.texi.
44513 * MODULES.html.sh: Add new section for documentation modules.
44514 * gnulib-tool: Avoid space-tab.
44515 (--doc-base): New option, to manage files from doc.
44517 2006-07-11 Eric Blake <ebb9@byu.net>
44519 * m4/absolute-header.m4: Fix comments to match recent change.
44521 2006-07-11 Eric Blake <ebb9@byu.net>
44523 * gnulib-tool: List --doc-base before --tests-base.
44525 2006-07-11 Derek R. Price <derek@ximbiot.com>
44527 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44529 2006-07-11 Bruno Haible <bruno@clisp.org>
44531 * README: Mention where to put documentation.
44533 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44535 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44537 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44539 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44542 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44544 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44545 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44546 "no/such/file/stdint.h" when there is no such file, so that
44547 the resulting C code can be parsed by dodgy compilers.
44548 Problems reported by Bob Proulx.
44550 2006-07-10 Derek R. Price <derek@ximbiot.com>
44552 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44553 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44554 macros into the GNU _D_EXACT_NAMLEN.
44555 * lib/savedir.c: Likewise.
44556 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44558 2006-07-10 Derek R. Price <derek@ximbiot.com>
44559 and Paul Eggert <eggert@cs.ucla.edu>
44561 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44563 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44564 macros into the GNU _D_EXACT_NAMLEN.
44566 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44568 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44569 around the absolute name, to work around a problem with the HP-UX
44570 11.23 native C compiler, reported by Bob Proulx.
44572 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44574 * doc/maintain.texi, make-stds.texi: Sync from
44575 <http://savannah.gnu.org/projects/gnustandards>.
44577 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44579 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44581 2006-07-09 Jim Meyering <jim@meyering.net>
44583 * m4/glob.m4: Remove a doubled word in a comment.
44585 2006-07-09 Jim Meyering <jim@meyering.net>
44587 * lib/argp-pv.c: Remove a doubled word in a comment.
44588 * lib/check-version.c (check_version): Likewise.
44589 * lib/javacomp.c (compile_java_class): Likewise.
44591 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44593 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44594 for the benefit of people using Autoconf 2.60. If you want to
44595 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44596 (or m4/onceonly.m4, if pre-2.57) manually.
44598 2006-07-08 Jim Meyering <jim@meyering.net>
44600 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44602 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44603 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44606 2006-07-08 Jim Meyering <jim@meyering.net>
44608 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44610 2006-07-07 Simon Josefsson <jas@extundo.com>
44612 * tests/test-crc.c: Change expected crc value, the test vector
44613 were probably computed using the old broken crc.c?
44615 2006-07-06 Simon Josefsson <jas@extundo.com>
44617 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44618 now the canonical place for the M4 file).
44620 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44621 from the sys_socket dependency now.
44623 * modules/inet_pton (Files): Ditto.
44625 * modules/inet_ntop (Files): Ditto.
44627 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44629 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44630 not gl_PREREQ_GETUSERSHELL.
44632 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44634 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44635 with only one argument, for Autoconf 2.60.
44636 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44637 expand to nothing, so add a shell command to avoid syntax error.
44638 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44640 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44642 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44644 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44646 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44647 no longer needed. Check for isblank decl.
44648 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44649 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44652 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44654 * lib/getloadavg.c: Use __VMS, not VMS.
44655 * lib/getopt.c: Likewise.
44656 * lib/getpagesize.h: Likewise.
44657 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44658 and probably does not work.
44660 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44662 * lib/.cppi-disable: Add wcwidth.
44663 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44664 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44665 (ISGRAPH): Remove. All uses changed to isgraph.
44666 (FOLD) [!defined _LIBC]: Remove special case.
44667 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44668 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44670 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44673 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44675 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44676 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44677 brackets. Other minor changes to suppress some compiler
44680 2006-07-06 Derek R. Price <derek@ximbiot.com>
44681 and Paul Eggert <eggert@cs.ucla.edu>
44683 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44684 of invoking obsolescent AC_HEADER_DIRENT macro.
44685 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44686 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44687 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44688 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44689 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44690 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44691 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44692 * m4/readdir.m4: Remove; no longer needed.
44694 2006-07-06 Derek R. Price <derek@ximbiot.com>
44695 and Paul Eggert <eggert@cs.ucla.edu>
44697 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44698 Don't worry about this obsolete case any more.
44699 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44701 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44702 worry about this obsolete case any more.
44703 * lib/fts.c: Likewise.
44704 * lib/getcwd.c: Likewise.
44705 * lib/glob.h: Likewise.
44706 * lib/savedir.c: Likewise.
44708 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44710 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44711 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44712 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44715 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44716 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44717 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44719 * m4/getdate.m4 (gl_GETDATE): Likewise.
44720 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44721 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44722 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44723 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44724 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44725 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44726 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44729 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44731 * lib/memcasecmp.c: Include <limits.h>.
44732 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44733 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44734 Don't assume isdigit succeeds only on '0' through '9'.
44736 2006-07-05 Eric Blake <ebb9@byu.net>
44738 * modules/getaddrinfo (Depends-on): Add snprintf.
44740 2006-07-05 Eric Blake <ebb9@byu.net>
44742 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44743 to avoid 'header present but could not be compiled' on cygwin.
44745 2006-07-05 Eric Blake <ebb9@byu.net>
44747 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44748 missing from netdb.h.
44749 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44751 2006-07-05 Derek R. Price <derek@ximbiot.com>
44753 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44755 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44756 * m4/getdate.m4 (gl_GETDATE): Likewise.
44757 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44758 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44759 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44760 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44761 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44763 2006-07-05 Derek R. Price <derek@ximbiot.com>
44765 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44766 All uses of is_space replaced by isspace.
44767 * lib/exit.h: Don't talk about STDC_HEADERS.
44768 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44769 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44770 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44771 replaced by isprint etc.
44772 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44773 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44774 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44775 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44776 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44777 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44779 2006-07-05 Bruno Haible <bruno@clisp.org>
44781 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44782 the function exists, before testing against AIX.
44783 Reported by Martin Lambers <marlam@marlam.de>.
44785 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44787 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44788 From Mark D. Baushke.
44790 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44792 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44793 to the absolute name, not just one, to bypass Sun C 5.8's
44794 "warning: #include of /usr/include/... may be non-portable".
44796 2006-07-04 Eric Blake <ebb9@byu.net>
44798 * modules/dirname-tests: New test module.
44799 * tests/test-dirname.c: New file, replacing dirname.c
44800 TEST_DIRNAME section that was recently deleted.
44802 2006-07-04 Bruno Haible <bruno@clisp.org>
44804 Assume ANSI C header files and <ctype.h> functions.
44805 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44806 (mbsnwidth): Use isprint, iscntrl instead.
44808 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44810 Merge from coreutils.
44811 * MODULES.html.sh: Add xstrtold.
44812 * modules/xstrtold: New file.
44813 * modules/cycle-check (Files): Add lib/same-inode.h.
44814 * modules/dirname (Files): Add m4/double-slash-root.m4.
44815 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44816 * modules/mkdir-p (Files): Add lib/same-inode.h.
44817 * modules/same (Files): Add lib/same-inode.h.
44819 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44821 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44822 This is to keep the terminology clean; POSIX talks about
44823 "absolute pathnames", not "full pathnames", but the GNU
44824 Coding Standards say to use "path" for something else;
44825 so use "absolute" to keep both sides happy.
44826 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44827 Set gl_absolute_header, not gl_full_header_path.
44828 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44829 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44832 Merge from coreutils.
44834 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44836 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44837 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44838 want to require the building of c-strtod.o.
44839 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44840 needs -lm directly.
44841 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44843 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44845 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44846 --as-needed option if available. Problem reported by Albert Chin in
44847 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44848 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44849 cc merely issues a bunch of annoying warnings for --as-needed
44850 (this problem was reported by Bob Proulx). Also, try linking with
44851 -lm to detect a bug in binutils 2.16 (this problem was reported
44852 by Ralf Wildenhues).
44854 2006-06-18 Jim Meyering <jim@meyering.net>
44856 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44857 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44859 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44860 also check for glibc-2.4's abort-inducing bug.
44862 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44863 Low-probability clean-up should be to use rmdir to get rid of
44864 the just-created directory, not unlink.
44866 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44867 configure fail, and request a bug report to inform us about it.
44868 Add a comment that, barring reports to the contrary, in 2007 we'll
44869 assume ftruncate is universally available.
44871 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44873 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44875 2006-03-12 Jim Meyering <jim@meyering.net>
44877 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44878 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44879 * m4/same.m4 (gl_SAME): Likewise.
44880 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44882 2006-03-11 Eric Blake <ebb9@byu.net>
44884 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44885 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44886 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44887 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44889 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44891 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44892 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44893 reported by Mark D. Baushke, one in
44894 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44896 Merge from coreutils.
44898 * lib/.cppi-disable: Add stdint_.h.
44899 * lib/.cvsignore: Add stdint.h.
44901 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44903 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44904 both double and long double versions.
44905 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44906 * lib/xstrtold.c: New file.
44907 * lib/xstrtod.h (xstrtold): New decl.
44909 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44911 * lib/filemode.c (setst): Remove.
44912 (strmode): Rewrite to avoid setst. This makes the code shorter,
44913 (arguably) clearer, and the generated code is a bit smaller on my
44914 Debian GNU/Linux stable x86 host.
44916 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44918 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44919 Assume that filemode.h includes sys/types.h and sys/stat.h.
44920 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44921 (ftypelet): Reorder to put common cases first, for efficiency.
44922 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44924 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44925 of 10, for compatibility with FreeBSD. All callers changed.
44926 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44927 types that can't be deduced solely from st_mode. First arg is now a
44929 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44930 (strmode): Renamed from mode_string.
44931 (filemodestring): New decl.
44932 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44933 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44935 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44937 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44939 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44940 fsusage.h now does that. Include fsusage.h first, to test interface.
44941 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44942 at most one method (the old code could have generated decls that
44943 didn't conform to C89, not that this was ever exercised).
44944 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44946 2006-03-19 Jim Meyering <jim@meyering.net>
44948 Work even in a chroot where d_ino values for entries in "/"
44949 don't match the stat.st_ino values for the same names.
44950 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44951 number, iterate through all entries again, using lstat instead.
44952 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44953 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44955 * lib/getcwd.c (__getcwd): Clarify a comment.
44956 Use memcpy in place of a call to strcpy.
44958 2006-03-12 Jim Meyering <jim@meyering.net>
44960 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44961 matches that of the current directory (which we're about to chdir ".."
44962 out of), then save the dev-ino of the parent, instead.
44964 * lib/same-inode.h (SAME_INODE): New file/macro.
44965 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44966 Include "same-inode.h", instead.
44967 * lib/same.c: Likewise.
44968 * lib/cycle-check.h: Include "same-inode.h".
44969 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44970 * lib/cycle-check.c (SAME_INODE): Remove definition.
44971 * lib/root-dev-ino.h: Include "same-inode.h".
44973 2006-03-11 Eric Blake <ebb9@byu.net>
44975 * lib/same.c (same_name): s/base_name/last_component/
44976 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44977 * lib/filenamecat.c (file_name_concat): Likewise.
44979 2006-03-11 Eric Blake <ebb9@byu.net>,
44980 Paul Eggert <eggert@cs.ucla.edu>
44982 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44983 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44985 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44986 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44987 (last_component): New method.
44988 * lib/dirname.c (dir_len): Determine when drive letters need a
44989 subsequent slash. Preserve // when it is special.
44990 (dir_name): Don't append dot when drive letter is absolute.
44991 [TEST_DIRNAME]: Move into a full-blown gnulib test.
44992 * lib/basename.c (base_name): New semantics - malloc the result.
44993 Preserve // when it is special. Preserve relative files that look
44994 like drive letters.
44995 (base_len): Preserve // when it is special.
44996 (last_component): New method, similar to old base_name semantics.
44997 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44998 base_name. Strip redundant slashes from ///.
45000 2006-07-03 Jim Meyering <jim@meyering.net>
45002 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45003 macro is used before the first cycle_check call.
45005 2006-07-03 Eric Blake <ebb9@byu.net>
45007 * modules/dirname (Depends-on): Add xstrndup.
45009 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45011 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45012 test cases, so that config.log is a bit easier to follow.
45014 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45016 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45017 both are 64 bits, since this seems to be the tradition, and this
45018 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45019 we ever run into a host that prefers long long to long in this
45020 case, we'll need another configure-time test. Problem reported by
45023 2006-07-02 Eric Blake <ebb9@byu.net>
45025 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45027 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45029 * modules/inttypes (Depends-on): No longer depends on stdint.
45030 * modules/stdint (Description): Say more about assumptions.
45031 Say that the fast types might differ. Say macros are used.
45032 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45033 (Makefile.am): Revise list of substituted symbols to match
45035 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45036 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45037 * tests/test-stdint.c (verify_same_types)
45038 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45039 the code conforms to C99/C89.
45040 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45041 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45043 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45045 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45046 but fix a bug, by requiring at least 64 bits.
45047 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45048 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45049 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45050 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45052 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45053 changes. Make 2.59 a prerequisite. Check and substitute for
45054 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45055 inttypes.h. Do not use special include files; just use the
45056 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45057 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45058 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45059 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45060 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45061 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45062 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45063 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45064 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45065 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45066 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45067 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45068 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45069 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45070 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45071 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45072 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45073 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45074 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45075 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45076 WINT_MAX. Check for C99 conformance more strictly, by detecting
45077 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45078 not check for things that C99 does not require, e.g., int8_t. If
45079 a test isn't needed unless <stdint.h> isn't working, and is
45080 unlikely to be needed for any other reason, then don't do it
45081 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45082 size_t, since we assume C89 freestanding at least. Do not check
45083 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45084 the right thing even if the types are not defined. Instead use:
45085 (gl_STDINT_TYPE_PROPERTIES): New macro.
45086 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45087 testing whether <sys/types.h> clashes, as Autoconf does this for
45088 us now. All uses removed.
45089 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45090 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45091 (gl_CHECK_TYPE_SAME):
45092 Remove; no longer needed.
45093 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45094 exists, since we'll return 0 anyway in that case.
45095 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45097 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45099 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45100 possible collision with system files.
45101 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45102 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45103 WCHAR_MIN and WCHAR_MAX in this case.
45104 (<stddef.h>): Do not include; no longer needed.
45105 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45106 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45107 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45108 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45109 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45110 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45111 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45112 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45113 !defined(__c99))]: Include in this case too, since it's harmless
45115 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45116 dangerous to do so.
45117 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45118 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45119 (_STDINT_MIN, _STDINT_MAX): New macros.
45120 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45121 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45122 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45123 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45124 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45125 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45126 macros, not typedefs; this simplifies things quite a bit.
45127 Use long int for all types narrower than int64_t.
45128 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45129 Define in terms of long long int or int64_t or long int,
45130 not int64_t or int32_t. This saves some compile-time testing.
45131 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45132 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45133 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45134 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45135 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45136 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45137 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45138 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45139 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45140 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45141 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45142 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45143 undef any previous version and define our own version, for
45144 simplicity and consistency with the new macros for types.
45145 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45146 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45147 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45148 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45149 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45150 @WINT_T_SUFFIX@ to keep things simple here.
45151 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45152 Simplify by assuming typical 8/16/32/64 host, since we're
45153 already doing that elsewhere anyway.
45154 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45155 and assume long long int is 64 bits if available. This
45156 speeds up 'configure'.
45158 2006-07-01 Eric Blake <ebb9@byu.net>
45160 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45161 Reported by Andreas Buening.
45163 2006-07-01 Eric Blake <ebb9@byu.net>
45165 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45167 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45169 * lib/getaddrinfo.c: fixed typo
45171 2006-06-29 Jim Meyering <jim@meyering.net>
45173 * modules/strftime (Maintainer): Add my name, since with the
45174 FPRINTFTIME changes strftime.c has forked from glibc.
45176 2006-06-29 Eric Blake <ebb9@byu.net>
45178 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45180 2006-06-29 Eric Blake <ebb9@byu.net>
45182 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45184 2006-06-29 Eric Blake <ebb9@byu.net>
45186 * lib/stat_.h: New file.
45188 2006-06-29 Eric Blake <ebb9@byu.net>
45190 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45191 unused static function.
45193 2006-06-29 Eric Blake <ebb9@byu.net>
45195 * doc/functions.texi (Function Portability): Document missing lstat
45198 2006-06-29 Eric Blake <ebb9@byu.net>
45200 * MODULES.html.sh: Add sys_stat.
45201 * modules/sys_stat: New module.
45202 * modules/mkstemp (Depends-on): Add sys_stat.
45204 2006-06-29 Derek R. Price <derek@ximbiot.com>
45206 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45208 2006-06-29 Derek R. Price <derek@ximbiot.com>
45210 * m4/c-bs-a.m4: Removed.
45212 2006-06-29 Derek R. Price <derek@ximbiot.com>
45214 * lib/strftime.c: Assume strftime() exists.
45216 2006-06-29 Derek Price <derek@ximbiot.com>
45218 * modules/c-bs-a: Removed - \a is C89.
45219 * MODULES.html.sh: Remove c-bs-a.
45221 2006-06-29 Bruno Haible <bruno@clisp.org>
45223 * modules/wcwidth (License): Change to LGPL.
45225 2006-06-28 Simon Josefsson <jas@extundo.com>
45227 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45230 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45233 2006-06-28 Simon Josefsson <jas@extundo.com>
45235 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45237 2006-06-28 Simon Josefsson <jas@extundo.com>
45239 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45240 functions there. It will succeed on Windows XP, but on Windows
45241 2000 and (presumably) earlier, it will fail, and use the internal
45243 (use_win32_p): New function.
45244 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45245 Support AI_NUMERICSERV to disable getservbyname.
45246 (getnameinfo): New function, only supports
45247 NI_NUMERICHOST|NI_NUMERICSERV for now.
45249 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45250 only have some of them. Add AI_NUMERICSERV. Add prototype for
45253 2006-06-28 Eric Blake <ebb9@byu.net>
45255 * modules/wcwidth: New file.
45256 * modules/mbchar (Depends-on): Add wcwidth.
45257 * modules/mbswidth (Depends-on): Add wcwidth.
45258 * MODULES.html.sh: Add wcwidth.
45260 2006-06-28 Eric Blake <ebb9@byu.net>
45262 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45263 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45265 2006-06-28 Eric Blake <ebb9@byu.net>
45267 * lib/xvasprintf.h: Fix comments.
45269 2006-06-28 Eric Blake <ebb9@byu.net>
45271 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45272 * lib/mbswidth.c (wcwidth): Move from here...
45273 * lib/wcwidth.h: ...to this new file.
45275 2006-06-28 Derek R. Price <derek@ximbiot.com>
45277 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45279 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45281 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45283 2006-06-28 Derek R. Price <derek@ximbiot.com>
45285 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45286 Autoconf 2.60 says this stuff was obsolete.
45288 2006-06-28 Bruno Haible <bruno@clisp.org>
45290 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45292 2006-06-28 Bruno Haible <bruno@clisp.org>
45294 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45297 2006-06-28 Bruno Haible <bruno@clisp.org>
45299 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45300 declaration for wcwidth.
45301 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45303 2006-06-28 Bruno Haible <bruno@clisp.org>
45305 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45306 (mkdir): Define using _mkdir.
45308 2006-06-28 Bruno Haible <bruno@clisp.org>
45310 * lib/getaddrinfo.h: Fix POSIX URL.
45311 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45313 (use_win32_p): Make static.
45314 (getaddrinfo): Reject service name if it is empty or does not consist
45315 solely of decimal digits, or if its value is > 65535.
45316 (getnameinfo): Remove useless casts.
45318 2006-06-27 Simon Josefsson <jas@extundo.com>
45320 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45321 Eggert and Martin Lambers.
45323 2006-06-27 Simon Josefsson <jas@extundo.com>
45325 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45326 Eggert and Martin Lambers.
45328 2006-06-27 Bruno Haible <bruno@clisp.org>
45330 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45331 result to 0, not to empty.
45332 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45334 2006-06-27 Bruno Haible <bruno@clisp.org>
45336 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45338 2006-06-26 Simon Josefsson <jas@extundo.com>
45340 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45343 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45345 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45346 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45347 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45349 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45351 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45353 2006-06-26 Bruno Haible <bruno@clisp.org>
45355 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45357 2006-06-26 Bruno Haible <bruno@clisp.org>
45359 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45361 2006-06-26 Bruno Haible <bruno@clisp.org>
45363 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45364 SGI C compiler in pre-C99 mode.
45365 Suggested by Mark D. Baushke and Larry Jones.
45367 2006-06-26 Bruno Haible <bruno@clisp.org>
45369 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45371 Reported by Mark D. Baushke and Larry Jones.
45373 2006-06-26 Bruno Haible <bruno@clisp.org>
45375 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45377 Suggested by Mark D. Baushke and Larry Jones.
45379 2006-06-23 Simon Josefsson <jas@extundo.com>
45380 Bruno Haible <bruno@clisp.org>
45382 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45383 Emit mostlyclean-local rule.
45384 (func_emit_tests_Makefile_am): Likewise.
45385 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45387 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45389 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45391 2006-06-23 Bruno Haible <bruno@clisp.org>
45393 * tests/test-stdint.c: Update to match ISO C 99 Technical
45396 2006-06-23 Bruno Haible <bruno@clisp.org>
45398 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45400 2006-06-23 Bruno Haible <bruno@clisp.org>
45402 * lib/stdint_.h: Treat IRIX like OpenBSD.
45404 2006-06-23 Bruno Haible <bruno@clisp.org>
45406 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45407 ISO C 99 Technical Corrigendum 1.
45409 2006-06-22 Simon Josefsson <jas@extundo.com>
45411 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45414 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45416 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45417 needed. Some compiler complained about some of them. Problem reported
45419 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45421 2006-06-21 Simon Josefsson <jas@extundo.com>
45423 * tests/test-getaddrinfo.c: New file.
45425 * modules/getaddrinfo-tests: New file.
45427 * MODULES.html.sh: Add inet_pton.
45429 * modules/inet_pton: New file.
45431 2006-06-21 Simon Josefsson <jas@extundo.com>
45433 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45434 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45435 of using the (limited) gnulib implementation on Windows XP.
45437 * m4/inet_pton.m4: New file.
45439 2006-06-21 Simon Josefsson <jas@extundo.com>
45441 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45444 * lib/socket_.h: Don't define WINVER.
45446 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45447 slightly modified to work in gnulib.
45449 2006-06-21 Simon Josefsson <jas@extundo.com>
45451 * doc/gnulib.texi (Windows sockets): Add.
45453 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45455 * lib/read-file.c (fread_file): Start with buffer allocation of
45456 0 bytes rather than 1 byte; this simplifies the code.
45457 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45458 code to free buffer and save/restore errno.
45459 (internal_read_file): Remove unused local.
45461 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45463 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45464 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45465 Problem reported by Denis Excoffier in
45466 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45468 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45470 * modules/sys_socket, modules/socklen: Include sys/types since
45471 FreeBSD 4.x's sys/socket.h needs it.
45473 2006-06-19 Simon Josefsson <jas@extundo.com>
45475 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45477 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45479 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45481 2006-06-19 Bruno Haible <bruno@clisp.org>
45483 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45484 and FULL_PATH_INTTYPES_H in angle brackets.
45485 Reported by Mark D. Baushke <mdb@gnu.org>.
45487 2006-06-17 Eric Blake <ebb9@byu.net>
45489 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45492 2006-06-17 Bruno Haible <bruno@clisp.org>
45494 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45497 2006-06-17 Bruno Haible <bruno@clisp.org>
45499 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45500 whether errno is declared. Assume <errno.h> declares errno.
45502 2006-06-17 Bruno Haible <bruno@clisp.org>
45504 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45506 2006-06-17 Bruno Haible <bruno@clisp.org>
45508 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45509 problem on Solaris 2.5.1.
45511 2006-06-16 Eric Blake <ebb9@byu.net>
45513 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45514 * lib/unicodeio.c [!defined errno]: Likewise.
45515 * lib/strtol.c [!defined errno]: Likewise.
45516 * lib/strtod.c [!defined errno]: Likewise.
45518 2006-06-15 Eric Blake <ebb9@byu.net>
45520 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45522 2006-06-15 Eric Blake <ebb9@byu.net>
45524 * config/srclist.txt (ssize_t.m4): Lose sync.
45526 2006-06-15 Bruno Haible <bruno@clisp.org>
45528 * modules/stdint (Files): Include m4/full-header-path.m4,
45529 m4/size_max.m4, m4/wchar_t.m4.
45530 (Makefile.am): Many more substitutions.
45531 * modules/stdint-tests: New file.
45532 * tests/test-stdint.c: New file.
45534 2006-06-15 Bruno Haible <bruno@clisp.org>
45536 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45537 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45538 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45539 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45540 gl_CHECK_TYPE_SAME): New macros.
45542 2006-06-15 Bruno Haible <bruno@clisp.org>
45544 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45546 2006-06-15 Bruno Haible <bruno@clisp.org>
45548 * lib/stdint_.h: Rewritten to be fully auto-configured.
45549 Fixes bug on HP-UX/IA64.
45551 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45553 * lib/getdate.y (__attribute__): Don't define if already defined.
45554 Problem reported by Larry Jones.
45555 * lib/utimens.c (__attribute__): Likewise.
45557 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45559 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45560 reported by Andreas Schwab.
45562 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45563 Bruno Haible <bruno@clisp.org>
45565 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45566 check for the declaration of strnlen and a run test that exposes the
45567 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45570 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45571 Bruno Haible <bruno@clisp.org>
45573 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45575 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45577 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45578 compile test, for Tru64 4.0D.
45580 2006-05-28 Karl Berry <karl@gnu.org>
45582 * config/srclist.txt (printf-args.c): lose sync.
45584 2006-05-26 Martin Lambers <marlam@marlam.de>
45586 * lib/getpass.c: Updates the test for the native W32 API, and adds
45587 missing includes, thus fixing compilation warnings.
45589 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45591 * lib/exclude.c (exclude_fnmatch): New function.
45592 (excluded_file_name): Call exclude_fnmatch.
45593 * lib/exclude.h (excluded_file_name): New prototype
45595 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45597 * lib/tempname.c (small_open, large_open): New macros.
45598 (__open, __open64) [!_LIBC]: Remove.
45599 (__gen_tempname): Use small_open and large_open instead of __open
45600 and __open64. This fixes a portability bug on HP-UX 11.11i
45601 reported by Simon Wing-Tang in
45602 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45604 2006-05-24 Bruno Haible <bruno@clisp.org>
45606 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45607 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45608 Reported by Thorsten Maerz <torte@netztorte.de> via
45609 Aaron Stone <aaron@serendipity.cx>.
45611 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45613 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45614 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45615 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45616 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45617 not really conditional on the cache.
45618 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45620 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45622 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45623 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45624 (my_usleep): Don't mishandle maximum value.
45626 2006-05-19 Jim Meyering <jim@meyering.net>
45628 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45630 2006-05-17 Bruno Haible <bruno@clisp.org>
45632 Cygwin portability.
45633 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45635 2006-05-17 Bruno Haible <bruno@clisp.org>
45637 * lib/stdint_.h: Fix recognition of Cygwin.
45639 2006-05-15 Bruno Haible <bruno@clisp.org>
45641 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45642 on libtool patch by Ralf Wildenhues.
45644 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45646 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45647 test for C99 conformance; (bool) 0.5 is an integer constant
45648 expression, but (bool) -0.5 is not. Problem reported by Fedor
45649 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45651 2006-05-11 Simon Josefsson <jas@extundo.com>
45653 * m4/xvasprintf.m4: Fix obvious typo.
45655 2006-05-11 Jim Meyering <jim@meyering.net>
45657 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45660 2006-05-10 Simon Josefsson <jas@extundo.com>
45662 * lib/md4.c: Typo fix, update copyright years.
45663 (K1, K2): Don't use L because it turn computations into 64-bit on
45666 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45668 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45669 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45670 unwanted sign propagation, e.g., on hosts with 64-bit int.
45671 There still are some problems with reeelly weird theoretical hosts
45672 (e.g., 33-bit int) but it's not worth worrying about now.
45673 * lib/sha1.c (rol): Likewise.
45674 (K1, K2, K3, K4): Remove unnecessary L suffix.
45676 2006-05-10 Bruno Haible <bruno@clisp.org>
45678 * lib/des.c: Cast to avoid warnings.
45680 2006-05-09 Bruno Haible <bruno@clisp.org>
45682 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45683 (Depends-on): Depend also on xsize, stdarg.
45684 (configure.ac): Add gl_XVASPRINTF.
45686 2006-05-09 Bruno Haible <bruno@clisp.org>
45688 * m4/xvasprintf.m4: New file.
45690 2006-05-09 Bruno Haible <bruno@clisp.org>
45692 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45693 (EOVERFLOW): Define fallback value.
45694 (xstrcat): New function.
45695 (xvasprintf): Recognize the special case of a string concatenation.
45697 2006-05-08 Eric Blake <ebb9@byu.net>
45699 * gnulib-tool (func_version): Base copyright year on CVS date.
45700 (func_emit_copyright_notice): New function.
45701 (func_emit_lib_Makefile_am): Use it.
45702 (func_emit_tests_Makefile_am): Likewise.
45703 (func_import): Likewise.
45705 2006-05-08 Bruno Haible <bruno@clisp.org>
45707 * modules/stdarg: New file.
45708 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45710 2006-05-08 Bruno Haible <bruno@clisp.org>
45712 * m4/stdarg.m4: New file, from GNU gettext.
45714 2006-05-08 Bruno Haible <bruno@clisp.org>
45716 * config/srclist.txt (build-aux/config.rpath): different from latest
45719 2006-05-08 Bruno Haible <bruno@clisp.org>
45721 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45723 2006-05-05 Jim Meyering <jim@meyering.net>
45725 * m4/warning.m4: New file, derived from bison's file by the same name.
45727 2006-05-03 Bruno Haible <bruno@clisp.org>
45729 * lib/stdint_.h: Shorter URL.
45730 * lib/inttypes.h: Likewise.
45732 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45734 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45736 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45738 * lib/verify.h: Document the internals better. Most of this change
45739 was written by Bruno Haible.
45741 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45743 * doc/verify.texi: New file, partly based on a proposal by
45746 2006-05-02 Bruno Haible <bruno@clisp.org>
45748 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45750 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45752 2006-04-29 Bruno Haible <bruno@clisp.org>
45754 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45755 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45757 2006-04-29 Bruno Haible <bruno@clisp.org>
45759 * gnulib-tool: Make --update option actually work.
45761 2006-04-29 Bruno Haible <bruno@clisp.org>
45763 * doc/gcd.texi: New file.
45764 * doc/gnulib.texi: Include it.
45766 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45768 * lib/getdate.y (get_date): When adding relative date, start with the
45769 initial time, not with the result of the first mktime call.
45771 2006-04-25 Bruno Haible <bruno@clisp.org>
45773 * gnulib-tool (func_import): Output the include directives in three
45774 blocks, sorted separately.
45775 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45777 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45779 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45780 to define main with arguments, for C++. Reported by Eric Blake.
45781 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45782 Prefer 'int main ()' to 'int main (void)', for C++.
45783 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45784 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45785 for 'main', for C99 and C++.
45787 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45789 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45790 Don't assume that exit status -1 is valid.
45791 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45792 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45793 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45794 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45795 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45796 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45797 not AC_TRY_RUN. Use return, not exit. Don't assume that
45798 functions can be used without declaring them, or that you can
45799 exit with status -1.
45800 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45802 2006-04-24 Karl Berry <karl@gnu.org>
45804 * config/srclist.txt (longdouble.m4): sync lost.
45806 2006-04-24 Eric Blake <ebb9@byu.net>
45808 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45810 2006-04-24 Bruno Haible <bruno@clisp.org>
45812 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45813 poll() implementation in AIX.
45814 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45816 2006-04-24 Bruno Haible <bruno@clisp.org>
45818 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45819 assigned exactly once.
45821 2006-04-23 Claudio Fontana <claudio@gnu.org>
45822 Bruno Haible <bruno@clisp.org>
45824 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45825 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45828 2006-04-23 Bruno Haible <bruno@clisp.org>
45830 * modules/copy-file: Depend on unistd.
45831 * modules/execute: Likewise.
45832 * modules/fatal-signal: Likewise.
45833 * modules/findprog: Likewise.
45834 * modules/mkdtemp : Likewise.
45835 * modules/pipe: Likewise.
45836 * modules/wait-process: Likewise.
45838 2006-04-23 Bruno Haible <bruno@clisp.org>
45840 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45841 condition was already detected.
45842 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45844 2006-04-23 Bruno Haible <bruno@clisp.org>
45846 * lib/copy-file.c: Include <unistd.h> unconditionally.
45847 * lib/execute.c: Likewise.
45848 * lib/fatal-signal.c: Likewise.
45849 * lib/findprog.c: Likewise.
45850 * lib/mkdtemp.c: Likewise.
45851 * lib/pipe.h: Likewise.
45852 * lib/pipe.c: Likewise.
45853 * lib/wait-process.h: Likewise.
45855 2006-04-23 Bruno Haible <bruno@clisp.org>
45857 * gnulib-tool (func_usage): Fix --import description. Document
45859 (func_import): Create temporary file in a temporary directory, if
45860 --dry-run is specified. Silence errors from 'grep' when there are no
45861 m4 files in $m4dir.
45862 (func_create_testdir): Silence errors from 'grep' when there are no
45863 m4 files in $m4dir.
45864 Reported by Karl Berry <karl@freefriends.org>.
45866 2006-04-20 Bruno Haible <bruno@clisp.org>
45868 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45869 one argument, so that the code will be portable to Autoconf 2.60.
45870 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45871 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45872 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45874 2006-04-19 Derek Price <derek@ximbiot.com>
45875 Eric Blake <ebb9@byu.net>
45877 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45878 rather than "/full/path.h". Update comment to match. Shorten &
45879 generalize m4_translit call via AS_TR_CPP.
45881 2006-04-19 Derek Price <derek@ximbiot.com>
45882 Eric Blake <ebb9@byu.net>
45884 * lib/inttypes.h: Correct grammar in comment.
45886 2006-04-18 Derek Price <derek@ximbiot.com>
45887 Paul Eggert <eggert@cs.ucla.edu>
45889 * modules/inttypes: New file.
45890 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45892 2006-04-18 Derek Price <derek@ximbiot.com>
45893 Paul Eggert <eggert@cs.ucla.edu>
45895 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45898 2006-04-18 Derek Price <derek@ximbiot.com>
45899 Paul Eggert <eggert@cs.ucla.edu>
45901 * lib/inttypes.h: New file.
45902 * lib/strtoimax.c: Assume <inttypes.h>.
45904 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45906 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45907 isn't mounted. Problem reported by Kir Kolyshkin.
45909 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45911 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45912 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45914 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45917 2006-04-12 Eric Blake <ebb9@byu.net>
45919 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45920 is now done automatically by the corresponding Autoconf macro.
45922 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45924 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45927 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45929 Merge regex changes from libc, removing some of our
45930 POSIX-conformance changes that were rejected and redoing them in a
45931 less-intrusive way.
45933 * lib/regcomp.c (re_compile_internal, init_dfa):
45934 Length arg is now size_t, not Idx. All uses changed.
45935 (peek_token): Forward decl now says internal_function.
45936 (__re_error_msgid, __re_error_msgid_idx):
45937 Now static rather than extern with attribute_hidden.
45938 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45939 For some reason libc prefers K&R style defns for external functions.
45940 (regerror) [!defined _LIBC]: Likewise.
45941 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45942 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45943 (build_range_exp, build_collating_symbol):
45944 Use K&R-style defn.
45945 (re_compile_fastmap): Use '\0' to memset, not 0.
45946 (utf8_sb_map): Make the calculations more obvious.
45947 (init_dfa, parse_bracket_exp, build_charclass_op):
45948 Call calloc and cast result, as glibc does.
45949 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45950 (build_range_exp, build_collating_symbol):
45951 Now internal functions.
45953 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45955 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45956 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45957 Don't depend on VMS; depend on __VMS instead, for POSIX
45958 namespace cleanness.
45959 (regoff_t): Define to ssize_t, not long int.
45961 Remove the REG_ macros named below. Instead, make the old names
45962 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45964 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45965 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45966 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45967 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45968 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45969 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45970 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45971 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45972 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45973 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45974 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45975 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45976 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45977 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45978 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45979 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45980 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45982 Remove. All uses replaced by the old RE_* names.
45983 (RE_BACKSLASH_ESCAPE_IN_LISTS):
45984 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45985 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45986 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45987 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45988 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45989 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45990 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45991 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45992 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45993 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45994 Don't bother having these macros be independent of each others'
45995 values, since they no longer exist in the POSIX name space.
45997 Rename the following member names back to their old names,
45998 unless !__USE_GNU_REGEX. All uses changed back.
45999 (buffer): Renamed from re_buffer.
46000 (allocated): Renamed from re_allocated.
46001 (used): Renamed from re_used.
46002 (syntax): Renamed from re_syntax.
46003 (fastmap): Renamed from re_fastmap.
46004 (translate): Renamed from re_translate.
46005 (can_be_null): Renamed from re_can_be_null.
46006 (regs_allocated): Renamed from re_regs_allocated.
46007 (fastmap_accurate): Renamed from re_fastmap_accurate.
46008 (no_sub): Renamed from re_no_sub.
46009 (not_bol): Renamed from re_not_bol.
46010 (not_eol): Renamed from re_not_eol.
46011 (newline_anchor): Renamed from re_newline_anchor.
46012 (num_regs): Renamed from rm_num_regs.
46013 (start): Renamed from rm_start.
46014 (end): Renamed from rm_end.
46016 (free_state): Move up a bit.
46018 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46019 #define to be empty.
46020 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46021 when that is what is intended.
46022 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46023 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46025 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46026 All uses changed back to re_malloc, etc. It's now the caller's
46027 responsibility to check for overflow; all callers changed.
46028 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46029 (re_x2nrealloc): Remove.
46030 (free_state): Remove decl.
46032 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46033 (re_set_registers, re_exec):
46034 Use K&R-style defn.
46036 2006-01-31 Roland McGrath <roland@redhat.com>
46038 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46039 Reported by Mike Frysinger <vapier@gentoo.org>.
46041 2006-01-15 Andreas Jaeger <aj@suse.de>
46044 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46045 build_wcs_upper_buffer change.
46046 (build_wcs_upper_buffer): Change return type.
46048 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46050 * lib/regex_internal.h: Include <stdint.h> if available.
46052 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46054 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46056 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46058 * lib/regcomp.c: Adjust for changed secondary hash function.
46060 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46062 * lib/regex.h: Pretty printing.
46063 Clean up namespace a bit.
46065 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46067 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46068 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46070 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46071 Ulrich Drepper <drepper@redhat.com>
46074 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46076 (bitset_word_t): Renamed from bitset_word. All uses changed.
46078 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46081 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46082 * lib/regcomp.c: Remove unnecessary uses of
46083 unsigned RE_TRANSLATE_TYPE.
46084 * lib/regex_internal.h: Likewise.
46085 * lib/regex_internal.c: Likewise.
46086 * lib/regexec.c: Likewise.
46087 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46089 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46091 * lib/regexec.c (find_recover_state): Remove unnecessary
46093 (transit_state_bkref): Make DFA a const pointer.
46094 (get_subexp): Likewise.
46095 (check_arrival): Likewise.
46096 (update_cur_sifted_state): Likewise.
46097 (re_search_internal): Likewise.
46098 (prune_impossible_nodes): Likewise.
46099 (acquire_init_state_context): Likewise.
46100 (proceed_next_node): Likewise.
46101 (set_regs): Likewise.
46102 (free_fail_stack_return): Likewise.
46103 (check_arrival_expand_ecl): Mark DFA parameter as const.
46104 (check_arrival_expand_ecl_sub): Likewise.
46105 (check_subexp_limits): Likewise.
46106 (sub_epsilon_src_nodes): Likewise.
46107 (add_epsilon_src_nodes): Likewise.
46108 (merge_state_array): Likewise.
46109 (update_regs): Likewise.
46110 (build_trtable): Likewise.
46111 (sift_states_backward): Mark MCTX parameter as const.
46112 (build_sifted_states): Likewise.
46113 (update_cur_sifted_state): Likewise.
46114 (sift_states_mkref): Likewise.
46115 (check_arrival_expand_ecl): Mark eclosure as const.
46116 (check_dst_limits_calc_pos_1): Likewise.
46117 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46120 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46122 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46123 (transit_state_sb): Likewise.
46124 (transit_state_mb): Likewise.
46125 (sift_states_iter_mb): Likewise.
46126 (check_arrival_add_next_nodes): Likewise.
46127 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46128 [_LIBC] (re_search_2_stub): Use mempcpy.
46130 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46131 mbrtowc for very simple UTF-8 case.
46133 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46134 a pointer-to-const.
46135 (re_acquire_state_context): Likewise.
46136 * lib/regex_internal.h: Adjust prototypes.
46138 * lib/regex.c: Prevent using C++ compilers.
46140 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46141 (re_acquire_state_context): Likewise.
46143 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46145 * modules/regex (Depends-on): Add ssize_t.
46147 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46149 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46152 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46154 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46156 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46157 Bruno Haible <bruno@clisp.org>
46159 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46160 <sys/types.h> and <inttypes.h>.
46162 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46164 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46165 `__error_t_defined', so argp.h will not typedef the former.
46167 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46169 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46170 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46171 glibc names. Even if glibc is changed to conform to POSIX, the
46172 traditional names will be available anyway, since regex depends on
46173 the extensions module. Also, fix a longstanding typo in the
46174 implementation of Spencer ERE test #75 from grep 2.3. Problems
46175 reported by Emanuele Giaquinta. Also, change sense of cached
46176 variable, so that the message makes sense.
46178 2006-03-24 Simon Josefsson <jas@extundo.com>
46180 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46181 including some doc fixes.
46182 (base64_encode_alloc): Fix +1 bug on allocation failures.
46184 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46186 * lib/base64.c (base64_encode): Do not read past end of array with
46187 unsanitized input on systems with CHAR_BIT > 8.
46189 2006-03-24 Eric Blake <ebb9@byu.net>
46191 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46193 2006-03-22 Karl Berry <karl@gnu.org>
46195 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46196 * config/srclistvars.sh (COREUTILS): new var.
46198 2006-03-17 Jim Meyering <jim@meyering.net>
46200 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46201 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46203 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46205 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46206 no longer needs it. Instead, check that regoff_t is as least
46207 as wide as ptrdiff_t.
46209 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46210 so that our regex.h stays compatible with the installed regex.
46211 This is helpful for installers who configure --without-included-regex.
46212 Problem reported by Emanuele Giaquinta.
46214 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46216 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46217 Typedef to long int, not to off_, as POSIX will likely change
46220 2006-03-15 Eric Blake <ebb9@byu.net>
46222 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46224 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46226 * lib/argp-help.c (validate_uparams): Fix typo
46227 * lib/argp-parse.c (argp_default_options): Consistently begin help
46228 messages with a lowercase letter.
46230 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46232 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46233 overrun buffers and shouldn't be used (much as gets shouldn't be
46235 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46237 2006-03-08 Simon Josefsson <jas@extundo.com>
46239 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46240 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46242 2006-03-08 Simon Josefsson <jas@extundo.com>
46244 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46245 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46247 2006-03-08 Simon Josefsson <jas@extundo.com>
46249 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46250 signal that configure disabled the device.
46252 2006-03-08 Simon Josefsson <jas@extundo.com>
46254 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46257 2006-03-07 Simon Josefsson <jas@extundo.com>
46259 * modules/getopt (Depends-on): Add unistd.
46261 * modules/unistd: New file.
46263 2006-03-07 Simon Josefsson <jas@extundo.com>
46265 * modules/gc-random: New file.
46267 2006-03-07 Simon Josefsson <jas@extundo.com>
46269 * m4/unistd_h.m4: New file.
46271 2006-03-07 Simon Josefsson <jas@extundo.com>
46273 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46274 test to be side-effect free by storing the result in the cache
46275 variable gl_cv_lib_readline, and moving the assignment of
46276 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46277 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46279 2006-03-07 Simon Josefsson <jas@extundo.com>
46281 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46282 error on missing devices (the functions will return an error).
46284 * m4/gc.m4: Move random stuff to gc-random.m4
46286 2006-03-07 Simon Josefsson <jas@extundo.com>
46288 * lib/unistd_.h: New file.
46290 2006-03-07 Simon Josefsson <jas@extundo.com>
46292 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46294 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46296 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46297 Problem reported by Juan Manuel Guerrero.
46299 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46301 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46303 * lib/getlogin_r.c: Likewise.
46304 * lib/getlogin_r.h: Likewise.
46305 * lib/glob.c: Likewise.
46306 * lib/pagealign_alloc.c: Likewise.
46307 * lib/unistd_.h: Remove; no longer needed.
46309 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46311 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46313 * modules/c-stack (Depends-on): Add unistd.
46314 * modules/getlogin_r: Likewise.
46315 * modules/glob: Likewise.
46316 * modules/pagealign_alloc: Likewise.
46317 * modules/unistd (Files): Remove lib/unistd_.h.
46318 (EXTRA_DIST): Remove.
46319 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46321 (MOSTLYCLEANFILES): Remove unistd.h-t.
46323 2006-03-03 Simon Josefsson <jas@extundo.com>
46325 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46327 2006-03-03 Simon Josefsson <jas@extundo.com>
46329 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46332 2006-03-03 Simon Josefsson <jas@extundo.com>
46334 * build-aux/maint.mk: Add indent target.
46336 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46338 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46339 our replacement poll.h in any case, to avoid a differing
46340 declaration from a system header. Seen on AIX.
46342 2006-03-01 Simon Josefsson <jas@extundo.com>
46344 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46347 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46349 * modules/gettime (Depends-on): Add extensions module.
46350 * modules/nanosleep (Depends-on): Likewise.
46351 * modules/settime (Depends-on): Likewise.
46353 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46355 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46356 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46358 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46359 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46361 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46362 not "==". Reported by Ralf Wildenhues.
46364 2006-03-01 Karl Berry <karl@gnu.org>
46366 * doc/Copyright/request-*: new files, synced from gnuorg.
46368 2006-03-01 Karl Berry <karl@gnu.org>
46370 * config/srclist.txt (Copyright/*): new entries.
46372 2006-02-28 Simon Josefsson <jas@extundo.com>
46374 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46376 2006-02-27 Simon Josefsson <jas@extundo.com>
46378 * lib/base64.h: Indent #define's. From Jim Meyering
46379 <jim@meyering.net>.
46381 2006-02-27 Jim Meyering <jim@meyering.net>
46383 Revert the change of 2006-02-24, so these files can continue
46384 to be sync'd from gettext.
46385 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46388 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46390 * modules/intprops: New file.
46391 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46393 * modules/getloadavg (Files): Remove lib/intprops.h.
46394 (Depends-on): Add intprops.
46395 * modules/human: Likewise.
46396 * modules/inttostr: Likewise.
46397 * modules/openat: Likewise.
46398 * modules/sig2str: Likewise.
46399 * modules/userspec: Likewise.
46400 * modules/utimecmp: Likewise.
46401 * modules/xnanosleep: Likewise.
46402 * modules/xstrtol: Likewise.
46404 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46406 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46407 * modules/lock-tests (TESTS): Use $(EXEEXT).
46408 * modules/tls-tests: Likewise.
46409 * modules/argp-tests: Likewise.
46410 (check_PROGRAMS): New var, replacing...
46411 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46413 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46415 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46418 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46420 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46422 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46424 Sync from coreutils.
46425 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46428 2006-02-22 Jim Meyering <jim@meyering.net>
46430 Sync from coreutils.
46431 * m4/chdir-safer.m4: New file.
46433 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46435 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46436 AT_FDCWD exceeds INT_MAX.
46437 * lib/openat.h (AT_FDCWD): Likewise.
46439 2006-02-17 Eric Blake <address@hidden>
46441 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46443 2006-02-16 Simon Josefsson <jas@extundo.com>
46445 * modules/getaddrinfo (Depends-on): Add sys_socket.
46447 2006-02-15 Simon Josefsson <jas@extundo.com>
46449 * build-aux/maint.mk: Add dsyntax-check rule.
46451 2006-02-15 Eric Blake <ebb9@byu.net>
46453 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46454 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46455 'present but cannot compile' warnings on cygwin.
46456 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46457 use ws2tcpip.h if sys/socket.h works.
46458 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46459 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46461 2006-02-14 Simon Josefsson <jas@extundo.com>
46463 * modules/maintainer-makefile (Files): Rename.
46465 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46466 and (the local) Makefile.cfg to maint-cfg.mk.
46468 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46471 * modules/maintainer-makefile: New module.
46473 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46474 severaly stripped to make it possible to build it up from scratch
46475 with reliable tests.
46477 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46478 fixes to permit overriding the default actions when configure and
46479 makefile are not available.
46481 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46483 Sync from coreutils.
46484 * modules/lstat (Depends-on): Don't depend on xalloc.
46485 (License): Change from GPL to LGPL, since this is now simply a
46486 replacement for a libc function.
46488 2006-02-14 Jim Meyering <jim@meyering.net>
46490 Sync from coreutils.
46492 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46493 failure on deficient systems, and simplify gnulib lgpl dependencies.
46494 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46495 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46497 * lib/xalloc-die.c: Remove unused definition of N_.
46499 2006-02-14 Jim Meyering <jim@meyering.net>
46501 Sync from coreutils.
46502 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46503 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46504 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46505 double-quote uses of that variable, to accommodate the rare case in
46506 which getmntent is available in none of the libraries checked. This
46507 happens at least on FreeBSD 5.0.
46509 2006-02-13 Simon Josefsson <jas@extundo.com>
46511 * gnulib-tool (Usage): Fix --import, from
46512 karl@freefriends.org (Karl Berry).
46514 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46516 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46518 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46520 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46521 "autoupdate" on 2005-12-12.
46523 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46525 * modules/closeout (Depends-on): Remove atexit.
46527 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46529 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46530 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46532 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46534 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46535 __EXTENSIONS__ if this causes compilation to fail. Problem
46536 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46537 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46539 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46541 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46542 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46543 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46546 2006-01-26 Simon Josefsson <jas@extundo.com>
46548 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46549 prototype is visible on mingw32.
46551 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46554 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46557 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46559 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46560 attempt to open for write; this always fails, at least on POSIX
46561 hosts. This reinstates the 2006-01-09 change, which was
46562 inadvertently removed.
46564 2006-01-26 Bruno Haible <bruno@clisp.org>
46566 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46567 Reported by Paul Eggert.
46569 2006-01-26 Bruno Haible <bruno@clisp.org>
46570 Paul Eggert <eggert@cs.ucla.edu>
46572 * lib/stdbool_.h (_Bool)
46573 [(! (defined __cplusplus || defined __BEOS__)
46574 && !defined __GNUC__
46575 && !(defined __HP_cc || defined __xlc__
46576 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46577 || defined __sgi))]:
46578 #define to signed char in these cases too; this simplifies
46579 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46580 etc., separately) and makes it more conservative.
46582 2006-01-25 Simon Josefsson <jas@extundo.com>
46584 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46585 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46586 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46588 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46590 * lib/argp-namefrob.h: Bugfix. Remove stray #
46592 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46594 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46595 so that we test the test.
46596 Check for yet another HP-UX cc bug involving *bool |= bool.
46598 2006-01-25 Karl Berry <karl@gnu.org>
46600 * config/srclist.txt (vasnprintf.c): sync lost.
46602 2006-01-25 Jim Meyering <jim@meyering.net>
46604 Sync from the stable (b5) branch of coreutils:
46606 * lib/fts.c (fts_children): Don't let close() clobber errno from
46609 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46610 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46611 a dangling symlink. That can also happen at least for ELOOP.
46612 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46613 FYI, this bug predates the inclusion of fts.c in coreutils.
46615 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46616 in their own block, so pre-c99 compilers don't object.
46618 Avoid the double-free (first in fts_read, second in fts_close) that
46619 would occur when an `active' directory is made inaccessible (e.g.,
46620 via chmod a-x) during a traversal.
46621 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46622 before returning. Reproduce this failure by
46623 mkdir -p a/b; cd a; chmod a-x . b
46624 Reported by Stavros Passas.
46626 2006-01-25 Jim Meyering <jim@meyering.net>
46628 * lib/fileblocks.c: Remove more useless parentheses.
46629 * lib/readutmp.h: Likewise.
46631 2006-01-25 Bruno Haible <bruno@clisp.org>
46633 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46635 Reported by Paul Eggert.
46637 2006-01-25 Bruno Haible <bruno@clisp.org>
46639 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46640 rid of a trap command. For Solaris sh.
46641 Reported by Mark D. Baushke <mdb@gnu.org>.
46643 2006-01-24 Simon Josefsson <jas@extundo.com>
46645 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46648 2006-01-24 Karl Berry <karl@gnu.org>
46650 * config/srclist.txt (argp-namefrob.h): sync lost.
46652 2006-01-24 Jim Meyering <jim@meyering.net>
46654 * modules/openat (Files): Add lib/intprops.h.
46655 From Mark D. Baushke.
46657 2006-01-24 Jim Meyering <jim@meyering.net>
46659 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46660 Reported by Mark D. Baushke.
46662 2006-01-24 Jim Meyering <jim@meyering.net>
46664 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46666 2006-01-24 Bruno Haible <bruno@clisp.org>
46668 * modules/strnlen (Maintainer): Change from glibc to all.
46670 2006-01-24 Bruno Haible <bruno@clisp.org>
46672 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46673 Patch by Paul Eggert.
46675 2006-01-24 Bruno Haible <bruno@clisp.org>
46677 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46679 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46682 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46683 'signed char' to avoid problems with the built-in _Bool type.
46684 Reported by Paul Eggert on 2005-11-26.
46686 2006-01-24 Bruno Haible <bruno@clisp.org>
46688 * gnulib-tool (func_import): Avoid constructing complicated sed
46689 expressions inside backquote.
46690 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46692 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46694 These changes imported from libc.
46695 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46696 test and two separate function calls.
46697 * lib/strndup.c (__strndup): Add libc_hidden_def.
46699 2006-01-23 Simon Josefsson <jas@extundo.com>
46701 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46702 Remove the test_*_SOURCES variable: automake infers it by default.
46703 * modules/tls-tests: Likewise.
46705 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46707 Work around porting bugs reported by Dieter in
46708 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46709 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46710 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46711 Include "getopt.h" first, to check interface.
46712 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46714 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46715 (__strndup): Revert to K&R-style function dfns, the glibc style.
46716 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46717 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46718 Include strnlen.h first, to get prototype properly.
46719 (strnlen): Renamed from __strnlen.
46722 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46724 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46726 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46728 * config/srclist.txt: Adjust to reflect glibc reorganization.
46729 This affects only comments.
46731 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46733 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46734 Reported by Bruce Korb <bkorb@gnu.org>.
46736 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46738 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46739 to pacify gcc -Wswitch-default.
46741 2006-01-22 Bruno Haible <bruno@clisp.org>
46743 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46744 temporary buffer for sprintf, take into account the precision also
46745 for 'd', 'i', 'u', 'o', 'x', 'X'.
46747 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46749 * modules/argp-tests: New module
46750 * tests/test-argp.c: New file
46751 * tests/test-argp-2.sh: New file
46753 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46755 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46756 (__argp_base_name): Removed
46757 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46759 (__argp_base_name): Provide macro definition or extern declaration
46760 depending on the configuration
46762 2006-01-20 Simon Josefsson <jas@extundo.com>
46764 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46766 2006-01-20 Simon Josefsson <jas@extundo.com>
46768 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46770 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46772 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46773 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46774 Suggested by Bruno Haible.
46776 2006-01-20 Karl Berry <karl@gnu.org>
46778 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46779 until changes propagate, I guess.
46781 2006-01-19 Simon Josefsson <jas@extundo.com>
46783 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46785 2006-01-19 Simon Josefsson <jas@extundo.com>
46787 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46789 2006-01-19 Simon Josefsson <jas@extundo.com>
46791 * gnulib-tool: Set check_PROGRAMS.
46793 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46794 modules/des-tests, modules/gc-arcfour-tests,
46795 modules/gc-arctwo-tests, modules/gc-des-tests,
46796 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46797 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46798 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46799 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46800 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46801 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46802 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46805 2006-01-18 Simon Josefsson <jas@extundo.com>
46807 * modules/socklen (Depends-on): Depend on sys_socket.
46809 2006-01-18 Simon Josefsson <jas@extundo.com>
46811 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46812 modules/des-tests, modules/gc-arcfour-tests,
46813 modules/gc-arctwo-tests, modules/gc-des-tests,
46814 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46815 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46816 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46817 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46818 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46819 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46820 $(EXEEXT) to automake TESTS variable, for mingw32.
46822 2006-01-17 Simon Josefsson <jas@extundo.com>
46824 * modules/socklen (Include): Need sys/socket.h.
46826 2006-01-17 Bruno Haible <bruno@clisp.org>
46828 * modules/ssize_t (Include): Add <sys/types.h>.
46830 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46832 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46833 it's not portable and it doesn't work with cross-compiles.
46834 Problem reported by Bruno Haible. Fix missing-$ typo in
46835 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46836 -zignore from being used with Sun's C compiler.
46838 2006-01-12 Simon Josefsson <jas@extundo.com>
46840 * lib/base64.c: Fix warning, reported by Bruno Haible
46841 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46843 2006-01-12 Bruno Haible <bruno@clisp.org>
46845 * modules/ldd: New file.
46846 * build-aux/ldd.sh.in: New file.
46847 * MODULES.html.sh (Support for building libraries and executables): Add
46850 2006-01-12 Bruno Haible <bruno@clisp.org>
46852 * m4/ldd.m4: New file.
46854 2006-01-12 Bruno Haible <bruno@clisp.org>
46856 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46857 endless loop while replacing $auxdir with build-aux.
46859 2006-01-11 Simon Josefsson <jas@extundo.com>
46861 * lib/stdint_.h (SIZE_MAX): Add missing (.
46863 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46865 Sync from coreutils.
46866 * lib/md5.c: Fix commentary typos.
46867 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46868 * lib/md5.h (__attribute__): Remove; unused.
46869 * lib/sha1.c: Fix commentary to match md5 better.
46870 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46871 so that we don't need to worry about alignment. All uses changed.
46872 This merges the 2005-10-28 md5 change into sha1.
46874 2006-01-11 Jim Meyering <jim@meyering.net>
46876 Sync from coreutils.
46877 * lib/md5.c (OP): Fix spacing.
46879 2006-01-11 Bruno Haible <bruno@clisp.org>
46881 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46882 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46883 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46885 2006-01-11 Bruno Haible <bruno@clisp.org>
46887 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46888 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46889 the "early" section as well.
46891 2006-01-11 Bruno Haible <bruno@clisp.org>
46893 Avoid "ar: no archive members specified" error on MacOS X.
46894 * gnulib-tool (func_modules_add_dummy): New function.
46895 (func_import, func_create_testdir): Invoke it.
46897 2006-01-11 Bruno Haible <bruno@clisp.org>
46899 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46900 with $auxdir in AC_CONFIG_FILES statements.
46902 2006-01-11 Bruno Haible <bruno@clisp.org>
46904 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46905 Initialize also noinst_HEADERS to empty.
46907 2006-01-11 Bruno Haible <bruno@clisp.org>
46909 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46911 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46914 2006-01-11 Bruno Haible <bruno@clisp.org>
46916 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46917 overridable by the user.
46918 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46920 2006-01-10 Simon Josefsson <jas@extundo.com>
46922 * modules/sys_socket: New file.
46924 2006-01-10 Simon Josefsson <jas@extundo.com>
46926 * m4/sys_socket_h.m4: New file.
46928 2006-01-10 Simon Josefsson <jas@extundo.com>
46930 * lib/socket_.h: New file.
46932 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46934 * modules/readutmp (Maintainer): Add myself.
46936 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46938 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46939 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46940 People who are still concerned with buggy memcmp implementations
46941 can invoke gl_FUNC_MEMCMP themselves.
46943 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46945 * lib/regex_internal.h (BITSET_WORD_BITS):
46946 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46947 preprocessor mishandles large unsigned values as if they were signed.
46948 Problem reported by Claudio Fontana in
46949 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46951 2006-01-10 Jim Meyering <jim@meyering.net>
46953 Avoid the double-free (first in fts_read, second in fts_close) that
46954 would occur when an `active' directory is made inaccessible (e.g.,
46955 via chmod a-x) during a traversal.
46956 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46957 before returning. Reproduce this failure by
46958 mkdir -p a/b; cd a; chmod a-x . b
46959 Reported by Stavros Passas.
46961 Sync from coreutils.
46962 * lib/sha1.c: Tweak grammar in a comment.
46964 2006-01-10 Jim Meyering <jim@meyering.net>
46966 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46967 Patch by Joerg Sonnenberger.
46969 2006-01-10 Bruno Haible <bruno@clisp.org>
46971 * modules/readutmp: Depend on module free.
46972 * modules/strtok_r: Depend on module restrict.
46974 2006-01-10 Bruno Haible <bruno@clisp.org>
46976 * modules/gettext (configure.ac): Add an invocation of
46977 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46979 2006-01-10 Bruno Haible <bruno@clisp.org>
46981 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46982 Reported by Werner Lemberg <wl@gnu.org>.
46984 2006-01-10 Bruno Haible <bruno@clisp.org>
46986 * lib/localcharset.c: Update from GNU gettext.
46988 2006-01-10 Bruno Haible <bruno@clisp.org>
46990 * lib/argp.h (__const): Remove macro. Use const instead.
46991 * lib/argp-fmtstream.h (__const): Likewise.
46992 * lib/glob_.h (__const): Remove macro.
46993 * lib/glob-libc.h: Use const instead of __const.
46995 2006-01-10 Bruno Haible <bruno@clisp.org>
46997 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46999 Needed to avoid an automake error regarding the 'gettext' module.
47001 2006-01-09 Simon Josefsson <jas@extundo.com>
47003 * modules/inet_ntop (Depends-on): Add restrict.
47005 2006-01-09 Simon Josefsson <jas@extundo.com>
47007 * modules/gc-rijndael-tests (License): Put under LGPL.
47009 * modules/gc-des-tests (License): Likewise.
47011 * modules/gc-arcfour-tests (License): Likewise.
47013 * modules/gc-arctwo-tests (License): Likewise.
47015 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47017 * modules/gc-hmac-sha1-tests (Files): Likewise.
47019 * modules/gc-hmac-md5-tests (License): Likewise.
47021 * modules/gc-sha1-tests (License): Likewise.
47023 * modules/gc-md5-tests (License): Likewise.
47025 * modules/gc-md4-tests (License): Likewise.
47027 * modules/gc-md2-tests (License): Likewise.
47029 * modules/gc-tests (License): Likewise.
47031 * modules/des-tests (License): Likewise.
47033 * modules/md4-tests (License): Likewise.
47035 * modules/md2-tests (License): Likewise.
47037 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47039 Sync from coreutils:
47041 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47042 * modules/lib-ignore: New file.
47043 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47044 chdir-safer.m4, lchmod.m4.
47045 * modules/openat: Add mkdirat.c, openat-priv.h.
47047 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47049 Sync from coreutils.
47050 * m4/lib-ignore.m4: New file.
47051 * m4/lchmod.m4: New file.
47053 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47055 Sync from coreutils.
47056 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47057 for write access: POSIX says that must fail.
47058 * lib/fts.c (diropen): Likewise.
47059 * lib/save-cwd.c (save_cwd): Likewise.
47060 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47061 well, for minor improvements on hosts that lack O_DIRECTORY.
47062 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47063 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47064 Fall back on chown if open failed with EACCES.
47066 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47067 Report an error at compile-time if only a 1-second nominal clock
47068 resolution is found.
47070 * lib/lchmod.h: New file.
47071 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47072 (make_dir_parents): Use lchown rather than chown, and
47073 lchmod rather than chmod.
47075 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47076 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47077 "proc" reported by n0dalus.
47079 * lib/mountlist.c: Include <limits.h>.
47080 (dev_from_mount_options)
47081 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47082 New function. It no longer assumes "dev=" has the System V meaning
47083 on Linux (since it doesn't). It also parses "dev=" more carefully.
47084 (read_file_system_list)
47085 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47086 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47089 * lib/posixtm.h (PDS_PRE_2000): New macro.
47090 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47091 allow_century. All usages changed. Reject dates outside the range
47092 1969-1999 if PDS_PRE_2000 is used.
47094 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47096 Sync from coreutils.
47097 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47098 (Time of day items): Mention the possibility of leap seconds.
47099 Problem reported by Dr. David Alan Gilbert.
47101 2006-01-09 Jim Meyering <jim@meyering.net>
47103 Sync from coreutils.
47105 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47107 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47109 * lib/modechange.c (mode_compile): Reject an invalid mode string
47110 that starts with an octal digit. From Andreas Gruenbacher.
47112 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47113 and dup to open_safer and dup_safer, respectively.
47114 (openat_permissive): Fix typo in comment.
47116 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47117 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47118 (_): Remove; no longer needed.
47119 (openat): Renamed from rpl_openat; no need for rpl_openat
47120 since openat.h renames openat for us.
47121 Replace most of the body with a call to openat_permissive,
47122 to avoid duplicate code.
47123 Port to (probably hypothetical) environments were mode_t is
47125 (openat_permissive): Require mode arg, so that we can check
47126 types better. Put it just after flags. Change cwd failure
47127 indicator from pointer-to-bool to pointer-to-errno-value.
47128 All callers changed.
47129 Invoke openat_save_fail and/or openat_restore_fail if
47130 cwd_errno is null, so that openat can call us.
47131 (openat_permissive, fdopendir, fstatat, unlinkat):
47132 Simplify errno handling to avoid some duplicate code,
47133 as it's OK to set errno on success.
47134 * lib/openat.h: Revamp code so that function macros depend on
47135 __OPENAT_PREFIX only, not also on AT_FDCWD.
47136 (openat_ro): Remove. Caller changed to use openat_permissive.
47137 (openat_permissive): Now a macro, if not a function.
47138 (openat_restore_fail, openat_save_fail): Now always functions,
47139 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47141 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47143 * lib/mkdirat.c: Include openat-priv.h.
47144 Remove definitions of macros defined therein.
47145 * lib/openat.c: Likewise.
47147 * lib/mkdirat.c (mkdirat): New file and function.
47148 * lib/openat.h (mkdirat): Declare.
47150 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47152 * lib/openat.h (openat_permissive): Declare.
47153 (openat_ro): Define.
47155 * lib/openat.c (EXPECTED_ERRNO): New macro.
47156 (openat_permissive): New function -- used in remove.c rewrite.
47157 (all functions): Set errno just before returning, only if there
47158 was an actual failure.
47159 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47161 Emulate openat-family functions using Linux's procfs, if possible.
47162 Idea and some code based on Ulrich Drepper's glibc changes.
47164 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47165 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47166 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47167 before falling back on save_cwd and restore_cwd.
47168 (fdopendir, fstatat, unlinkat): Likewise.
47170 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47171 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47173 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47174 as second argument to va_arg. Otherwise, some versions of gcc
47175 warn that `if this code is reached, the program will abort'.
47177 2006-01-09 Jim Meyering <jim@meyering.net>
47179 Sync from coreutils.
47180 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47181 Require openat-priv.h.
47183 2006-01-09 Bruno Haible <bruno@clisp.org>
47185 * modules/strnlen (Include): Use strnlen.h.
47187 2006-01-09 Bruno Haible <bruno@clisp.org>
47189 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47191 2006-01-09 Bruno Haible <bruno@clisp.org>
47193 * lib/sysexit_.h (EX_OK): New macro.
47194 Suggested by Martin Lambers <marlam@marlam.de>.
47196 2006-01-09 Bruno Haible <bruno@clisp.org>
47198 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47199 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47201 2006-01-09 Bruno Haible <bruno@clisp.org>
47203 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47206 2006-01-09 Bruno Haible <bruno@clisp.org>
47208 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47209 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47210 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47211 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47213 2006-01-09 Bruno Haible <bruno@clisp.org>
47215 * build-aux/javacomp.sh.in: New file, moved from lib/.
47216 * modules/javacomp-script (Files): Update.
47217 (configure.ac): Add AC_CONFIG_FILES invocation.
47218 (EXTRA_DIST): Remove variable.
47220 * build-aux/javaexec.sh.in: New file, moved from lib/.
47221 * modules/javaexec (Files): Update.
47222 (configure.ac): Add AC_CONFIG_FILES invocation.
47223 (EXTRA_DIST): Remove javaexec.sh.in.
47225 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47226 * modules/csharpcomp-script (Files): Update.
47227 (configure.ac): Add AC_CONFIG_FILES invocation.
47228 (EXTRA_DIST): Remove variable.
47230 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47231 * modules/csharpexec (Files): Update.
47232 (configure.ac): Add AC_CONFIG_FILES invocation.
47233 (EXTRA_DIST): Remove csharpexec.sh.in.
47235 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47237 Sync from coreutils.
47239 Add POSIX ACL support
47240 * lib/acl.h (copy_acl, set_acl): Add declarations.
47241 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47242 systems other than Linux.
47243 (chmod_or_fchmod): New function: use fchmod when possible,
47244 and chmod otherwise.
47245 (file_has_acl): Add a POSIX ACL implementation, with a
47246 Linux-specific subcase.
47247 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47248 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47249 acls are unsupported.
47250 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47251 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47254 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47256 Sync from coreutils.
47257 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47259 2006-01-07 Bruno Haible <bruno@clisp.org>
47261 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47264 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47266 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47267 Problem reported for Mingw by Mark Junker.
47269 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47271 * README: Gnulib normally doesn't generate a tarball.
47273 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47275 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47276 long int, not int, for nanosecond counts, so that people who are
47277 used to POSIX struct timespec won't be surprised. Reported by Jim
47280 2005-12-28 Bruno Haible <bruno@clisp.org>
47282 * build-aux/config.rpath: Update from GNU gettext.
47284 2005-12-16 Jim Meyering <jim@meyering.net>
47286 * modules/fprintftime: New module.
47287 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47289 2005-12-16 Jim Meyering <jim@meyering.net>
47291 * m4/fprintftime.m4: New file.
47293 2005-12-16 Jim Meyering <jim@meyering.net>
47295 * lib/fprintftime.c, lib/fprintftime.h: New files.
47297 2005-12-15 Simon Josefsson <jas@extundo.com>
47299 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47302 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47304 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47305 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47307 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47309 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47310 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47311 struct uparams is valid. Fall back to the default values if it is
47314 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47316 * modules/argp (Files): Add argp-pin.c
47317 (Depends-on): dirname
47318 (lib_SOURCES): Add argp-pin.c
47320 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47322 * m4/argp.m4: Check if program_invocation_name and
47323 program_invocation_short_name are declared and define appropriate
47324 macros if they are not.
47326 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47328 * lib/argp-help.c (__argp_base_name): New function
47329 (__argp_short_program_name): Rewrite using __argp_base_name
47330 * lib/argp-namefrob.h: Define program_invocation_name and
47331 program_invocation_short_name if requested
47332 (__argp_base_name): Add prototype
47333 * lib/argp-parse.c (argp_def): Use gettext wrappers
47334 (argp_default_parser): Use __argp_base_name
47335 * lib/argp-pin.c: New file. Defines program_invocation_name and
47336 program_invocation_short_name on systems that lack them.
47338 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47340 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47341 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47342 porting problem reported by Georg Schwarz in
47343 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47345 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47347 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47348 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47349 porting problem reported by Georg Schwarz in
47350 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47352 2005-12-05 Bruno Haible <bruno@clisp.org>
47354 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47355 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47356 Reported by Mark Junker <mjscod@gmx.de>.
47358 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47360 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47361 Use implementation from Albert Chin, with some
47362 comments/corrections by Stepan Kasal and myself.
47364 2005-12-02 Bruno Haible <bruno@clisp.org>
47366 * gnulib-tool (func_import): Accept GPLed build tool modules when
47368 * modules/csharpcomp-script: New file.
47369 * modules/csharpcomp: Depend on it.
47370 * modules/javacomp-script: New file.
47371 * modules/javacomp: Depend on it.
47372 Suggested by Simon Josefsson.
47374 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47376 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47377 statement, to work around an HP-UX 10.20 compiler bug reported by
47380 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47382 * modules/savedir (Depends-on): Add openat.
47384 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47386 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47387 (uintmax_t) [defined uintmax_t]: Do not declare.
47388 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47389 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47390 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47391 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47392 sake of portability to weird hosts that C allows (though we don't
47393 know of any practical examples).
47395 * lib/savedir.h (fdsavedir): New decl.
47396 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47397 contains most of the former guts of savedir.
47398 (savedir): Use savedirstream.
47399 Include "openat.h".
47401 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47403 * modules/obstack (Files): Add m4/ulonglong.m4.
47404 Problem reported by Davide Angelocola.
47406 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47408 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47409 coreutils no longer futzes with rounding modes.
47411 2005-11-14 Jim Meyering <jim@meyering.net>
47413 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47414 replacement of mkstemp.
47416 2005-11-10 Simon Josefsson <jas@extundo.com>
47418 * lib/readline.c: Remove EOL.
47420 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47422 * modules/gethrxtime (Depends-on): Add gettime.
47424 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47426 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47427 or gettimeofday; no longer needed.
47429 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47431 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47433 (gethrxtime) [! (HAVE_NANOUPTIME
47434 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47435 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47436 our own approximation.
47438 2005-11-08 Eric Blake <ebb9@byu.net>
47440 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47442 2005-11-08 Eric Blake <ebb9@byu.net>
47444 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47446 2005-11-04 Bruno Haible <bruno@clisp.org>
47448 * gnulib-tool: Implement --update mode.
47450 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47452 Fix porting problem reported by Theodoros V. Kalamatianos.
47453 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47454 Don't assume that futimes failing means we must fail.
47456 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47458 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47459 variables to suggest the intended function of the PATH_MAX check.
47461 2005-10-30 Kean Johnston <jkj@sco.com>
47463 Trivial changes to support SCO systems.
47464 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47466 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47467 where __ptr is null when no I/O is pending.
47469 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47471 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47472 leave errno alone. Problem reported by Dmitry V. Levin.
47474 2005-10-28 Simon Josefsson <jas@extundo.com>
47476 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47479 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47481 * modules/md2, modules/md2-tests: New files.
47483 2005-10-28 Simon Josefsson <jas@extundo.com>
47485 * m4/inet_ntop.m4: More tests.
47487 * m4/gc-md2.m4, md2.m4: New file.
47489 2005-10-28 Simon Josefsson <jas@extundo.com>
47491 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47492 "restrict" keywords, as per POSIX. Protect the function
47493 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47494 Don't use K&R prototypes. Check the sprintf return values.
47495 Re-define EAFNOSUPPORT if not present. Indent.
47497 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47498 suggested by Bruno Haible <bruno@clisp.org>.
47500 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47502 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47504 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47507 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47509 * lib/md2.h, lib/md2.c: New files.
47511 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47513 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47514 errno alone. Problem reported by Frederic Jolliton.
47516 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47518 * modules/verify (License): Change from GPL to LGPL. This is a
47519 tiny module and there are apparently near-equivalents that are
47520 under the BSD license.
47522 2005-10-24 Simon Josefsson <jas@extundo.com>
47524 * modules/sha1: Relicense to LGPL.
47526 2005-10-24 Simon Josefsson <jas@extundo.com>
47528 * lib/md4.h: Shrink buffer size, now that we changed the type.
47530 2005-10-23 Simon Josefsson <jas@extundo.com>
47532 * gnulib-tool (func_import): Fix --tests-base.
47534 2005-10-22 Simon Josefsson <jas@extundo.com>
47536 * modules/arcfour (Depends-on): Need stdint.
47538 2005-10-22 Simon Josefsson <jas@extundo.com>
47540 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47541 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47543 2005-10-22 Simon Josefsson <jas@extundo.com>
47545 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47546 suggested by Bruno Haible <bruno@clisp.org>.
47548 2005-10-22 Simon Josefsson <jas@extundo.com>
47550 * lib/crc.h: Include stddef.h, for size_t.
47552 2005-10-22 Simon Josefsson <jas@extundo.com>
47554 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47555 arcfour_context struct (simplify test vector testing in GNU
47558 2005-10-21 Simon Josefsson <jas@extundo.com>
47560 * modules/des, modules/des-tests: New files.
47562 * modules/gc-des, modules/gc-des-tests: New files.
47564 * tests/test-des.c, tests/test-gc-des.c: New file.
47566 2005-10-21 Simon Josefsson <jas@extundo.com>
47568 * modules/arctwo, modules/arctwo-tests: New files.
47570 * tests/test-arctwo.c: New file.
47572 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47574 * tests/test-gc-arctwo.c: New file.
47576 2005-10-21 Simon Josefsson <jas@extundo.com>
47578 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47579 Bruno Haible <bruno@clisp.org>.
47581 * m4/gc-des.m4: New file.
47583 2005-10-21 Simon Josefsson <jas@extundo.com>
47585 * m4/arctwo.m4: New file.
47587 * m4/gc-arctwo.m4: New file.
47589 2005-10-21 Simon Josefsson <jas@extundo.com>
47591 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47594 2005-10-21 Simon Josefsson <jas@extundo.com>
47596 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47599 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47601 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47602 Bruno Haible <bruno@clisp.org>.
47604 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47607 2005-10-21 Simon Josefsson <jas@extundo.com>
47609 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47611 2005-10-21 Simon Josefsson <jas@extundo.com>
47613 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47615 2005-10-21 Simon Josefsson <jas@extundo.com>
47617 * lib/des.h, lib/des.c: New files.
47619 * lib/gc-gnulib.c: Support DES.c
47621 2005-10-21 Simon Josefsson <jas@extundo.com>
47623 * lib/arctwo.h, lib/arctwo.c: New files.
47625 * lib/gc-gnulib.c: Support ARCTWO.
47627 2005-10-21 Simon Josefsson <jas@extundo.com>
47629 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47630 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47632 2005-10-21 Simon Josefsson <jas@extundo.com>
47634 * gnulib-tool (func_import, func_create_testdir): Define automake
47635 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47636 Makefile.am snippet),
47637 suggested by Bruno Haible <bruno@clisp.org>.
47639 * modules/gc (Makefile.am): Use it.
47641 2005-10-21 Bruno Haible <bruno@clisp.org>
47643 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47646 2005-10-19 Simon Josefsson <jas@extundo.com>
47648 * tests/test-gc-rijndael.c: New file.
47650 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47652 2005-10-19 Simon Josefsson <jas@extundo.com>
47654 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47657 2005-10-19 Simon Josefsson <jas@extundo.com>
47659 * tests/test-gc-arcfour.c: New file.
47661 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47663 2005-10-19 Simon Josefsson <jas@extundo.com>
47665 * modules/gc-md4, modules/gc-md4-tests: New file.
47667 * tests/test-gc-md4.c: New file.
47669 2005-10-19 Simon Josefsson <jas@extundo.com>
47671 * m4/gc-md4.m4: New file.
47673 2005-10-19 Simon Josefsson <jas@extundo.com>
47675 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47676 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47679 2005-10-19 Simon Josefsson <jas@extundo.com>
47681 * m4/gc-arcfour.m4: New file.
47683 * m4/gc-rijndael.m4: New file.
47685 2005-10-19 Simon Josefsson <jas@extundo.com>
47687 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47689 2005-10-19 Simon Josefsson <jas@extundo.com>
47691 * lib/gc-gnulib.c: Support ARCFOUR.
47693 2005-10-19 Simon Josefsson <jas@extundo.com>
47695 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47698 * lib/gc.h: Add ECB enum type.
47700 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47702 2005-10-18 Simon Josefsson <jas@extundo.com>
47704 * tests/test-md5.c: New file.
47706 * modules/md5-tests: New file.
47708 2005-10-18 Simon Josefsson <jas@extundo.com>
47710 * tests/test-md4.c: New file.
47712 * modules/md4, modules/md4-tests: New files.
47714 2005-10-18 Simon Josefsson <jas@extundo.com>
47716 * m4/md4.m4: New file.
47718 2005-10-18 Simon Josefsson <jas@extundo.com>
47720 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47722 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47724 * gnulib-tool (func_create_testdir): Omit the second check whether
47725 BUILT_SOURCES in nonempty.
47727 2005-10-17 Simon Josefsson <jas@extundo.com>
47729 * tests/test-rijndael.c: New file.
47731 2005-10-17 Simon Josefsson <jas@extundo.com>
47733 * modules/sha1: Depend on stdint instead of md5.
47735 * modules/md5: Depend on stdint, remove uint32_t.
47737 2005-10-17 Simon Josefsson <jas@extundo.com>
47739 * modules/gc-sha1-tests: New file.
47741 * tests/test-gc-sha1.c: New file.
47743 2005-10-17 Simon Josefsson <jas@extundo.com>
47745 * m4/md5.m4: Remove call to uint32_t.m4.
47747 2005-10-17 Simon Josefsson <jas@extundo.com>
47749 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47751 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47754 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47756 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47758 2005-10-17 Simon Josefsson <jas@extundo.com>
47760 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47762 2005-10-17 Simon Josefsson <jas@extundo.com>
47764 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47766 2005-10-17 Simon Josefsson <jas@extundo.com>
47768 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47770 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47772 2005-10-17 Bruno Haible <bruno@clisp.org>
47774 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47775 that it can also be used in a test.
47777 2005-10-16 Bruno Haible <bruno@clisp.org>
47779 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47780 TESTS_ENVIRONMENT, so that individual tests can augment it.
47782 * gnulib-tool (func_create_testdir): Use an intermediate target for
47783 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47784 macros, like $(ALLOCA_H), which cannot be passed through the command
47787 2005-10-15 Simon Josefsson <jas@extundo.com>
47789 * modules/rijndael-tests: New file.
47791 * modules/rijndael: New file.
47793 2005-10-15 Simon Josefsson <jas@extundo.com>
47795 * m4/rijndael.m4: New file.
47797 2005-10-15 Simon Josefsson <jas@extundo.com>
47799 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47801 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47803 2005-10-14 Simon Josefsson <jas@extundo.com>
47805 * tests/test-arcfour.c: New file.
47807 * modules/arcfour, modules/arcfour-tests: New files.
47809 2005-10-14 Simon Josefsson <jas@extundo.com>
47811 * m4/arcfour.m4: New file.
47813 2005-10-14 Simon Josefsson <jas@extundo.com>
47815 * lib/arcfour.h, lib/arcfour.c: New files.
47817 2005-10-14 Roland McGrath <roland@redhat.com>
47819 Import from libc. [BZ #1331]
47820 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47822 Reported by Matej Vela <vela@debian.org>.
47824 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47826 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47827 include <wchar.h>; no longer needed.
47829 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47831 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47833 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47834 and Ulrich Drepper <drepper@redhat.com>
47837 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47838 instead of inline stream orientation test and two separate
47839 function calls. Pay no attention to USE_IN_LIBIO.
47841 2005-10-13 Simon Josefsson <jas@extundo.com>
47843 * modules/gc-hmac-md5-tests: New file.
47845 * tests/test-gc-hmac-sha1.c: New file.
47847 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47849 * modules/gc-hmac-md5-tests: New file.
47851 * tests/test-gc-md5.c: New file.
47853 * modules/gc-md5-tests: New file.
47855 2005-10-13 Simon Josefsson <jas@extundo.com>
47857 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47858 Move memory allocation outside of loop.
47860 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47862 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47863 intermediate directory is in a read-only file system. Problem
47864 reported by Eric Blake.
47866 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47868 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47870 2005-10-12 Simon Josefsson <jas@extundo.com>
47872 * tests/test-hmac-sha1.c: New file.
47874 * modules/hmac-sha1-tests: New file.
47876 * modules/hmac-sha1: New file.
47878 2005-10-12 Simon Josefsson <jas@extundo.com>
47880 * modules/gc-sha1: New file.
47882 2005-10-12 Simon Josefsson <jas@extundo.com>
47884 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47886 * tests/test-gc-pbkdf2-sha1.c: New file.
47888 2005-10-12 Simon Josefsson <jas@extundo.com>
47890 * modules/gc-md5, modules/gc-hmac-md5: New files.
47892 * modules/gc (Files): Remove md5, memxor and hmac files.
47894 2005-10-12 Simon Josefsson <jas@extundo.com>
47896 * m4/gc-pbkdf2-sha1.m4: New file.
47898 * m4/gc-hmac-sha1.m4: New file.
47900 * m4/gc-sha1: New file.
47902 * m4/hmac-sha1.m4: New file.
47904 2005-10-12 Simon Josefsson <jas@extundo.com>
47906 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47908 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47910 2005-10-12 Simon Josefsson <jas@extundo.com>
47912 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47913 suggested by Bruno Haible <bruno@clisp.org>.
47915 2005-10-12 Simon Josefsson <jas@extundo.com>
47917 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47919 2005-10-12 Simon Josefsson <jas@extundo.com>
47921 * lib/gc-pbkdf2-sha1.c: New file.
47923 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47925 2005-10-12 Simon Josefsson <jas@extundo.com>
47927 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47929 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47931 2005-10-12 Simon Josefsson <jas@extundo.com>
47933 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47934 GC_USE_HMAC_MD5, respectively.
47936 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47937 (gc_md5): Fix typo.
47939 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47941 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47943 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47945 2005-10-12 Bruno Haible <bruno@clisp.org>
47947 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47948 Reported by Stepan Kasal <kasal@ucw.cz>.
47950 2005-10-11 Simon Josefsson <jas@extundo.com>
47952 * tests/test-crc.c: New file.
47954 * modules/crc, modules/crc-tests: New files.
47956 2005-10-11 Simon Josefsson <jas@extundo.com>
47958 * m4/crc.m4: New file.
47960 2005-10-11 Simon Josefsson <jas@extundo.com>
47962 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47964 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47966 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47968 2005-10-11 Simon Josefsson <jas@extundo.com>
47970 * lib/crc.h, lib/crc.c: New files.
47972 * lib/gc.h (gc_hash_buffer): Add doc.
47974 2005-10-11 Bruno Haible <bruno@clisp.org>
47976 * modules/c-strcasestr: New file.
47977 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47979 2005-10-11 Bruno Haible <bruno@clisp.org>
47981 * modules/c-strcase: New file.
47982 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47984 2005-10-11 Bruno Haible <bruno@clisp.org>
47986 * lib/strcasecmp.c: Include limits.h.
47987 (strcasecmp): Avoid integer overflow on exotic platforms.
47988 * lib/strncasecmp.c: Include limits.h.
47989 (strncasecmp): Avoid integer overflow on exotic platforms.
47990 Reported by Paul Eggert.
47992 2005-10-11 Bruno Haible <bruno@clisp.org>
47994 * lib/c-strcasestr.h: New file, from GNU gettext.
47995 * lib/c-strcasestr.c: New file, from GNU gettext.
47997 2005-10-11 Bruno Haible <bruno@clisp.org>
47999 * lib/c-strcase.h: New file, from GNU gettext.
48000 * lib/c-strcasecmp.c: New file, from GNU gettext.
48001 * lib/c-strncasecmp.c: New file, from GNU gettext.
48003 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48005 * modules/mempcpy (License): GPL -> LGPL.
48006 * modules/strchrnul (License): Likewise.
48007 * modules/sysexits (License): Likewise.
48009 2005-10-08 Simon Josefsson <jas@extundo.com>
48011 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48013 2005-10-07 Simon Josefsson <jas@extundo.com>
48015 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48017 2005-10-06 Simon Josefsson <jas@extundo.com>
48019 * tests/test-hmac-md5.c: New file.
48021 * modules/hmac-md5-tests: New file.
48023 * modules/hmac-md5: New file.
48025 2005-10-06 Simon Josefsson <jas@extundo.com>
48027 * m4/hmac-md5.m4: New file.
48029 * m4/memxor.m4: Require gl_C_RESTRICT.
48031 2005-10-06 Simon Josefsson <jas@extundo.com>
48033 * lib/memxor.c (memxor): Avoid casts and warnings.
48035 2005-10-06 Simon Josefsson <jas@extundo.com>
48037 * lib/hmac-md5.c: New file.
48039 * lib/hmac.h: New file.
48041 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48043 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48044 promotes to int, not unsigned int, to catch the AIX 5.3
48047 2005-10-05 Simon Josefsson <jas@extundo.com>
48049 * modules/memxor: New file.
48051 * modules/iconv (Files): Move config.rpath to havelib, it is used
48054 * modules/havelib (Files): Add config.rpath.
48056 2005-10-05 Simon Josefsson <jas@extundo.com>
48058 * m4/memxor.m4: New file.
48060 2005-10-05 Simon Josefsson <jas@extundo.com>
48062 * lib/memxor.c (memxor): Fix compiler error.
48064 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48065 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48067 * lib/memxor.h, lib/memxor.c: New files.
48069 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48070 we assume all systems have it, suggested by Jim Meyering
48071 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48072 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48073 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48076 2005-10-05 Simon Josefsson <jas@extundo.com>
48078 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48080 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48082 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48083 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48084 needed, since the source code now assumes these .h files.
48086 2005-10-05 Derek Price <derek@ximbiot.com>
48088 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48090 2005-10-05 Bruno Haible <bruno@clisp.org>
48092 * modules/stdint (License): Change to LGPL.
48094 2005-10-04 Simon Josefsson <jas@extundo.com>
48096 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48097 D. Baushke" <mdb@gnu.org>.
48099 2005-10-04 Bruno Haible <bruno@clisp.org>
48101 * lib/verify.h (verify_true): Provide alternative definition for C++.
48103 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48105 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48106 (SSIZE_MAX): New macro, if not already defined.
48107 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48110 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48112 Sync from coreutils.
48113 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48114 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48115 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48116 ULLONG_MAX doesn't work with 2.7.2.1.
48118 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48120 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48123 * modules/exclude (Depends-on): Depend on verify.
48124 * modules/strtoimax (Depends-on): Likewise.
48125 * modules/utimecmp (Depends-on): Likewise.
48127 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48129 * lib/exclude.c: Include verify.h.
48130 (verify): Remove. All callers changed to use verify.h's version.
48131 * lib/strtoimax.c: Likewise.
48132 * lib/utimecmp.c: Likewis.e
48134 Sync from coreutils.
48135 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48136 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48137 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48138 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48139 bother returning ENOSYS if settimeofday or stime fails; just let
48140 them return whatever errno they want to return.
48141 * lib/utimens.c: Include unistd.h, for dup2.
48142 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48143 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48145 2005-10-02 Jim Meyering <jim@meyering.net>
48147 Sync from coreutils.
48148 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48149 from glibc-2.2.5 that fails for read-only files.
48151 2005-10-02 Jim Meyering <jim@meyering.net>
48153 Sync from coreutils.
48154 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48155 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48156 `#if HAVE_CONFIG_H'.
48157 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48158 Remove AT_FDCWD test.
48159 Do not consume the fd unless successful.
48160 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48161 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48162 block, so that we don't even try to compile it if settimeofday is
48163 available. This works around a compilation failure on OSF1 V5.1,
48164 due to stime requiring a `long int*' while tv_sec is `int'.
48166 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48168 Sync from coreutils.
48169 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48170 against `yes', rather than just testing for nonempty.
48172 2005-10-01 Simon Josefsson <jas@extundo.com>
48174 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48177 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48178 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48179 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48180 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48181 Check if struct addrinfo is declared.
48183 2005-10-01 Simon Josefsson <jas@extundo.com>
48185 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48186 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48187 AI_* and EAI_* definitions. Protect function declarations.
48189 2005-10-01 Jim Meyering <jim@meyering.net>
48191 Sync from coreutils.
48193 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48194 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48195 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48196 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48197 in the inet and nsl libraries. Required on Solaris 5.7.
48199 2005-10-01 Jim Meyering <jim@meyering.net>
48201 Sync from coreutils.
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 Eric Blake <ebb9@byu.net> (tiny change)
48207 * lib/getdelim.c (getdelim): Remove unused variables.
48209 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48211 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48212 so that the code works even with ancient cpp. Portability problem
48213 with GCC 2.7.2.1 reported by Thomas M.Ott.
48215 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48217 * modules/regex (Depends-on): Add strcase.
48219 * modules/gethostname (Licence): Change from GPL to LGPL, since
48220 gethostname.c is a trivial implementation of a standard library
48222 * modules/poll (License): Change from GPL to LGPL, since it's
48223 derived from LGPL code.
48225 2005-09-27 Jim Meyering <jim@meyering.net>
48227 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48230 * lib/intprops.h (signed_type_or_expr__): Define.
48231 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48232 for unsigned types.
48234 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48236 * lib/verify.h (verify_expr): Remove, replacing with:
48237 (verify_true): New macro that returns true instead of void.
48238 (verify_type__): Remove.
48239 (verify): Use verify_true rather than verify_type__.
48241 2005-09-26 Bruno Haible <bruno@clisp.org>
48243 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48245 (lib_SOURCES): Remove mbchar.c.
48246 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48247 (Files): Add m4/mbrtowc.m4.
48248 * modules/mbiter: Likewise.
48249 * modules/mbuiter: Likewise.
48251 2005-09-26 Bruno Haible <bruno@clisp.org>
48253 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48254 compile mbchar.c if they are not both present.
48255 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48256 * m4/mbiter.m4 (gl_MBITER): Likewise.
48257 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48258 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48259 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48261 2005-09-25 Jim Meyering <jim@meyering.net>
48263 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48264 also uses socklen_t.
48266 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48268 * lib/utimens.c (ENOSYS): Define if not already defined.
48269 (futimens): Support having a null PATH if the file descriptor
48272 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48274 (__attribute): Define to empty unless GCC 3.1 or later.
48275 This works around a core dump on OpenBSD 3.4, which has GCC
48276 2.95.3, which dumps core when given __attribute__(()). It also
48277 simplifies other tests, since we really don't want to bother with
48278 worrying about which ancient version of GCC supported what.
48279 Original problem reported by Yoann Vandoorselaere, with part of
48280 the fix suggested by Derek Price.
48282 2005-09-24 Jim Meyering <jim@meyering.net>
48284 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48285 so we can once again use a positive bitfield width of 1 -- now we
48286 don't have to explain why we were using a bitfield width of 2.
48288 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48290 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48291 and similarly for the other external symbols. Problem reported
48294 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48295 bug reported by Jim Meyering.
48297 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48298 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48299 not needed, since socklen is a prerequisite module.
48301 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48303 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48304 Problem reported by Eric Blake.
48305 (getaddrinfo): Initialize se so that it's not garbage.
48306 Redo internal storage allocation so that it doesn't make unportable
48307 assumptions about alignment.
48310 * lib/utimens.c (futimens): Use futimesat if available.
48311 Prefer it to futimes since it doesn't have the futimes bug.
48313 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48314 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48315 Instead, declare a function that returns a pointer to an array,
48316 and use verify_type__ to declare the size of the array.
48317 Problem and germ of a solution reported by Bruno Haible.
48318 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48319 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48321 2005-09-23 Jim Meyering <jim@meyering.net>
48323 Sync from coreutils.
48324 Correct build failure (socklen_t not defined) on at least
48325 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48326 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48328 2005-09-23 Jim Meyering <jim@meyering.net>
48330 * modules/getaddrinfo (Depends-on): Add socklen.
48332 2005-09-23 Bruno Haible <bruno@clisp.org>
48334 * tests/test-verify.c: New file.
48336 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48338 Sync from coreutils.
48340 * modules/argmatch (Depends-on): Add verify.
48341 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48343 * modules/save-cwd (Depends-on): Likewise.
48345 * modules/openat (Files): Add lib/openat-die.c.
48346 (Depends-on): Remove error, exitfail.
48349 * modules/verify: New file.
48350 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48351 with "verify" module.
48353 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48355 Sync from coreutils.
48357 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48358 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48359 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48360 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48361 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48362 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48363 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48364 Don't bother checking for string.h, stdlib.h, unistd.h.
48365 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48366 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48368 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48369 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48371 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48372 (gl_GETDATE): Use it.
48374 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48376 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48378 Sync from coreutils.
48380 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48382 * lib/argmatch.h: Include verify.h
48383 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48384 (ARGMATCH_ASSERT): Remove; unused.
48385 * lib/canonicalize.c: Assume STDC_HEADERS.
48386 * lib/exclude.c: Include "strcase.h".
48387 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48388 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48390 (getusershell): Call fopen, not fopen_safer.
48391 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48392 Do not include unistd-safer.h.
48393 (save_cwd): Don't call fd_safer; no longer needed
48394 now that we include fcntl--.h.
48396 * lib/getdate.y (relative_time): New type.
48397 (RELATIVE_TIME_0): New constant.
48398 (parser_control): Use relative_time instead of doing it ourselves.
48399 (%union): Add new relative_time rel member.
48400 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48402 (relunit, relunit_snumber): Now of type rel.
48403 (zone, rel, relunit, get_date): Adjust to above changes.
48405 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48406 Do not include unistd-safer.h.
48407 (getloadavg): Don't call fd_safer; no longer needed
48408 now that we include fcntl--.h.
48410 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48411 (make_dir_parents): Treat ENOSYS like EEXIST.
48413 Improve quality of diagnostics on restore_cwd failure.
48414 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48415 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48416 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48417 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48418 each time through the loop. Do not diagnose restore_cwd failure;
48419 that is the caller's job (and perhaps the caller does not care).
48421 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48422 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48423 If the file already exists but is not a directory, don't bother
48424 to try to make its parents.
48425 Close potential file descriptor leak if we can't chdir("/") (!).
48426 Don't always return true if chdir($PWD) fails; return true only
48427 if the requested action was done successfully (except for the
48429 Don't log final directory unless we actually made it.
48430 Refactor to avoid duplicate code to fix up permissions.
48431 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48433 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48434 to make it a bit faster and (I hope) clearer.
48435 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48436 Fix bug in formats like %2N.
48438 * lib/verify.h: New file.
48440 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48442 Sync from coreutils.
48443 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48445 2005-09-22 Jim Meyering <jim@meyering.net>
48447 Sync from coreutils.
48449 * m4/lstat.m4 (gl_FUNC_LSTAT):
48450 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48451 Remove obsolete comment.
48452 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48453 * m4/xstrtod.m4: Likewise.
48455 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48457 2005-09-22 Jim Meyering <jim@meyering.net>
48459 Sync from coreutils.
48461 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48463 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48464 the .tm_year member, since otherwise gcc-4.0 would now warn about
48465 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48467 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48468 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48470 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48471 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48472 when run in a time zone for which daylight savings time is in effect
48473 for the starting date.
48475 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48476 stop us from restricting permissions of just-created absolute-named
48478 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48479 to restore initial working directory.
48480 * lib/mkdir-p.c (make_dir_parents): New parameter:
48481 different_working_dir, to tell caller if/when we change the working
48482 directory and are unable to return to the initial one.
48483 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48484 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48485 `return false'. This fixes a bug introduced on 2004-07-30.
48487 * lib/openat.c (fdopendir): Be sure to close the supplied
48488 file descriptor before returning. This makes our replacement
48489 implementation a little closer to Solaris's, where fdopendir
48490 ties the file descriptor to the returned DIR* pointer.
48491 * lib/openat.c (unlinkat): New function.
48492 * lib/openat.h (unlinkat): Add prototype.
48493 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48494 (openat_restore_fail): Rename from openat_restore_die.
48495 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48497 Provide an alternative to exiting immediately upon save_cwd or
48498 restore_cwd failure. Now, an application can arrange e.g.,
48499 to perform a longjump in that case.
48500 * lib/openat.c: Include dirname.h.
48501 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48502 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48503 and openat_restore_die rather than calling error directly.
48504 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48506 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48507 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48510 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48511 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48512 int utc, int nanoseconds);
48514 date should not have to allocate a megabyte of virtual memory to
48515 handle a format argument like +%1048575T. When implemented with
48516 strftime, it must allocate such a buffer, use strftime to fill it
48517 in, print it, then free it.
48518 With fprintftime, it simply prints everything and exits.
48519 With no need for memory allocation, that's one fewer way to fail.
48520 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48521 optional field width, not before, so we accept %9:z, not %:9z.
48522 (my_strftime): Be sure to use L_('x') for literals.
48524 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48525 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48526 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48527 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48528 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48529 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48530 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48531 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48532 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48533 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48534 * lib/xgethostname.c, lib/xreadlink.c:
48535 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48537 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48538 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48539 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48540 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48541 and don't include <sys/file.h>).
48543 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48545 Sync from coreutils.
48547 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48548 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48549 [!LDAV_DONE]: Avoid unused variable warning.
48551 2005-09-21 Bruno Haible <bruno@clisp.org>
48553 * lib/unicodeio.h (unicode_to_mb): New declaration.
48555 2005-09-20 Derek Price <derek@ximbiot.com>
48557 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48560 2005-09-20 Bruno Haible <bruno@clisp.org>
48562 * gnulib-tool: Remove trailing slashes from the values specified for
48563 --source-base, --m4-base, --tests-base, --aux-dir.
48564 Suggested by Simon Josefsson <jas@extundo.com>.
48566 2005-09-20 Bruno Haible <bruno@clisp.org>
48568 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48569 func_modules_to_filelist, func_import, func_create_testdir): Make all
48570 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48571 change when gnulib-tool is invoked in a different locale.
48573 2005-09-19 Simon Josefsson <jas@extundo.com>
48575 * m4/socklen.m4: Fix typo.
48577 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48579 Use a consistent style for including <config.h>.
48580 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48581 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48582 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48583 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48584 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48585 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48586 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48587 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48588 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48589 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48590 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48591 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48592 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48593 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48594 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48595 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48596 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48597 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48598 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48599 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48600 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48601 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48602 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48603 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48604 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48605 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48606 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48607 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48608 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48609 lib/xstrtoumax.c, lib/yesno.c:
48610 Standardize inclusion of config.h.
48611 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48612 lib/inttostr.h: Removed inclusion of config.h from header files.
48613 * lib/inttostr.c: Adjusted in-tree users.
48614 * lib/timespec.h: Remove superfluous warning to include config.h.
48615 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48616 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48617 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48618 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48619 config.h with HAVE_CONFIG_H.
48621 2005-09-19 Jim Meyering <jim@meyering.net>
48623 * modules/pathmax (License): Change to LGPL.
48625 2005-09-19 Derek Price <derek@ximbiot.com>
48627 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48629 2005-09-19 Bruno Haible <bruno@clisp.org>
48631 * gnulib-tool (import): Provide default for --tests-base.
48633 2005-09-19 Bruno Haible <bruno@clisp.org>
48635 * doc/quote.texi: New file, extracted from gnulib.texi.
48636 * doc/ctime.texi: New file, extracted from gnulib.texi.
48637 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48638 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48639 * doc/gnulib.texi: Include them.
48641 2005-09-18 Bruno Haible <bruno@clisp.org>
48644 * gnulib-tool (func_readlink): New function.
48645 (func_ln_if_changed): Use it.
48647 2005-09-18 Bruno Haible <bruno@clisp.org>
48649 * gnulib-tool: Support --with-tests also with --import.
48650 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48651 (func_import): Use variables $testsbase and $inctests. Emit a
48652 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48653 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48654 SUBDIRS += $testsdir.
48655 (func_create_testdir): Update.
48657 2005-09-18 Bruno Haible <bruno@clisp.org>
48659 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48660 instead of $dry_run.
48661 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48662 (func_ln_if_changed): Don't handle dry-run here.
48663 (func_import): In dry-run mode, detect more precisely which actions
48664 would be performed, and don't use "...ing" verbs.
48666 2005-09-18 Bruno Haible <bruno@clisp.org>
48668 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48669 (func_import): Use join on two temporary files instead of three nested
48670 loops, in order to determine which files are new or old.
48672 2005-09-18 Bruno Haible <bruno@clisp.org>
48674 * gnulib-tool (func_import): Comment out code that spits out the
48675 new files with --dry-run.
48677 2005-09-18 Bruno Haible <bruno@clisp.org>
48679 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48681 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48683 * lib/stat-time.h: New file.
48684 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48685 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48686 in a different way.
48687 (timespec_cmp): New function.
48688 * lib/utimecmp.c: Include stat-time.h.
48689 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48690 members exist, not on the obsolescent ST_MTIM_NSEC.
48691 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48693 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48695 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48697 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48699 * MODULES.html.sh (File system functions): Add stat-time.
48700 * modules/stat-time: New file.
48701 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48702 is now done in a different way, by the stat-time module.
48703 * modules/utimecmp (Depends-on): Add stat-time.
48705 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48707 * m4/st_mtim.m4: Remove. Superseded by...
48708 * m4/stat-time.m4: New file.
48709 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48710 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48712 2005-09-15 Derek Price <derek@ximbiot.com>
48714 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48716 2005-09-15 Derek Price <derek@ximbiot.com>
48718 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48719 * lib/regex_internal.c: Ditto, using this...
48720 (__GNUC_PREREQ): ...new macro.
48721 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48723 (__GNUC_PREREQ): ...this new macro.
48725 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48727 2005-09-15 Derek Price <derek@ximbiot.com>
48728 Paul Eggert <eggert@cs.ucla.edu>
48730 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48731 changes, consolidating in...
48732 * lib/regex_internal.h: ...this file.
48734 2005-09-13 Jim Meyering <jim@meyering.net>
48736 * lib/canon-host.c: Filter through gnu indent and reword comments
48738 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48740 2005-09-13 Derek Price <derek@ximbiot.com>
48742 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48744 Reported by Jim Meyering <jim@meyering.net>.
48746 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48748 * lib/base64.c: Typo.
48749 (base64_encode): Put b64str in initialized data section.
48751 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48753 Merge glibc and coreutils changes into gnulib, plus a few
48755 * lib/md5.c: Use #error rather than a string.
48756 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48757 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48758 (__attribute__): Define to empty for non recent-GCC.
48759 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48760 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48761 Renamed from their non-__ counterparts, with new macros replacing
48762 them if not _LIBC. Add __THROW attribute.
48764 (struct md5_ctx): Align buffer if using GCC.
48765 * lib/sha1.h (struct sha1_ctx): Likewise.
48766 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48767 The old name was backwards.
48768 (NOTSWAP): Remove; not used.
48769 (rol): New macro, moved here from md5.h.
48770 (sha1_process_block): Remove a FIXME that doesn't make sense.
48772 2005-09-12 Derek Price <derek@ximbiot.com>
48774 Return usable errors from canon-host.
48775 * lib/canon-host.h: New file.
48776 * lib/canon-host.c (canon_host): Wrap...
48777 (canon_host_r): ...this new function, which now relies exclusively on
48779 (ch_strerror): New function.
48780 (last_cherror): New global.
48781 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48783 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48785 (freeaddrinfo): Free ai->ai_canonname when set.
48787 2005-09-12 Derek Price <derek@ximbiot.com>
48789 Make canon-host require getaddrinfo.
48790 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48791 AC_LIBSOURCE canon-host.h. Call...
48792 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48794 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48796 2005-09-12 Derek Price <derek@ximbiot.com>
48798 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48800 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48802 2005-09-12 Derek Price <derek@ximbiot.com>
48804 * lib/gai_strerror.c: Include config.h when available. Include
48805 getaddrinfo.h before other headers to test interface.
48806 Reported by Larry Jones <lawrence.jones@ugs.com>.
48808 2005-09-12 Derek Price <derek@ximbiot.com>
48809 Paul Eggert <eggert@cs.ucla.edu>
48811 * modules/glob (Files): Add glob-libc.h.
48813 2005-09-12 Derek Price <derek@ximbiot.com>
48814 Paul Eggert <eggert@cs.ucla.edu>
48816 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48817 glob_.h, glob-libc.h.
48818 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48820 2005-09-12 Derek Price <derek@ximbiot.com>
48821 Paul Eggert <eggert@cs.ucla.edu>
48823 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48824 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48825 protecting things that should be done only in gnulib contexts.
48826 * lib/glob_.h: New file, containing only the glob things needed for
48828 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48829 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48830 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48831 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48832 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48833 and to respect the namespace rules better.
48835 2005-09-08 Simon Josefsson <jas@extundo.com>
48837 * modules/socklen: New file.
48839 2005-09-08 Simon Josefsson <jas@extundo.com>
48841 * m4/socklen.m4: New file.
48843 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48845 * modules/utimens (Files): Add m4/utimbuf.m4, since
48846 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48847 Reported by Sergey Poznyakoff.
48849 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48851 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48852 definitions, since that's the preferred style in glibc.
48853 Fix a minor spacing issue, and update copyright notice to match
48856 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48858 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48860 2005-09-06 Simon Josefsson <jas@extundo.com>
48862 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48863 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48865 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48867 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48870 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48872 * config/srclist.txt: Add glibc bug 1302.
48874 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48876 Change bitset word type from unsigned int to unsigned long int,
48877 as this has better performance on typical 64-bit hosts.
48878 Port bitset code to hosts with unusual word sizes.
48879 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48880 (build_collating_symbol):
48881 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48882 argument is a bitset. This is merely a style issue, but it makes
48883 it clearer that an entire array is expected.
48884 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48885 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48886 Port to the case where bitset_word is not the same as unsigned int.
48887 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48888 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48890 * lib/regexec.c (check_dst_limits_calc_pos_1,
48891 check_subexp_matching_top):
48892 (build_trtable, group_nodes_into_DFAstates):
48894 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48895 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48896 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48897 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48898 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48899 * lib/regcomp.c (optimize_subexps, lower_subexp):
48900 Work even if bitset_word has holes in its bitwise representation.
48901 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48902 * lib/regexec.c (check_dst_limits_calc_pos_1,
48903 check_subexp_matching_top):
48905 * lib/regex_internal.c (re_string_reconstruct):
48906 Don't assume UCHAR_MAX == 255.
48907 * lib/regex_internal.h (bitset_set_all): Likewise.
48908 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48910 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48911 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48913 (BITSET_WORD_MAX): New macro.
48914 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48915 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48916 (bitset_empty, bitset_copy):
48917 Prefer sizeof (bitset) to multiplying it out ourselves.
48918 (bitset_not_merge): Remove; unused.
48919 (bitset_contain): Return bool, not unsigned int with one bit on.
48920 All callers changed.
48921 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48922 alignment than re_node_set; do this by defining a new internal
48923 type struct dests_alloc and using it to allocate memory.
48925 2005-09-05 Bruno Haible <bruno@clisp.org>
48927 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48930 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48932 * modules/size_max (Makefile.am): Add size_max.h
48934 2005-09-04 Derek Price <derek@ximbiot.com>
48936 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48938 2005-09-03 Simon Josefsson <jas@extundo.com>
48940 * gnulib-tool: Fix typo.
48942 2005-09-03 Simon Josefsson <jas@extundo.com>
48944 * config/srclist.txt: Add glibc bug 1293.
48946 2005-09-03 Derek Price <derek@ximbiot.com>
48948 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48949 From Larry Jones <lawrence.jones@ugs.com>.
48951 2005-09-02 Simon Josefsson <jas@extundo.com>
48953 * modules/socklen: New file.
48955 2005-09-02 Simon Josefsson <jas@extundo.com>
48957 * modules/havelib: New module.
48959 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48962 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48964 Check for arithmetic overflow when calculating sizes, to prevent
48965 some buffer-overflow issues. These patches are conservative, in the
48966 sense that when I couldn't determine whether an overflow was possible,
48967 I inserted a run-time check.
48968 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48970 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48971 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48972 (re_xnrealloc, re_x2nrealloc): New inline functions.
48973 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48974 parse_bracket_exp):
48975 (build_equiv_class, build_charclass): Check for arithmetic overflow
48976 in size expression calculations.
48977 * lib/regex_internal.c (re_string_realloc_buffers):
48978 (build_wcs_upper_buffer, re_node_set_add_intersect):
48979 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48980 (re_dfa_add_node, register_state): Likewise.
48981 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48982 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48983 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48984 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48986 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48988 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48989 m4/ulonglong.m4. Problem reported by Martin Lambers.
48991 2005-09-02 Bruno Haible <bruno@clisp.org>
48993 Support for lib vs. lib64 distinction on biarch platforms.
48994 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48995 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48996 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48998 2005-09-02 Bruno Haible <bruno@clisp.org>
49000 * gnulib-tool (import): In the other first-use case, provide defaults
49003 2005-09-02 Bruno Haible <bruno@clisp.org>
49005 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49006 patches not yet found in the latest gettext release.
49008 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49010 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49011 to avoid a collision with bits/local_lim.h in glibc.
49012 All uses changed. Problem reported by Dmitry V. Levin in
49013 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49015 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49016 bugs in int versus size_t comparisons.
49017 (re_string_context_at): Fix bug where the code assumed that
49020 Use bool where appropriate.
49021 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49022 All callers changed.
49023 (calc_eclosure_iter): Likewise, for ROOT arg.
49024 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49025 (build_charclass_op): Likewise, for NON_MATCH arg.
49026 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49027 (re_string_construct_common): Likewise, for ICASE arg.
49028 * lib/regexec.c (re_search_2_stub, re_search_stub):
49029 Likewise, for RET_LEN arg.
49030 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49031 (set_regs): Likewise, for FL_BACKTRACK arg.
49032 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49033 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49034 (calc_eclosure_iter, parse_bracket_exp):
49035 Use bool for internal variables that are booleans.
49036 * lib/regexec.c (re_search_internal, check_matching,
49037 proceed_next_node):
49038 (set_regs, build_sifted_states, sift_states_bkref):
49039 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49040 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49041 (find_collation_sequence_value):
49043 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49044 (re_node_set_compare):
49045 Return bool, not int. All callers changed.
49046 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49047 (build_trtable, check_node_accept): Likewise.
49048 * lib/regex_internal.h: Include stdbool.h.
49050 Fix bugs uncovered when converting to bool.
49051 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49052 failure instead of charging ahead blindly.
49053 * lib/regex_internal.c (register_state): Likewise.
49054 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49055 for freeing internal storage.
49056 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49057 bitset pieces used as boolean, to avoid undefined behavior
49058 on hosts that do int overflow checking.
49060 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49062 * config/srclist.txt: Add glibc bugs 1285-1287.
49064 2005-09-01 Jim Meyering <jim@meyering.net>
49066 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49067 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49068 Require gl_STAT_MACROS, too.
49070 2005-09-01 Bruno Haible <bruno@clisp.org>
49072 * gnulib-tool (import): In the first-use case, provide defaults.
49074 2005-09-01 Bruno Haible <bruno@clisp.org>
49076 * gnulib-tool (func_import): Remove the .tmp files.
49078 2005-09-01 Bruno Haible <bruno@clisp.org>
49080 * gnulib-tool (func_import): Fix handling of symbolic links.
49082 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49084 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49085 old glibc regex code mishandles strings longer than 2**31 bytes.
49086 This patch fixes this when the regex code is used in gnulib
49087 (i.e., outside glibc).
49089 This patch should not affect the use of the regex code inside
49090 glibc. No doubt this problem also needs to be handled for glibc
49091 as well, but the result will be an incompatible change to the
49092 glibc ABI, and the old ABI will have to be supported too. That
49093 can be the the subject for another patch.
49095 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49096 governing whether the rest of this patch is active. By default,
49097 the macro is disabled and the patch has no effect.
49098 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49099 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49100 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49101 (re_match_2, re_set_registers): Use the new types.
49102 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49103 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49105 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49106 (re_string_context_at, bin_tree_t, re_dfastate_t):
49107 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49108 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49109 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49110 (re_string_char_size_at, re_string_wchar_at):
49111 (re_string_elem_size_at):
49112 Use the new types and macros to port to 64-bit hosts.
49113 Use unsigned types for internal values, so that the code
49114 mostly works even for arrays larger than SSIZE_MAX.
49115 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49116 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49117 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49118 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49119 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49120 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49121 (calc_inveclosure, parse_dup_op, build_range_exp):
49122 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49123 (fetch_number, create_token_tree, mark_opt_subexp):
49125 * lib/regex_internal.c (re_string_construct_common,
49126 create_ci_newstate):
49127 (create_cd_newstate, re_string_allocate, re_string_construct):
49128 (re_string_realloc_buffers, build_wcs_upper_buffer):
49129 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49130 (re_string_reconstruct, re_string_peek_byte_case):
49131 (re_string_fetch_byte_case, re_string_context_at):
49132 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49133 (re_node_set_init_copy, re_node_set_add_intersect):
49134 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49135 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49136 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49137 (re_acquire_state, re_acquire_state_context, register_state):
49139 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49140 search_cur_bkref_entry):
49141 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49142 (re_search_internal, re_search_2_stub, re_search_stub)
49143 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49144 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49145 (update_cur_sifted_state, check_dst_limits):
49146 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49147 (check_subexp_limits, sift_states_bkref, merge_state_array):
49148 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49149 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49150 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49151 (expand_bkref_cache, check_node_accept_bytes):
49152 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49153 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49154 (acquire_init_state_context, check_halt_node_context):
49155 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49156 (sift_states_backward, clean_state_log_if_needed):
49157 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49158 (find_recover_state, transit_state_sb, transit_state_mb):
49159 (transit_state_bkref, build_trtable, match_ctx_clean):
49161 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49162 to work around an assumption that REG_MISSING is negative.
49164 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49165 (seek_collating_symbol_entry) [defined _LIBC]:
49166 (lookup_collation_sequence_value) [defined _LIBC]:
49167 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49168 Use prototypes rather than old-style function definitions.
49169 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49170 (transit_state_sb) [0]:
49171 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49173 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49176 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49177 (optimize_subexps, lower_subexp):
49178 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49179 since the signed shift might overflow. Use 1u<<31 instead.
49180 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49182 * lib/regexec.c (check_dst_limits_calc_pos_1,
49183 check_subexp_matching_top): Likewise.
49185 * lib/regcomp.c (optimize_subexps, lower_subexp):
49186 Use CHAR_BIT rather than 8, for clarity.
49187 * lib/regexec.c (check_dst_limits_calc_pos_1):
49188 (check_subexp_matching_top): Likewise.
49189 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49190 have to worry about portability issues when shifting it left.
49191 Remove no-longer-needed test for table_size > 0.
49192 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49193 in a word, as the resulting behavior is undefined.
49194 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49195 in one case, a <= should have been an <, and in another case the
49196 whole test was missing.
49197 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49198 the standard name CHAR_BIT.
49199 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49200 this is not true on one's complement and signed-magnitude hosts.
49202 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49204 (struct re_dfa_t): Remove unused member states_alloc.
49205 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49207 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49209 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49210 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49211 and large-file glibc and in 32-bit large-file Solaris.
49213 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49215 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49216 lengths fit in regoff_t; this isn't true if regoff_t is the same
49218 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49219 (= START + RANGE) instead of RANGE. This avoids overflow
49220 problems when regoff_t is the same width as size_t.
49221 All callers changed.
49222 (re_search_2_stub): Check for overflow when adding the
49223 sizes of the two strings.
49224 (re_search_stub): Check for overflow when adding START
49225 to RANGE; if it occurs, substitute the extreme value.
49227 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49229 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49231 2005-08-31 Jim Meyering <jim@meyering.net>
49233 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49234 a pointer-to-const.
49235 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49236 (register_state): Likewise.
49237 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49238 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49239 (group_nodes_into_DFAstates): Likewise.
49241 2005-08-31 Jim Meyering <jim@meyering.net>
49243 * check-module: Add a FIXME comment.
49245 2005-08-31 Eric Blake <ebb9@byu.net>
49247 * modules/unistd-safer (Files): Add unistd--.h.
49248 * modules/stdio-safer (Files): Add stdio--.h.
49250 2005-08-31 Derek Price <derek@ximbiot.com>
49252 * lib/getdelim.c (getdelim): Return EOF on EOF.
49253 Reported by Larry Jones <lawrence.jones@ugs.com>.
49255 2005-08-31 Bruno Haible <bruno@clisp.org>
49257 Avoid unnecessary diffs in the generated lib/Makefile.am.
49258 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49259 the generated files.
49260 (func_import): Don't set cmd.
49262 2005-08-31 Bruno Haible <bruno@clisp.org>
49264 * lib/strstr.c: Include <stddef.h>, for NULL.
49265 * lib/strcasestr.c: Likewise.
49266 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49268 2005-08-31 Bruno Haible <bruno@clisp.org>
49270 * gnulib-tool: New option --macro-prefix.
49271 (func_import): Use macro_prefix.
49272 (import): Handle option --macro-prefix.
49274 2005-08-31 Bruno Haible <bruno@clisp.org>
49276 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49277 Also use new variables cached_lgpl, cached_libtool.
49279 2005-08-31 Bruno Haible <bruno@clisp.org>
49281 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49282 always instantiating them.
49284 2005-08-31 Bruno Haible <bruno@clisp.org>
49286 * gnulib-tool (func_import): Read the previous cached settings
49287 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49288 earlier added by gnulib but are now dropped. Warn when a gnulib file
49289 overwrites a non-gnulib file.
49291 2005-08-31 Bruno Haible <bruno@clisp.org>
49293 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49294 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49295 projects that don't keep autogenerated files in CVS. Put into
49296 actioncmd only the specified modules, not the transitive closure.
49298 2005-08-31 Bruno Haible <bruno@clisp.org>
49300 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49301 Create directories that shall be filled.
49302 (import): Don't look for gl_* macros in configure.ac. Recurse across
49303 all directories containing a gnulib-cache.m4 files, if meaningful.
49305 2005-08-31 Bruno Haible <bruno@clisp.org>
49307 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49308 (import): Set seen_libtool when we see gl_LIBTOOL.
49310 2005-08-31 Bruno Haible <bruno@clisp.org>
49312 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49313 declaration macro definitions from generated gnulib.m4.
49315 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49317 * lib/iconvme.h: Add prototype for iconv_alloc.
49319 2005-08-29 Simon Josefsson <jas@extundo.com>
49321 * lib/iconvme.c: Fix errno.
49323 2005-08-29 Bruno Haible <bruno@clisp.org>
49325 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49326 that it works when the directory contains spaces.
49328 2005-08-29 Bruno Haible <bruno@clisp.org>
49330 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49332 2005-08-29 Bruno Haible <bruno@clisp.org>
49334 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49337 2005-08-29 Bruno Haible <bruno@clisp.org>
49338 and Stepan Kasal <kasal@ucw.cz>
49340 * check-module: If more parameters are given, check each of them
49341 separately; add more exceptions, as noted by Jim Meyering.
49342 (check_module): New procedure.
49343 (%exempt_header): Now contains all exceptions.
49345 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49347 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49349 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49351 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49353 2005-08-28 Bruno Haible <bruno@clisp.org>
49355 * m4/gnulib-tool.m4: New file.
49357 2005-08-27 Jim Meyering <jim@meyering.net>
49359 * modules/unistd-safer (Files): Add pipe-safer.c.
49360 * modules/fcntl-safer (Files): Add creat-safer.c.
49362 2005-08-27 Jim Meyering <jim@meyering.net>
49364 * m4/stdlib-safer.m4: New file. From coreutils.
49365 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49366 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49367 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49368 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49369 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49371 2005-08-27 Jim Meyering <jim@meyering.net>
49373 * lib/fopen-safer.c: Merge minor changes from coreutils.
49374 * lib/dup-safer.c: Likewise.
49375 * lib/fd-safer.c: Likewise.
49377 Merge from coreutils.
49378 * lib/stdio--.h: New file.
49379 * lib/stdlib--.h: New file.
49380 * lib/mkstemp-safer.c: New file.
49382 GNU tar needs these.
49383 * lib/pipe-safer.c: New file.
49384 * lib/creat-safer.c: New file.
49385 * lib/fcntl--.h (creat): Define to creat_safer.
49386 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49387 * lib/unistd--.h (pipe): Define to pipe_safer.
49388 * lib/unistd-safer.h: Declare pipe_safer.
49390 2005-08-26 Simon Josefsson <jas@extundo.com>
49392 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49393 Haible <bruno@clisp.org>.
49395 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49397 * lib/regex_internal.h: Remove all references to
49398 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49400 (bitset_not, bitset_merge, bitset_not_merge):
49401 (bitset_mask, re_string_allocate, re_string_construct):
49402 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49403 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49404 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49405 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49406 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49407 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49408 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49409 (re_acquire_state_context):
49410 Remove unnecessary forward decls.
49411 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49412 Put __attribute at function definition,
49413 now that the function decl has been removed.
49414 * lib/regex_internal.c (re_string_peek_byte_case):
49415 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49418 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49420 * m4/regex.m4: Add AC_PREREQ(2.50).
49421 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49423 2005-08-25 Simon Josefsson <jas@extundo.com>
49425 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49428 2005-08-25 Simon Josefsson <jas@extundo.com>
49430 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49431 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49432 GLIBC specific code.
49434 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49436 Make regex safe for g++. This fixes one real bug (an "err"
49437 that should have been "*err"). g++ problem reported by
49439 * lib/regex_internal.h (re_calloc): New macro, consistent with
49440 re_malloc etc. All callers of calloc changed to use re_calloc.
49441 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49442 not int. All callers changed.
49443 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49444 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49445 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49446 (find_recover_state): Change "err" to "*err"; this fixes what
49447 appears to be a real bug.
49448 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49451 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49453 * modules/regex (Depends-on): Add malloc, since the code
49454 assumes that !malloc(0) means failure.
49456 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49458 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49460 alloca modernization/simplification for regex.
49461 * lib/regex.c: Remove portability cruft for alloca. This no longer
49462 needs to be at the start of the file, and can be moved into
49463 regex_internal.h and simplified.
49464 * lib/regex_internal.h: Include <alloca.h>.
49465 (__libc_use_alloca) [!defined _LIBC]: New macro.
49466 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49467 now works outside glibc.
49469 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49471 * config/srclist.txt: Add glibc bugs 1241, 1245.
49473 2005-08-25 Jim Meyering <jim@meyering.net>
49475 * lib/open-safer.c: Include <config.h>.
49476 Otherwise, we'd lose LARGEFILE support in any file using
49479 2005-08-25 Bruno Haible <bruno@clisp.org>
49481 * m4/minmax.m4: Require autoconf 2.52.
49482 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49483 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49484 alternatives of translit over the alphabet.
49485 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49487 2005-08-24 Simon Josefsson <jas@extundo.com>
49489 * tests/test-getpass.c: New file.
49491 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49493 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49494 for GNU regex features.
49496 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49498 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49499 * lib/regex.h (regerror): Likewise.
49501 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49502 requires this. (The code never needed it.)
49504 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49505 All uses of recently-renamed identifiers changed to use the new,
49506 POSIX-compliant names. The code will build and run just fine
49507 without these changes, but it's better to eat our own dog food
49508 and use the standard-conforming names.
49510 * lib/regex.h: Fix a multitude of POSIX name space violations.
49511 These changes have an effect only for programs that define
49512 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49513 do not change anything for programs compiled in the normal way.
49514 Also, there is no effect on the ABI.
49516 (_REGEX_SOURCE): New macro.
49517 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49518 defined and _GNU_SOURCE is not; this fixes a name space violation.
49520 Rename the following macros to obey POSIX requirements.
49521 The old names are still visible as macros if _REGEX_SOURCE is defined.
49522 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49523 RE_BACKSLASH_ESCAPE_IN_LISTS.
49524 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49525 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49526 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49527 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49528 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49529 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49530 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49531 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49532 (REG_INTERVALS): renamed from RE_INTERVALS.
49533 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49534 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49535 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49536 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49537 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49538 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49539 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49540 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49541 RE_UNMATCHED_RIGHT_PAREN_ORD.
49542 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49543 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49544 (REG_DEBUG): renamed from RE_DEBUG.
49545 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49546 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49547 unusual, since we can't clash with the POSIX REG_ICASE.
49548 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49549 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49550 (REG_NO_SUB): renamed from RE_NO_SUB.
49551 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49552 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49553 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49554 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49555 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49556 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49557 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49558 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49559 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49560 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49561 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49562 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49563 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49564 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49565 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49566 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49567 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49568 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49569 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49570 (REG_FIXED): Renamed from REGS_FIXED.
49571 (REG_NREGS): Renamed from RE_NREGS.
49573 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49574 of other REG_* macros, since POSIX says the user is allowed to
49575 #undef these macros selectively.
49577 (reg_errcode_t): Update comment stating what other tables need
49580 Rename the following enum values to obey POSIX requirements.
49581 The old names are still visible as macros.
49582 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49583 is not defined, since GNU is supposed to be a superset of POSIX as
49584 much as possible, and since we want reg_errcode_t to be a signed
49585 type for implementation consistency.
49586 (_REG_NOERROR): Renamed from REG_NOERROR.
49587 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49588 (_REG_BADPAT): Renamed from REG_BADPAT.
49589 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49590 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49591 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49592 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49593 (_REG_EBRACK): Renamed from REG_EBRACK.
49594 (_REG_EPAREN): Renamed from REG_EPAREN.
49595 (_REG_EBRACE): Renamed from REG_EBRACE.
49596 (_REG_BADBR): Renamed from REG_BADBR.
49597 (_REG_ERANGE): Renamed from REG_ERANGE.
49598 (_REG_ESPACE): Renamed from REG_ESPACE.
49599 (_REG_BADRPT): Renamed from REG_BADRPT.
49600 (_REG_EEND): Renamed from REG_EEND.
49601 (_REG_ESIZE): Renamed from REG_ESIZE.
49602 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49603 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49604 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49605 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49606 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49608 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49609 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49610 changed. But support the old name if the new one is not defined
49611 and if _REGEX_SOURCE.
49613 Change the following member names in struct re_pattern_buffer.
49614 The old names are still supported if !_REGEX_SOURCE.
49615 The new names are always supported, regardless of _REGEX_SOURCE.
49616 (re_buffer): Renamed from buffer.
49617 (re_allocated): Renamed from allocated.
49618 (re_used): Renamed from used.
49619 (re_syntax): Renamed from syntax.
49620 (re_fastmap): Renamed from fastmap.
49621 (re_translate): Renamed from translate.
49622 (re_can_be_null): Renamed from can_be_null.
49623 (re_regs_allocated): Renamed from regs_allocated.
49624 (re_fastmap_accurate): Renamed from fastmap_accurate.
49625 (re_no_sub): Renamed from no_sub.
49626 (re_not_bol): Renamed from not_bol.
49627 (re_not_eol): Renamed from not_eol.
49628 (re_newline_anchor): Renamed from newline_anchor.
49630 Change the following member names in struct re_registers.
49631 The old names are still supported if !_REGEX_SOURCE.
49632 The new names are always supported, regardless of _REGEX_SOURCE.
49633 (rm_num_regs): Renamed from num_regs.
49634 (rm_start): Renamed from start.
49635 (rm_end): Renamed from end.
49637 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49638 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49639 Prepend __ to parameter names.
49641 Undo yesterday's changes.
49643 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49645 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49646 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49649 2005-08-24 Jim Meyering <jim@meyering.net>
49651 Sync from coreutils.
49652 * m4/fcntl-safer.m4: New file.
49654 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49655 and object files for this module.
49657 2005-08-24 Jim Meyering <jim@meyering.net>
49659 Sync from coreutils.
49660 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49662 2005-08-24 Jim Meyering <jim@meyering.net>
49664 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49665 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49667 2005-08-24 Jim Meyering <jim@meyering.net>
49669 * modules/fcntl-safer: New module.
49670 * modules/fts (Depends-on): Add fcntl-safer.
49671 * MODULES.html.sh (File descriptor based Input/Output):
49674 2005-08-24 Bruno Haible <bruno@clisp.org>
49676 Support for unit test modules.
49677 * modules/README: Mention tests modules.
49678 * modules/TEMPLATE-TESTS: New file.
49679 * gnulib-tool: New options --extract-tests-module, --with-tests and
49680 --tests-base (unused for the moment).
49681 (testsbase, inctests): New variables.
49682 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49683 (func_verify_module): Exclude TEMPLATE-TESTS.
49684 (func_verify_nontests_module, func_verify_tests_module): New functions.
49685 (func_get_dependencies): Add implicit dependency for tests modules.
49686 (func_get_tests_module): New function.
49687 (func_modules_transitive_closure): When --with-tests was specified,
49688 include the unit tests as well, unless explicitly avoided.
49689 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49690 (func_emit_tests_Makefile_am): New function.
49691 (func_create_testdir): When --with-tests was specified, emit a
49693 * MODULES.html.sh (Future developments): Update.
49695 2005-08-24 Bruno Haible <bruno@clisp.org>
49697 * modules/tls-tests: New file.
49698 * tests/test-tls.c: New file, from GNU gettext.
49700 2005-08-24 Bruno Haible <bruno@clisp.org>
49702 * modules/lock-tests: New file.
49703 * tests/test-lock.c: New file, from GNU gettext.
49705 2005-08-24 Bruno Haible <bruno@clisp.org>
49707 * lib/lock.h: Add multiple inclusion guard.
49708 * lib/tls.h: Add multiple inclusion guard.
49710 2005-08-24 Bruno Haible <bruno@clisp.org>
49712 * gnulib-tool: Add support for the --aux-dir option to
49713 --create-testdir, --create-megatestdir, --test, --megatest.
49714 (func_create_testdir, func_create_megatestdir): Optionally emit a
49715 AC_CONFIG_AUX_DIR directive.
49716 (create-testdir, create-megatestdir, test, megatest): Provide a
49717 default value for $auxdir.
49719 2005-08-24 Bruno Haible <bruno@clisp.org>
49721 * gnulib-tool (import): Use compound statement instead of subshell
49724 2005-08-24 Bruno Haible <bruno@clisp.org>
49726 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49728 2005-08-24 Bruno Haible <bruno@clisp.org>
49730 * gnulib-tool (func_version): Update.
49732 2005-08-24 Bruno Haible <bruno@clisp.org>
49734 * gnulib-tool (func_import, func_create_testdir,
49735 func_create_megatestdir): Quote all autoconf macro arguments.
49737 2005-08-24 Bruno Haible <bruno@clisp.org>
49739 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49740 option --force, because --force causes the aclocal.m4 of each
49741 subdirectory to be newer than the corresponding config.h.in.
49743 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49745 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49746 All contents moved to gl_REGEX.
49747 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49748 assume that it does.
49750 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49752 * lib/regex.h (REG_NOSYS)
49753 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49754 Define, since POSIX requires it as of 2001.
49756 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49757 New private symbol, used to keep the enum signed in all cases.
49758 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49760 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49762 * lib/regex_internal.c (re_string_skip_chars, register_state):
49764 Remove forward decls; no longer needed now that we use prototypes.
49765 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49766 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49767 (clean_state_log_if_needed): Likewise.
49769 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49771 * config/srclist.txt: Add glibc bugs 1231-1233.
49773 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49775 Fix problems reported by Sam Steingold in
49776 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49777 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49778 assumed that reg_errcode_t is a signed type, which is not
49779 necessarily true if _XOPEN_SOURCE is not defined.
49780 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49781 since some compilers warn about it otherwise.
49783 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49785 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49786 (init_word_char, create_initial_state, duplicate_node_closure):
49787 (fetch_token, peek_token_bracket, build_range_exp):
49788 (build_collating_symbol): Remove forward decls; no longer needed
49789 now that we use prototypes.
49792 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49793 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49794 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49795 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49796 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49797 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49798 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49799 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49800 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49801 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49802 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49803 (build_charclass, build_charclass_op, fetch_number, create_tree):
49804 (create_token_tree, mark_opt_subexp, duplicate_tree):
49805 Use prototypes rather than old-style definitions.
49807 * lib/regex_internal.c:
49808 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49809 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49810 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49811 (re_string_reconstruct, re_string_peek_byte_case):
49812 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49813 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49814 (re_node_set_init_copy, re_node_set_add_intersect):
49815 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49816 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49817 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49818 (re_acquire_state, re_acquire_state_context, register_state):
49819 (create_ci_newstate, create_cd_newstate, free_state):
49821 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49823 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49824 (re_search_internal, prune_impossible_nodes):
49825 (acquire_init_state_context, check_matching, static):
49826 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49827 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49828 (update_regs, sift_states_backward, build_sifted_states):
49829 (clean_state_log_if_needed, merge_state_array):
49830 (update_cur_sifted_state, add_epsilon_src_nodes):
49831 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49832 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49833 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49834 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49835 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49836 (check_arrival, check_arrival_add_next_nodes):
49837 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49838 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49839 (check_node_accept_bytes, check_node_accept, extend_buffers):
49840 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49841 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49845 * lib/regex_internal.h:
49846 (re_string_allocate, re_string_construct, re_string_reconstruct):
49847 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49848 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49849 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49850 (re_string_context_at, re_string_peek_byte_case):
49851 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49852 is defined, since we now use prototypes always.
49854 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49855 C89 or better. All uses removed.
49857 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49859 * config/srclist.txt: Add glibc bugs 1220-1227.
49861 2005-08-20 Jim Meyering <jim@meyering.net>
49863 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49864 of unused local, dfa.
49866 2005-08-20 Bruno Haible <bruno@clisp.org>
49868 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49870 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49872 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49873 (re_node_set_insert_last, re_dfa_add_node):
49874 Rename local variables to avoid GCC shadowing warnings.
49876 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49878 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49879 [defined lint]: Suppress bogus uninitialized-variable warnings.
49881 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49882 and let the caller return REG_ESPACE if out of space. This
49883 removes an uninitialied-variable warning with GCC 4.0.1, and also
49884 avoids taking the address of a local variable. All callers
49887 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49889 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49890 $LIBCSRC/posix/regexec.c.
49891 Add glibc bug 1217 for regcomp.c.
49893 2005-08-19 Jim Meyering <jim@meyering.net>
49895 * lib/regexec.c (proceed_next_node): Redo local variables to
49896 avoid GCC shadowing warnings.
49898 2005-08-18 Bruno Haible <bruno@clisp.org>
49900 * lib/strstr.c (strstr): Fix return value in multibyte case.
49901 * lib/strcasestr.c (strcasestr): Likewise.
49903 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49905 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49907 2005-08-17 Jim Meyering <jim@meyering.net>
49909 Make the %s format (seconds since the epoch) work for a negative
49910 number and when used with a zero-padded field width, e.g. %015s.
49912 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49913 label so that it precedes the code to set `digits'. Otherwise,
49914 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49915 print `00-22'. Now, it prints `-0022', as it should.
49917 2005-08-17 Bruno Haible <bruno@clisp.org>
49919 * modules/strstr (Files): Add m4/mbrtowc.m4.
49920 (Depends-on): Add mbuiter.
49922 2005-08-17 Bruno Haible <bruno@clisp.org>
49924 * modules/strcasestr: New file.
49925 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49928 2005-08-17 Bruno Haible <bruno@clisp.org>
49930 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49932 2005-08-17 Bruno Haible <bruno@clisp.org>
49934 * modules/mbuiter: New file.
49935 * MODULES.html.sh (Extended multibyte and wide character utilities):
49938 2005-08-17 Bruno Haible <bruno@clisp.org>
49940 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49941 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49943 2005-08-17 Bruno Haible <bruno@clisp.org>
49945 * m4/strcasestr.m4: New file.
49947 2005-08-17 Bruno Haible <bruno@clisp.org>
49949 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49950 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49952 2005-08-17 Bruno Haible <bruno@clisp.org>
49954 * lib/strcasestr.h: New file.
49955 * lib/strcasestr.c: New file.
49957 2005-08-17 Bruno Haible <bruno@clisp.org>
49959 * lib/strcasecmp.c: Use mbuiter.h.
49961 2005-08-17 Bruno Haible <bruno@clisp.org>
49963 * lib/mbuiter.h: New file.
49965 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49967 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49968 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49969 and gl_GETOPT are both invoked via different paths (as happens
49970 with GNU tar CVS because it uses both argp and getopt), the former
49973 2005-08-16 Bruno Haible <bruno@clisp.org>
49975 * modules/tls: New file.
49976 * MODULES.html.sh (Multithreading): Add tls.
49978 2005-08-16 Bruno Haible <bruno@clisp.org>
49980 * modules/strnlen1: New file.
49981 * MODULES.html.sh (String handling): Add strnlen1.
49983 2005-08-16 Bruno Haible <bruno@clisp.org>
49985 * modules/strcase (Files): Add m4/mbrtowc.m4.
49986 (Depends-on): Add strnlen1, mbchar.
49988 2005-08-16 Bruno Haible <bruno@clisp.org>
49990 * modules/mbiter: New file.
49991 * MODULES.html.sh (Extended multibyte and wide character utilities):
49994 2005-08-16 Bruno Haible <bruno@clisp.org>
49996 * modules/mbfile: New file.
49997 * MODULES.html.sh (Extended multibyte and wide character utilities):
50000 2005-08-16 Bruno Haible <bruno@clisp.org>
50002 * modules/mbchar: New file.
50003 * MODULES.html.sh (Extended multibyte and wide character utilities):
50006 2005-08-16 Bruno Haible <bruno@clisp.org>
50008 * m4/tls.m4: New file, from GNU gettext.
50010 2005-08-16 Bruno Haible <bruno@clisp.org>
50012 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50014 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50016 2005-08-16 Bruno Haible <bruno@clisp.org>
50018 * m4/mbiter.m4: New file.
50020 2005-08-16 Bruno Haible <bruno@clisp.org>
50022 * m4/mbfile.m4: New file.
50024 2005-08-16 Bruno Haible <bruno@clisp.org>
50026 * m4/mbchar.m4: New file.
50028 2005-08-16 Bruno Haible <bruno@clisp.org>
50030 * lib/tls.h: New file, from GNU gettext.
50031 * lib/tls.c: New file, from GNU gettext.
50033 2005-08-16 Bruno Haible <bruno@clisp.org>
50035 * lib/strnlen1.h: New file.
50036 * lib/strnlen1.c: New file.
50038 2005-08-16 Bruno Haible <bruno@clisp.org>
50040 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50041 (mbi_init): Update.
50042 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50043 NUL byte, not after it.
50045 2005-08-16 Bruno Haible <bruno@clisp.org>
50047 * lib/strcase.h (strcasecmp): Add note in comments.
50048 * lib/strncasecmp.c: Use code from strcasecmp.c.
50049 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50050 (strcasecmp): Work correctly in multibyte locales.
50052 2005-08-16 Bruno Haible <bruno@clisp.org>
50054 * lib/mbiter.h: New file.
50056 2005-08-16 Bruno Haible <bruno@clisp.org>
50058 * lib/mbfile.h: New file.
50060 2005-08-16 Bruno Haible <bruno@clisp.org>
50062 * lib/mbchar.h: New file.
50063 * lib/mbchar.c: New file.
50065 2005-08-16 Bruno Haible <bruno@clisp.org>
50067 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50068 the valid ones. Makes the comparison operations transitive:
50069 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50070 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50072 2005-08-15 Simon Josefsson <jas@extundo.com>
50074 * modules/ssize_t (License): Change to 'unlimited'.
50076 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50078 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50080 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50081 Add comments for each pending glibc patch.
50083 2005-08-15 Bruno Haible <bruno@clisp.org>
50085 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50086 __cplusplus is defined.
50088 2005-08-14 Jim Meyering <jim@meyering.net>
50090 Sync from coreutils.
50092 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50093 Use the hash-table-based cycle-detection code not just when
50094 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50095 Reported by James Youngman in
50096 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50097 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50098 FTS_TIGHT_CYCLE_CHECK.
50099 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50100 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50102 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50103 * lib/fts.c (fd_safer): Remove decl.
50104 Include fcntl--.h rather than unistd-safer.h
50105 (fts_safe_changedir): Don't call fd_safer; no longer needed
50106 now that we include fcntl--.h.
50108 2005-08-12 Simon Josefsson <jas@extundo.com>
50110 * modules/getndelim2: Use ssize_t module.
50111 * modules/getnline: Likewise.
50112 * modules/safe-read: Likewise.
50113 * modules/xreadlink: Likewise.
50115 * modules/ssize_t: New file.
50117 2005-08-12 Simon Josefsson <jas@extundo.com>
50119 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50121 2005-08-12 Simon Josefsson <jas@extundo.com>
50123 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50126 2005-08-12 Simon Josefsson <jas@extundo.com>
50128 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50129 readline, getdelim and check_version.
50130 (Support for systems lacking ISO C 99: Sizes of integer types):
50133 2005-08-12 Bruno Haible <bruno@clisp.org>
50135 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50137 2005-08-11 Simon Josefsson <jas@extundo.com>
50139 * modules/readline: New file.
50141 * modules/strnlen (Files): Add strnlen.h.
50143 2005-08-11 Simon Josefsson <jas@extundo.com>
50145 * m4/readline.m4: New file.
50147 2005-08-11 Simon Josefsson <jas@extundo.com>
50149 * lib/readline.h, readline.c: New file.
50151 2005-08-11 Simon Josefsson <jas@extundo.com>
50153 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50156 2005-08-11 Bruno Haible <bruno@clisp.org>
50158 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50160 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50162 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50164 2005-08-10 Simon Josefsson <jas@extundo.com>
50166 * tests/test-iconvme.c: New file.
50168 2005-08-10 Simon Josefsson <jas@extundo.com>
50170 * m4/strnlen.m4: New file.
50172 * m4/strndup.m4: Don't check for strnlen declaration, done in
50175 2005-08-10 Simon Josefsson <jas@extundo.com>
50177 * lib/strndup.c: Use strnlen.h.
50179 * lib/strnlen.h: New file.
50181 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50185 2005-08-02 Simon Josefsson <jas@extundo.com>
50187 * modules/readline: New file.
50189 2005-08-02 Simon Josefsson <jas@extundo.com>
50191 * modules/getdelim: New file.
50193 * modules/getline: Rewrite, don't use getndelim2.
50195 2005-08-02 Simon Josefsson <jas@extundo.com>
50197 * m4/getline.m4: Separate out getdelim stuff into separate module.
50199 * m4/getdelim.m4: New file.
50201 2005-08-02 Simon Josefsson <jas@extundo.com>
50203 * lib/getline.h, getline.c: Rewrite.
50205 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50207 2005-07-31 Bruno Haible <bruno@clisp.org>
50209 * lib/lock.h (gl_lock_initializer): New macro.
50210 (gl_lock_define_initialized): Use it.
50211 (gl_rwlock_initializer): New macro.
50212 (gl_rwlock_define_initialized): Use it.
50213 (gl_recursive_lock_initializer): New macro.
50214 (gl_recursive_lock_define_initialized): Use it.
50216 2005-07-30 Karl Berry <karl@gnu.org>
50218 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50219 Report from Ben Pfaff, regarding getopt.
50221 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50223 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50225 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50226 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50227 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50228 (gl_GETOPT): Use the new macros. Most of the implementation
50229 is moved to the new macros. This is for programs like Emacs
50230 that don't want all the functionality of gl_GETOPT.
50232 2005-07-26 Bruno Haible <bruno@clisp.org>
50234 * m4/lock.m4: Update from GNU gettext.
50236 2005-07-26 Bruno Haible <bruno@clisp.org>
50238 * lib/lock.h: Update from GNU gettext.
50239 * lib/lock.c: Update from GNU gettext.
50241 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50243 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50244 obsolescent AC_TRY_RUN. Include the default includes files, for
50247 2005-07-24 Bruno Haible <bruno@clisp.org>
50249 * modules/visibility: New file.
50250 * MODULES.html.sh (Misc): Add visibility.
50252 2005-07-24 Bruno Haible <bruno@clisp.org>
50254 * m4/visibility.m4: New file.
50256 2005-07-24 Bruno Haible <bruno@clisp.org>
50258 * doc/visibility.texi: New file.
50260 2005-07-22 Bruno Haible <bruno@clisp.org>
50262 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50263 $(ALLOCA_H), redundant through BUILT_SOURCES.
50264 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50265 redundant through BUILT_SOURCES.
50266 * modules/byteswap (Makefile.am): Remove explicit dependency on
50267 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50268 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50269 $(FNMATCH_H), redundant through BUILT_SOURCES.
50270 * modules/getopt (Makefile.am): Remove explicit dependency on
50271 $(GETOPT_H), redundant through BUILT_SOURCES.
50272 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50273 redundant through BUILT_SOURCES.
50274 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50275 redundant through BUILT_SOURCES.
50276 * modules/stdbool (Makefile.am): Remove explicit dependency on
50277 $(STDBOOL_H), redundant through BUILT_SOURCES.
50278 * modules/stdint (Makefile.am): Remove explicit dependency on
50279 $(STDINT_H), redundant through BUILT_SOURCES.
50280 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50281 Remove explicit dependency on $(SYSEXITS_H).
50282 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50284 2005-07-18 Simon Josefsson <jas@extundo.com>
50286 * lib/check-version.c (check_version): Accept identical versions too.
50288 2005-07-18 Bruno Haible <bruno@clisp.org>
50290 * modules/lock: New file.
50291 * MODULES.html.sh (Multithreading): New section.
50293 2005-07-18 Bruno Haible <bruno@clisp.org>
50295 * m4/lock.m4: New file, from GNU gettext.
50297 2005-07-18 Bruno Haible <bruno@clisp.org>
50299 * lib/lock.h: New file, from GNU gettext.
50300 * lib/lock.c: New file, from GNU gettext.
50302 2005-07-18 Bruno Haible <bruno@clisp.org>
50304 * lib/lock.h (gl_once_t): New type.
50305 (gl_once_define, gl_once): New macros.
50306 * lib/lock.c (fresh_once): New variable.
50307 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50310 2005-07-16 Simon Josefsson <jas@extundo.com>
50312 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50313 workaround, suggested by Bruno.
50315 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50317 * modules/xalloc (Depends-on): Add xalloc-die.
50318 * modules/xvasprintf (Depends-on): Add xalloc-die.
50320 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50322 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50323 with a minor change.
50325 2005-07-15 Bruno Haible <bruno@clisp.org>
50327 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50328 When using lib/poll.c, define poll as rpl_poll.
50330 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50332 * modules/argp (Depends-on): Remove unlocked-io.
50334 2005-07-14 Derek Price <derek@ximbiot.com>
50336 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50337 for glob symlink bug.
50339 2005-07-14 Bruno Haible <bruno@clisp.org>
50341 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50342 Instead, test for *_unlocked function declarations directly.
50344 2005-07-11 Simon Josefsson <jas@extundo.com>
50346 * modules/size_max: New file.
50348 * modules/xsize: Depend on size_max module for size_max.m4.
50350 2005-07-11 Simon Josefsson <jas@extundo.com>
50352 * lib/size_max.h: New file.
50354 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50356 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50357 copyright symbol and the year.
50358 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50359 (version_etc_va): Use parameterized copyright notice.
50360 Reword to conform to the current GNU coding standards.
50362 2005-07-11 Karl Berry <karl@gnu.org>
50364 * doc/gnulib.texi (Quoting): new node.
50365 (Initial import): more info, from Patrice.
50367 2005-07-11 Bruno Haible <bruno@clisp.org>
50369 * gnulib-tool (func_usage): Document option --avoid.
50370 (Command line options): Handle --avoid.
50371 (func_acceptable): New function.
50372 (func_modules_transitive_closure): Use it.
50374 2005-07-11 Bruno Haible <bruno@clisp.org>
50376 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50377 Reported by Jim Meyering.
50379 2005-07-10 Bruno Haible <bruno@clisp.org>
50381 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50382 Needed when size_t is smaller than 'unsigned int'.
50383 Reported by Paul Eggert.
50385 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50387 * modules/argp (Depends-on): Add unlocked-io
50389 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50391 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50394 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50396 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50399 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50400 and Paul Eggert <eggert@cs.ucla.edu>
50402 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50403 in wint_t, not wchar_t. Remove now-unnecessary cast.
50405 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50407 * modules/regex (Files): Add lib/regex_internal.c,
50408 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50409 (Depends-on): Add extensions.
50410 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50412 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50414 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50416 * m4/same.m4 (gl_SAME): Likewise.
50417 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50419 * m4/regex.m4: Adjust to new libc regex implementation.
50420 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50421 all the .c and .h parts of (the new) regex.
50422 Quote the m4 stuff better.
50423 Check for RE_ICASE bug of old gnulib.
50424 Check for REG_STARTEND of recent libc.
50425 Rename local variables from jm_* to gl_*.
50426 Quote operand of "test -f".
50427 Say "recent enough" version of libc, not "version 2".
50428 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50429 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50430 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50431 Remove check for btowc, isascii.
50432 Require AM_LANGINFO_CODESET.
50434 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50436 * lib/regex.c, regex.h: Sync from libc.
50437 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50439 New files, synced from libc, except that regex_internal.h
50440 currently has a small porting fix.
50442 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50444 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50445 regex_internal.c, regexec.c.
50446 Add regex_internal.h too, but as a comment, since the libc version
50447 is currently broken in gnulib mode.
50449 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50451 Support programs like Emacs that use gnulib but not gettext.
50452 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50453 * modules/gettext-h: New file.
50454 * modules/gettext (Files): Remove lib/gettext.h.
50455 (Depends-on): Add gettext-h.
50456 (Makefile.am): Remove lib_SOURCES.
50457 * modules/argmatch, modules/c-stack, modules/closeout:
50458 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50459 * modules/execute, modules/file-type, modules/getaddrinfo:
50460 * modules/getopt, modules/human, modules/javacomp:
50461 * modules/javaexec, modules/mkdir-p, modules/obstack:
50462 * modules/openat, modules/pagealign_alloc, modules/pipe:
50463 * modules/quotearg, modules/regex, modules/rpmatch:
50464 * modules/unicodeio, modules/userspec, modules/version-etc:
50465 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50467 Depend on gettext-h, not gettext.
50469 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50471 * gnulib-tool (func_import): Add support for 'public domain' license.
50472 * modules/alloca, modules/atexit, modules/memmove:
50473 Now public domain, not GPL.
50474 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50475 * modules/realloc, modules/strerror, modules/strtod:
50478 2005-07-05 Bruno Haible <bruno@clisp.org>
50480 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50481 autoconf CVS. Needed for mingw.
50483 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50485 Remove the dependency of the strftime module on the tzset module.
50486 * modules/strftime (Depends-on): Remove dependency on tzset.
50488 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50490 Remove the dependency of the strftime module on the tzset module.
50491 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50492 gl_FUNC_TZSET_CLOBBER.
50494 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50496 Remove the dependency of the strftime module on the tzset module.
50497 * lib/strftime.c (my_strftime)
50498 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50499 Copy the input structure, to work around some of the bug with
50500 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50501 Solaris releases, you should also use the tzset module, but we won't
50502 require it as a dependency any more since we don't want LGPLed code
50503 to depend on GPLed code.
50505 2005-07-02 Jim Meyering <jim@meyering.net>
50507 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50508 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50509 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50510 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50512 2005-07-02 Jim Meyering <jim@meyering.net>
50514 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50516 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50518 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50519 declares only 'struct timespec;' (!).
50521 2005-07-01 Jim Meyering <jim@meyering.net>
50523 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50524 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50525 * lib/save-cwd.c, tempname.c:
50526 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50527 and don't include <sys/file.h>).
50529 2005-06-29 Jim Meyering <jim@meyering.net>
50531 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50532 type name. Use the variable name instead.
50533 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50536 2005-06-28 Simon Josefsson <jas@extundo.com>
50538 * modules/check-version (Files): Add check-version.m4.
50540 2005-06-28 Simon Josefsson <jas@extundo.com>
50542 * m4/check-version.m4: New file, suggested by Jim Meyering
50543 <jim@meyering.net>.
50545 2005-06-28 Simon Josefsson <jas@extundo.com>
50547 * lib/check-version.h, lib/check-version.c: New files.
50549 2005-06-28 Simon Josefsson <jas@extundo.com>
50551 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50552 collision with global variable. Better indentation. Don't
50553 increment buffer pointer beyond buffer end. Based on comments
50554 from Paul Eggert <eggert@cs.ucla.edu>.
50556 * lib/base64.h: Indent.
50558 2005-06-28 Simon Josefsson <jas@extundo.com>
50560 * doc/gnulib.texi (Library version handling): New section.
50562 2005-06-28 Jim Meyering <jim@meyering.net>
50564 * check-module (find_included_lib_files): Hard-code another
50565 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50566 but modules/fts-lgpl (correctly) does not list those files.
50568 * modules/canonicalize (Files): Add lib/pathmax.h.
50570 2005-06-25 Simon Josefsson <jas@extundo.com>
50572 * modules/check-version: New file.
50574 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50576 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50577 initializer of struct addrinfo, as an indication that we don't
50578 care how many members the structure has.
50580 2005-06-24 Derek Price <derek@ximbiot.com>
50581 and Bruno Haible <bruno@clisp.org>
50583 Remove stat module & update lstat.
50584 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50585 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50586 * m4/stat.m4: Remove this file.
50588 2005-06-24 Derek Price <derek@ximbiot.com>
50589 and Bruno Haible <bruno@clisp.org>
50591 Remove stat module & update lstat.
50592 * lib/stat.c: Remove this file...
50593 (slash_aware_lstat): ...moving this content and its support...
50594 * lib/lstat.c (rpl_lstat): ...into here.
50595 * lib/lstat.h: New file.
50597 2005-06-24 Derek Price <derek@ximbiot.com>
50598 and Bruno Haible <bruno@clisp.org>
50600 Remove stat module & update lstat.
50601 * config/srclist.txt (libc sources): Remove stat.
50603 2005-06-24 Derek Price <derek@ximbiot.com>
50604 and Bruno Haible <bruno@clisp.org>
50606 Remove stat module & update lstat.
50607 * MODULES.html.sh (stat): Remove.
50608 * MODULES.html: Regenerated.
50609 * modules/lstat (Description): Correct function name.
50610 (Files): Add "lstat.h".
50611 (Depends-on): Remove stat, add xalloc, stat-macros.
50612 * modules/stat: Remove this file.
50613 (Include): Add "lstat.h", remove <sys/stat.h>.
50615 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50617 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50618 (ranged_convert): Don't save conversion in a temporary struct.
50619 This causes a warning with GCC 4.0.0, and anyway in the typical
50620 case it's not worth the extra 100 bytes or so of code.
50621 (ranged_convert, __mktime_internal): When calling a function via a
50622 pointer P, use P () rather than (*P) (), as we now assume C89 or
50625 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50627 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50628 "who -r" failed to give output. Problem reported by Tim Waugh.
50630 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50631 (xcalloc): Use it to avoid needless tests.
50632 Problem reported by Jim Meyering.
50634 2005-06-20 Derek Price <derek@ximbiot.com>
50636 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50637 unnecessary for Autoconfs > 2.59c.
50639 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50641 * lib/argp.h (__option_is_short): Check upper limit of
50642 __key. Isprint() requires its argument to have the value
50643 of an unsigned char or EOF.
50645 2005-06-16 Jim Meyering <jim@meyering.net>
50647 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50648 when either N or S is zero.
50650 2005-06-16 Derek Price <derek@ximbiot.com>
50652 * m4/bison.m4: Declare YACC & YFLAGS precious.
50654 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50656 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50657 multibyte string or pattern, fall back on unibyte matching.
50658 Problem reported by James Youngman.
50660 2005-06-08 Bruno Haible <bruno@clisp.org>
50662 * modules/csharpcomp: New file.
50663 * MODULES.html.sh (C#): Add csharpcomp.
50665 2005-06-08 Bruno Haible <bruno@clisp.org>
50667 * m4/csharpcomp.m4: New file, from GNU gettext.
50669 2005-06-08 Bruno Haible <bruno@clisp.org>
50671 * lib/csharpcomp.h: New file, from GNU gettext.
50672 * lib/csharpcomp.c: New file, from GNU gettext.
50673 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50675 2005-06-08 Bruno Haible <bruno@clisp.org>
50677 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50680 2005-06-07 Derek Price <derek@ximbiot.com>
50683 * lib/glob_.h: Indent nested #ifdef.
50685 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50687 Sync from coreutils.
50688 Use "file name" when talking about file names, instead of "filename"
50689 or "path", as per the GNU coding standards.
50690 * lib/mkdir-p.c: Renamed from makepath.c.
50691 (make_dir_parents): Renamed from make_path. All callers changed.
50692 * lib/mkdir-p.h: Likewise. All includers changed.
50693 * lib/filenamecat.c: Renamed from path-concat.c.
50694 (file_name_concat): Renamed from path_concat. All callers changed.
50695 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50696 * lib/filenamecat.h: Likewise. All includers changed.
50697 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50698 in comments or local variable names.
50699 * lib/basename.c: Likewise.
50700 * lib/canonicalize.c, canonicalize.h: Likewise.
50701 * lib/dirname.c, dirname.h: Likewise.
50702 * lib/euidaccess.c: Likewise.
50703 * lib/exclude.c: Likewise
50704 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50705 * lib/fsusage.c, fsuage.h: Likewise.
50706 * lib/fts.c, fts_.h: Likewise.
50707 * lib/getcwd.c: Likewise.
50708 * lib/getloadavg.c: Likewise.
50709 * lib/mkstemp.c: Likewise.
50710 * lib/mountlist.c, mountlist.h: Likewise.
50711 * lib/openat.c, openat.h: Likewise.
50712 * lib/readlink-stub.c: Likewise.
50713 * lib/readutmp.c, readutmp.h: Likewise.
50714 * lib/rename.c: Likewise.
50715 * lib/rmdir.c: Likewise.
50716 * lib/same.c: Likewise.
50717 * lib/savedir.c: Likewise.
50718 * lib/stripslash.c: Likewise.
50719 * lib/tempname.c: Likewise.
50720 * lib/xreadlink.c: Likewise.
50721 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50723 * lib/exclude.h: Likewise.
50725 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50726 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50727 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50728 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50729 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50730 files have been getting away with it for years (MORE/BSD 4.3
50732 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50733 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50735 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50736 Define to 256, not 255, as per modern POSIX.
50738 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50740 Sync from coreutils.
50741 Use "file name" when talking about file names, instead of "filename"
50742 or "path", as per the GNU coding standards.
50743 * MODULES.html.sh: mkdir-p renamed from makepath.
50744 filenamecat renamed from path-concat.
50745 * modules/filenamecat: Renamed from modules/path-concat.
50746 (Files): filenamecat.h and filenamecat.c renamed from
50747 path-concat.h and path-concat.c.
50748 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50749 (Include): filenamecat.h, not path-concat.h.
50750 * modules/mkdir-p: Renamed from modules/makepath.
50751 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50753 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50754 (Include): mkdir-p.h, not makepath.h.
50756 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50758 Sync from coreutils.
50759 * m4/mkdir-p.m4: Renamed from makepath.m4.
50760 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50761 Rename files from makepath.c to mkdir-p.c, and from
50762 makepath.h to mkdir-p.h.
50763 * m4/filenamecat.m4: Renamed from path-concat.m4.
50764 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50765 Rename files from path-concat.c to filenamecat.c,
50766 and from path-concat.h to filenamecat.h.
50767 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50768 "file name" in local variables or comments.
50769 * m4/rename.m4: Likewise.
50771 2005-06-01 Bruno Haible <bruno@clisp.org>
50773 * modules/csharpexec: New file.
50774 * MODULES.html.sh (C#): New section.
50776 2005-06-01 Bruno Haible <bruno@clisp.org>
50778 * m4/csharp.m4: New file, from GNU gettext.
50779 * m4/csharpexec.m4: New file, from GNU gettext.
50781 2005-06-01 Bruno Haible <bruno@clisp.org>
50783 * lib/csharpexec.h: New file, from GNU gettext.
50784 * lib/csharpexec.c: New file, from GNU gettext.
50785 * lib/csharpexec.sh.in: New file, from GNU gettext.
50787 2005-05-31 Derek Price <derek@ximbiot.com>
50788 Paul Eggert <eggert@cs.ucla.edu>
50791 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50793 2005-05-31 Derek Price <derek@ximbiot.com>
50794 Paul Eggert <eggert@cs.ucla.edu>
50797 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50799 2005-05-29 Derek Price <derek@ximbiot.com>
50801 * config/srclist.txt (glob_.h, glob.c): Add these files.
50803 2005-05-29 Derek Price <derek@ximbiot.com>
50805 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50806 * modules/glob: New file.
50807 * modules/getlogin_r: Add link to POSIX spec in description.
50809 2005-05-29 Derek Price <derek@ximbiot.com>
50810 Paul Eggert <eggert@cs.ucla.edu>
50812 * m4/glob.m4: New file.
50814 2005-05-29 Derek Price <derek@ximbiot.com>
50815 Paul Eggert <eggert@cs.ucla.edu>
50817 * lib/glob_.h, lib/glob.c: New files.
50819 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50821 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50822 * modules/fts-lgpl (Depends-on): Remove gettext.
50824 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50826 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50827 and don't require gt_INTTYPES_PRI.
50829 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50831 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50833 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50834 the configuration hassle isn't worth it.
50835 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50836 (LONGEST_MODIFIER, PRIuMAX): Remove.
50838 2005-05-27 Bruno Haible <bruno@clisp.org>
50840 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50842 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50844 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50845 _POSIX_PTHREAD_SEMANTICS for Solaris.
50847 2005-05-25 Derek Price <derek@ximbiot.com>
50849 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50851 2005-05-25 Derek Price <derek@ximbiot.com>
50852 Paul Eggert <eggert@cs.ucla.edu>
50854 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50855 * lib/getlogin_r.c, getlogin_r.h: New files.
50857 2005-05-25 Bruno Haible <bruno@clisp.org>
50858 Derek Price <derek@ximbiot.com>
50860 * lib/getlogin_r.h: Simplify API documentation.
50862 2005-05-23 Derek Price <derek@ximbiot.com>
50864 * modules/minmax (Files): Add m4/minmax.m4.
50865 (configure.ac): Add gl_MINMAX.
50867 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50869 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50870 so that unistd-safer.h (GPL'ed code) need not be included.
50872 2005-05-22 Bruno Haible <bruno@clisp.org>
50874 * m4/minmax.m4: New file.
50875 Based on a patch by Derek Price <derek@ximbiot.com>.
50877 2005-05-22 Bruno Haible <bruno@clisp.org>
50879 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50880 (INT64_MIN): Fix definition.
50881 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50883 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50884 NEED_SIGNED_INT_TYPES.
50886 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50887 HAVE_SYSTEM_INTTYPES.
50889 2005-05-22 Bruno Haible <bruno@clisp.org>
50891 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50892 Also include <sys/param.h> if it defines MIN, MAX.
50893 Based on a patch by Derek Price <derek@ximbiot.com>.
50895 2005-05-21 Jim Meyering <jim@meyering.net>
50897 * modules/fts (Files): Add m4/inttypes-pri.m4.
50898 (Depends-on): Add lstat and remove gettext. Alphabetize.
50900 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50903 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50904 (setup_dir, free_dir): New functions.
50905 (enter_dir, leave_dir): Define trivial
50906 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50907 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50908 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50909 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50910 Move to fts-cycle.c.
50911 (fts_open): Use setup_dir.
50912 (fts_close): Use free_dir.
50913 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50914 This adds a label and some gotos, but the alternatives were messier.
50915 Check for memory allocation failure when entering a dir.
50916 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50917 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50918 (FTS): New member fts_cycle, that is a union that contains the
50919 old active_dir_ht and cycle_state. All uses changed to mention
50920 fts_cycle.ht and fts_cycle.state.
50921 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50922 fts.c, with the following changes:
50923 (setup_dir, free_dir): New functions.
50924 (enter_dir): Now returns bool. Return true if successful, false
50925 if memory exhausted. All callers changed.
50926 Do not bother partly cleaning up on
50927 memory allocation failure; that is free_dir's job.
50928 However, free ad if hash_insert fails, to avoid memory leak.
50929 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50930 fts->fts_options to see which union member to use.
50932 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50934 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50935 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50937 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50939 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50941 2005-05-20 Jim Meyering <jim@meyering.net>
50943 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50944 Now a macro, to pacify GCC.
50946 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50948 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50951 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50953 * lib/chown.c (rpl_chown): Return -1 on failure.
50955 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50957 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50958 Don't check for stddef.h.
50959 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50960 don't use its results.
50961 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50962 since we include them unconditionally. Don't require
50963 AM_STDBOOL_H, since stdbool is a prerequisite.
50964 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50965 since we assume C89 or better.
50966 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50967 as we don't use their results.
50968 Don't check for fchdir, memmove, memset, strrchr, as we use
50969 them unconditionally.
50970 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50971 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50973 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50975 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50976 Include <stddef.h> unconditionally, since we assume C89 now.
50977 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50978 * lib/fts.c: Include fts_.h first, to check interface.
50979 Do not include intprops.h; no longer needed.
50980 Include cycle-check.h and hash.h, since fts_.h no longer does.
50981 Remove unnecessary casts of closedir to void.
50982 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50983 decide whether to decrement nlinks.
50984 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50985 (FTS): Use struct hash_table * instead of Hash_table, so that
50986 we no longer need to include hash.h here.
50988 2005-05-18 Jim Meyering <jim@meyering.net>
50990 * modules/dirfd (License): Change to LGPL. Most of the code
50991 is already in the public domain.
50993 2005-05-18 Jim Meyering <jim@meyering.net>
50995 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50996 Reported by Yoann Vandoorselaere.
50998 2005-05-17 Jim Meyering <jim@meyering.net>
51000 * m4/fts.m4: New file, from coreutils.
51002 2005-05-17 Jim Meyering <jim@meyering.net>
51004 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51006 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51008 Sync from coreutils.
51009 * m4/unlinkdir.m4: New file.
51011 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51013 Sync from coreutils.
51014 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51015 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51016 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51017 White space changes only.
51018 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51020 * lib/yesno.c: Include getline.h, not ctype.h.
51021 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51022 Use getline to remove arbitrary restriction on response length.
51024 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51026 * config/srclist-update: Spell out "Street" in FSF postal
51027 mail address; this is the style the FSF seems to prefer.
51029 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51030 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51031 this updates FSF postal mail address.
51033 Sync from coreutils.
51034 * modules/unlinkdir: New file.
51035 * modules/yesno (Depends-on): Add getline.
51036 * MODULES.html.sh (File system functions): Add unlinkdir.
51038 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51040 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51042 Change the initial comment to refer to GPL, not LGPL.
51043 gnulib-tool will change it to LGPL as needed.
51045 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51046 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51047 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51048 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51049 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51050 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51051 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51052 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51053 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51054 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51055 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51056 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51057 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51058 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51059 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51060 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51061 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51062 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51063 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51064 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51065 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51066 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51067 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51068 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51069 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51070 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51071 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51072 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51073 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51074 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51075 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51076 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51077 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51078 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51079 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51080 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51081 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51082 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51083 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51084 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51085 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51086 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51087 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51088 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51089 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51090 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51091 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51092 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51093 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51094 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51095 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51096 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51097 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51098 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51099 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51100 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51101 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51102 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51103 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51104 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51105 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51106 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51107 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51108 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51109 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51110 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51111 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51112 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51113 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51114 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51115 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51116 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51117 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51118 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51119 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51120 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51121 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51122 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51123 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51124 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51125 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51126 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51127 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51128 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51129 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51130 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51131 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51132 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51133 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51134 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51135 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51136 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51137 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51138 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51139 lib/yesno.c, lib/yesno.h:
51140 Update FSF postal mail address.
51142 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51144 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51145 tests/test-memmem.c, tests/test-stpncpy.c:
51146 Update FSF postal mail address.
51148 2005-05-13 Bruno Haible <bruno@clisp.org>
51150 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51151 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51152 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51153 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51154 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51155 Add support for 64-bit integers in the MSVC compiler.
51157 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51159 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51161 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51163 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51165 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51167 * doc/getdate.texi (General date syntax): Don't say that date
51168 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51169 Problem reported by Nic Ferrier.
51171 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51173 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51174 specified in ai_socktype. Fix invalid ai_protocol
51175 check. ai_protocol is usually set to 0 or depending on
51176 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51177 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51178 ai_socktype / ai_protocol in the returned addrinfo structure.
51180 2005-05-10 Simon Josefsson <jas@extundo.com>
51182 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51183 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51185 2005-05-10 Karl Berry <karl@gnu.org>
51187 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51188 (from http://www.gnu.org/licenses).
51189 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51190 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51193 2005-05-10 Karl Berry <karl@gnu.org>
51195 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51196 (COPYING.DOC): remove.
51198 * config/srclist-update: new FSF address.
51200 2005-05-10 Derek Price <derek@ximbiot.com>
51202 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51205 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51206 Bruno Haible <bruno@clisp.org>
51208 * modules/inet_ntop: New file.
51209 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51212 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51213 Bruno Haible <bruno@clisp.org>
51215 * m4/inet_ntop.m4: New file.
51217 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51218 Bruno Haible <bruno@clisp.org>
51220 * lib/inet_ntop.h: New file.
51221 * lib/inet_ntop.c: New file, from glibc with modifications.
51223 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51225 * modules/time_r (License): Change to LGPL.
51226 * modules/extensions (License): Change to LGPL. Actually,
51227 the license is more permissive than that, but currently gnulib-tool
51228 doesn't know how to handle more-permissive licenses.
51230 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51231 Problem reported by Dave Love.
51233 2005-05-08 Jim Meyering <jim@meyering.net>
51235 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51238 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51240 * modules/argmatch (Depends-on): Add stdbool.
51241 * modules/backupfile (Depends-on): Likewise.
51242 * modules/chdir-long (Depends-on): Likewise.
51243 * modules/closeout (Depends-on): Likewise.
51244 * modules/cycle-check (Depends-on): Likewise.
51245 * modules/dirname (Depends-on): Likewise.
51246 * modules/fnmatch (Depends-on): Likewise.
51247 * modules/fsusage (Depends-on): Likewise.
51248 * modules/fwriteerror (Depends-on): Likewise.
51249 * modules/getcwd (Depends-on): Likewise.
51250 * modules/getloadavg (Depends-on): Likewise.
51251 * modules/hard-locale (Depends-on): Likewise.
51252 * modules/makepath (Depends-on): Likewise.
51253 * modules/mountlist (Depends-on): Likewise.
51254 * modules/nanosleep (Depends-on): Likewise.
51255 * modules/posixtm (Depends-on): Likewise.
51256 * modules/quotearg (Depends-on): Likewise.
51257 * modules/readtokens (Depends-on): Likewise.
51258 * modules/readtokens0 (Depends-on): Likewise.
51259 * modules/readutmp (Depends-on): Likewise.
51260 * modules/save-cwd (Depends-on): Likewise.
51261 * modules/strftime (Depends-on): Likewise.
51262 * modules/userspec (Depends-on): Likewise.
51263 * modules/utimecmp (Depends-on): Likewise.
51264 * modules/xgetcwd (Depends-on): Likewise.
51265 * modules/xnanosleep (Depends-on): Likewise.
51266 * modules/xstrtod (Depends-on): Likewise.
51267 * modules/yesno (Depends-on): Likewise.
51269 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51271 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51274 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51276 Merge from coreutils. Among other things,
51277 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51278 * lib/fd-safer.c: New file.
51279 * lib/fcntl-safer.h, open-safer.c: Remove.
51280 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51281 * lib/dup-safer.c: Include unistd-safer.h first.
51282 Don't include errno.h.
51283 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51284 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51285 * lib/file-type.c: Rely on file-type.h change.
51286 * lib/getloadavg.c: Include unistd-safer.h.
51287 (getloadavg): Use safer open.
51288 * lib/getusershell.c: Include "stdio-safer.h".
51289 (getusershell): Use safer fopen.
51290 * lib/long-options.c (long_options): Use NULL rather than 0.
51291 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51293 * lib/modechange.c: Likewise.
51294 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51295 (MODE_DONE): New constant.
51296 (struct mode_change): Remove 'next' member.
51297 (make_node_op_equals): New function; like the old one of the
51298 same name, except it allocates an array.
51299 (mode_compile, mode_create_from_ref): Use it.
51300 (mode_compile): Allocate result as an array, not a linked list.
51301 Parse octal string ourself, so that we catch mistakes like "+0".
51302 (mode_adjust): Arg is an array, not a linked list.
51303 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51304 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51305 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51306 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51307 Remove. This is now stat-macros.h's job.
51308 (talloc): Remove. All callers replaced by xalloc, so that
51309 our invokers don't have to worry about reporting memory failures.
51310 (make_node_op_equals): Remove.
51311 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51313 (struct mode_change): Moved here from modechange.h.
51314 (mode_append_entry): Remove.
51315 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51316 apps to have incorrect behavior. Use simpler algorithm for head
51317 and tail. Don't futz with umask; that's now the job of mode_adjust.
51318 Detect more invalid usages rather than having somewhat-random behavior.
51319 Don't insert an "a=" action, as that leads to incorrect behavior.
51320 (mode_compile, mode_create_from_ref): Return NULL on error instead
51321 of an enum, since now there's only one way to have an error. All
51323 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51324 at the correct time. Simplify calculation of "+u" and its ilk.
51325 Don't mishandle "+X".
51326 (mode_free): Remove "register" and localize decls.
51327 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51328 (struct mode_change): Move to modechange.c; callers don't
51329 need to see this stuff.
51330 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51331 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51332 (mode_change, mode_adjust): Reflect the new signatures noted above.
51333 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51334 that might redefine system include files.
51335 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51336 (my_usleep): Use NULL rather than (void *) 0.
51337 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51338 Use siginterrupt to specify that system calls should be interrupted.
51339 (rpl_nanosleep): Move initialization of suspended closer to call of
51341 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51342 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51343 (desirable_utmp_entry): New function.
51344 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51345 using x2nrealloc, to simplify logic.
51346 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51347 size calculation. Do not assume utmp file is a regular file.
51348 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51349 (READ_UTMP_CHECK_PIDS): New constant.
51350 * lib/save-cwd.c: Include unistd-safer.h.
51351 (save_cwd): Use fd_safer.
51352 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51353 [!_LIBC] Include "stat-macros.h" instead.
51354 * lib/unistd-safer.h (fd_safer): New decl.
51356 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51358 * modules/getloadavg (Depends-on): Add unistd-safer.
51359 * modules/getusershell (Depends-on): Add stdio-safer.
51360 * modules/lstat (Depends-on): Remove xalloc.
51361 * modules/mkstemp (Depends-on): Add stat-macros.
51362 * modules/modechange (Depends-on): Remove xstrtol.
51363 Add stat-macros, xalloc.
51364 * modules/save-cwd (Depends-on): Add unistd-safer.
51365 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51366 * modules/unistd-safer (Files): Add lib/fd-safer.c
51367 (Makefile.am): Remove lib_SOURCES.
51369 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51370 Remove fcntl-safer; unistd-safer supersedes it.
51372 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51374 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51376 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51377 (gl_PREREQ_CHOWN): Remove.
51378 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51379 it. Don't require AC_HEADER_STAT.
51380 (gl_PREREQ_LSTAT): Remove.
51381 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51382 Don't require AC_HEADER_STAT.
51383 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51384 (gl_PREREQ_RMDIR): Remove.
51385 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51386 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51387 the stat-macros module a prerequisite.
51388 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51389 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51390 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51391 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51392 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51394 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51395 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51397 * m4/fcntl-safer.m4: Remove.
51398 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51399 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51400 Invoke gl_PREREQ_FD_SAFER.
51401 (gl_PREREQ_FD_SAFER): New macro.
51402 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51403 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51404 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51405 Remove duplicate call to AC_LIBOBJ(readutmp).
51406 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51408 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51409 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51411 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51413 * MODULES.html.sh (Misc): Add byteswap.
51415 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51417 * modules/getcwd (Depends-on): Add extensions.
51418 * modules/openat (Depends-on): Likewise.
51420 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51422 * modules/byteswap: New file.
51424 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51426 * m4/byteswap.m4: New file.
51428 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51430 * lib/byteswap_.h: New file.
51432 2005-04-25 Karl Berry <karl@gnu.org>
51434 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51436 2005-04-25 Albert Chin <china@thewrittenword.com>
51438 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51441 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51443 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51444 (func_ln_if_changed) Remove forcibly for no error message
51445 in case file does not exist.
51447 2005-04-19 Simon Josefsson <jas@extundo.com>
51449 * gnulib-tool (Options): Make --symlink mean --symbolic.
51451 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51453 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51455 2005-04-16 Simon Josefsson <jas@extundo.com>
51457 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51459 2005-04-15 Simon Josefsson <jas@extundo.com>
51461 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51463 2005-04-15 Simon Josefsson <jas@extundo.com>
51465 * gnulib-tool: Rename --symlink to --symbolic.
51467 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51469 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51470 symbolic links to files instead of copying/moving. Add --aux-dir,
51471 specifying directory relative --dir where auxiliary build tools
51474 2005-04-14 Bruno Haible <bruno@clisp.org>
51476 * modules/allocsa (License): Change to LGPL.
51477 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51479 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51481 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51482 that "UTC +1 second" continues to work. Problem reported
51483 by Dmitry V. Levin.
51484 (relunit_snumber): New rule.
51487 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51489 * lib/getdate.y (universal_time_zone_table): New constant.
51490 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51491 universal_time_zone_table.
51492 (lookup_zone): Prefer universal_time_zone_table to
51493 local_time_zone_table, so that "GMT" time stamps are allowed in
51494 London during the summer. Problem reported by Ian Abbott.
51496 2005-04-12 Jim Meyering <jim@meyering.net>
51498 * lib/human.c (humblock): Set *options even when returning due to
51499 xstrtoumax conversion failure. Thanks to a used-uninitialized
51500 warning from gcc-4.
51502 2005-04-09 Jim Meyering <jim@meyering.net>
51504 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51505 -Wuninitialized: initialize tm0.tm_year.
51507 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51509 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51510 count, since there's no maximum. All uses changed.
51511 Add member dsts_seen.
51512 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51514 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51515 Use pc_rels_seen to decide whther a date is absolute.
51517 * lib/getdate.y (number): Don't overwrite year.
51518 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51521 2005-04-02 Simon Josefsson <jas@extundo.com>
51523 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51524 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51526 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51528 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51529 where no absolute path name can be longer than PATH_MAX.
51531 2005-03-27 Jim Meyering <jim@meyering.net>
51533 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51535 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51537 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51538 "one's complement" -> "ones' complement" in comment, as per Knuth.
51539 "value of type" -> "type or expression" in comment.
51540 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51542 2005-03-26 Jim Meyering <jim@meyering.net>
51545 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51546 Correct typos: s/or/of/.
51548 2005-03-26 Jim Meyering <jim@meyering.net>
51550 * modules/check-include-files: Move to ../ and rename to...
51551 * check-module: ...this.
51553 2005-03-25 Jim Meyering <jim@meyering.net>
51555 * modules/xvasprintf (Files): Add xalloc.h.
51557 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51559 * modules/gettext (Files): config/config.rpath ->
51560 build-aux/config.rpath
51561 * modules/iconv (Files): Likewise.
51562 Problem reported by Oskar Liljeblad.
51564 2005-03-23 Jim Meyering <jim@meyering.net>
51566 * modules/check-include-files: New script to check for
51567 missing dependencies, multiple includes, etc.
51569 * modules/c-strtold (Depends-on): Add xalloc.
51570 * modules/c-strtod (Depends-on): Add xalloc.
51571 * modules/hash (Depends-on): Add xalloc.
51572 (Files): Remove lib/xalloc.h.
51574 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51575 * modules/userspec (Files): Add lib/inttostr.h.
51577 2005-03-23 Jim Meyering <jim@meyering.net>
51579 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51581 2005-03-22 Jim Meyering <jim@meyering.net>
51583 * modules/stat-macros: New module.
51584 * modules/canonicalize, modules/euidaccess, modules/file-type,
51585 * modules/filemode, modules/lchown, modules/makepath,
51586 * modules/rmdir, modules/stat: Depend on new stat-macros module
51587 rather than listing lib/stat-macros.h manually.
51588 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51590 2005-03-22 Jim Meyering <jim@meyering.net>
51592 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51594 2005-03-22 Bruno Haible <bruno@clisp.org>
51596 * config/srclist.txt: Replace target directory 'config' with
51598 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51599 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51602 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51604 * modules/chdir-long (Depends-on): Add mempcpy.
51606 * modules/acl, modules/backupfile, modules/c-strtod,
51607 modules/c-strtold, modules/canon-host, modules/canonicalize,
51608 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51609 modules/exclude, modules/exitfail, modules/file-type,
51610 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51611 modules/getdate, modules/getline, modules/getpagesize,
51612 modules/getpass, modules/getugroups, modules/group-member,
51613 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51614 modules/inttostr, modules/long-options, modules/makepath,
51615 modules/md5, modules/memcasecmp, modules/memcoll,
51616 modules/modechange, modules/mountlist, modules/path-concat,
51617 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51618 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51619 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51620 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51621 modules/strftime, modules/strndup, modules/strverscmp,
51622 modules/timespec, modules/unlocked-io, modules/userspec,
51623 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51625 Remove lib_SOURCES line from Makefile.am section, as this is now
51626 done automatically by the corresponding Autoconf macro.
51628 2005-03-21 Jim Meyering <jim@meyering.net>
51630 Changes imported from coreutils.
51632 * lib/cycle-check.c: Don't include xalloc.h.
51634 * lib/path-concat.c: Don't include assert.h.
51635 (path_concat): Remove assertion that would have triggered
51636 for ABASE starting with more than one slash.
51637 Reported by Andreas Schwab.
51639 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51640 properly when ABASE is an absolute file name.
51641 Correct the description of this function.
51642 Include <assert.h>.
51643 Add an assertion and a test driver.
51644 This fixes a bug introduced on 2004-07-02.
51645 Andreas Schwab reported the resulting failure of cp --parents:
51646 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51648 2005-03-21 Jim Meyering <jim@meyering.net>
51650 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51651 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51653 2005-03-21 Jim Meyering <jim@meyering.net>
51654 and Paul Eggert <eggert@cs.ucla.edu>
51656 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51657 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51658 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51659 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51660 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51661 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51662 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51663 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51664 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51665 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51666 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51667 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51668 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51669 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51670 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51671 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51672 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51675 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51677 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51678 (which shouldn't happen), generate nothing instead of returning 0
51679 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51681 2005-03-16 Bruno Haible <bruno@clisp.org>
51683 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51684 HAVE_LONGLONG_64BIT.
51686 2005-03-16 Bruno Haible <bruno@clisp.org>
51688 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51689 HAVE_LONGLONG_64BIT.
51691 2005-03-16 Bruno Haible <bruno@clisp.org>
51693 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51694 HAVE_LONGLONG_64BIT.
51696 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51698 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51699 reliably distinguish strftime failure from empty output on POSIX
51702 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51704 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51705 (iconv_string): Don't guess a size-zero buffer, as that might cause
51706 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51707 result would be 'too large', where 'too large' is (heuristically)
51708 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51709 overflow concerns. This will prevent some unwanted malloc failures
51710 when the inputs are very large.
51712 2005-03-15 Karl Berry <karl@gnu.org>
51714 * config/srclist.txt (config.rpath): from gettext.
51715 * config/config.rpath: update.
51717 2005-03-15 Bruno Haible <bruno@clisp.org>
51719 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51722 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51725 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51728 2005-03-14 Simon Josefsson <jas@extundo.com>
51730 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51733 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51735 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51736 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51738 * lib/strtol.c: Likewise.
51740 2005-03-14 Jim Meyering <jim@meyering.net>
51742 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51743 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51744 to be nonzero so that we (and caller) can detect the difference
51745 between a valid zero-length expansion and an error return, even
51746 when the underlying strftime fails before writing anything into
51749 2005-03-14 Bruno Haible <bruno@clisp.org>
51751 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51752 Update from GNU gettext 0.14.3.
51754 2005-03-10 Jim Meyering <jim@meyering.net>
51756 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51758 2005-03-10 Jim Meyering <jim@meyering.net>
51760 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51761 so that this module works on systems without fchdir.
51763 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51765 Factor int-properties macros into a single file, except for
51766 glibc-related files.
51767 * lib/intprops.h: New file.
51768 * lib/getloadavg.c: Include it instead of limits.h.
51769 (INT_STRLEN_BOUND): Remove.
51770 * lib/human.c: Include intprops.h.
51771 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51772 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51774 * lib/inttostr.h: Include intprops.h instead of limits.h.
51775 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51776 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51777 for consistency with intprops.h.
51778 (time_t_is_integer, twos_complement_arithmetic): Use them.
51779 * lib/sig2str.h: Include <signal.h>, intprops.h.
51780 (INT_STRLEN_BOUND): Remove.
51781 * lib/strftime.c (TYPE_SIGNED): Remove.
51782 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51783 * lib/strtol.c: Adjust comments to match intprops.h.
51784 * lib/userspec.c: Include intprops.h.
51785 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51786 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51787 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51788 instead of rolling our own expressions.
51789 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51791 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51793 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51794 the right thing even if adding 1900 would overflow. Similarly
51795 for tm_mon + 1 and tm_yday + 1.
51796 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51797 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51798 (DO_SIGNED_NUMBER): New macro.
51799 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51801 2005-03-07 Bruno Haible <bruno@clisp.org>
51803 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51805 2005-03-07 Bruno Haible <bruno@clisp.org>
51807 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51809 2005-03-04 Derek R. Price <derek@ximbiot.com>
51811 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51812 (func_import): Only replace files via --import when they have actually
51815 2005-03-03 Derek R. Price <derek@ximbiot.com>
51817 * m4/mmap-anon.m4: New file.
51818 * m4/pagealign_alloc.m4: New file.
51820 2005-03-03 Derek R. Price <derek@ximbiot.com>
51821 Bruno Haible <bruno@clisp.org>
51823 * modules/pagealign_alloc: New file.
51824 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51826 2005-03-03 Derek R. Price <derek@ximbiot.com>
51827 Bruno Haible <bruno@clisp.org>
51829 * lib/pagealign_alloc.h: New file.
51830 * lib/pagealign_alloc.c: New file.
51832 2005-03-03 Bruno Haible <bruno@clisp.org>
51834 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51835 Use an all-permissive copyright notice, recommended by RMS.
51837 2005-03-02 Bruno Haible <bruno@clisp.org>
51839 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51840 of AIX, the replacement has to be done only after <string.h> is
51841 included, therefore not in config.h. stpncpy.h does the replacement,
51842 and stpncpy.c uses it.
51844 2005-03-02 Bruno Haible <bruno@clisp.org>
51846 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51849 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51851 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51852 The workaround isn't strictly needed for POSIX conformance, and
51853 it's too much of a pain to configure and maintain. We'll ask
51854 people to fix their kernels instead.
51855 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51856 (NANOSLEEP_BUG_WORKAROUND): Remove.
51857 (xnanosleep): Remove the workaround.
51859 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51861 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51862 Reported by Derek Price.
51863 (Include): Add "timespec.h".
51865 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51867 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51869 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51870 to detect nanosleep bug.
51872 2005-03-01 Bruno Haible <bruno@clisp.org>
51874 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51876 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51878 * modules/gethrxtime: New file.
51879 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51880 (Depends-on): Add gethrxtime.
51881 (configure.ac): Add gl_XNANOSLEEP.
51882 (Makefile.am): Remove lib_SOURCES line.
51884 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51886 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51887 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51889 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51891 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51892 * lib/timespec.h (gettime): Return void, since it always
51893 succeeds now. All uses changed.
51894 * lib/gettime.c (gettime) Likewise.
51895 [HAVE_NANOTIME]: Prefer nanotime.
51896 Assume gettimeofday succeeds, as POSIX requires.
51897 Assime time () succeeds, since other code already does.
51898 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51899 (timespec_subtract): Remove.
51900 (NANOSLEEP_BUG_WORKAROUND): New constant.
51901 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51902 things considerably. Use it only on GNU/Linux hosts, since the
51903 workaround shouldn't be needed elsewhere.
51905 2005-02-24 Bruno Haible <bruno@clisp.org>
51907 * modules/gettext (Files): Add m4/glibc2.m4.
51909 2005-02-24 Bruno Haible <bruno@clisp.org>
51911 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51912 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51914 Update from GNU gettext 0.14.2.
51915 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51917 2005-02-24 Bruno Haible <bruno@clisp.org>
51919 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51920 * lib/config.charset: Update from GNU gettext 0.14.2.
51922 2005-02-24 Bruno Haible <bruno@clisp.org>
51924 * lib/gettext.h: Update from GNU gettext 0.14.2.
51926 2005-02-23 Simon Josefsson <jas@extundo.com>
51928 * m4/iconvme.m4: New file.
51930 2005-02-23 Jim Meyering <jim@meyering.net>
51932 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51934 Thanks to Bruno Haible for catching it.
51936 2005-02-22 Simon Josefsson <jas@extundo.com>
51938 * modules/iconvme: New file.
51940 * MODULES.html.sh: Add iconvme.
51942 2005-02-22 Simon Josefsson <jas@extundo.com>
51944 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51946 2005-02-22 Simon Josefsson <jas@extundo.com>
51948 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51950 2005-02-22 Jim Meyering <jim@meyering.net>
51952 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51955 2005-02-20 Neil Conway <neilc@samurai.com>
51957 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51958 returned by OSX/Darwin if the specified buffer is not large
51959 enough for the hostname.
51961 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51963 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51964 pass it to _help, otherwise the latter coredumps trying to
51965 dereference state.root_argp.
51967 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51969 * modules/chdir-long (Depends-on): Add memrchr.
51970 * modules/memrchr (Files): Add lib/memrchr.h.
51971 (Include): "memrchr.h".
51973 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51975 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51977 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51979 * lib/memrchr.h: New file.
51980 * lib/chdir-long.c: Include it.
51981 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51982 Don't bother including stddef.h.
51984 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
51986 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51988 Include <sys/types.h>, for dev_t.
51989 (ME_DUMMY, ME_REMOTE): Move from here....
51990 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51991 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
51993 Include mountlist.h first, to test the interface.
51995 2005-01-29 Bruno Haible <bruno@clisp.org>
51997 * lib/progname.c (program_name): Initialize.
51998 Needed when linking statically on MacOS X.
52000 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52002 Sync from coreutils.
52003 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52004 (Depends-on): Add c-strtod.
52005 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52007 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52009 Sync from coreutils.
52010 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52012 Remove files that are specific to coreutils.
52013 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52015 2005-01-28 Bruno Haible <bruno@clisp.org>
52017 * modules/javacomp: New file.
52018 * MODULES.html.sh (Java): Add javacomp.
52020 2005-01-28 Bruno Haible <bruno@clisp.org>
52022 * m4/javacomp.m4: New file, from GNU gettext.
52024 2005-01-28 Bruno Haible <bruno@clisp.org>
52026 * lib/javacomp.sh.in: New file, from GNU gettext.
52027 * lib/javacomp.h: New file, from GNU gettext.
52028 * lib/javacomp.c: New file, from GNU gettext.
52030 2005-01-26 Simon Josefsson <jas@extundo.com>
52032 * lib/gai_strerror.c: Use GPL in header.
52034 2005-01-26 Bruno Haible <bruno@clisp.org>
52036 * modules/javaexec: New file.
52037 * MODULES.html.sh (Java): Add javaexec.
52039 2005-01-26 Bruno Haible <bruno@clisp.org>
52041 * m4/javaexec.m4: New file, from GNU gettext.
52043 2005-01-26 Bruno Haible <bruno@clisp.org>
52045 * lib/javaexec.sh.in: New file, from GNU gettext.
52046 * lib/javaexec.h: New file, from GNU gettext.
52047 * lib/javaexec.c: New file, from GNU gettext.
52049 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52051 * modules/lchown (Depends-on): Remove lchown.h
52053 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52055 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52056 must be defined if the header file was not found, in order
52057 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52059 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52061 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52062 initializers for struct pentry_state.
52063 (__argp_error): Check return value of __asprintf
52064 (__argp_failure): Translate error message
52066 * lib/argp-parse.c: Removed braces around the expansion of N_()
52068 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52070 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52071 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52072 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52073 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52074 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52075 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52076 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52077 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52078 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52079 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52080 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52081 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52082 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52083 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52084 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52085 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52086 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52087 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52088 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52089 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52090 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52091 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52092 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52093 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52094 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52095 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52096 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52097 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52098 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52099 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52100 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52101 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52102 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52103 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52104 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52105 Use an all-permissive copyright notice, recommended by RMS.
52107 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52109 * modules/chdir-long (Depends-on): Remove mempcpy.
52111 2005-01-21 Jim Meyering <jim@meyering.net>
52113 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52114 same value as for Solaris 9.
52116 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52117 component length. This included changing the parameter to be
52118 of type `char *' rather than `char const *'.
52119 * lib/chdir-long.h (chdir_long): Update prototype.
52121 * lib/openat.c (fdopendir, fstatat): New functions.
52122 * lib/openat.h: Include headers required for use of DIR and struct
52124 [AT_SYMLINK_NOFOLLOW]: Define.
52125 (fdopendir, fstatat): Add prototypes.
52127 2005-01-21 Bruno Haible <bruno@clisp.org>
52129 * modules/classpath: New file.
52130 * MODULES.html.sh (Java): Add classpath.
52132 2005-01-21 Bruno Haible <bruno@clisp.org>
52134 * lib/classpath.h: New file, from GNU gettext.
52135 * lib/classpath.c: New file, from GNU gettext.
52137 2005-01-20 Simon Josefsson <jas@extundo.com>
52139 * modules/version-etc-fsf: New file.
52141 2005-01-20 Simon Josefsson <jas@extundo.com>
52143 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52144 * lib/version-etc.c: Remove version_etc_copyright.
52145 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52146 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52148 2005-01-20 Simon Josefsson <jas@extundo.com>
52150 * lib/base64.h (isbase64): Add.
52152 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52153 using a unsigned prototype, don't inline.
52154 (base64_decode): Use it.
52156 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52158 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52161 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52163 * lib/save-cwd.c (save_cwd): Remove code to support the case
52164 where fchdir is missing or flaky.
52166 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52168 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52170 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52172 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52173 AC_LIBSOURCES now does this.
52174 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52175 with new ullong_max module.
52177 2005-01-19 Bruno Haible <bruno@clisp.org>
52179 * modules/sh-quote: New file.
52180 * MODULES.html.sh (Executing programs): Add sh-quote.
52182 2005-01-19 Bruno Haible <bruno@clisp.org>
52184 * lib/sh-quote.h: New file, from GNU gettext.
52185 * lib/sh-quote.c: New file, from GNU gettext.
52187 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52189 Merge from coreutils.
52190 * m4/ullong_max.m4: New file.
52191 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52192 (gl_MACROS): Assume localeconv exists.
52194 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52196 Merge changes from coreutils, as described below in several
52197 changelogs dated today.
52199 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52200 (O_DIRECTORY): Remove; not needed here, since "." must be
52201 a directory. All uses removed.
52202 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52203 universal on Suns, and we also need to test for IRIX.
52204 Revamp code to use 'if' rather than '#if'.
52205 Avoid unnecessary comparison of cwd->desc to 0.
52207 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52208 for known valid error numbers rather than observed invalid ones.
52210 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52212 * modules/ullong_max: New file.
52214 * modules/chdir-long, modules/openat: New files.
52215 * modules/save-cwd (Depends-on): Depend on chdir-long.
52216 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52218 2005-01-18 Jim Meyering <jim@meyering.net>
52220 Merge from coreutils.
52221 * m4/chdir-long.m4, m4/openat.m4: New files.
52222 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52223 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52224 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52225 is sane and DOES follow symlinks. Besides, testing 20 different
52226 systems found no broken chown implementations.
52227 Prompted by a change in rsync's copy of this macro.
52228 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52230 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52232 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52233 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52234 NULL-means-set-to-current-time semantics.
52235 Remove temporary file immediately, rather than waiting
52236 for configure's at-exit trap code to do it.
52238 2005-01-18 Jim Meyering <jim@meyering.net>
52240 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52242 * lib/utimens.c (futimens): Account for the fact that futimes
52243 can also fail with errno == ENOSYS or errno == ENOENT.
52244 Patch from Dmitry V. Levin.
52246 Change the name of the robust chdir function from chdir to chdir_long.
52247 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52248 (restore_cwd): Use chdir_long, not chdir.
52249 * lib/chdir-long.c: Renamed from chdir.c.
52250 * lib/chdir-long.h: Renamed from chdir.h.
52251 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52254 2005-01-18 Bruno Haible <bruno@clisp.org>
52256 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52257 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52258 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52259 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52260 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52261 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52262 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52263 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52264 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52265 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52266 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52267 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52268 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52269 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52270 Use an all-permissive copyright notice, recommended by RMS.
52272 2005-01-18 Bob Proulx <bob@proulx.com>
52274 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52275 simplify offsetof() macro construct to avoid compile failure with
52276 native HP-UX 11.0 ANSI C compiler.
52278 2005-01-17 Bruno Haible <bruno@clisp.org>
52280 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52281 redundant because stpncpy.m4 takes care of it.
52283 2005-01-17 Bruno Haible <bruno@clisp.org>
52285 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52287 2005-01-17 Bruno Haible <bruno@clisp.org>
52289 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52292 2005-01-17 Bruno Haible <bruno@clisp.org>
52294 * lib/fwriteerror.h (fwriteerror): Change specification to include
52296 * lib/fwriteerror.c: Include <stdbool.h>.
52297 (fwriteerror): At the end, close the file stream. Record whether
52298 stdout was already closed.
52300 2005-01-17 Bruno Haible <bruno@clisp.org>
52302 * lib/execute.c (environ): Declare if needed.
52303 * lib/pipe.c (environ): Likewise.
52304 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52306 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52308 * modules/argp: Depend on vsnprintf
52310 2005-01-10 Jim Meyering <jim@meyering.net>
52312 * modules/closeout (Depends-on): Add atexit.
52314 2005-01-06 Bruno Haible <bruno@clisp.org>
52316 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52318 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52320 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52321 definitions to be after all include files, to avoid collisions.
52322 Problem reported by Bob Proulx.
52324 2005-01-04 Jim Meyering <jim@meyering.net>
52326 Changes imported from coreutils.
52327 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52328 as the mkstemp template, use a temporary directory and an
52329 8.3-friendly template to avoid trouble on systems like DJGPP.
52330 Reported by Juan M. Guerrero via Stepan Kasal.
52331 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52332 close. Remove the temporary directory right away, rather than waiting
52333 for configure's at-exit trap code to do it.
52334 Suggestion from Stepan Kasal.
52336 2005-01-01 Simon Josefsson <jas@extundo.com>
52338 * gnulib-tool: Print #include directives when --import'ing.
52340 2004-12-28 Simon Josefsson <jas@extundo.com>
52342 * tests/test-base64.c: Include required header files. Remove
52345 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52347 * modules/error (Depends-on): Remove gettext.
52349 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52351 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52352 not needed. This removes a dependency on the gettext module.
52353 [defined _LIBC]: Do not include <libintl.h>; not needed.
52355 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52357 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52358 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52360 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52362 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52365 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52367 * modules/getdate (Depends-on): Remove alloca-opt.
52369 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52371 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52373 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52375 * lib/argp-parse.c: Include <stddef.h>.
52376 (alignof, alignto): New macros.
52377 (parser_init): Don't assume that void * is aligned sufficiently
52380 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52381 need to extend the stack.
52382 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52385 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52387 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52389 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52391 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52392 (2004-10-24) change. Apparently this was a false alarm.
52394 * modules/getdate: Depend on alloca-opt, not alloca.
52396 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52398 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52399 Remove now-obsolete comment about AIX.
52400 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52401 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52402 (YYMAXDEPTH): New macro.
52404 2004-12-18 Simon Josefsson <jas@extundo.com>
52406 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52408 2004-12-18 Bruno Haible <bruno@clisp.org>
52410 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52412 2004-12-18 Bruno Haible <bruno@clisp.org>
52414 * lib/fatal-signal.c (fatal_signals): Make non-const.
52415 (init_fatal_signals): New function.
52416 (uninstall_handlers, install_handlers): Ignore signals that were set to
52418 (at_fatal_signal): Call init_fatal_signals.
52419 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52421 Reported by Paul Eggert.
52423 2004-12-18 Bruno Haible <bruno@clisp.org>
52425 * doc/alloca.texi: New file.
52426 * doc/alloca-opt.texi: New file.
52428 2004-12-17 Jim Meyering <jim@meyering.net>
52430 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52431 Otherwise, install-sh could exit with improper exit status when
52432 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52434 2004-12-16 Simon Josefsson <jas@extundo.com>
52436 * tests/test-base64.c: Add license.
52438 2004-12-15 Stepan Kasal <address@hidden>
52440 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52442 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52444 * modules/getcwd (Files): Add m4/d-ino.m4.
52445 Suggested by Mark D. Baushke.
52447 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52449 * lib/getdate.y (textint): New member "negative".
52450 (time_zone_hhmm): New function.
52451 Expect 14 shift-reduce conflicts, not 13.
52452 (o_colon_minutes): New rule.
52453 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52454 (yylex): Set the "negative" member of signed numbers.
52456 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52458 * doc/getdate.texi (Time of day items, Time zone items):
52459 Describe new formats +00:00, UTC+00:00.
52461 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52463 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52464 spurious "-l"s. Problem reported by Stepan Kasal.
52466 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52468 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52469 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52471 2004-12-04 Simon Josefsson <jas@extundo.com>
52473 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52474 Vandoorselaere <yoann@prelude-ids.org>.
52476 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52478 Changes imported from coreutils.
52479 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52481 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52483 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52485 Changes imported from coreutils.
52486 * lib/hard-locale.c: Assume <locale.h> exists.
52487 Include "strdup.h".
52488 (GLIBC_VERSION): New macro.
52489 (hard_locale): Assume setlocale exists.
52490 Rewrite to avoid #ifdef.
52491 Use strdup rather than malloc + strcpy.
52492 * lib/human.c: Assume <locale.h> exists.
52493 (human_readable): Assume localeconv exists.
52495 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52497 * modules/hard-locale (Depends-on): Add strdup.
52499 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52501 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52502 convert T2, not T. (Imported from libc.)
52504 2004-11-30 Simon Josefsson <jas@extundo.com>
52506 * modules/restrict (License): Change to LGPL.
52508 2004-11-30 Simon Josefsson <jas@extundo.com>
52510 * m4/restrict.m4: Add copyright and copying conditions.
52512 2004-11-30 Simon Josefsson <jas@extundo.com>
52514 * m4/base64.m4: New file.
52516 2004-11-30 Simon Josefsson <jas@extundo.com>
52518 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52521 * tests/test-base64.c: New file.
52523 * modules/base64: New file.
52525 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52527 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52528 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52530 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52532 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52534 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52535 (__getcwd.c): Don't restore errno; glibc doesn't.
52536 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52537 first, falling back to our code only if its results look suspicious.
52538 Ensure that the resulting buffer is only as large as necessary.
52540 * lib/readutmp.c: Include readutmp.h first.
52541 Include <errno.h>, since readutmp.h no longer does that.
52542 * lib/readutmp.h: Don't include <errno.h>,
52543 <sys/param.h>, <time.h>; not needed to establish interface.
52544 (errno): Remove decl.
52545 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52546 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52547 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52549 2004-11-28 Simon Josefsson <jas@extundo.com>
52551 * lib/base64.h, base64.c: New file.
52553 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52555 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52557 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52559 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52560 (Depends-on): Remove pathmax, same. Add mempcpy.
52561 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52562 (Makefile.am): Append getcwd.h to lib_SOURCES.
52563 (Include): Add getcwd.h.
52564 (Maintainer): Change from Jim Meyering to "all, glibc",
52565 since getdate now uses intended-for-glibc code.
52566 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52567 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52569 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52571 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52572 HP's ANSI C compiler.
52573 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52574 Declaring int functions causes warnings on some modern systems and
52575 shouldn't be needed to compile on ancient ones.
52576 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52579 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52580 with the following changes.
52581 (__set_errno): Parenthesize properly.
52582 Include <stdbool.h>.
52583 (MIN, MAX, MATCHING_INO): New macros.
52584 (__getcwd): Define with prototype, not K&R form.
52585 Use heuristics to allocate default buffer on stack if possible.
52586 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52587 behavior, and to avoid the PATH_MAX limit when computing
52589 Use MATCHING_INO to compare inode number to file.
52590 Check for arithmetic overflow in size calculations.
52591 Fix bug in reallocation of dot array that caused getcwd to fail
52592 on directories nested deeper than 75.
52593 Be more careful about saving errno on error.
52594 Do not use realloc; use only free+malloc, as this is a bit
52595 more flexible and avoids a needless copy operation.
52596 Do not inspect st_dev and st_ino for symbolic links; POSIX
52597 doesn't specify the latter.
52598 Check for closedir errors.
52599 Avoid needless casts.
52600 Use "#ifdef weak_alias" around weak_alias, to be like other
52602 The following changes to getcwd.c have effect only when used in
52603 gnulib; they have no effect inside glibc proper.
52604 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52605 as alloca isn't used.
52606 (alloca, __alloca): Likewise.
52607 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52608 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52609 unconditionally, as gnulib assumes C89 or better.
52610 Do not include <sys/param.h>.
52611 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52612 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52614 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52615 Include <dirent.h> in a way that is compatible with modern Autoconf.
52616 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52617 New macros, if not already defined.
52618 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52619 Use "_LIBC", not "defined _LIBC", for consistency.
52620 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52622 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52623 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52624 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52625 credit only to Jim Meyering and adjust the copyright dates.
52626 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52627 <stdlib.h>, <unistd.h>, "pathmax.h".
52628 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52629 (INITIAL_BUFFER_SIZE): Remove.
52630 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52632 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52634 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52635 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52636 Use the _ONCE methods, for efficiency.
52637 Check for fcntl.h. In test program, include <errno.h>
52638 and <fcntl.h> if available. Remove old K&R cruft from
52639 test program. Check for common errors in GNU/Linux,
52640 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52641 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52642 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52643 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52645 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52646 accommodate new getcwd.c.
52647 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52648 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52649 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52650 that's all we need now.
52652 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52654 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52655 argp-parse.c depends on getopt internals, that means we should
52656 always use our getopt, to be on the safe side.
52657 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52658 order not to spoil the result of an eventual previous invocation
52659 of gl_GETOPT_SUBSTITUTE.
52661 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52663 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52664 redefinition warnings. To avoid them, include the defines
52665 in `#if !defined __need_getopt ... #endif'. The only place
52666 where __getopt_argv_const is used is in definitions
52667 of getopt_long and getopt_long_only below, which are as well
52668 protected by `#ifndef __need_getopt'.
52669 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52670 __need_getopt after including <stdio.h> and <unistd.h> These
52671 headers might have defined it.
52673 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52675 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52677 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52679 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52680 (futimens): New function, which uses futimes if available.
52681 (futimens, utimens): Support timespec==NULL, with same semantics
52682 as utime and utimens.
52683 * lib/utimens.h (futimens): New decl.
52685 2004-11-23 Jim Meyering <jim@meyering.net>
52687 * lib/getopt_.h: Remove trailing blanks.
52689 2004-11-23 Jim Meyering <jim@meyering.net>
52691 * lib/__fpending.c: Add comment.
52693 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52695 * modules/canonicalize (Depends-on): Add xreadlink.
52696 Problem reported by James Youngman.
52698 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52700 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52702 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52703 optopt): Use them instead of invoking ## directly; otherwise, the
52704 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52706 2004-11-19 Bruno Haible <bruno@clisp.org>
52708 * lib/strtok_r.c: Move comments from here...
52709 * lib/strtok_r.h: ... to here.
52711 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52713 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52714 implementations that mishandle size_t overflow.
52716 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52718 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52719 might fail. Problem reported by Yoann Vandoorselaere.
52720 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52721 implementations that mishandle size_t overflow.
52723 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52725 * modules/canon-host (Depends-on): Add strdup.
52727 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52729 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52731 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52733 * lib/canon-host.c: Include "strdup.h".
52734 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52735 Use strdup instead of malloc/strcpy to duplicate strings.
52737 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52738 (human_space_before_unit): New constant.
52739 * lib/human.c (human_readable): Support it.
52741 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52742 (xgetcwd): Set errno correctly when failing.
52743 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52744 the failure is actually due to a PATH_MAX problem.
52746 Further getopt changes to make it more likely that glibc will
52747 buy the changes back.
52748 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52749 (getopt): Use it, so to preserve glibc semantic
52750 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52751 when compiling for libc.
52752 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52753 (getopt_long, getopt_long_only): Use it.
52755 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52756 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52757 (getopt): Argv is now char * const *, as per standard.
52758 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52759 not char *__getopt_argv_const *.
52760 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52761 _getopt_long_only_r): Likewise.
52762 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52763 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52764 _getopt_long_r, _getopt_long_only_r): Likewise.
52765 * lib/getopt_.h (__getopt_argv_const): Remove.
52766 (getopt): Argv is now char * const *, as per standard.
52768 * lib/getdate.y (tORDINAL): New token.
52769 (day, relunit): Allow it for relative times.
52770 (relative_time_table): Use tORDINAL for ordinals.
52772 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52774 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52775 Document that "second" isn't allowed as an ordinal number.
52777 2004-11-16 Jim Meyering <jim@meyering.net>
52779 * modules/closeout (Depends-on): Add fpending.
52781 2004-11-15 Jim Meyering <jim@meyering.net>
52783 * lib/closeout.c: Include "__fpending.h" once again.
52784 Include <stdbool.h>.
52785 (close_stdout): Don't fail just because stdout was closed initially,
52786 since some programs don't write to stdout in the normal course of
52787 operation (other than --version and --help), and we don't want this
52788 function to make e.g. `touch file >&-' fail.
52789 But do fail if it was closed and someone has tried to write to it.
52790 E.g., `printf foo >&-' must fail.
52792 2004-11-13 Jim Meyering <jim@meyering.net>
52794 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52796 2004-11-12 Simon Josefsson <jas@extundo.com>
52798 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52799 small doc fix is still pending.
52801 2004-11-11 Simon Josefsson <jas@extundo.com>
52803 * modules/strtok_r: New file.
52805 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52808 2004-11-11 Simon Josefsson <jas@extundo.com>
52810 * m4/strtok_r.m4: New file.
52812 * m4/getopt.m4: Replace opterr.
52814 2004-11-11 Simon Josefsson <jas@extundo.com>
52816 * lib/strtok_r.h, strtok_r.c: New file.
52818 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52820 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52821 of replacing opterr, getopt, etc. This should handle the
52822 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52824 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52826 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52827 we can stop lying to compilers about the constness of argv when we
52828 are compiled outside glibc.
52829 (getopt, getopt_long, getopt_long_only): Use it.
52830 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52831 _getopt_internal, getopt): Likewise.
52832 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52833 _getopt_long_only_r): Likewise.
52834 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52835 _getopt_long_r, _getopt_long_only_r): Likewise.
52837 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52838 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52839 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52840 the other external symbols.
52841 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52842 declaration, since the above renaming now works around collisions.
52844 2004-11-11 Jim Meyering <jim@meyering.net>
52846 * lib/linebreak.c: Remove trailing blanks.
52847 * lib/alloca_.h: Likewise.
52848 * lib/acosl.c: Likewise.
52849 * lib/euidaccess.c: Likewise.
52850 * lib/allocsa.h: Likewise.
52852 2004-11-10 Simon Josefsson <jas@extundo.com>
52854 * m4/getaddrinfo.m4: New file.
52856 2004-11-10 Simon Josefsson <jas@extundo.com>
52858 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52860 2004-11-10 Simon Josefsson <jas@extundo.com>
52862 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52865 * modules/getaddrinfo: New file.
52867 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52869 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52871 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52873 * lib/mktime.c (SHR): New macro, which is a portable
52874 substitute for >> that should work even on Crays.
52875 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52876 Problem reported by Mark D. Baushke in
52877 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52878 * lib/getdate.y (SHR): Likewise.
52880 * lib/strftime.c (SHR): Likewise.
52882 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52883 quote_these_too, so that right shifts are well defined. All uses
52886 2004-11-10 Jim Meyering <jim@meyering.net>
52888 Ensure that no close failure goes unreported.
52889 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52890 return early when it seems there's nothing to flush.
52891 Don't include __fpending.h.
52893 2004-11-10 Jim Meyering <jim@meyering.net>
52895 * modules/closeout (Depends-on): Remove fpending.
52897 2004-11-10 Jim Meyering <jim@meyering.net>
52899 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52901 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52903 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52905 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52906 and AC_REQUIRE when possible, to avoid duplicate checks.
52907 Check for <wchar.h>.
52909 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52911 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52913 2004-11-09 Bruno Haible <bruno@clisp.org>
52915 * m4/sockpfaf.m4: New file.
52917 2004-11-05 Bruno Haible <bruno@clisp.org>
52919 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52920 Reported by Mark D. Baushke <mdb@cvshome.org>.
52922 2004-11-04 Bruno Haible <bruno@clisp.org>
52924 2004-09-11 Bruno Haible <bruno@clisp.org>
52925 * allocsa.valgrind: New file.
52926 2004-02-06 Bruno Haible <bruno@clisp.org>
52927 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52928 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52929 Reported by Christopher Seip <chris.seip@hp.com>.
52931 2004-11-04 Bruno Haible <bruno@clisp.org>
52933 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52934 (Makefile.am): Distribute it.
52936 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52938 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52939 with errno == ERANGE if the buffer is too small.
52940 Problem reported by Mark D. Baushke.
52942 2004-11-03 Albert Chin <china@thewrittenword.com>
52943 Paul Eggert <eggert@cs.ucla.edu>
52945 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52946 equivalent, substitute $ac_type for equivalent type rather than
52947 blindly using uint32_t *always* which won't work if uint32_t is not
52948 available. Define _UINT32_T to work around typedef of uint32_t if
52949 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52952 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52954 * m4/jm-macros.m4: Sync from coreutils.
52955 (gl_MACROS): Check for mbrlen, for pathchk.
52956 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52958 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52960 * lib/xreadlink.c (MAXSIZE): New macro.
52961 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52962 size does not exceed MAXSIZE. Avoid cast.
52963 As suggested by Mark D. Baushke in
52964 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52965 if readlink fails with buffer size just under MAXSIZE, try again
52968 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52970 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52972 2004-11-02 Derek R. Price <derek@ximbiot.com>
52973 and Paul Eggert <eggert@cs.ucla.edu>
52975 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52976 (get_date): Overparenthesize to avoid GCC warning.
52978 2004-11-02 Bruno Haible <bruno@clisp.org>
52980 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52983 2004-11-02 Bruno Haible <bruno@clisp.org>
52985 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52986 function returns void.
52988 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52990 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52991 fflush_unlocked, flockfile, funlockfile, funlockfile,
52992 fputs_unlocked, putc_unlocked.
52994 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52996 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52997 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53000 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53002 * modules/getdate (Files): Add doc/getdate.texi.
53003 (Depends-on): Add setenv, xalloc.
53005 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53007 * lib/getdate.y: Add support for TZ="foo" within a date string.
53008 Fix some bugs near time_t boundaries. Reject dates with
53009 out-of-range components, e.g., "Sept 31".
53010 Include <stdlib.h>, "setenv.h", "xalloc.h".
53011 (ISDIGIT_LOCALE): Remove; unused.
53012 Note that the TZ and time functions used here are not reentrant.
53013 (mktime_ok, get_tz): New functions.
53014 (TZBUFSIZE): New constant.
53015 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53016 This requires that we sometimes generate our own TZ="XXX..." setting.
53018 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53020 * doc/getdate.texi: New file, from coreutils with modifications for
53021 the new TZ parsing.
53023 2004-10-27 Derek R. Price <derek@ximbiot.com>
53025 * lib/mktime.c (not_equal_tm): Remove redundant check.
53027 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53029 * modules/regex (lib_SOURCES): Add regex.c.
53030 Reported by James Youngman in
53031 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53033 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53035 * lib/getdate.y: Use Bison 1.875 features, and some minor
53036 code cleanups. This change does not affect semantics.
53037 Don't include <stdlib.h>; no longer needed.
53038 Don't include unlocked-io.h; only the "#if TEST" code uses
53039 stdio, and performance isn't crucial there.
53040 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53041 Bison 1.875 features as described below.
53042 All uses of "PC." replaced by "pc->".
53043 (YYSTYPE): Add a forward declaration.
53044 (yylex, yyerror): Use full prototypes in forward decls.
53045 Use "%pure-parser" rather than obsolescent "%pure_parser".
53046 Use %parse-param and %lex-param instead of obsolescent
53047 YYPARSE_PARAM and YYLEX_PARAM.
53048 (meridian_table, month_and_day_table, time_units_table,
53049 relative_time_table, time_zone_table, military_table,
53050 lookup_zone, lookup_word, get_date):
53051 Use NULL instead of 0 where appropriate.
53052 (to_hour): Avoid abort (), to avoid a dependency on
53054 (yyerror, yylex): Now accepts parser_control * arg.
53055 (main) [TEST]: Use '\0' rather than 0 for char.
53057 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53059 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53061 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53063 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53064 It's now the caller's responsibility to handle the case where
53065 !HAVE_GETPAGESIZE && !defined getpagesize.
53067 * lib/mktime.c (leapyear): Arg is long int, not int.
53069 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53071 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53073 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53075 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53076 missing. Problem reported by James Youngman.
53078 2004-10-16 Simon Josefsson <jas@extundo.com>
53080 * gnulib-tool: Fix comments. Fix parse problem.
53081 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53083 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53085 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53086 implementation of getopt_long. Problem reported by Alexander Taler in:
53087 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53089 2004-10-15 Bruno Haible <bruno@clisp.org>
53091 * gnulib-tool: Untabify. Initialize supplied_libname.
53092 (func_usage): More homogenous output.
53093 (func_modules_transitive_closure, func_modules_to_filelist,
53094 func_emit_lib_Makefile_am): New functions.
53095 (func_import): New function, extracted from big case statement. Use
53096 func_get_license, func_modules_transitive_closure,
53097 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53098 opt_lgpl. Don't use test -a, as it's not portable.
53099 (func_create_testdir): Use func_modules_transitive_closure,
53100 func_modules_to_filelist, func_emit_lib_Makefile_am.
53102 2004-10-15 Bruno Haible <bruno@clisp.org>
53104 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53106 2004-10-15 Bruno Haible <bruno@clisp.org>
53108 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53109 the portions belonging to each module.
53110 Suggested by Derek Robert Price <derek@ximbiot.com>.
53112 2004-10-12 Simon Josefsson <jas@extundo.com>
53114 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53115 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53118 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53120 * modules/vsnprintf: New file.
53122 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53124 * m4/vsnprintf.m4: New file.
53126 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53128 * lib/vsnprintf.h: New file.
53129 * lib/vsnprintf.c: New file.
53131 2004-10-11 Bruno Haible <bruno@clisp.org>
53133 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53136 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53138 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53140 2004-10-07 Bruno Haible <bruno@clisp.org>
53142 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53143 fits into the provided buffer.
53145 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53147 * lib/diacrit.c, diacrit.h: Add GPL notice.
53149 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53151 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53152 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53153 This avoids a potential constant-folding bug.
53155 2004-10-05 Bruno Haible <bruno@clisp.org>
53157 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53158 for the declaration of strsep.
53160 2004-10-05 Bruno Haible <bruno@clisp.org>
53162 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53164 2004-10-04 Simon Josefsson <jas@extundo.com>
53166 * modules/memmem: New file.
53167 * tests/test-memmem.c: New file.
53168 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53170 2004-10-04 Simon Josefsson <jas@extundo.com>
53172 * m4/memmem.m4: New file.
53174 2004-10-04 Simon Josefsson <jas@extundo.com>
53176 * lib/memmem.h: New file.
53177 * lib/memmem.c: New file, taken from glibc.
53179 2004-10-04 Simon Josefsson <jas@extundo.com>
53181 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53182 '#ifdef USE_UNLOCKED_IO'.
53184 2004-10-04 Simon Josefsson <jas@extundo.com>
53186 * config/srclist.txt: Add memmem from glibc.
53188 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53190 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53192 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53193 modules/exclude, modules/getdate, modules/getline,
53194 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53195 modules/getusershell, modules/linebuffer, modules/md5,
53196 modules/mountlist, modules/posixtm, modules/readtokens,
53197 modules/readutmp, modules/regex, modules/sha1,
53198 modules/version-etc, modules/yesno:
53199 Remove dependency on unlocked-io.
53201 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53203 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53205 * m4/unlocked-io.m4: Add copyright notice.
53206 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53208 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53210 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53211 * lib/xmalloc.c (xmemdup): Likewise.
53212 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53213 XFREE): Remove these long-obsolescent macros.
53214 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53215 * lib/xstrdup.c: Remove.
53217 * lib/regex.c (re_comp): Cast gettext return value to char *,
53218 Problem reported by Martin Neitzel via Mark D. Baushke.
53220 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53222 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53223 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53224 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53225 regex.c, sha1.c, version-etc.c, yesno.c:
53226 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53227 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53228 the includer's responsibility.
53230 Sync from coreutils.
53232 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53233 points to the start of a string, as the C Standard says the
53234 resulting behavior is undefined.
53236 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53237 simple -> simple_backups, numbered_existing ->
53238 numbered_existing_backups, numbered -> numbered_backups
53239 to avoid shadowing problems. All uses changed.
53240 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53241 * lib/backupfile.c (check_extension, numbered_backup):
53242 Rename locals to avoid shadowing 'basename'.
53243 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53246 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53247 * lib/.cvsignore: Add getopt.h.
53249 2004-10-04 Bruno Haible <bruno@clisp.org>
53251 * modules/README: New file.
53252 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53255 2004-10-02 Jim Meyering <jim@meyering.net>
53257 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53259 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53261 * modules/strsep: New file.
53263 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53265 * m4/strsep.m4: New file.
53267 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53269 * lib/strsep.h: New file.
53270 * lib/strsep.c: New file.
53272 2004-10-01 Simon Josefsson <jas@extundo.com>
53274 * lib/snprintf.c (snprintf): Handle size==0.
53276 2004-10-01 Simon Josefsson <jas@extundo.com>
53277 Bruno Haible <bruno@clisp.org>
53279 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53280 (snprintf): Declare 'args'.
53282 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53284 * lib/snprintf.c: Remove comments as to why each header is needed.
53286 2004-10-01 Bruno Haible <bruno@clisp.org>
53288 * MODULES.html.sh: Add strsep.
53290 2004-09-30 Simon Josefsson <jas@extundo.com>
53292 * modules/snprintf: New file.
53294 2004-09-30 Simon Josefsson <jas@extundo.com>
53296 * m4/snprintf.m4: New file.
53298 2004-09-30 Simon Josefsson <jas@extundo.com>
53300 * lib/snprintf.h, lib/snprintf.c: New files.
53302 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53304 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53305 (hol_entry_help): Never translate an empty string.
53306 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53307 * lib/argp.h (OPTION_NO_TRANS): New option.
53309 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53311 * modules/argp (Maintainer): Replace Simon Josefsson
53312 by Sergey Poznyakoff.
53314 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53316 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53317 changes merged back into glibc.
53319 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53321 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53323 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53325 * lib/xvasprintf.c: Include xalloc.h.
53326 (xvasprintf): Use xalloc_die, not xmalloc_die.
53328 2004-09-29 Bruno Haible <bruno@clisp.org>
53330 * modules/alloca-opt: New file, derived from modules/alloca.
53331 * modules/allocsa: Depend on alloca-opt instead of alloca.
53332 * modules/setenv: Likewise.
53333 * modules/vasnprintf: Likewise.
53334 * MODULES.html.sh: Add alloca-opt.
53336 2004-09-28 Simon Josefsson <jas@extundo.com>
53338 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53339 LGPL, and to replace license template from GPL to LGPL.
53341 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53343 * modules/dummy: Change license to LGPL.
53345 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53347 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53349 2004-09-24 Simon Josefsson <jas@extundo.com>
53351 * modules/minmax (License): Change from GPL to LGPL.
53353 2004-09-23 Simon Josefsson <jas@extundo.com>
53355 * gnulib-tool (--import): Typo.
53357 2004-09-23 Simon Josefsson <jas@extundo.com>
53359 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53361 2004-09-22 Bruno Haible <bruno@clisp.org>
53363 * modules/*: Add 'License' field.
53364 * gnulib-tool: Accept --extract-license option.
53365 (func_get_license): New function.
53367 2004-09-21 Bruno Haible <bruno@clisp.org>
53369 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53370 Reported by Simon Josefsson.
53372 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53374 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53375 gl_AC_TYPE_LONG_LONG.
53377 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53379 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53381 2004-09-18 Simon Josefsson <jas@extundo.com>
53382 and Paul Eggert <eggert@cs.ucla.edu>
53384 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53385 calls with autoreconf. Define GL_LIB.
53387 2004-09-14 Karl Berry <karl@gnu.org>
53389 * config/srclist.txt: unsync setenv.c, sigh.
53391 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53393 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53394 Problem reported by Bruno Haible in:
53395 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53397 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53399 * config/srclist.txt: Comment out argp-pvh.c.
53401 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53403 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53404 in case some system header has #define'd it. Problem reported by
53405 Soeren D. Schulze in
53406 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53408 2004-09-09 Karl Berry <karl@gnu.org>
53410 * regex.[ch]: delete from the root. These were supposed to be
53411 synced with emacs cvs, but this has not happened for about
53412 a year, and anyway nothing else uses emacs regex.[ch].
53413 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53414 lib/regex[.ch] is untouched.
53416 2004-09-09 Bruno Haible <bruno@clisp.org>
53418 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53420 2004-09-09 Bruno Haible <bruno@clisp.org>
53422 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53424 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53426 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53428 * modules/xvasprintf: New file.
53429 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53431 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53433 * lib/xvasprintf.h: New file.
53434 * lib/xvasprintf.c: New file.
53435 * lib/xasprintf.c: New file.
53437 2004-09-08 Bruno Haible <bruno@clisp.org>
53439 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53441 2004-09-08 Bruno Haible <bruno@clisp.org>
53443 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53444 length is > INT_MAX.
53445 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53448 2004-09-08 Bruno Haible <bruno@clisp.org>
53450 * lib/stdint_.h: New file, taken from GNU clisp.
53452 2004-09-08 Bruno Haible <bruno@clisp.org>
53453 Oskar Liljeblad <oskar@osk.mine.nu>
53455 * modules/stdint: New file.
53456 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53458 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53460 Import from coreutils.
53461 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53462 strings on unbounded length. alloca's performance benefits aren't
53463 that important here.
53464 (V_STRDUP): Remove.
53465 (parse_with_separator): New function, with most of the internals
53466 of the old parse_user_spec. Allow user to omit both user and group,
53467 for compatibility with FreeBSD.
53468 Clone only the user name, not the entire spec.
53469 Do not set *uid, *gid unless entirely successful.
53470 Avoid memory leak in some failing cases.
53471 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53472 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53473 (parse_user_spec): Rewrite to use parse_with_separator.
53475 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53477 * modules/userspec: Don't depend on alloca.
53479 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53481 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53483 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53485 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53486 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53487 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53489 2004-08-16 Simon Josefsson <jas@extundo.com>
53491 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53492 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53493 Add --dry-run for --import.
53494 Let user provided command line parameters override configure.ac
53497 2004-08-12 Simon Josefsson <jas@extundo.com>
53499 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53500 as discussed with Paul Eggert in threads rooted at
53501 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53503 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53504 Before, the test was empty, and relied on ELIDE_CODE in source
53506 (gl_PREREQ_GETOPT): New macro.
53507 (gl_GETOPT): Use them.
53509 2004-08-12 Simon Josefsson <jas@extundo.com>
53511 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53512 * lib/getopt_.h: Renamed from getopt.h.
53514 2004-08-12 Simon Josefsson <jas@extundo.com>
53516 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53517 Change default library name from libfoo to libgnu.
53518 Now, if you have a configure.ac that says:
53521 gl_MODULES(error getopt etcetera)
53523 you can import all you need by running:
53524 ../gnulib/gnulib-tool --import
53526 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53527 (Makefile.am): Rewrite, use logic from argz.
53528 (Include): Use <getopt.h> instead of "getopt.h".
53530 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53532 * modules/argp (Files): Add m4/unlocked-io.m4.
53533 (Depends-on): Add extensions.
53535 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53537 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53538 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53539 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53540 Check for program_invocation_name, program_invocation_short_name,
53541 flockfile, funlockfile, features.h, _getopt_long_only_r.
53543 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53545 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53546 its complicated substitute.
53547 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53548 and program_invocation_name.
53549 (__argp_basename) [!_LIBC]: Remove; the only use was
53550 replaced by its body.
53551 (__argp_short_program_name): Change condition from
53552 !defined __argp_short_program_name to
53553 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53554 to match argp-namefrob.h.
53555 (__argp_failure): Don't assume strerror_r returns char *.
53556 * lib/argp-parse.c (N_): Define unconditionally.
53557 (argp_default_options): Fill out initializers with 0 to avoid
53560 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53562 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53565 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53567 Merge from coreutils.
53569 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53571 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53572 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53574 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53576 Merge from coreutils.
53578 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53579 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53580 for Reliant Unix 5.43.
53582 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53583 (union fooround): Use uintmax_t, not long int.
53584 The rest is a merge from libc:
53585 [defined _LIBC]: Include <shlib-compat.h>.
53586 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53588 * lib/settime.c (settime): Recode to avoid warning with
53591 * lib/strverscmp.c: Convert to UTF-8.
53593 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53595 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53598 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53600 * modules/xalloc-die: New file.
53601 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53603 * modules/md5 (Files): Add m4/uint32_t.m4.
53604 * modules/sha1: Renamed from modules/sha.
53606 Rename lib/sha.h to lib/sha1.h.
53607 Rename lib/sha.c to lib/sha1.c.
53608 Rename m4/sha.m4 to m4/sha1.m4.
53609 (lib_SOURCES): Likewise.
53610 (configure.ac): Rename gl_SHA to gl_SHA1.
53611 (Include): sha.h -> sha1.h.
53613 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53615 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53616 * m4/sha1.m4: Renamed from sha.m4.
53617 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53619 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53621 * lib/obstack.h (obstack_empty_p):
53622 Don't assume that chunk->contents is suitably aligned.
53623 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53624 Likewise. Problem reported by Benno in
53625 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53627 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53628 readable. This could be improved further but it'd take some work.
53630 2004-08-08 Simon Josefsson <jas@extundo.com>
53632 * modules/xgethostname (Depends-on): Remove exit and error (not
53635 * modules/getpass-gnu: Add getpass.h.
53636 (Depends-on): Add stdbool.
53637 * modules/getpass: Add getpass.h.
53639 2004-08-08 Simon Josefsson <jas@extundo.com>
53641 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53642 Check getpass declaration.
53644 2004-08-08 Simon Josefsson <jas@extundo.com>
53646 * lib/xgethostname.c: Don't include error.h (not used).
53648 * lib/getpass.h: Add.
53649 * lib/getpass.c: Include getpass.h first.
53651 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53653 * lib/xalloc-die.c: New file.
53654 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53656 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53657 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53659 (_, N_, xalloc_die): Move to xalloc-die.c.
53660 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53661 so that we needn't mess with xalloc_msg_memory_exhausted.
53663 * lib/sha1.h: Renamed from sha.h.
53664 (SHA1_H): Renamed from _SHA_H.
53665 (sha1_ctx): Renamed from sha_ctx.
53666 (sha1_init_ctx): Renamed from sha_init_ctx.
53667 (sha1_process_block): Renamed from sha_process_block.
53668 (sha1_process_bytes): Renamed from sha_process_bytes.
53669 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53670 (sha1_read_ctx): Renamed from sha_read_ctx.
53671 (sha1_stream): Renamed from sha_stream.
53672 (sha1_buffer): Renamed from sha_buffer.
53673 * lib/sha1.c: Likewise; renamed from sha.c.
53674 Do not include <sys/types.h>.
53675 Include <stddef.h> rather than <stdlib.h>.
53677 2004-08-08 Bruno Haible <bruno@clisp.org>
53679 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53680 FILESYSTEM_PREFIX_LEN.
53681 * lib/progreloc.c: Likewise.
53682 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53684 2004-08-06 Simon Josefsson <jas@extundo.com>
53686 * modules/progname (Depends-on): Don't depend on stdbool.
53688 2004-08-06 Simon Josefsson <jas@extundo.com>
53690 * modules/getsubopt: New file.
53691 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53694 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53696 More merge from coreutils.
53698 * m4/utimens.m4, m4/utimecmp.m4: New files.
53699 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53700 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53701 prereq.m4, sha.m4: Import changes from coreutils.
53703 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53705 More merge from coreutils.
53706 * modules/raise, modules/readtokens0, modules/utimens:
53707 * modules/utimecmp, module/xnanosleep: New files.
53708 * modules/strftime: Add lib/strftime.h.
53709 Change include from <time.h> to "strftime.h".
53710 * modules/yesno: Add lib/yesno.h.
53711 * modules/backupfile: Remove lib/addext.c.
53712 * modules/euidaccess: Add stat-macros.h.
53713 * modules/canonicalize, modules/euidaccess,
53714 modules/filemode, modules/lchown, modules/makepath,
53715 modules/rmdir, modules/stat: Likewise.
53717 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53720 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53721 SIZE_MAX is a valid preprocessor constant.
53722 (__argp_basename): Change from "#ifndef _LIBC"
53723 to "#ifndef __argp_short_program_name", so that
53724 we don't compile these functions for tar.
53726 More merges from coreutils.
53727 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53728 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53729 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53730 * lib/addext.c: Remove; no longer needed.
53731 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53732 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53733 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53734 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53735 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53736 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53737 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53738 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53739 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53740 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53741 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53742 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53743 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53744 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53745 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53746 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53747 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53748 Import changes from coreutils.
53750 2004-08-05 Simon Josefsson <jas@extundo.com>
53752 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53754 2004-08-05 Simon Josefsson <jas@extundo.com>
53756 * m4/getsubopt.m4: New file.
53758 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53760 Merge from coreutils.
53762 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53763 * m4/getcwd-path-max.m4: New files.
53765 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53766 FILESYSTEM_PREFIX_LEN ->
53767 FILE_SYSTEM_PREFIX_LEN.
53768 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53769 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53770 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53771 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53773 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53774 prerequisite modules now handle the DOS stuff.
53775 Don't check for unistd.h.
53777 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53779 Merge from coreutils.
53781 * lib/.gdb-history: Remove; this doesn't belong here.
53783 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53784 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53785 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53786 * lib/getcwd.c: New files.
53788 * lib/dirname.h: Include <stdbool.h>.
53789 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53790 for consistency with POSIX terminology. All uses changed.
53791 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53792 (strip_trailing_slashes): Use bool for booleans.
53793 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53795 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53796 sometimes returns a positive errno value even when it succeeds.
53797 (print_errno_message) [!LIBC]: Fall back on strerror if
53798 __strerror_r fails.
53800 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53801 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53802 (longest_relative_suffix): New function.
53803 (path_concat): Use it. Assume first argument is not NULL.
53804 Port to DOS. Omit redundant separators.
53805 Report an error instead of returning NULL.
53806 Use mempcpy instead of memcpy.
53807 (xpath_concat): Remove: not declared or used.
53809 * lib/same.h: Include <stdbool.h>
53810 (same_name): Return bool, not int.
53811 * lib/same.c (same_name): Likewise.
53812 (errno): Don't declare; we assume C89 or better now.
53814 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53815 if not already defined.
53817 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53818 * lib/dup-safer.c (errno): Likewise.
53820 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53822 Merge from coreutils.
53823 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53824 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53825 * modules/path-concat: Don't depend on strdup.
53827 2004-08-03 Simon Josefsson <jas@extundo.com>
53829 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53830 * lib/progname.h: Don't include stdbool.h.
53832 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53834 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53835 * MODULES.html.sh (func_all_modules): Remove fatal.
53837 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53839 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53841 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53843 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53846 2004-08-02 Simon Josefsson <jas@extundo.com>
53848 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53849 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53850 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53852 2004-08-01 Simon Josefsson <jas@extundo.com>
53854 * lib/xgetdomainname.c: Include stdlib.h, for free().
53856 2004-07-19 Bruno Haible <bruno@clisp.org>
53858 * MODULES.html.sh (func_all_modules): Add dummy.
53860 2004-07-16 Simon Josefsson <jas@extundo.com>
53862 * modules/dummy: New file.
53864 2004-07-16 Simon Josefsson <jas@extundo.com>
53866 * lib/dummy.c: New file.
53868 2004-07-16 Bruno Haible <bruno@clisp.org>
53870 * lib/backupfile.h: Add extern "C" for C++.
53871 * lib/closeout.h: Likewise.
53872 * lib/copy-file.h: Likewise.
53873 * lib/findprog.h: Likewise.
53874 * lib/full-write.h: Likewise.
53875 * lib/pathname.h: Likewise.
53876 * lib/progname.h: Likewise.
53877 * lib/stpcpy.h: Likewise.
53878 * lib/stpncpy.h: Likewise.
53879 * lib/strcase.h: Likewise.
53880 * lib/strstr.h: Likewise.
53881 * lib/xalloc.h: Likewise.
53883 * lib/mbswidth.h: Add extern "C" for C++.
53884 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53886 2004-07-13 Robert Millan <robertmh@gnu.org>
53888 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53890 2004-07-09 Simon Josefsson <jas@extundo.com>
53892 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53893 failed without this.)
53895 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53897 * modules/chown (Files): Add lib/fchown-stub.c, since
53898 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53900 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53902 * lib/fchown-stub.c: New file.
53904 2004-06-24 Jim Meyering <jim@meyering.net>
53906 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53908 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53910 * modules/argz: Omit "#include".
53912 * MODULES.html.sh (func_all_modules): Add calloc, to match
53913 2004-06-01 addition of calloc module.
53915 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53917 * m4/argz.m4: New file, which is autoupdated from libtool.
53919 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53921 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53924 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53926 * config/srclist-update: Don't insist on "USA." before the
53927 close-comment, as libtool omits the period and puts the */ on a
53929 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53930 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53932 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53934 * modules/argz: New file.
53935 * MODULES.html.sh (func_all_modules): Add argz.
53937 2004-06-12 Jim Meyering <jim@meyering.net>
53938 and Paul Eggert <eggert@cs.ucla.edu>
53940 * modules/hash (Files): Add lib/xalloc.h.
53941 * modules/pipe (Depends-on): Add wait-process.
53942 * modules/stat (Depends-on): Add xalloc.
53943 * modules/userspec (Files): Add lib/userspec.h.
53946 Upgrade from gettext-0.13.
53947 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53948 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53949 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53951 2004-06-10 Jim Meyering <jim@meyering.net>
53953 * lib/calloc.c: New file.
53955 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53957 * lib/getdate.y (yylex): Allow space between sign and number.
53958 Problem reported by Dan Jacobson.
53960 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53962 Merge from coreutils CVS.
53964 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53965 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53966 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53967 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53968 xstrtol.m4: Fix copyright date and/or serial number.
53970 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53971 See if we need an fchown replacement.
53972 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53973 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53974 and use the replacement function if we detect either defect.
53976 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53979 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53980 and Jim Meyering <jim@meyering.net>
53982 Merge from coreutils CVS.
53984 * lib/stat-macros.h: New file, with contents from file-type.h
53985 and coreutils' system.h.
53986 * lib/file-type.c: Include "stat-macros.h".
53987 * lib/file-type.h (file_type): Move all macro definitions to new file,
53990 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53991 Wrap old code with this conditional.
53992 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53993 function that does not dereference symlinks.
53994 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53996 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53997 dependency problems.
53998 (xreadlink): Accept new arg SIZE, for efficiency.
53999 All decls and uses changed.
54000 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54002 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54003 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54005 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54008 2004-06-01 Jim Meyering <jim@meyering.net>
54010 * m4/calloc.m4: New file.
54012 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54014 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54015 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54016 Also, fix a typo in a diagnostic.
54018 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54020 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54021 or AC_FUNC_REALLOC.
54023 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54025 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54026 macros to be defined.
54027 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54028 the allocator returns NULL because the requested size is zero.
54030 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54032 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54033 var. Add comment explaining why libc still defines it. This
54034 merges the following patch from glibc:
54035 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54037 2004-05-20 Andreas Schwab <schwab@suse.de>
54039 * m4/free.m4: Replace free if it not known to work, not the other
54042 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54044 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54045 present in glibc since revision 1.1 of this file.
54046 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54047 obstack_alignment_mask, obstack_alloc, obstack_base,
54048 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54049 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54050 obstack_grow0, obstack_init, obstack_int_grow,
54051 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54052 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54053 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54054 nonexistent functions.
54056 2004-05-18 Karl Berry <karl@gnu.org>
54058 * config/srclist.txt: break link for vasnprintf.c.
54060 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54062 Port obstack to the AS/400, where pointers are 16 bytes wide and
54063 you cannot cast an integer to a valid pointer. This patch is
54064 currently waiting to be integrated into glibc; see
54065 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54067 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54068 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54069 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54070 (struct obstack): temp member is now a union of a pointer and
54071 an integer, instead of an integer. All integer uses changed.
54072 This does not affect the physical layout of struct obstack,
54073 except on hosts (like the AS/400) where the size or alignment of
54074 void * is greater than that of ptrdiff_t.
54075 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54076 __STDC__)]: Store temporary in pointer member of union, not
54078 * lib/obstack.c: Include <stddef.h>, for offsetof.
54079 (struct fooalign): Remove; it doesn't need a name.
54080 (union fooround): Change double to long double, and add void *.
54081 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54082 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54083 not a macro. Hence the values are always int; so remove all
54084 casts-to-int in uses.
54086 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54088 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54089 we can get this patch merged into glibc.
54091 2004-05-17 Derek R. Price <derek@ximbiot.com>
54092 Paul Eggert <eggert@cs.ucla.edu>
54094 * m4/argp: Depend on alloca.
54096 2004-05-17 Derek R. Price <derek@ximbiot.com>
54097 Paul Eggert <eggert@cs.ucla.edu>
54099 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54102 2004-05-17 Bruno Haible <bruno@clisp.org>
54104 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54105 precision that consists of a '.' followed by an empty digit string.
54106 Patch by Tor Lillqvist <tml@iki.fi>.
54108 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54110 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54111 for backward compatibility with older code. We need our own
54112 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54113 it under some other name, and our alloca.h will define it.
54115 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54116 Derek Price <derek@ximbiot.com>
54118 * lib/alloca.c: Include <alloca.h>, to get our interface.
54119 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54120 include <alloca.h> first. Use C89 prototype for alloca; this
54121 requires including <stddef.h> for size_t. Use extern "C" if C++.
54122 Use #elif for simplicity, since we can assume C89 now.
54123 Don't try to source the system alloca.h since it will not be found
54124 and to prevent recursively including its replacement.
54125 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54126 * lib/regex.c: Likewise.
54128 2004-05-16 Derek Price <derek@ximbiot.com>
54129 Paul Eggert <eggert@cs.ucla.edu>
54131 getline cleanup. This changes the getndelim2 API: both order of
54132 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54135 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54136 interface does that.
54137 (getline): Always use getdelim, so that we don't have two
54138 copies of this code.
54139 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54141 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54142 (GETNDELIM2_MAXIMUM): New macro.
54143 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54144 instead of the old practice of delim2==0. All callers changed.
54145 Return -1 on overflow, instead of returning junk.
54146 Do not set *linesize unless allocation succeeds.
54147 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54148 that we include sys/types.h.
54149 * lib/getnline.h: Likewise.
54150 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54151 (getndelim2): Reorder arguments.
54152 * lib/getnline.c (getnline, getndelim):
54153 Don't discard the NMAX argument.
54154 (getnline): Invoke getndelim, to avoid code duplication.
54155 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54156 of (size_t) -1 by callers of the getnline family.
54158 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54160 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54161 Check for gettimeofday.
54162 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54163 Check for settimeofday, stime.
54165 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54167 * lib/nanosleep.c (suspended): Change its type from int to
54168 sig_atomic_t volatile.
54169 (first_call): Make it private to rpl_nanosleep, and have it
54170 be zero initially as that's a bit faster.
54171 (my_usleep): Round up fractional times instead of truncating them,
54172 as this is the usual meaning for 'sleep'.
54174 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54176 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54177 (ENOSYS): Define if not defined.
54178 (settime): Fall back on stime if it exists and settimeofday fails.
54179 But don't bother with fallbacks if a method fails with errno == EPERM.
54181 2004-05-11 Jim Meyering <jim@meyering.net>
54183 Prior to this change, the save_cwd caller required read access to the
54184 current directory on most systems (ones with the fchdir function).
54186 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54187 fails, try write-only, and finally, resort to using xgetcwd.
54189 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54191 * lib/obstack.c, obstack.h: Import changes from libc.
54193 2004-04-28 Bruno Haible <bruno@clisp.org>
54195 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54196 also implicitly appends .exe to executables.
54197 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54198 accepts Windows pathnames.
54199 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54200 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54201 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54202 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54203 Reported by Derek Robert Price <derek@ximbiot.com>.
54205 2004-04-21 Karl Berry <karl@gnu.org>
54207 * config/srclist.txt (localcharset.c): break sync.
54209 2004-04-20 Paul Eggert <eggert@twinsun.com>
54211 * m4/host-os.m4: Add a copyright notice.
54213 2004-04-20 Jim Meyering <jim@meyering.net>
54215 Change UTILS_ to gl_ in AC_DEFINE'd names.
54216 Change utils_- and jm_-prefixed variables, too.
54217 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54218 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54219 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54221 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54222 Don't emit trailing blanks.
54223 Also rename jm_-prefixed variables to have gl_ prefix.
54225 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54226 Also rename jm_-prefixed variables to have gl_ prefix.
54228 * m4/jm-macros.m4: Reflect the renamings.
54229 * m4/prereq.m4: Likewise.
54231 2004-04-20 Jim Meyering <jim@meyering.net>
54233 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54236 2004-04-20 Jim Meyering <jim@meyering.net>
54237 Bruno Haible <bruno@clisp.org>
54239 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54240 memory when realloc fails.
54242 2004-04-19 Jim Meyering <jim@meyering.net>
54244 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54245 now that readutmp.c may call `free (0)'.
54247 2004-04-19 Bruno Haible <bruno@clisp.org>
54249 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54250 * m4/inttypes_h.m4: Likewise.
54251 * m4/stdint_h.m4: Likewise.
54252 * m4/intmax_t.m4: Likewise.
54253 * m4/uintmax_t.m4: Likewise.
54255 2004-04-18 Jim Meyering <jim@meyering.net>
54257 * m4/prereq.m4: Don't forbid jm_ prefix.
54259 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54260 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54261 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54262 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54263 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54264 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54265 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54266 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54267 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54268 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54269 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54270 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54271 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54272 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54273 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54274 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54275 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54276 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54277 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54279 2004-04-18 Jim Meyering <jim@meyering.net>
54281 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54282 failure, don't leak memory and do call END_UTMP_ENT.
54284 2004-04-16 Jim Meyering <jim@meyering.net>
54286 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54287 coreutils' stat program.
54288 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54290 2004-04-11 Paul Eggert <eggert@twinsun.com>
54292 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54294 (CHAR_BIT): Remove, since we assume C89.
54295 Include <stdint.h> if available, as per current Autoconf CVS advice.
54297 2004-03-31 Jim Meyering <jim@meyering.net>
54299 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54300 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54301 * m4/xalloc.m4: Likewise.
54303 2004-03-30 Paul Eggert <eggert@twinsun.com>
54305 Merge from coreutils.
54307 * m4/inttostr.m4: New file.
54308 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54309 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54310 Require gl_CLOCK_TIME.
54311 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54313 2004-03-30 Paul Eggert <eggert@twinsun.com>
54315 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54316 not bool, to be more consistent with Unix conventions.
54317 Suggested by Bruno Haible.
54319 Merge from coreutils.
54321 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54322 * lib/umaxtostr.c: New files.
54324 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54325 the usual <time.h> dance.
54326 (get_date): Change signature to support fractional time stamps.
54327 All callers changed.
54328 * lib/getdate.y: Include "getdate.h" first, as we can now
54329 assume C89 and don't need to worry about 'const'.
54330 Similarly, include "unlocked-io.h" near start, not in middle.
54331 Include <limits.h>.
54332 (textint.value): Use long int rather than int.
54333 (textint.digits): Use size_t rather than int.
54334 (BILLION, LOG10_BILLION): New constants.
54335 (parser_control): New member rel_ns. Members day_ordinal,
54336 time_zone, month, day, hour, minutes, rel_year, rel_month,
54337 rel_day, rel_hour, rel_minutes, rel_seconds
54338 are now long int, not int. Member seconds is now struct timespec,
54339 not int. New member timespec_seen. Members dates_seen, days_seen,
54340 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54342 (%union.intval): Now long int, not int.
54343 New member timespec.
54344 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54345 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54346 (spec): Now is a timespec or an item list.
54347 (timespec, items): New nonterminals.
54348 (time, rel, relunit, number, get_date):
54349 Add support for fractional seconds.
54350 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54351 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54352 (to_hour): First arg is now long int, not int.
54353 (to_year): Returns long int, not int.
54354 Don't treat year -70 like 70.
54355 (tm_diff): Returns long int, not int.
54356 (lookup_word): Use bool instead of int when appropriate.
54357 (yylex): Use size_t for count, not int.
54358 Detect overflow when parsing large integer constants.
54359 Add support for fractions.
54360 (get_date): Make pointers 'const' if possible.
54361 Use more-portable code to detect integer overflow.
54362 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54363 Don't use ctime; it's not reliable if the year has >4 digits.
54365 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54366 This is for compatibility with BSD.
54368 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54369 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54370 From coreutils' system.h.
54372 * lib/userspec.c: Don't include "posixver.h".
54373 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54374 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54375 compatible extension. Simplify code by removing a boolean int
54376 that was always nonzero if a string was nonnull.
54378 2004-03-30 Jim Meyering <jim@meyering.net>
54380 Merge from coreutils.
54382 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54383 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54384 on some systems one must include <grp.h> before it.
54385 Reported by Christian Krackowizer.
54387 2004-03-30 Jim Meyering <jim@meyering.net>
54389 Merge from coreutils.
54391 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54393 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54394 an empty input stream.
54396 * lib/readtokens.c: Include <stdbool.h>.
54397 (readtoken): Use `size_t' rather than int/long.
54398 All callers adjusted.
54399 Use `bool' rather than `int' where appropriate.
54400 Use memset rather than an explicit loop.
54401 Use x2nrealloc rather than xrealloc.
54402 Allow the use of `\0' as a delimiter.
54403 (readtokens): Likewise.
54404 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54406 2004-03-30 Jim Meyering <jim@meyering.net>
54408 * m4/realloc.m4: Remove file, since now it does no more than
54409 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54410 the `configure.ac' section of module/realloc.
54411 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54413 2004-03-30 Bruno Haible <bruno@clisp.org>
54415 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54418 2004-03-29 Paul Eggert <eggert@twinsun.com>
54420 Merge changes to getloadavg.c from coreutils and Emacs.
54422 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54423 Define to an expression, not to the empty string.
54424 Include cloexec.h and xalloc.h.
54425 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54426 Use set_cloexec_flag rather than rolling our own.
54427 * lib/cloexec.c, lib/cloexec.h: New files.
54429 2004-03-29 Paul Eggert <eggert@twinsun.com>
54431 * m4/cloexec.m4: New file.
54433 2004-03-18 Paul Eggert <eggert@twinsun.com>
54435 * lib/getopt.h: Sync with libc CVS.
54437 2004-03-18 Paul Eggert <eggert@twinsun.com>
54438 Bruno Haible <bruno@clisp.org>
54440 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54443 2004-03-18 Paul Eggert <eggert@twinsun.com>
54444 Bruno Haible <bruno@clisp.org>
54446 * lib/mbswidth.h: Include <wchar.h> only if
54447 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54449 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54451 2004-03-09 Paul Eggert <eggert@twinsun.com>
54453 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54454 Sync with libc CVS.
54455 * lib/getopt_int.h: New file, also synced from libc.
54457 2004-03-09 Paul Eggert <eggert@twinsun.com>
54459 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54460 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54461 Bring back getopt.c, getopt.h, getopt1.c.
54463 2004-03-07 Paul Eggert <eggert@twinsun.com>
54465 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54466 All uses changed. Check for sa_sigaction member; this fixes
54467 a bug first reported by Jason Andrade in
54468 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54470 2004-03-07 Paul Eggert <eggert@twinsun.com>
54472 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54473 '#if' expressions. Unlike the code it replaces, it does not
54474 depend on (defined _SC_PAGESIZE). However, it does depend on
54475 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54476 first reported by Jason Andrade in
54477 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54479 2004-02-25 Simon Josefsson <jas@extundo.com>
54481 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54483 2004-02-25 Simon Josefsson <jas@extundo.com>
54485 * lib/strdup.h: New file.
54486 * lib/strdup.c: Include it.
54487 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54488 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54490 2004-02-23 Karl Berry <karl@gnu.org>
54492 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54493 (from fencepost.gnu.org:/gd/gnuorg).
54495 2004-02-23 Karl Berry <karl@gnu.org>
54497 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54498 * config/srclist.txt: add maintain/standards documents.
54500 2004-02-18 Bruno Haible <bruno@clisp.org>
54502 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54503 Reported by Derek Robert Price <derek@ximbiot.com>.
54505 2004-02-16 Karl Berry <karl@gnu.org>
54507 * config/mkinstalldirs, install-sh: update from automake.
54509 2004-02-06 Karl Berry <karl@gnu.org>
54511 * m4/po.m4: update from gettext 0.14.1.
54513 2004-02-06 Karl Berry <karl@gnu.org>
54515 * lib/config.charset: update from gettext 0.14.1.
54517 2004-02-05 Paul Eggert <eggert@twinsun.com>
54519 Add comments and code, prompted by suggestions from Bruno Haible
54521 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54522 describing the enum quoting_style values.
54523 * lib/quotearg.c (quotearg_alloc): New function.
54524 (quotearg_buffer_restyled): Treat lone { and } as special.
54525 Treat = as special. Work around bug with older shells
54526 that "see" a '\' that is really the 2nd byte of a multibyte char.
54527 Quote empty string with shell_quoting_style.
54529 2004-02-03 Bruno Haible <bruno@clisp.org>
54531 * m4/pipe.m4: New file, from GNU gettext.
54533 2004-02-03 Bruno Haible <bruno@clisp.org>
54535 * lib/pipe.h: New file, from GNU gettext.
54536 * lib/pipe.c: New file, from GNU gettext.
54538 2004-01-27 Bruno Haible <bruno@clisp.org>
54540 * m4/execute.m4: New file, from GNU gettext.
54542 2004-01-27 Bruno Haible <bruno@clisp.org>
54544 * lib/execute.h: New file, from GNU gettext.
54545 * lib/execute.c: New file, from GNU gettext.
54546 * lib/w32spawn.h: New file, from GNU gettext.
54548 2004-01-24 Paul Eggert <eggert@twinsun.com>
54550 Merge from diffutils.
54552 * lib/file-type.c (file_type): Add typed memory objects.
54553 * lib/file-type.h (S_TYPEISTMO): New macro.
54555 * lib/c-stack.h (c_stack_action): Remove argv argument.
54556 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54557 (die): Don't calculate message unless segv_action returns.
54558 (get_stack_location, min_address_from_argv, max_address_from_argv,
54559 volatile stack_base, volatile_stack_size): Remove.
54560 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54561 that every segmentation violation is a stack overflow. (Ouch!)
54562 See Debian bug 136249 (still outstanding) for more info about why
54563 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54565 2004-01-24 Paul Eggert <eggert@twinsun.com>
54567 Exit-status fix from coreutils.
54569 Use exit_failure consistently in place of EXIT_FAILURE,
54570 so that program exit statuses are consistent on failure.
54572 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54573 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54574 * lib/argmatch.h: Comment fix to match the above.
54575 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54576 Now a macro referring to exit_failure, instead of a separate
54577 variable. Include "exitfail.h" to get it.
54578 * lib/xstrtol.h: Include "exitfail.h".
54579 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54581 * lib/long-options.c (parse_long_options): Use prototype
54582 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54585 2004-01-21 Jim Meyering <jim@meyering.net>
54587 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54588 so as not to conflict with a different-sized __mktime_internal
54589 function in GNU libc.
54590 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54591 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54593 2004-01-20 Karl Berry <karl@gnu.org>
54595 * config/config.guess: update from config.
54597 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54599 2004-01-20 Bruno Haible <bruno@clisp.org>
54601 Safer stack allocation.
54602 * lib/setenv.c: Include allocsa.h.
54603 (alloca): Remove fallback definition.
54604 (freea): Remove macro.
54605 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54608 2004-01-20 Bruno Haible <bruno@clisp.org>
54610 * m4/eealloc.m4: New file, from GNU gettext.
54612 2004-01-20 Bruno Haible <bruno@clisp.org>
54614 * m4/allocsa.m4: New file, from GNU gettext.
54616 2004-01-20 Bruno Haible <bruno@clisp.org>
54618 * lib/xallocsa.h: New file, from GNU gettext.
54619 * lib/xallocsa.c: New file, from GNU gettext.
54621 2004-01-20 Bruno Haible <bruno@clisp.org>
54623 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54625 2004-01-20 Bruno Haible <bruno@clisp.org>
54627 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54628 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54631 2004-01-20 Bruno Haible <bruno@clisp.org>
54633 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54636 2004-01-20 Bruno Haible <bruno@clisp.org>
54638 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54640 2004-01-20 Bruno Haible <bruno@clisp.org>
54642 * lib/eealloc.h: New file.
54644 2004-01-20 Bruno Haible <bruno@clisp.org>
54646 * lib/binary-io.h: Avoid warnings on Cygwin.
54648 2004-01-20 Bruno Haible <bruno@clisp.org>
54650 * lib/allocsa.h: New file, from GNU gettext.
54651 * lib/allocsa.c: New file, from GNU gettext.
54653 2004-01-18 Karl Berry <karl@gnu.org>
54655 * doc/gpl.texi, doc/lgpl.texi: new files.
54657 2004-01-18 Karl Berry <karl@gnu.org>
54659 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54660 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54662 2004-01-15 Paul Eggert <eggert@twinsun.com>
54664 Merge from coreutils.
54666 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54667 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54668 (gl_DEFAULT_POSIX2_VERSION): Move
54669 the documentation from 'configure' into 'config.hin',
54670 so that 'configure --help' isn't burdened by it and
54671 we don't have to worry about its formatting there.
54672 Reword the documentation so that it's more succinct
54673 and can be run together into a single paragraph.
54674 * m4/same.m4 (gl_SAME): Check for pathconf.
54676 2004-01-15 Paul Eggert <eggert@twinsun.com>
54678 Merge from coreutils.
54680 * lib/posixver.c: Include posixver.h.
54682 * lib/same.c: Include <stdbool.h>, <limits.h>.
54683 (_POSIX_NAME_MAX): Define if not defined.
54685 (same_name): If file names are silently truncated, report
54686 that the file names are the same if they are the same after
54687 the silent truncation.
54689 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54690 conversion function.
54691 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54692 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54695 2004-01-15 Jim Meyering <jim@meyering.net>
54697 Merge from coreutils.
54699 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54700 if no library is required.
54701 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54702 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54703 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54704 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54705 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54706 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54707 value, $ac_cv_search_crypt, if it's "none required".
54708 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54709 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54710 not gl_FUNC_GETLOADAVG.
54711 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54712 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54714 2004-01-15 Jim Meyering <jim@meyering.net>
54716 Merge from coreutils.
54718 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54719 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54720 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54722 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54723 optional configure-time default.
54725 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54727 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54729 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54731 Merge from coreutils.
54733 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54734 value, $ac_cv_search_nanosleep, if it's "none required".
54736 2004-01-14 Paul Eggert <eggert@twinsun.com>
54738 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54739 with like-named macro in fnmatch.c.
54740 (EXT): Use an internal constant instead.
54742 Merge fnmatch patches from glibc.
54743 * lib/fnmatch.c (mbsinit): Remove define.
54744 Add libc_hidden_ver (__fnmatch, fnmatch).
54745 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54746 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54748 2004-01-14 Karl Berry <karl@gnu.org>
54750 * config/install-sh: update from automake.
54752 2004-01-13 Karl Berry <karl@gnu.org>
54754 * config/install-sh: update from automake.
54756 2004-01-09 Karl Berry <karl@gnu.org>
54758 * config/install-sh: update from automake.
54760 2004-01-05 Karl Berry <karl@gnu.org>
54762 * config/config.{sub,guess}: update from config.
54764 2003-12-31 Karl Berry <karl@gnu.org>
54766 * config/depcomp: update from automake.
54768 2003-12-14 Karl Berry <karl@gnu.org>
54770 * lib/config.charset: update from gettext-runtime.
54772 2003-12-03 Paul Eggert <eggert@twinsun.com>
54774 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54775 Bug reported by Alfred M. Szmidt.
54777 2003-12-03 Bruno Haible <bruno@clisp.org>
54779 * m4/gettext.m4: Upgrade from gettext-0.13.
54780 * m4/po.m4: Upgrade from gettext-0.13.
54781 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54782 * m4/intmax.m4: New file, from gettext-0.13.
54783 * m4/printf-posix.m4: New file, from gettext-0.13.
54785 2003-11-29 Karl Berry <karl@gnu.org>
54787 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54789 2003-11-25 Paul Eggert <eggert@twinsun.com>
54790 Bruno Haible <bruno@clisp.org>
54792 * lib/printf-parse.h: Don't include sys/types.h.
54793 (ARG_NONE): New macro.
54794 (char_directive): Change type of *arg_index fields to size_t.
54795 * lib/printf-parse.c: Don't include sys/types.h.
54796 (SSIZE_MAX): Remove macro.
54797 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54798 Remove unnecessary overflow check.
54799 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54802 2003-11-25 Bruno Haible <bruno@clisp.org>
54804 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54806 2003-11-25 Bruno Haible <bruno@clisp.org>
54808 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54811 2003-11-24 Paul Eggert <eggert@twinsun.com>
54813 * modules/alloca: Remove dependency on xalloc.
54815 2003-11-24 Paul Eggert <eggert@twinsun.com>
54817 * lib/alloca.c: Remove dependency on xalloc module.
54818 (xalloc_die): Remove.
54819 (memory_full) [!defined emacs]: New macro.
54820 [!defined emacs]: Don't include xalloc.h.
54821 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54822 address arithmetic overflows. Change datatypes a bit to avoid
54825 2003-11-22 Jim Meyering <jim@meyering.net>
54827 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54830 2003-11-21 Karl Berry <karl@gnu.org>
54832 * config/config.{sub,guess}: update from config.
54834 2003-11-18 Karl Berry <karl@gnu.org>
54836 * config/config.{sub,guess}: update from config.
54838 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54840 2003-11-17 Paul Eggert <eggert@twinsun.com>
54842 * README: Mention that S+T cannot overflow if S is the size of
54843 an existing object and T is sufficiently small.
54845 2003-11-17 Jim Meyering <jim@meyering.net>
54847 On systems without utime and without a utimes function capable of
54848 dealing with a NULL struct utimbuf* argument, this utime replacement
54849 could -- in unusual circumstances -- leak a file descriptor.
54850 * lib/utime.c: Include <unistd.h> and <errno.h>.
54851 (utime_null): Be sure to close `fd' and to preserve errno.
54852 Reported by Geoff Collyer via Arnold Robbins.
54854 2003-11-17 Bruno Haible <bruno@clisp.org>
54856 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54857 (Depends-on): Add xsize.
54859 2003-11-17 Bruno Haible <bruno@clisp.org>
54861 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54863 2003-11-17 Bruno Haible <bruno@clisp.org>
54865 * lib/vasnprintf.c (alloca): Remove fallback definition.
54866 (freea): Remove definition.
54867 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54868 Reported by Paul Eggert.
54870 2003-11-16 Paul Eggert <eggert@twinsun.com>
54871 Bruno Haible <bruno@clisp.org>
54873 Protect against address arithmetic overflow.
54874 * lib/printf-args.h: Include stddef.h.
54875 (arguments): Change type of field 'count' to size_t.
54876 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54877 'unsigned int' where appropriate.
54878 * lib/printf-parse.h: Include sys/types.h.
54879 (char_directive): Change type of *arg_index fields to ssize_t.
54880 (char_directives): Change type of fields 'count', max_*_length to
54882 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54883 (SSIZE_MAX): Define fallback value.
54884 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54885 instead of 'int' where appropriate. Check a_allocated, d_allocated
54886 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54887 * lib/vasnprintf.c: Include xsize.h.
54888 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54889 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54890 overflow. Avoid wraparound when converting a width or precision from
54893 2003-11-16 Bruno Haible <bruno@clisp.org>
54895 Update from GNU gettext.
54896 * lib/printf-parse.c: Generalize to it can be compiled for wide
54898 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54899 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54900 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54901 SNPRINTF): New macros.
54902 Don't include <alloca.h> if the file is used inside libintl.
54903 (local_wcslen): New function, for Solaris 2.5.1.
54904 (VASNPRINTF): Use it instead of wcslen.
54906 2003-11-16 Bruno Haible <bruno@clisp.org>
54908 * lib/xsize.h (xmax): New function.
54909 (xsum, xsum3, xsum4): Declare as "pure" functions.
54911 2003-11-12 Paul Eggert <eggert@twinsun.com>
54913 * modules/xalloc (Files): Undo latest change, since xalloc.h
54914 no longer needs SIZE_MAX or PTRDIFF_MAX.
54916 2003-11-12 Paul Eggert <eggert@twinsun.com>
54918 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54921 2003-11-12 Paul Eggert <eggert@twinsun.com>
54923 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54924 "return", to pacify some unknown compiler. Problem reported
54925 by Joerg Schilling.
54927 2003-11-12 Paul Eggert <eggert@twinsun.com>
54929 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54930 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54931 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54932 heuristic is just as accurate as far as we know, and it removes a
54933 dependency on size_max.m4 and ptrdiff_max.m4.
54935 2003-11-11 Bruno Haible <bruno@clisp.org>
54937 * modules/xsize (Files): Add m4/size_max.m4.
54938 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54940 2003-11-11 Bruno Haible <bruno@clisp.org>
54942 * m4/size_max.m4: New file.
54943 * m4/ptrdiff_max.m4: New file.
54944 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54945 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54946 (gl_XALLOC): Invoke it.
54948 2003-11-11 Bruno Haible <bruno@clisp.org>
54950 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54951 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54954 2003-11-10 Paul Eggert <eggert@twinsun.com>
54956 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54957 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54958 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54960 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54961 not (size_t) -1, since it's defined here.
54963 2003-11-09 Karl Berry <karl@gnu.org>
54965 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54967 2003-11-06 Paul Eggert <eggert@twinsun.com>
54969 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54970 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54971 Reject sizes of exactly SIZE_MAX bytes.
54972 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54973 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54975 2003-11-05 Bruno Haible <bruno@clisp.org>
54977 * lib/xsize.h: Include limits.h, to avoid a possible collision with
54978 SIZE_MAX defined in <limits.h> on Solaris.
54980 2003-11-04 Jim Meyering <jim@meyering.net>
54982 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54983 variable names, rather than @VAR@.
54984 * modules/poll: Likewise.
54986 2003-11-04 Bruno Haible <bruno@clisp.org>
54988 * modules/xsize: New file.
54989 * modules/linebreak: Depend on xsize.
54990 * MODULES.html.sh (func_all_modules): Add xsize.
54992 2003-11-04 Bruno Haible <bruno@clisp.org>
54994 * m4/xsize.m4: New file.
54996 2003-11-04 Bruno Haible <bruno@clisp.org>
54998 * lib/xsize.h: New file.
54999 * lib/linebreak.c: Include xsize.h.
55000 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55001 argument for overflow.
55002 Suggested by Paul Eggert.
55004 2003-11-03 Karl Berry <karl@gnu.org>
55006 * config/config.{guess,sub}: update from config.
55008 2003-11-03 Jim Meyering <jim@meyering.net>
55010 * modules/userspec (lib_SOURCES): Add userspec.h.
55011 (Include): Add "userspec.h".
55012 Improve description.
55014 2003-11-03 Jim Meyering <jim@meyering.net>
55016 * lib/userspec.c: Include "userspec.h".
55017 * lib/userspec.h: New file.
55019 2003-11-03 Bruno Haible <bruno@clisp.org>
55021 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55023 2003-11-03 Bruno Haible <bruno@clisp.org>
55025 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55026 available, to avoid (extremely rare) race condition.
55027 Suggested by Paul Eggert.
55029 2003-11-02 Karl Berry <karl@gnu.org>
55031 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55033 2003-10-31 Paul Eggert <eggert@twinsun.com>
55035 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55036 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55037 (read_filesystem_list): Set and use me_type_malloced.
55038 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55039 whatever the type happens to be), for brevity and consistency.
55040 Check for size calculation overflow on Alphas running OSF/1.
55042 2003-10-31 Jim Meyering <jim@meyering.net>
55044 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55046 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55048 2003-10-30 Paul Eggert <eggert@twinsun.com>
55049 Bruno Haible <bruno@clisp.org>
55051 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55052 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55054 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55056 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55057 netbsd*-gnu*. Suggested by Robert Millan.
55059 2003-10-29 Paul Eggert <eggert@twinsun.com>
55061 * modules/group-member: Depend on stdbool.
55063 2003-10-29 Paul Eggert <eggert@twinsun.com>
55065 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55067 2003-10-29 Paul Eggert <eggert@twinsun.com>
55069 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55070 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55071 after the 'gnu' in these cases. This fixes some bugs in the
55072 previous change, and is based on suggestions by Robert Millan.
55074 2003-10-29 Paul Eggert <eggert@twinsun.com>
55076 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55077 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55079 * lib/quotearg.c (quotearg_n_options): Use it.
55080 * lib/group-member.c: Include <stdbool.h>.
55081 (free_group_info): Arg is now const *; don't free arg.
55082 (get_group_info): Now returns bool and accepts struct group_info *,
55083 rather than returning a malloc'ed struct group_info *.
55084 All uses changed. Check for overflow in internal size calculation.
55086 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55087 rather than xmalloc/xrealloc.
55088 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55089 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55090 conformance bug: the old code used a pointer after freeing the
55091 storage that it addressed.
55092 * lib/hash.c (hash_initialize): Simplify the code by using
55093 xalloc_oversized rather than doing it by hand.
55094 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55095 the buffer preserved. Use free and xmalloc instead.
55096 * lib/quotearg.c (quotearg_n_options): Likewise.
55097 Use a simpler test for size overflow. Don't use xalloc_oversized
55098 because unsigned int might be wider than size_t (!); this suggests
55099 that we should switch from unsigned int to size_t for slot numbers.
55101 2003-10-28 Paul Eggert <eggert@twinsun.com>
55103 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55104 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55105 NetBSD kernels. Requested by Richard Stallman.
55107 2003-10-27 Paul Eggert <eggert@twinsun.com>
55109 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55110 to allocate the returned structure. Do not allocate a subarray,
55111 as x2nrealloc will do that.
55112 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55113 instead of xnrealloc.
55114 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55116 2003-10-27 Bruno Haible <bruno@clisp.org>
55118 * lib/stdbool_.h: Better support for BeOS.
55120 2003-10-26 Paul Eggert <eggert@twinsun.com>
55122 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55125 2003-10-26 Paul Eggert <eggert@twinsun.com>
55127 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55128 callers that want to do their own size-overflow checking. Include
55129 <stdbool.h>, since xalloc_oversized returns bool.
55130 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55131 to use xalloc_oversized.
55133 Add two functions x2realloc, x2nrealloc, for programs that grow
55134 arrays dynamically by doubling their sizes.
55135 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55136 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55139 Port to C99 semantics for 'inline' of external functions.
55140 Bug reported by Bruno Haible.
55141 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55142 with the old contents of xnmalloc.
55143 (xnmalloc, xmalloc): Use it.
55144 (xnrealloc_inline): New static inline function,
55145 with the old contents of xnrealloc.
55146 (xnrealloc, xrealloc): Use it.
55148 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55151 2003-10-26 Karl Berry <karl@gnu.org>
55153 * config/srclist.txt (COPYING.DOC): no longer available from
55154 /gd/gnuorg; don't know where the ultimate source is.
55156 2003-10-25 Paul Eggert <eggert@twinsun.com>
55158 Fix several address-calculation bugs in the hash modules,
55159 plus some minor code cleanup.
55161 * lib/hash.h: Include <stdbool.h>, for bool.
55162 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55163 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55164 hash_get_n_entries, hash_get_max_bucket_length,
55165 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55166 hash_rehash): Use size_t rather than unsigned.
55167 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55168 hash_get_n_buckets_used, hash_get_n_entries,
55169 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55170 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55171 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55173 (SIZE_MAX): Define if not defined.
55174 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55175 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55177 Use const * when possible.
55178 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55179 (check_tuning): Fix bug: if tuning parameters were very close to
55180 0 or 1, rounding errors could have caused subscript violations.
55181 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55182 (hash_initialize): Add 'fail:' label
55183 to free table and return NULL, and use it to simplify code.
55184 Use calloc rather than clearing the storage ourself.
55185 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55186 buffer size calculations.
55187 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55188 Include <stddef.h>, for size_t.
55189 * lib/hash-pjw.c (hash_pjw): Likewise.
55190 Switch to method described by Bruno Haible.
55191 Include <limits.h>, for CHAR_BIT.
55192 (SIZE_BITS): New macro.
55194 2003-10-23 Paul Eggert <eggert@twinsun.com>
55196 * m4/getline.m4 (AM_FUNC_GETLINE):
55197 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55198 hosts. Problem reported by Derek Robert Price in
55199 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55200 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55201 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55203 2003-10-21 Paul Eggert <eggert@twinsun.com>
55205 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55206 ceiling the allocation at NMAX bytes rather than silently
55207 discarding input bytes before NMAX is reached. This makes
55208 a difference only if NMAX exceeds SIZE_MAX / 2.
55210 * lib/obstack.c: Merge from glibc.
55211 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55212 Add libc_hidden_def (_obstack_newchunk).
55213 (_obstack_free) [! defined _LIBC]: Remove.
55214 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55215 a clone of the function body.
55216 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55217 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55219 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55221 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55224 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55225 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55226 Don't use lvalue casts, as GCC plans to remove support for them
55227 in GCC 3.5. Reported by Joseph S. Myers. This bug
55228 was also present in the non-GCC version, indicating that this
55229 code had always been buggy and had never been widely used.
55230 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55231 Use the fast variant of each macro, rather than copying the
55232 definiens of the fast variant; that way, we'll be more likely to
55233 catch future bugs in the fast variants.
55235 2003-10-20 Bruno Haible <bruno@clisp.org>
55237 * modules/wait-process: New file.
55238 * MODULES.html.sh (func_all_modules): Add wait-process.
55240 2003-10-20 Bruno Haible <bruno@clisp.org>
55242 * m4/wait-process.m4: New file.
55244 2003-10-20 Bruno Haible <bruno@clisp.org>
55246 * lib/wait-process.h: New file, from GNU gettext.
55247 * lib/wait-process.c: New file, from GNU gettext.
55249 2003-10-19 Jim Meyering <jim@meyering.net>
55251 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55254 2003-10-18 Karl Berry <karl@gnu.org>
55256 * config/config.guess: update from config.
55258 2003-10-16 Paul Eggert <eggert@twinsun.com>
55260 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55261 (getgroups): First arg is int, not size_t.
55262 Don't let 'free' mangle errno.
55264 2003-10-16 Paul Eggert <eggert@twinsun.com>
55266 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55268 2003-10-16 Karl Berry <karl@gnu.org>
55270 * config/config.{guess,sub}: update from config.
55272 2003-10-16 Jim Meyering <jim@meyering.net>
55274 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55277 2003-10-15 Paul Eggert <eggert@twinsun.com>
55279 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55280 (SIZE_MAX): Remove.
55281 (new_exclude, add_exclude_file): Initial size no longer needs to
55283 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55284 our own address arithmetic overflow checking.
55286 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55287 (fnmatch): Do not alloca more than 2000 wide characters;
55288 instead, use malloc for large buffers.
55289 Check for address arithmetic overflow, and return -1
55290 with errno set to ENOMEM in that case.
55291 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55292 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55293 instead, return -1. Check for address arithmetic overflow.
55295 2003-10-14 Paul Eggert <eggert@twinsun.com>
55297 Handle invalid suffixes and overflow independently, so that
55298 callers can treat them independently as needed. Fix some bugs in
55299 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55300 suffix for a human-readable blocksize. The major caller-visible
55301 change is the addition of a new
55302 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55303 that both overflow and suffix chars were found.
55305 * lib/human.c (humblock): Don't check separately for invalid suffix
55306 char; that is xstrtoumax's job (now that its bug is fixed).
55307 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55308 INTMAX_MAX]: New macros.
55309 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55310 TYPE_MAXIMUM): New macros.
55311 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55312 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55313 if overflow occurs, as it's what __strtol does and it's more useful
55315 (__xstrtol): If __strtol reports some error other than ERANGE,
55316 reflect it to the caller as LONGINT_INVALID. If it reports
55317 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55318 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55319 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55321 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55322 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55323 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55324 [defined UINTMAX_MAX]: New macros.
55326 2003-10-14 Bruno Haible <bruno@clisp.org>
55328 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55330 2003-10-14 Bruno Haible <bruno@clisp.org>
55332 * m4/sig_atomic_t: New file, from GNU gettext.
55333 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55335 2003-10-14 Bruno Haible <bruno@clisp.org>
55337 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55338 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55339 Also use volatile where needed.
55341 2003-10-12 Paul Eggert <eggert@twinsun.com>
55343 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55344 Change maintainer from Bruno Haible to 'all'.
55346 2003-10-12 Paul Eggert <eggert@twinsun.com>
55348 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55350 2003-10-12 Paul Eggert <eggert@twinsun.com>
55352 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55353 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55354 and define in terms of the other primitives.
55355 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55356 (SIZE_MAX): Define if not already defined.
55357 (array_size_overflow): New function.
55358 (xalloc_die): Abort instead of exiting if 'error' returns.
55359 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55360 (xmalloc, xrealloc): Use them.
55361 (xcalloc): Check for address arithmetic overflow.
55362 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55363 a bit faster than strcpy.
55365 2003-10-10 Simon Josefsson <jas@extundo.com>
55367 * modules/argp (Depends-on): Add restrict and strcase.
55369 2003-10-10 Simon Josefsson <jas@extundo.com>
55371 * m4/argp.m4: Add AC_C_INLINE.
55373 2003-10-08 Paul Eggert <eggert@twinsun.com>
55375 Merge getpass from libc, plus a few fixes.
55377 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55378 Include <stdbool.h>.
55379 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55380 __fsetlocking to empty.
55381 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55382 do include <bits/libc-lock.h>.
55383 Do not include <fcntl.h>; not needed.
55384 [_LIBC]: Include <wchar.h>.
55385 (NOTCANCEL_MODE): New macro.
55386 (flockfile, funlockfile) [_LIBC]: New macros.
55387 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55388 [!_LIBC]: New macros.
55389 (call_fclose): New function.
55390 (getpass): Use it. Save tty stream separately; this simplifies the
55391 code and makes it more reliable if stdin happens to equal stdout.
55392 Invoke __fsetlocking on tty.
55393 Handle thread cancellation if needed.
55394 Namespace cleanup (use __tcgetattr, __getline).
55395 Use bool for Booleans.
55396 [USE_IN_LIBIO]: Handle wide streams.
55397 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55398 stream might go where.
55400 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55401 doesn't have to include <stdio.h> before us.
55402 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55403 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55404 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55405 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55406 if not declared, so that we can use getpass.c code from libc without
55408 (flockfile, ftrylockfile, funlockfile): New macros.
55410 2003-10-08 Paul Eggert <eggert@twinsun.com>
55412 * modules/getpass: Depend on stdbool.
55414 2003-10-08 Paul Eggert <eggert@twinsun.com>
55416 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55418 2003-10-07 Karl Berry <karl@gnu.org>
55420 * config/config.{guess,sub}: update from config.
55422 2003-10-06 Jim Meyering <jim@meyering.net>
55423 Bruno Haible <bruno@clisp.org>
55425 This lets translators provide better translations for the
55426 "Written by ..." part of --version output.
55427 * lib/version-etc.h: Include stdarg.h.
55428 (version_etc_copyright): Declare as readonly.
55429 (version_etc): Make this function variadic with a NULL-terminated list
55430 of author name strings.
55431 (version_etc_va): New declaration.
55432 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55433 (version_etc_copyright): Declare as readonly.
55434 (version_etc_va): New function. Provide a different translatable string
55435 for each possible number of authors < 10. Abbreviate when there are 10
55437 (version_etc): Make this function variadic. Call version_etc_va.
55438 Suggestion from Gary V. Vaughan.
55440 * lib/long-options.h (parse_long_options): Change prototype: the
55441 authors string is moved to the end and becomes variadic.
55442 * lib/long-options.c: Include stdarg.h.
55443 (parse_long_options): Make this function variadic, too.
55444 Call version_etc_va, not version_etc.
55446 2003-10-06 Bruno Haible <bruno@clisp.org>
55448 * modules/version-etc-2: Remove file.
55449 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55451 2003-10-06 Bruno Haible <bruno@clisp.org>
55453 * modules/fatal-signal: New file.
55454 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55456 2003-10-06 Bruno Haible <bruno@clisp.org>
55458 * m4/fatal-signal.m4: New file.
55459 * m4/signalblocking.m4: New file, from GNU gettext.
55461 2003-10-06 Bruno Haible <bruno@clisp.org>
55463 * lib/version-etc-2.h: Remove file.
55464 * lib/version-etc-2.c: Remove file.
55466 2003-10-06 Bruno Haible <bruno@clisp.org>
55468 * lib/fatal-signal.h: New file, from GNU gettext.
55469 * lib/fatal-signal.c: New file, from GNU gettext.
55471 2003-10-05 Paul Eggert <eggert@twinsun.com>
55473 * README: Rework advice for preventing empty .o files.
55474 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55477 2003-10-04 Karl Berry <karl@gnu.org>
55479 * lib/argp*: update from libc.
55481 2003-10-04 Karl Berry <karl@gnu.org>
55483 * config/config.{guess,sub}: update from config.
55485 2003-10-02 Bruno Haible <bruno@clisp.org>
55487 * modules/lchown (Include): Add lchown.h.
55488 * modules/time_r (Include): Use "..." syntax.
55489 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55491 2003-10-01 Simon Josefsson <jas@extundo.com>
55493 * MODULES.html.sh (func_all_modules): Move gethostname from section
55494 'based on' to section 'lacking' POSIX:2001.
55496 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55498 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55499 to output mode on the same stream.
55501 2003-09-29 Paul Eggert <eggert@twinsun.com>
55503 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55504 Fix arg typo in previous patch.
55506 2003-09-28 Jim Meyering <jim@meyering.net>
55508 * lib/error.c: Correct cpp indentation.
55510 2003-09-27 Paul Eggert <eggert@twinsun.com>
55512 * modules/free: New file.
55514 2003-09-27 Paul Eggert <eggert@twinsun.com>
55516 * m4/free.m4: New file.
55518 2003-09-27 Paul Eggert <eggert@twinsun.com>
55520 * lib/minmax.h (MIN, MAX)
55521 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55522 Omit the special code that used __typeof__, since we worry that
55523 it could be more trouble than it's worth. See:
55524 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55525 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55527 * lib/free.c: New file.
55529 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55531 Trivial fixes to Makefile.am parts of module listings.
55532 * modules/strstr: Append strstr.h to lib_SOURCES.
55533 * modules/strcase: Likewise, for strcase.h.
55535 2003-09-27 Karl Berry <karl@gnu.org>
55537 * config/mkinstalldirs: update from automake.
55539 2003-09-26 Paul Eggert <eggert@twinsun.com>
55541 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55542 (error_tail): Do not loop, reallocating temporary buffer, since
55543 the output cannot contain more wide characters than the input
55544 contains bytes, the size must be big enough already. This avoids
55545 one potential size overflow calculation. Check for size overflow
55546 when calculating temporary buffer size. Free temporary buffer
55547 when done, if it was allocated with malloc; this plugs a memory
55548 leak. Remove casts from void * to pointers, that are no longer
55549 needed now that we're assuming C89 or better.
55551 Merge error changes from glibc.
55553 * lib/error.c, error.h: Update copyright notice header to match glibc.
55554 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55555 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55556 Disable cancellation while printing error.
55557 * lib/error.h: Prepend __ to parameter names.
55559 2003-09-26 Jim Meyering <jim@meyering.net>
55561 * lib/error.c (error_tail): Move some declarations
55562 into inner scope where the local variables are used.
55564 2003-09-26 Bruno Haible <bruno@clisp.org>
55566 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55568 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55570 2003-09-26 Bruno Haible <bruno@clisp.org>
55572 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55573 (stpncpy): Define as alias for gnu_stpncpy.
55574 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55576 2003-09-25 Simon Josefsson <jas@extundo.com>
55578 * lib/xgetdomainname.h: New file.
55579 * lib/xgetdomainname.c: New file.
55581 2003-09-25 Simon Josefsson <jas@extundo.com>
55582 Bruno Haible <bruno@clisp.org>
55584 * modules/getdomainname: New file.
55585 * modules/xgetdomainname: New file.
55586 * MODULES.html.sh (func_all_modules): Add getdomainname,
55589 2003-09-25 Simon Josefsson <jas@extundo.com>
55590 Bruno Haible <bruno@clisp.org>
55592 * m4/getdomainname.m4: New file.
55594 2003-09-25 Simon Josefsson <jas@extundo.com>
55595 Bruno Haible <bruno@clisp.org>
55597 * lib/getdomainname.h: New file.
55598 * lib/getdomainname.c: New file.
55600 2003-09-25 Karl Berry <karl@gnu.org>
55602 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55604 2003-09-25 Karl Berry <karl@gnu.org>
55606 * config/install-sh: update from automake.
55608 2003-09-25 Bruno Haible <bruno@clisp.org>
55610 * modules/version-etc-2: New file, from modules/version-etc with
55612 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55614 2003-09-25 Bruno Haible <bruno@clisp.org>
55616 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55617 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55619 2003-09-24 Simon Josefsson <jas@extundo.com>
55621 * modules/xgethostname: Add xgethostname.h.
55623 2003-09-24 Paul Eggert <eggert@twinsun.com>
55625 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55626 the buffer associated with the argument. Bug reported by
55629 2003-09-24 Paul Eggert <eggert@twinsun.com>
55631 * README: Document assumptions that 'int' is at least 32 bits
55632 wide, that integer arithmetic is 2's complement without overflow,
55633 that there are no holes in integer values, that adding sizes of
55634 two nonoverlapping objects can't overflow, and that all-bits-zero
55635 yields scalar zero. Fix spelling and capitalization typos.
55637 2003-09-19 Karl Berry <karl@gnu.org>
55639 * lib/argp.h: update from libc.
55641 2003-09-17 Paul Eggert <eggert@twinsun.com>
55643 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55644 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55645 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55647 2003-09-17 Paul Eggert <eggert@twinsun.com>
55649 * gnulib-tool: Use "test -h", not "test -L", for portability
55650 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55651 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55652 (sed_extract_prog): Issue s commands one-by-one, rather than
55653 using \| in one s command.
55655 2003-09-16 Paul Eggert <eggert@twinsun.com>
55657 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55658 input error, instead of returning NULL the next time we are called
55659 (and therefore losing track of errno).
55661 2003-09-16 Bruno Haible <bruno@clisp.org>
55663 * gnulib-tool (func_create_testdir): Warn about duplicated
55666 2003-09-15 Paul Eggert <eggert@twinsun.com>
55668 * modules/argmatch, modules/fatal, modules/obstack,
55669 modules/xalloc, modules/xgethostname: Sort dependencies by
55670 importance, not alphabetically.
55672 2003-09-15 Paul Eggert <eggert@twinsun.com>
55674 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55675 fails, so that the caller gets the proper errno.
55677 * lib/readutmp.c (read_utmp): Likewise.
55678 Check for fstat error. Close stream and free storage
55681 2003-09-14 Karl Berry <karl@gnu.org>
55683 * config/srclist.txt (strdup.c): disable for c89 changes.
55685 2003-09-14 Jim Meyering <jim@meyering.net>
55687 * lib/getloadavg.c: Correct cpp indentation.
55688 * lib/strdup.c: Likewise.
55689 * lib/vasnprintf.c: Likewise.
55691 2003-09-14 Bruno Haible <bruno@clisp.org>
55693 * modules/fwriteerror: New file.
55694 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55696 2003-09-14 Bruno Haible <bruno@clisp.org>
55698 * lib/fwriteerror.h: New file.
55699 * lib/fwriteerror.c: New file.
55701 2003-09-12 Paul Eggert <eggert@twinsun.com>
55703 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55704 modules/xgethostname, modules/xalloc: Depend on exit.
55706 2003-09-12 Paul Eggert <eggert@twinsun.com>
55708 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55710 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55711 and AC_MINIX, too, so that their extensions are available.
55713 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55714 This macro has been superseded by gl_BACKUPFILE.
55716 More patches to assume C89 or better.
55718 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55720 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55722 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55723 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55724 Include <string.h>, <stdlib.h> unconditionally.
55725 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55726 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55727 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55728 headers or for string.h.
55729 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55732 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55734 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55735 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55736 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55737 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55738 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55739 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55741 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55742 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55743 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55745 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55746 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55747 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55750 2003-09-12 Paul Eggert <eggert@twinsun.com>
55752 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55753 * lib/obstack.c [!defined _LIBC]: Likewise.
55754 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55755 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55756 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55758 More changes to assume C89 or better.
55760 * lib/error.c (error_tail): Assume vprintf.
55762 * lib/argmatch.c (getenv): Remove decl.
55763 * lib/progreloc.c (get_full_program_name): Define via prototype.
55764 * lib/setenv.c (clearenv): Likewise.
55765 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55767 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55768 (malloc, memcpy): Remove decls.
55769 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55770 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55771 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55772 (memcpy): Remove macro.
55773 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55774 (__P): Remove. All uses removed.
55775 (PTR): Remove. All uses changed to void *.
55776 (CHAR_BIT, NULL): Remove.
55777 (spaces, zeros, memset_space, memset_zero)
55778 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55780 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55781 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55782 Define with prototype.
55783 Remove now-unnecessary prototype decl.
55784 (extra_args_spec): Assume ANSI C. All uses changed.
55785 (extra_args_spec_iso): Remove.
55786 (my_strftime, emacs_strftimeu): Define via prototype.
55787 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55789 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55790 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55791 (strtoul, strtol): Remove decls.
55792 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55794 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55795 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55796 (LOCALE_PARAM_PROTO): New macro.
55797 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55798 (INTERNAL (strtol), strtol): Define with a prototype.
55799 (PARAMS): Remove. All uses removed.
55800 * lib/tempname.c: Include <string.h> unconditionally.
55801 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55802 * lib/xgethostname.c (main): Define with a prototype.
55803 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55804 Include <stdlib.h> unconditionally.
55805 (calloc, malloc, realloc, free): Remove decls.
55806 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55807 Include <stdlib.h> unconditionally. Sort include file names.
55809 (xstrtod): Define with a prototype.
55810 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55811 (strtol, strtoul): Remove decls.
55813 2003-09-11 Paul Eggert <eggert@twinsun.com>
55815 More patches to assume C89 or better.
55816 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55817 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55818 string.h, memchr, STDC_HEADERS.
55820 2003-09-11 Paul Eggert <eggert@twinsun.com>
55822 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55823 Include <stdlib.h>, <string.h> unconditionally.
55824 Remove now-unnecessary cast to char *.
55825 * lib/strnlen.c: Include <string.h> unconditionally.
55826 * lib/yesno.c (yesno): Define with a prototype.
55828 2003-09-11 Bruno Haible <bruno@clisp.org>
55830 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55832 2003-09-10 Jim Meyering <jim@meyering.net>
55834 * lib/error.c: Correct indentation of cpp directives.
55836 2003-09-10 Bruno Haible <bruno@clisp.org>
55838 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55839 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55840 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55841 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55842 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55843 <stdlib.h> and <string.h> checks.
55844 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55845 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55847 2003-09-10 Bruno Haible <bruno@clisp.org>
55849 * lib/strcspn.c: Include <string.h> unconditionally.
55850 * lib/strpbrk.c: Include <string.h> unconditionally.
55851 * lib/strstr.c: Include <string.h> unconditionally.
55852 * lib/unicodeio.c: Include <string.h> unconditionally.
55853 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55854 * lib/unsetenv.c: Likewise.
55855 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55856 * lib/yesno.c: Include <stdlib.h> unconditionally.
55857 (rpmatch): Add prototype.
55859 2003-09-09 Paul Eggert <eggert@twinsun.com>
55861 More patches to assume C89 or better.
55862 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55863 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55864 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55866 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55868 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55870 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55872 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55873 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55874 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55876 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55877 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55879 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55881 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55882 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55883 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55884 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55885 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55886 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55888 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55889 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55890 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55891 C headers, or for string.h.
55892 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55893 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55894 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55895 headers, memory.h, stdlib.h, string.h, strings.h.
55896 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55897 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55898 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55900 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55901 headers, memory.h, string.h.
55902 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55903 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55905 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55907 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55908 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55909 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55910 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55911 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55913 2003-09-09 Paul Eggert <eggert@twinsun.com>
55917 * lib/acosl.c (main): Use a prototype.
55918 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55921 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55923 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55924 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55925 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55927 * lib/getopt.c (const): Remove macro.
55928 Include <string.h> unconditionally.
55929 (my_index): Remove; all uses changed to strchr.
55930 (strlen): Remove decl.
55931 (exchange): Remove forward decl; no longer needed.
55932 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55933 Define with prototype.
55934 * lib/getopt1.c (const): Remove macro.
55935 (getopt_long, getopt_long_only, main): Define with prototype.
55937 * lib/getugroups.c: Include <string.h> unconditionally.
55939 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55940 (getusershell, setusershell, endusershell, readname, main):
55941 Define with prototypes.
55943 * lib/group-member.c: Include group-member.h first.
55944 Include <stdlib.h> unconditionally.
55946 * lib/hard-locale.c: Include hard-locale.h first.
55947 Include <stdlib.h>, <string.h> unconditionally.
55949 * lib/hash.c (free, malloc): Remove decls.
55950 Include <stdlib.h> unconditionally.
55952 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55953 (getenv): Do not declare.
55955 * lib/idcache.c: Include <string.h> unconditionally.
55957 * lib/long-options.c: Include long-options.h first, to test interface.
55958 Include <stdlib.h> unconditionally.
55960 * lib/makepath.c: Include makepath.h first, to test interface.
55961 Include <stdlib.h> and <string.h> unconditionally.
55963 * lib/linebuffer.c: Include <stdlib.h>.
55964 (free): Remove decl.
55966 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55967 stddef.h. rpl_malloc returns void *, not char *.
55968 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55971 * lib/md5.h: Include <limits.h> unconditionally.
55972 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55973 (__P): Remove; all uses removed.
55974 * lib/md5.c: Include "md5.h" first.
55975 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55976 md5_buffer, md5_process_bytes, md5_process_block):
55977 Define with prototypes.
55978 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
55979 * lib/sha.c: Include "sha.h" first.
55980 Include <stdlib.h>, <string.h> unconditionally.
55982 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55983 * lib/memcmp.c (__ptr_t): Likewise.
55984 * lib/memrchr.c (__ptr_t): Likewise.
55985 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55986 Include <string.h> unconditionally.
55987 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55988 * lib/memchr.c: Include <stdlib.h> unconditionally.
55989 * lib/memchr.c (LONG_MAX): Remove.
55990 * lib/memrchr.c (LONG_MAX): Likewise.
55991 * lib/memchr.c (__memchr): Define via a prototype.
55992 * lib/memrchr.c (__memrchr): Likewise.
55993 * lib/memcmp.c (__P): Remove, and remove all uses.
55994 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55995 Remove forward decls; no longer needed.
55996 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55997 Use types required by C89 in prototype.
55999 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56000 * lib/savedir.c: Likewise.
56001 * lib/mkdir.c (free): Remove decl.
56002 * lib/rmdir.c (rmdir): Define with a prototype.
56003 * lib/savedir.c: Include savedir.h first, to test interface.
56005 * lib/mktime.c (STDC_HEADERS): Remove.
56006 Include <stdlib.h>, <string.h> unconditionally.
56008 * lib/modechange.c: Include <stdlib.h> unconditionally.
56009 (malloc): Remove decl.
56011 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56012 (free): Remove decl.
56014 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56015 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56016 (This type really should be intptr_t, but that's a C99ism.)
56017 (_obstack_memcpy): Remove: all uses changed to memcpy.
56018 Include <string.h> unconditionally.
56019 (struct obstack): Assume __STDC__ for types of members
56020 chunkfun, freefun, extra_arg.
56021 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56022 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56023 obstack_begin, obstack_specify_allocation,
56024 obstack_specify_allocation_with_arg, obstack_chunkfun,
56025 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56026 Remove unprototyped decls and the macros that use them.
56027 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56028 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56029 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56030 (defined __STDC__ && __STDC__)]:
56031 Remove nonprototyped code.
56032 Include <stdlib.h> unconditionally.
56033 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56034 _obstack_allocated_p, _obstack_free, obstack_free,
56035 _obstack_memory_used, print_and_abort):
56036 Define using prototypes.
56037 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56038 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56039 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56040 obstack_next_free, obstack_object_size, obstack_room) [0]:
56041 Remove unused, unprototyped code.
56043 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56045 * lib/physmem.c (physmem_total, physmem_available, main): Define
56048 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56049 (main): Define with a prototype.
56051 * lib/posixver.c (getenv): Remove decl.
56053 * lib/putenv.c (malloc): Returns void *, not char *.
56054 Include <string.h> unconditionally.
56055 (strchr, memcpy, NULL): Do not define.
56057 * lib/readtokens.c: Include readtokens.h first, to test interface.
56058 Include <stdlib.h>, <string.h> unconditionally.
56059 (init_tokenbuffer): Define with a prototype.
56061 * lib/regex.c (PARAMS): Remove. All uses removed.
56062 All uses of _RE_ARGS removed, too.
56063 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56065 (bzero): Assume memset exists.
56066 (memcmp, memcpy, NULL): Remove.
56067 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56068 char, or assignments to local vars of type signed char.
56069 (init_syntax_once, PREFIX(extract_number_and_incr),
56070 PREFIX(print_partial_compiled_pattern),
56071 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56072 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56073 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56074 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56075 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56076 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56077 wcs_compile_range, byte_compile_range, truncate_wchar,
56078 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56079 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56080 count_mbs_length, wcs_re_match_2_internal,
56081 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56082 PREFIX(alt_match_null_string_p),
56083 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56084 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56085 regfree, PREFIX(extract_number)): Define with prototype. Remove
56086 now-unnecessary declaration, if any.
56087 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56089 Remove now-unnecessary casts among pointer types.
56090 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56092 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56093 (free): Remove decl.
56095 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56097 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56098 (free): Remove decl.
56100 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56101 * lib/xgetcwd.c: Likewise.
56103 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56104 (free): Remove decl.
56106 * lib/strchrnul.c (strchrnul): Define with a prototype.
56107 Fix bug: c_in was not converted to char before searching.
56109 The following changes are not K&R related:
56111 * lib/group-member.h: Include <sys/types.h>, so that this file is
56113 * lib/makepath.h: Likewise.
56115 * lib/getusershell.c (readname, default_index, line_size, readname):
56116 Use size_t, not int, for sizes.
56117 (readname): If the size overflows, report an error instead of
56120 2003-09-09 Paul Eggert <eggert@twinsun.com>
56122 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56125 2003-09-09 Paul Eggert <eggert@twinsun.com>
56127 * README: New section: portability guidelines.
56129 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56131 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56134 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56136 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56138 2003-09-08 Paul Eggert <eggert@twinsun.com>
56140 Assume C89 or better; remove K&R cruft.
56141 A few of these changes were first proposed by Derek Robert Price
56142 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56144 * lib/addext.c: Include <string.h> unconditionally.
56145 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56146 Don't declare getenv or malloc.
56148 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56149 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56151 (find_stack_direction, alloca): Use prototypes.
56153 * lib/atexit.c (atexit): Define using a prototype.
56155 * lib/basename.c, dirname.c, stripslash.c:
56156 Include <string.h> unconditionally.
56158 * lib/bcopy.c: Include <stddef.h>.
56159 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56161 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56163 * lib/error.h (error, error_at_line, error_print_progname)
56164 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56165 * lib/error.c: Include error.h first, to check interface.
56166 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56167 (VA_START): Remove; all uses changeed to va_start.
56168 (exit, strerror): Remove decls.
56169 (error_print_progname): Prototype uncondionally.
56170 Don't include <errno.h>; no longer needed.
56171 (private_strerror): Remove.
56172 (error_tail): Always define.
56173 (error, error_at_line): Assume C89 or better; always use prototypes.
56174 * lib/fatal.c: Include "fatal.h" first, to test interface.
56175 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56176 (VA_START): Remove; all uses changed to va_start.
56177 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56179 (exit): Remove decl.
56180 (fatal): Prototype unconditionally. Assume va_start works.
56181 Abort at end, to pacify gcc.
56183 * lib/euidaccess.c (main): Define with a prototype.
56185 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56187 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56189 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56191 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56192 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56193 (getenv): Remove decl.
56194 (fnmatch): Define using a prototype.
56195 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56196 (FCT): Define using a prototype.
56198 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56200 * lib/gethostname.c: Include <stddef.h>.
56201 (gethostname): Define with prototype. Length is size_t, not int.
56203 2003-09-08 Paul Eggert <eggert@twinsun.com>
56205 Assume C89 or better; remove K&R cruft.
56206 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56207 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56208 string.h, getenv, malloc.
56209 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56211 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56212 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56213 do not check for strerror.
56214 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56215 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56216 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56217 do not check for doprnt or vprintf.
56218 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56219 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56221 2003-09-08 Paul Eggert <eggert@twinsun.com>
56223 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56224 getversion.c should have been removed then, but was accidentally
56227 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56228 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56230 2003-09-08 Karl Berry <karl@gnu.org>
56232 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56233 config, forget about prep.
56235 * config/depcomp, missing: update from automake.
56237 2003-09-07 Paul Eggert <eggert@twinsun.com>
56239 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56240 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56242 2003-09-07 Paul Eggert <eggert@twinsun.com>
56244 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56245 copy_tm_result. Bug reported by Simon Josefsson in
56246 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56248 2003-09-06 Paul Eggert <eggert@twinsun.com>
56250 * m4/time_r.m4: New file.
56251 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56252 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56253 is. Check for timegm declaration.
56254 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56255 Do not check for gmtime_r.
56256 Replace mktime if __mktime_internal does not exist and if mktime
56257 hasn't been replaced already.
56259 2003-09-06 Paul Eggert <eggert@twinsun.com>
56261 * lib/time_r.c, lib/time_r.h: New files.
56263 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56265 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56266 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56268 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56270 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56271 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56272 Include <time_r.h>.
56274 * lib/timegm.c: Switch to glibc implementation, with the following
56276 [defined HAVE_CONFIG_H]: Include <config.h>.
56277 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56278 (__mktime_internal) [!defined _LIBC]: New decl.
56279 (__gmtime_r) [!defined _LIBC]: New macro and function.
56280 (timegm): Use a prototype, since gnulib assumes C89.
56281 Do not bother declaring tmp to be const, as it's not really usefu.
56282 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56283 (timegm): Declare only if HAVE_DECL_TIMEGM.
56285 2003-09-06 Paul Eggert <eggert@twinsun.com>
56287 * MODULES.html.sh (func_all_modules): Add time_r.
56288 * modules/time_r: New file.
56289 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56290 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56292 2003-09-03 Paul Eggert <eggert@twinsun.com>
56294 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56295 Bug reported by Lute Kamstra in
56296 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56298 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56299 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56300 course with correspondingly smaller numbers for tomorrow and
56301 yesterday. From Tadayoshi Funaba. Originally installed into
56302 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56305 2003-08-31 Simon Josefsson <jas@extundo.com>
56307 * modules/timegm: New file.
56308 * MODULES.html.sh (func_all_modules): Add timegm.
56310 2003-08-31 Simon Josefsson <jas@extundo.com>
56312 * m4/timegm.m4: New file.
56314 2003-08-31 Simon Josefsson <jas@extundo.com>
56316 * lib/timegm.h: New file.
56317 * lib/timegm.c: New file. Based on
56318 wget-1.8.2/src/http.c:mktime_from_utc.
56320 2003-08-31 Karl Berry <karl@gnu.org>
56322 * lib/argp.h: update from libc.
56324 2003-08-28 Bruno Haible <bruno@clisp.org>
56326 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56327 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56328 followed by '#define fnmatch fnmatch_posix' gives an error.
56330 2003-08-28 Bruno Haible <bruno@clisp.org>
56332 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56333 warning on QNX, which defines O_BINARY to 000000.
56335 2003-08-27 Jim Meyering <jim@meyering.net>
56337 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56338 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56339 would fail after 32. Reported by Danny Levinson. Details here:
56340 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56342 2003-08-24 Bruno Haible <bruno@clisp.org>
56344 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56345 MSVC7 <stdio.h> is included later.
56347 2003-08-22 Simon Josefsson <jas@extundo.com>
56349 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56351 2003-08-20 Karl Berry <karl@gnu.org>
56353 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56355 2003-08-20 Bruno Haible <bruno@clisp.org>
56357 * modules/progname: New file.
56358 * MODULES.html.sh (func_all_modules): Add progname.
56360 2003-08-20 Bruno Haible <bruno@clisp.org>
56362 * lib/progname.h: New file, from GNU gettext.
56363 * lib/progname.c: New file, from GNU gettext.
56364 * lib/progreloc.c: New file, from GNU gettext.
56366 2003-08-19 Jim Meyering <jim@meyering.net>
56368 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56369 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56371 2003-08-19 Bruno Haible <bruno@clisp.org>
56373 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56376 2003-08-19 Bruno Haible <bruno@clisp.org>
56378 * lib/xstrdup.c: Assume <string.h> exists.
56380 2003-08-18 Paul Eggert <eggert@twinsun.com>
56382 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56385 2003-08-18 Jim Meyering <jim@meyering.net>
56387 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56388 * m4/lib-ld.m4: Likewise.
56390 2003-08-18 Jim Meyering <jim@meyering.net>
56392 * lib/setenv.h: Indent nested cpp directive.
56393 * lib/vasnprintf.c: Remove trailing blanks.
56395 2003-08-17 Simon Josefsson <jas@extundo.com>
56397 * modules/xstrndup: New file.
56398 * MODULES.html.sh (func_all_modules): Add xstrndup.
56400 2003-08-17 Simon Josefsson <jas@extundo.com>
56402 * modules/argp: Fix autoconf macro name. Add more dependencies.
56404 2003-08-17 Simon Josefsson <jas@extundo.com>
56406 * m4/xstrndup.m4: New file.
56408 2003-08-17 Simon Josefsson <jas@extundo.com>
56410 * m4/argp.m4: New file.
56412 2003-08-17 Simon Josefsson <jas@extundo.com>
56413 Bruno Haible <bruno@clisp.org>
56415 * lib/xstrndup.h: New file.
56416 * lib/xstrndup.c: New file.
56418 2003-08-17 Bruno Haible <bruno@clisp.org>
56420 * modules/strndup (Files, Include): Add lib/strndup.h.
56422 2003-08-17 Bruno Haible <bruno@clisp.org>
56424 * modules/euidaccess (Files): Add lib/euidaccess.h.
56426 2003-08-17 Bruno Haible <bruno@clisp.org>
56428 * lib/strndup.h: New file.
56430 2003-08-17 Bruno Haible <bruno@clisp.org>
56432 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56433 like AC_GNU_SOURCE.
56434 * modules/extensions (configure.ac): Comment out the invocation of
56435 gl_USE_SYSTEM_EXTENSIONS.
56437 2003-08-16 Paul Eggert <eggert@twinsun.com>
56439 Merges from coreutils, etc.
56440 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56441 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56442 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56444 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56445 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56447 2003-08-16 Paul Eggert <eggert@twinsun.com>
56449 Document merge from coreutils.
56450 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56451 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56452 * modules/utime: Add m4/utimes-null.m4.
56454 2003-08-16 Paul Eggert <eggert@twinsun.com>
56456 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56457 space, undoing this 2003-08-12 change:
56458 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56460 2003-08-16 Paul Eggert <eggert@twinsun.com>
56462 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56463 strtoul.c from libc, undoing this 2003-08-12 change:
56464 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56466 2003-08-16 Jim Meyering <jim@meyering.net>
56468 Merges from coreutils.
56469 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56470 prefix. Adjust cache variables similarly. Create 500 rather than
56471 just 300 files, to exercise bug on Darwin6.5, too.
56472 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56474 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56475 AM_SYS_POSIX_TERMIOS.
56476 Reported by mkc@mathdogs.com.
56477 Also change use of $am_cv_sys_posix_termios
56478 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56479 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56480 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56481 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56482 in /proc/mounts until it finds one with matching device number. This
56483 is unnecessary when the FILE argument *is* a mount point. No stat call
56484 is necessary in that case. So, disable the statvfs-testing code on
56485 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56486 as RedHat bug# 84846.
56487 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56488 to 1MB, so as not to render systems with no stack size limit (e.g.,
56489 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56490 Include <unistd.h>. On some systems,
56491 it is required for the definition of _SC_PAGESIZE.
56493 2003-08-16 Jim Meyering <jim@meyering.net>
56495 Merge from coreutils.
56496 * lib/xstrtoimax.c: #else #if -> #elif.
56497 * lib/xstrtoumax.c: Likewise.
56499 2003-08-16 Jim Meyering <jim@meyering.net>
56501 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56502 * m4/utimes.m4: Removed.
56503 * m4/utimes-null.m4: Renamed from utimes.m4.
56505 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56506 to 1MB, so as not to render systems with no stack size limit (e.g.,
56507 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56508 Include <unistd.h>. On some systems,
56509 it is required for the definition of _SC_PAGESIZE.
56511 2003-08-16 Jim Meyering <jim@meyering.net>
56512 and Paul Eggert <eggert@cs.ucla.edu>
56514 Merges from coreutils, etc.
56516 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56517 using the latest version from cvs. This avoids problems with #line
56518 directives using a vendor (Sun) compiler.
56519 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56520 Don't set GETGROUPS_LIB here; now it's
56521 done via getgroups.m4's wrapper function.
56522 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56523 rather than just in sh-util/configure.in, so that the
56524 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56526 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56527 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56528 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56529 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56530 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56531 Remove code that is now done by the newly-required macros.
56532 Append $(EXEEXT) to DF_PROG.
56533 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56534 Do not invoke or require the following here,
56535 since prereq.m4 or some gnulib .m4 now does this for us:
56536 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56537 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56538 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56539 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56540 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56541 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56542 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56544 Do not replace the following functions, as this is now the job
56545 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56546 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56547 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56548 atexit getpass, strdup, getpagesize.
56550 Do not check for the following functions, as this is now the job
56551 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56552 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56554 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56555 Check for sys/sysctl.h.
56556 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56557 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56558 of checking for ssize_t ourselves.
56560 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56561 Require every macro that gnulib/modules/* suggests for us.
56562 (jm_PREREQ_ADDEXT): New macro.
56563 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56564 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56566 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56567 (gl_PHYSMEM): Use it.
56568 Also check for `table' function.
56569 Check for new headers and functions.
56570 Add check for sys/sysmp.h.
56571 With suggestions from Kaveh Ghazi.
56572 Ignore headers that are present but cannot be compiled. This
56573 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56576 2003-08-15 Paul Eggert <eggert@twinsun.com>
56578 Document merge from coreutils.
56579 * modules/userspec: Depend on posixver.
56580 * modules/strftime: Depend on tzset.
56582 2003-08-15 Paul Eggert <eggert@twinsun.com>
56584 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56585 rather than tab, after '#' in shell-script copyright notices.
56586 Suggested by Bruno Haible.
56588 2003-08-15 Paul Eggert <eggert@twinsun.com>
56590 * config/srclist-update: Use three spaces, rather than tab, after '#'
56591 in shell-script copyright notices. Suggested by Bruno Haible.
56592 Remove unnecessary parenthesization in regular expression.
56594 2003-08-15 Jim Meyering <jim@meyering.net>
56596 Merge from coreutils.
56597 * lib/xgethostname.c: Include <stdlib.h>.
56598 (xghostname): Don't exit for anything other than memory-related
56599 failure; just return NULL.
56600 * lib/userspec.c: Include "posixver.h".
56601 (parse_user_spec): Accept `.' as a separator only
56602 in pre-POSIX-200112 mode.
56603 * lib/strtoimax.c: Use #elif rather than #else #if.
56604 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56605 Remove function, now that we can rely on a working tzset function.
56606 [!_LIBC]: Ensure that the required autoconf test has been run.
56607 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56608 Use underlying_strftime for %r.
56609 * lib/sha.c: Merge in some clean-up and optimization changes from
56611 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56612 Ensure that it is a multiple of 64.
56613 Rearrange loop exit tests so as to avoid performing an
56614 additional fread after encountering an error or EOF.
56615 * lib/realloc.c: Update copyright date.
56617 2003-08-15 Jim Meyering <jim@meyering.net>
56618 and Paul Eggert <eggert@twinsun.com>
56620 Merge from coreutils.
56621 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56622 member but strut utmpx does not. Needed for AIX 4.3.3.
56623 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56625 2003-08-15 Jim Meyering <jim@meyering.net>
56626 and Paul Eggert <eggert@cs.ucla.edu>
56628 Merges from coreutils, etc.
56629 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56630 Require gl_FUNC_TZSET_CLOBBER.
56631 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56632 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56635 2003-08-14 Paul Eggert <eggert@twinsun.com>
56637 Help the merge from coreutils.
56638 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56639 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56640 * m4/tzset.m4: Use it too.
56642 2003-08-14 Paul Eggert <eggert@twinsun.com>
56644 * modules/tzset: New file.
56646 2003-08-14 Jim Meyering <jim@meyering.net>
56648 Merges from coreutils.
56649 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56650 variable names, rather than @FNMATCH_H@.
56651 * modules/alloca: Likewise for $(ALLOCA_H).
56653 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56654 the three copies of the literal target, `fnmatch.h'.
56655 * modules/alloca (alloca.h): Likewise.
56657 2003-08-14 Jim Meyering <jim@meyering.net>
56659 Merge from coreutils.
56660 * m4/tzset.m4: New file.
56661 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56662 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56663 otherwise, AIX 5.1 systems would end up using the latter.
56664 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56665 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56666 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56667 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56669 2003-08-14 Jim Meyering <jim@meyering.net>
56671 Merge from coreutils.
56672 * lib/obstack.h: Whitespace changes.
56673 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56674 and xcalloc return values.
56675 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56676 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56677 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56678 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56679 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56681 Use mntctl's return value to drive the entry-processing loop, since
56682 we can't rely on the value of the vmt_length member in the last
56683 entry. On some systems doing so could result in exhausting
56684 virtual memory. Based in part on a patch from Mike Jetzer.
56686 2003-08-14 Jim Meyering <jim@meyering.net>
56687 and Paul Eggert <eggert@twinsun.com>
56689 Merges from coreutils, plus other fixes.
56690 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56691 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56692 for credits and details. Thanks to Kaveh Ghazi for helping
56693 to keep these files in sync.
56694 (ARRAY_SIZE): Define it.
56695 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56696 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56697 (memcasecmp): Don't assume size_t fits in unsigned int.
56698 Remove casts and duplicate code.
56699 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56700 (memcpy): Remove definition.
56701 Merge in some clean-up and optimization changes from glibc.
56702 [BLOCKSIZE]: Move definition to top of file.
56703 Ensure that it is a multiple of 64.
56704 Rearrange loop exit tests so as to avoid performing an
56705 additional fread after encountering an error or EOF.
56706 * lib/md5.h (md5_uintptr): Define.
56707 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56708 return to the initial working directory. Preserve errno
56710 * lib/idcache.c: Include "xalloc.h".
56711 (xmalloc, xrealloc): Remove decls.
56712 (getuser): Remove casts no longer required in C89.
56713 * lib/human.c: Include stdio.h, for sprintf.
56714 * lib/group-member.c: Include "xalloc.h".
56715 (xmalloc, xrealloc): Remove decls.
56716 (get_group_info): Remove casts no longer required in C89.
56717 * lib/getusershell.c (readname): Remove casts no longer required in
56719 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56720 * lib/getline.c: Whitespace fix, from coreutils.
56722 2003-08-13 Paul Eggert <eggert@twinsun.com>
56724 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56727 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56728 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56729 Undo previous (whitespace-only) change.
56731 2003-08-13 Paul Eggert <eggert@twinsun.com>
56733 * lib/exclude.c: Include <ctype.h>
56734 (IN_CTYPE_DOMAIN): New macro.
56735 (is_space): New fn.
56736 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56739 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56740 Undo previous (whitespace-only) change.
56742 2003-08-13 Paul Eggert <eggert@twinsun.com>
56744 * config/srclist-update: Change update back to the old behavior,
56745 leaving whitespace alone. Use one 'sed' command rather than a
56747 (fixlicense): Now a variable, not a function.
56748 (remove_trailing_blanks): Remove.
56749 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56750 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56751 Undo previous (whitespace-only) change.
56753 2003-08-12 Paul Eggert <eggert@twinsun.com>
56755 Merge from coreutils.
56756 * modules/euidaccess: Add lib_SOURCES, include for new
56759 2003-08-12 Paul Eggert <eggert@twinsun.com>
56761 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56762 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56763 Normalize leading white space and remove trailing white space.
56765 Merge from coreutils
56766 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56768 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56769 0.12.1. These files are now being upgraded automatically by
56770 ../config/srclist-update.
56772 2003-08-12 Paul Eggert <eggert@twinsun.com>
56774 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56775 Normalize leading white space and remove trailing white space.
56776 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56777 notice, as per ../config/srclist-update.
56779 Merge from coreutils.
56780 * lib/euidaccess.h: New file.
56781 * lib/euidaccess.c: Include it.
56782 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56783 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56784 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56786 2003-08-12 Paul Eggert <eggert@twinsun.com>
56788 * config/srclist-update: Add copyright notice.
56789 (remove_id_lines, remove_trailing_blanks): New constants.
56790 (fixfile): Use them to normalize spacing a bit in copied files.
56791 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56792 Normalize leading white space and remove trailing white space.
56794 * config/texinfo.tex: Sync with texinfo.
56796 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56797 strtoul.c from libc, to merge coreutils whitespace changes.
56799 * config/srclist.txt: Get the following m4 files from gettext:
56800 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56801 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56802 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56805 2003-08-12 Karl Berry <karl@gnu.org>
56807 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56810 2003-08-11 Paul Eggert <eggert@twinsun.com>
56812 * modules/gnu-source, m4/gnu-source.m4:
56813 Remove; we're assuming Autoconf 2.54 or later now.
56814 Suggested by Bruno Haible.
56815 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56817 2003-08-11 Bruno Haible <bruno@clisp.org>
56819 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56821 2003-08-11 Bruno Haible <bruno@clisp.org>
56823 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56824 (vasnprintf): Use it instead of wcslen.
56826 2003-08-11 Bruno Haible <bruno@clisp.org>
56828 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56829 value to ensure that _Bool promotes to int. Use #define for _Bool when
56830 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56832 2003-08-10 Karl Berry <karl@gnu.org>
56834 * lib/regex.h: update from libc (whitespace fix).
56836 2003-08-09 Paul Eggert <eggert@twinsun.com>
56838 Merge some files from coreutils. These changes were
56839 originally made by Jim Meyering.
56840 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56841 many older Unixes require this.
56842 * lib/alloca.c (alloca): Remove cast to argument of free;
56843 no longer needed in C89.
56844 * lib/alloca_.h, regex.h: Fix white space to match
56845 what GNU indent does.
56847 2003-08-09 Paul Eggert <eggert@twinsun.com>
56849 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56850 apparently Emacs's Unicode mode got confused before my 2003-08-05
56853 2003-08-08 Paul Eggert <eggert@twinsun.com>
56855 * m4/extensions.m4: New file.
56856 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56857 Require gl_USE_SYSTEM_EXTENSIONS.
56858 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56859 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56861 2003-08-08 Paul Eggert <eggert@twinsun.com>
56863 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56864 * modules/extensions, modules/gnu-source: New files.
56865 * modules/timespec, modules/unlocked-io: Depend on extensions.
56867 2003-08-07 Paul Eggert <eggert@twinsun.com>
56869 * modules/restrict: New file.
56870 * MODULES.html.sh (func_all_modules): Add restrict.
56871 * modules/regex: Depend on restrict.
56873 2003-08-07 Paul Eggert <eggert@twinsun.com>
56875 * m4/restrict.m4: New file.
56876 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56878 2003-08-07 Bruno Haible <bruno@clisp.org>
56880 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56881 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56883 2003-08-07 Bruno Haible <bruno@clisp.org>
56885 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56886 makes the module 'getndelim2' compatible with the module 'getline'.
56888 2003-08-05 Paul Eggert <eggert@twinsun.com>
56890 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56891 byte with "\201" to avoid glitches when editing that source file
56892 with multi-gnome-terminal.
56894 2003-08-05 Paul Eggert <eggert@twinsun.com>
56896 * lib/bumpalloc.h: Remove.
56898 2003-08-05 Paul Eggert <eggert@twinsun.com>
56900 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56901 * modules/bumpalloc: Remove.
56903 2003-08-04 Paul Eggert <eggert@twinsun.com>
56905 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56908 Merge from coreutils.
56909 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56911 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56912 from Karl Berry, implemented by Jim Meyering.
56913 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56914 from Dmitry V. Levin.
56915 Remove anachronistic cast of xrealloc.
56916 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56917 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56918 type. Otherwise, it wouldn't compile with at least /bin/cc on
56919 ymp-cray-unicos9.0.2.X.
56920 Combine two mostly-identical uses of alloca into one.
56921 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56923 2003-08-04 Dave Love <d.love@dl.ac.uk>
56927 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56928 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56929 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56930 obsolete NLIST_NAME_UNION.
56931 [__GNU__]: Undef BSD and FSCALE.
56932 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56934 2003-08-03 Paul Eggert <eggert@twinsun.com>
56936 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56937 an enum type, so that it's guaranteed to promote to int. See:
56938 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56940 2003-08-03 Karl Berry <karl@gnu.org>
56942 * config/depcomp: update from automake.
56944 2003-07-31 Paul Eggert <eggert@twinsun.com>
56946 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56947 (strerror): Don't assume that a printable int fits in 14 bytes.
56949 2003-07-31 Bruno Haible <bruno@clisp.org>
56951 * modules/getpass-gnu: New file.
56952 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56954 2003-07-31 Bruno Haible <bruno@clisp.org>
56956 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56958 2003-07-24 Karl Berry <karl@gnu.org>
56960 * config/missing: update from automake.
56962 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56963 Bruno Haible <bruno@clisp.org>
56965 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56966 * lib/getline.c (getline, getdelim): Likewise.
56967 Remove _GNU_SOURCE define; now it's defined in config.h through
56970 2003-07-23 Karl Berry <karl@gnu.org>
56972 * config/config.sub: update from prep.
56974 2003-07-22 Paul Eggert <eggert@twinsun.com>
56976 * modules/xalloc (Depends-on): Add exitfail.
56977 * modules/xmemcoll: Likewise.
56979 2003-07-22 Paul Eggert <eggert@twinsun.com>
56981 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56982 over-parenthesization in macros.
56984 Sync with coreutils.
56986 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56989 Use `exit_failure' for xalloc and xmemcoll instead of their own
56990 private exit-failure variables.
56991 * lib/xalloc.h (xalloc_exit_failure): Remove.
56992 * lib/xmalloc.c: Likewise. Include exitfail.h.
56993 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56994 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56995 * lib/xmemcoll.c: Likewise. Include exitfail.h.
56996 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56998 2003-07-20 Jim Meyering <jim@meyering.net>
57000 * modules/closeout (Depends-on): Add exitfail.
57001 Suggestion from Bruno Haible.
57003 2003-07-19 Karl Berry <karl@gnu.org>
57005 * config/config.sub: update from prep.
57007 2003-07-18 Paul Eggert <eggert@twinsun.com>
57009 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57011 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57012 to test that it can stand by itself. Include "exitfail.h".
57013 Clients should set exit_failure instead.
57014 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57016 2003-07-18 Bruno Haible <bruno@clisp.org>
57018 * modules/getndelim2: New file.
57019 * modules/getline: Share files with module getndelim2.
57020 * modules/getnline: Depend on getndelim2 instead of sharing files with
57021 it. Add getnline.c to lib_SOURCES.
57022 * MODULES.html.sh (func_all_modules): Add getndelim2.
57024 2003-07-18 Bruno Haible <bruno@clisp.org>
57026 * m4/getndelim2.m4: New file.
57027 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57028 invoke gl_PREREQ_GETNDELIM2.
57029 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57030 gl_PREREQ_GETNDELIM2.
57031 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57034 2003-07-18 Bruno Haible <bruno@clisp.org>
57036 * lib/getndelim2.h: New file.
57037 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57039 (getndelim2): Make non-static. Change return type to ssize_t.
57040 * lib/getline.h: Change argument names.
57041 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57042 * lib/getnline.c: Include getndelim2.h.
57044 2003-07-18 Andreas Schwab <schwab@suse.de>
57046 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57048 2003-07-17 Karl Berry <karl@gnu.org>
57050 * config/config.sub: update from prep.
57052 2003-07-17 Bruno Haible <bruno@clisp.org>
57054 * modules/getnline: New file.
57055 * modules/getline: Add lib/getndelim2.c to source file list.
57056 * MODULES.html.sh (func_all_modules): Add getnline.
57058 2003-07-17 Bruno Haible <bruno@clisp.org>
57060 * m4/getnline.m4: New file.
57062 2003-07-17 Bruno Haible <bruno@clisp.org>
57064 * m4/Makefile.am.in: Remove file.
57065 * m4/Makefile.am: Remove file.
57066 * m4/Makefile.in: Remove file.
57068 2003-07-17 Bruno Haible <bruno@clisp.org>
57070 * lib/getnline.h: New file.
57071 * lib/getnline.c: New file.
57072 * lib/getndelim2.c: New file, extracted from getline.c.
57073 (getndelim2): Renamed from getdelim2, with added nmax argument.
57074 * lib/getline.c: Include getndelim2.c.
57075 (getdelim2): Moved out to getndelim2.c.
57076 (getline, getdelim): Update.
57078 2003-07-17 Bruno Haible <bruno@clisp.org>
57080 * lib/Makefile.am: Remove file.
57081 * lib/Makefile.in: Remove file.
57083 2003-07-17 Bruno Haible <bruno@clisp.org>
57085 * configure.in: Remove file.
57086 * Makefile.in: Remove file.
57088 2003-07-17 Bruno Haible <bruno@clisp.org>
57090 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57092 2003-07-16 Karl Berry <karl@gnu.org>
57094 * config/srclist-update: was running fixlicense twice, which caused
57095 texinfo.tex to be nullified for some reason. Simplify,
57096 $gplsrc is no longer needed as far as I can see?
57098 2003-07-16 Jim Meyering <jim@meyering.net>
57100 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57102 2003-07-15 Paul Eggert <eggert@twinsun.com>
57104 * config/srclist.txt: Get the following files from gettext-runtime/intl
57105 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57106 ref-del.sin. From Bruno Haible.
57107 * config/srclist-update (fixfile): Change grep pattern again, since the
57108 previous fix didn't work (there was another trailing $). Use
57109 '[$]' to escape the $s.
57111 2003-07-15 Karl Berry <karl@gnu.org>
57113 * lib/vasnprintf.c: update from gettext.
57115 2003-07-15 Karl Berry <karl@gnu.org>
57117 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57118 gets expanded when surrounded by '$'.
57120 2003-07-15 Jim Meyering <jim@meyering.net>
57122 * modules/save-cwd: Don't depend on error. From Derek Price.
57124 2003-07-15 Jim Meyering <jim@meyering.net>
57126 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57128 2003-07-14 Simon Josefsson <jas@extundo.com>
57130 * modules/mempcpy: New file.
57131 * MODULES.html.sh (func_all_modules): Add mempcpy.
57133 2003-07-14 Simon Josefsson <jas@extundo.com>
57135 * m4/mempcpy.m4: New file.
57137 2003-07-14 Simon Josefsson <jas@extundo.com>
57139 * lib/mempcpy.h: New file.
57140 * lib/mempcpy.c: New file.
57142 2003-07-14 Paul Eggert <eggert@twinsun.com>
57144 * modules/getdate, modules/posixtm: Depend on mktime.
57146 2003-07-14 Paul Eggert <eggert@twinsun.com>
57148 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57149 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57150 unicodeio.c, unicodeio.h, unlocked-io.h:
57151 Switch from LGPL to GPL.
57153 2003-07-14 Paul Eggert <eggert@twinsun.com>
57155 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57156 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57157 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57158 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57159 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57160 updated automatically by ../config/srclist-update. This changes
57161 their license from LPGL to GPL.
57163 2003-07-14 Paul Eggert <eggert@twinsun.com>
57165 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57166 assumed to refer to the root of the most recent stable gettext version.
57167 * config/srclistvars.sh: Add defaults for eggert.
57168 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57169 Match "This program" as well as "The program". This is needed
57172 2003-07-14 Jim Meyering <jim@meyering.net>
57174 Don't emit diagnostics. Let callers do that.
57175 * lib/save-cwd.c: Don't include "error.h".
57176 (save_cwd): Don't call error. Ensure that errno is valid
57177 when returning nonzero.
57179 * lib/save-cwd.h (restore_cwd): Update prototype.
57180 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57181 Simplify. Don't call error upon failure. Let callers do that.
57182 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57183 when auditing is enabled. But don't bother updating the #if.
57185 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57187 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57188 it breaks C++ compilation.
57189 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57191 2003-07-10 Simon Josefsson <jas@extundo.com>
57193 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57195 2003-07-10 Jim Meyering <jim@meyering.net>
57197 * m4/clock_time.m4: Remove trailing blank.
57198 * m4/intmax_t.m4: Likewise.
57200 2003-07-10 Jim Meyering <jim@meyering.net>
57202 * lib/vasnprintf.c: Remove trailing blanks.
57203 Make cpp indentation consistent.
57205 2003-07-09 Paul Eggert <eggert@twinsun.com>
57207 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57208 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57209 Switch from LGPL to GPL.
57211 2003-07-09 Paul Eggert <eggert@twinsun.com>
57213 * config/srclist.txt: Sort sublists. Add
57214 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57215 that differ from gnulib for one reason or another; we'd like this list
57216 to be smaller but for now let's document what we have.
57218 2003-07-08 Paul Eggert <eggert@twinsun.com>
57220 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57221 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57222 and sweeter "eval x=$x".
57223 * config/srclist.txt: Get lib/argp* from glibc.
57225 2003-07-07 Paul Eggert <eggert@twinsun.com>
57227 * lib/mktime.c: Fix some boundary cases and remove need for floating
57230 Issue a compile-time diagnostic if time_t is floating point, or if
57231 two's complement arithmetic is not in effect, or if arithmetic
57232 right shift does not propagate the sign. These assumptions were
57233 all in the original code but they weren't checked.
57235 (TIME_T_MIDPOINT, verify): New macros.
57236 (__isleap): Remove; it has integer overflow problems.
57237 (leapyear): New function, without those problems.
57238 (ydhms_tm_diff): Remove; splitting into two parts.
57239 (ydhms_diff): New function, containing the arithmetic part of
57240 the old ydhms_tm_diff function. Issue a compile-time
57241 diagnostic if we are not using C99 integer division.
57242 Avoid casts when possible.
57243 (guess_time_tm): New function, containing the checking part of
57244 the old ydhms_tm_diff function. Return the new value, rather than
57245 the difference between it and the old. Accept a new argument T
57246 so that *T specifies the old value. Check for overflow in the result.
57248 (__mktime_internal): Use a time_t offset, not a long int offset.
57249 This undoes the 2003-06-04 change, which is no longer needed now
57250 that we have better overflow checking.
57251 (localtime_offset): Likewise.
57253 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57254 and long are 64-bit but int is only 32-bit.
57255 (ydhms_diff): Use long int to store year1 and yday1.
57256 Issue a compile-time diagnostic if long int is not wide enough.
57258 (__mktime_internal): Use long int to store adjusted year and yday.
57259 Use plain C rather than preprocessor commands, if that doesn't
57261 Check for overflow (and try to repair) after each probe
57262 rather than checking only at the very end. This avoids some bugs
57263 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57264 does not equal GMT offset at maximum time).
57265 Use integer to check for overflow rather than floating point; this
57266 is more portable to non-IEEE hosts, and is a tad faster.
57267 When we detect that we are oscillating between two values,
57268 don't check whether tm_isdst has the requested value, since
57269 we already know the answer. When tm_isdst has the wrong value,
57270 use a different heuristic to find the right one, based on the
57271 extreme values actually observed in practice in tz2003a,
57272 rather than the (overly optimistic) "previous 3 calendar quarters".
57274 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57275 "T const" to accommodate glibc style.
57276 (check_result): Use less-confusing report format. "long" -> "long int.
57278 Don't loop if the iteration overflows time_t.
57279 Allow a negative step in the iteration.
57281 2003-07-06 Karl Berry <karl@gnu.org>
57283 * config/depcomp: update from automake.
57284 * config/config.sub: update from prep.
57286 2003-07-03 Karl Berry <karl@gnu.org>
57288 * config/config.guess: update from prep.
57290 2003-07-01 Paul Eggert <eggert@twinsun.com>
57292 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57293 xreadlink.c now includes it unconditionally.
57295 2003-07-01 Paul Eggert <eggert@twinsun.com>
57297 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57298 having it depend on HAVE_SYS_TYPES_H.
57300 2003-07-01 Bruno Haible <bruno@clisp.org>
57302 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57303 <sys/types.h> should be sufficient.
57304 Reported by Paul Eggert.
57306 2003-06-26 Karl Berry <karl@gnu.org>
57308 * config/depcomp: update from automake.
57310 2003-06-26 Bruno Haible <bruno@clisp.org>
57312 * modules/human: Depend on module stdbool.
57314 2003-06-25 Bruno Haible <bruno@clisp.org>
57316 * modules/readlink: New file.
57317 * modules/xreadlink: Depend on it.
57318 * MODULES.html.sh (func_all_modules): Add readlink.
57320 2003-06-25 Bruno Haible <bruno@clisp.org>
57322 * m4/readlink.m4: New file.
57324 2003-06-25 Bruno Haible <bruno@clisp.org>
57326 * lib/readlink.c: New file.
57328 2003-06-22 Karl Berry <karl@gnu.org>
57330 * config/srclist.txt: update mkinstalldirs from automake.
57331 * config/mkinstalldirs: update.
57333 2003-06-22 Bruno Haible <bruno@clisp.org>
57335 Portability to mingw32.
57336 * m4/ssize_t.m4: New file, from GNU gettext.
57337 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57338 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57340 2003-06-22 Bruno Haible <bruno@clisp.org>
57342 * modules/safe-read: Add m4/ssize_t.m4.
57343 * modules/xreadlink: Add m4/ssize_t.m4.
57345 2003-06-20 Bruno Haible <bruno@clisp.org>
57347 Assume C89, so PARAMS isn't needed.
57348 * lib/unicodeio.h (PARAMS): Remove.
57349 * lib/unicodeio.c: Don't use PARAMS.
57351 2003-06-18 Karl Berry <karl@gnu.org>
57353 * config/config.{guess,sub}: update from prep.
57355 2003-06-18 Jim Meyering <jim@meyering.net>
57357 Merge changes from coreutils.
57358 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57359 Remove explicit declarations of xmalloc and realloc.
57361 (read_utmp): Remove anachronistic cast of xmalloc.
57363 2003-06-17 Paul Eggert <eggert@twinsun.com>
57365 Assume C89, so PARAMS isn't needed.
57366 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57367 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57368 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57369 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57370 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57371 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57372 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57373 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57374 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57375 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57376 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57377 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57378 no longer needed. Anyway, config.h should always be included before any
57381 2003-06-11 Simon Josefsson <jas@extundo.com>
57383 * modules/sysexits: New file.
57384 * MODULES.html.sh (func_all_modules): Add sysexits.
57386 2003-06-11 Simon Josefsson <jas@extundo.com>
57388 * lib/sysexit_.h: New file.
57390 2003-06-11 Derek Price <derek@ximbiot.com>
57392 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57395 2003-06-11 Bruno Haible <bruno@clisp.org>
57397 * m4/sysexits.m4: New file.
57399 2003-06-10 Simon Josefsson <jas@extundo.com>
57401 * lib/argp.h: New file, from glibc.
57402 * lib/argp-ba.c: New file, from glibc.
57403 * lib/argp-eexst.c: New file, from glibc.
57404 * lib/argp-fmtstream.c: New file, from glibc.
57405 * lib/argp-fmtstream.h: New file, from glibc.
57406 * lib/argp-fs-xinl.c: New file, from glibc.
57407 * lib/argp-help.c: New file, from glibc.
57408 * lib/argp-namefrob.h: New file, from glibc.
57409 * lib/argp-parse.c: New file, from glibc.
57410 * lib/argp-pv.c: New file, from glibc.
57411 * lib/argp-pvh.c: New file, from glibc.
57412 * lib/argp-xinl.c: New file, from glibc.
57414 2003-06-10 Simon Josefsson <jas@extundo.com>
57416 * modules/strchrnul: New file.
57418 2003-06-10 Simon Josefsson <jas@extundo.com>
57420 * modules/argp: New file.
57422 2003-06-10 Simon Josefsson <jas@extundo.com>
57424 * m4/strchrnul.m4: New file.
57426 2003-06-10 Simon Josefsson <jas@extundo.com>
57428 * lib/strchrnul.h: New file.
57429 * lib/strchrnul.c: New file.
57431 2003-06-10 Bruno Haible <bruno@clisp.org>
57433 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57435 2003-06-07 Karl Berry <karl@gnu.org>
57437 * config/config.{guess,sub}: update from prep.
57439 2003-06-07 Jim Meyering <jim@meyering.net>
57441 * modules/strtod: Use $(...) notation, not @...@ for
57442 AC_REPLACE'd variables.
57443 * modules/localcharset: Likewise.
57445 2003-06-07 Jim Meyering <jim@meyering.net>
57447 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57448 in place of my name in the copyright comment.
57449 Remove definition and uses of __P.
57452 * lib/stat.c: Don't declare xmalloc explicitly.
57453 Instead, include "xalloc.h".
57454 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57455 xrealloc, and xcalloc return values.
57456 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57458 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57460 2003-06-07 Bruno Haible <bruno@clisp.org>
57462 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57463 avoid AC_CONFIG_LINKS.
57464 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57465 fnmatch.h, to avoid AC_CONFIG_LINKS.
57466 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57468 2003-06-07 Bruno Haible <bruno@clisp.org>
57470 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57471 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57472 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57474 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57475 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57478 2003-06-06 Jim Meyering <jim@meyering.net>
57480 Merge from coreutils.
57481 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57482 Consolidate declarations and initializations of *_base* locals.
57484 Merge from coreutils.
57485 This avoids a core dump on systems without GNU putenv,
57486 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57487 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57488 (unsetenv): New static function, from GNU libc.
57489 (rpl_putenv): Use it.
57491 * lib/modechange.c: Remove trailing blanks.
57493 Merge from coreutils.
57494 * lib/fsusage.c: Remove declaration of statfs.
57495 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57497 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57499 2003-06-06 Jim Meyering <jim@meyering.net>
57501 * lib/stdbool_.h: Renamed from stdbool.h.in.
57503 2003-06-06 Jim Meyering <jim@meyering.net>
57504 Bruno Haible <bruno@clisp.org>
57506 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57507 Adjust Makefile.am snippet not to redirect directly to target.
57508 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57510 2003-06-05 Paul Eggert <eggert@twinsun.com>
57512 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57513 mismatch, look in future quarters as well as past. This fixes a
57514 bug when processing fall-backwards gaps immediately after a long
57515 period of daylight-saving time.
57517 * lib/mktime.c: Assume freestanding C89 or better.
57518 (HAVE_LIMITS_H): Remove. Assume it's 1.
57519 (__P): Remove; not used.
57520 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57521 (mktime, not_equal_tm, print_tm, check_result,
57522 main): Use prototypes. Use const * where appropriate.
57523 (main): Fix typo in testing code that uncovered by above changes.
57524 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57526 2003-06-04 Paul Eggert <eggert@twinsun.com>
57528 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57529 locale.h, localeconv. This merges changes from coreutils.
57531 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57532 It can be removed after the next Autoconf is released.
57533 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57536 2003-06-04 Paul Eggert <eggert@twinsun.com>
57538 * lib/mktime.c: Fix Debian bug 177940
57539 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57540 (localtime_offset): Now long int, not time_t, because we want it
57541 to be guaranteed to be signed. All uses changed.
57542 (__mktime_internal): If overflow would occur when adding offset,
57545 Merge 'human' changes from coreutils. Rewrite to support
57546 locale-specific notations like thousands separators.
57547 * lib/human.c: Simplify authorship notice.
57548 Include human.h immediately after config.h.
57549 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57550 <limits.h>: Do not include, since human.h does.
57551 (SIZE_MAX, UINTMAX_MAX): New macros.
57552 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57553 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57554 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57555 (power_letter): Renamed from suffixes.
57556 (generate_suffix_backwards): Remove.
57557 (adjust_value): Now takes int style (because of human.h changes)
57558 and long double value (for greater precision on some platforms).
57559 (group_number): New function.
57560 (human_readable): Use it. Use integer options, not enum.
57561 Put the options before the sizes in the arg list.
57562 Support all the new options.
57563 The old human_readable function has been removed;
57564 use inttostr.h instead.
57565 (human_readable, default_block_size, humblock):
57566 Use uintmax_t, not int, for block sizes.
57567 (human_readable_inexact, block_size_types): Remove.
57568 (block_size_opts): New constant.
57569 (human_options): Renamed from human_block_size, with new signature
57570 that allows block sizes up to UINTMAX_MAX. All callers changed.
57571 * lib/human.h: Add copyright and authorship notice.
57572 Include <limits.h> and <stdbool.h> unconditionally.
57573 (PARAMS): Remove. All uses removed.
57574 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57575 (enum human_inexact_style): Remove tag; now a nameless enum.
57576 (human_floor, human_ceiling, human_round_to_even): Now have
57577 values 2, 0, 1 rather than -1, 1, 0.
57578 (human_group_digits, human_suppress_point_zero, human_autoscale,
57579 human_base_1024, human_SI, human_B): New constants.
57580 (human_readable_inexact, human_block_size): Remove.
57581 (human_readable): Size args are now uintmax_t, not int.
57582 (human_options): New decl.
57584 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57585 unnecessary now that we assume C89 or better. This change
57586 imported from coreutils.
57588 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57589 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57590 in the 2003-05-30 sync from glibc.
57592 .h files should stand alone, but we shouldn't include <sys/types.h>
57593 if we can get away with just <stddef.h>.
57595 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57596 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57597 rather than <sys/types.h>, as we merely need size_t.
57598 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57600 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57601 Include <stdio.h>, to get FILE.
57602 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57603 memcasecmp.h has included <stddef.h> and all we need is size_t.
57604 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57605 our interface, instead of including <sys/types.h>
57607 2003-06-04 Paul Eggert <eggert@twinsun.com>
57609 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57610 now, as glibc mktime is buggy on non-glibc systems.
57612 2003-06-03 Karl Berry <karl@gnu.org>
57614 * config/config.sub: update from prep.
57616 2003-06-02 Paul Eggert <eggert@twinsun.com>
57619 Fix some minor time-related bugs with POSIX time arguments.
57620 Some valid time stamps were being rejected (notably -1, and
57621 time stamps before 1900 on 64-bit hosts). And some invalid
57622 time stamps were being accepted, e.g. September 31.
57624 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57625 that we can return (time_t) -1 successfully.
57626 * lib/posixtm.c: Likewise.
57627 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57628 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57629 (t): Remove static var.
57630 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57631 of static var. All uses changed.
57632 (year): Do not reject years before 1900; they can occur with
57634 (posix_time_parse): Do not check for out-of-range components;
57635 that is now the caller's responsibility, since our checks were
57636 only approximations.
57637 (posixtime): Use mktime to check for out-of-range components,
57638 since it knows them exactly.
57639 If mktime returns (time_t) -1, check whether an error actually occurred
57640 by invoking localtime on -1.
57641 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57642 posixtime failures better.
57643 Improve the test data (in comments only).
57645 2003-06-02 Karl Berry <karl@gnu.org>
57647 * config/mkinstalldirs (version): new variable.
57648 (--version): new option.
57649 (usage): improve message.
57651 2003-05-30 Karl Berry <karl@gnu.org>
57653 * lib/mktime.c: update from libc.
57655 2003-05-30 Bruno Haible <bruno@clisp.org>
57657 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57658 * config/config.rpath: Upgrade to gettext-0.12.1.
57660 2003-05-30 Bruno Haible <bruno@clisp.org>
57662 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57663 * m4/nls.m4: New file, from gettext-0.12.1.
57664 * m4/po.m4: New file, from gettext-0.12.1.
57665 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57667 2003-05-30 Bruno Haible <bruno@clisp.org>
57669 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57670 * lib/localcharset.h: Likewise.
57671 * lib/localcharset.c: Likewise.
57673 2003-05-29 Karl Berry <karl@gnu.org>
57675 * config/config.rpath: update from gettext.
57677 2003-05-28 Paul Eggert <eggert@twinsun.com>
57679 Assume the headers required for C89 freestanding compilers.
57680 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57681 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57682 * m4/human.m4 (gl_HUMAN): Likewise.
57683 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57684 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57685 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57686 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57687 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57688 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57690 2003-05-28 Paul Eggert <eggert@twinsun.com>
57692 Assume the headers required for C89 freestanding compilers.
57693 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57694 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57695 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57696 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57697 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57698 define, since <limits.h> is guaranteed to do that.
57699 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57700 * lib/exclude.c: Include <stdbool.h> unconditionally.
57701 * lib/tempname.c: Include <stddef.h> unconditionally.
57702 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57703 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57704 <stddef.h> does that.
57705 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57706 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57707 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57709 * lib/xstrtol.c: Likewise.
57710 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57711 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57713 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57714 warnings on some platforms.
57716 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57719 2003-05-26 Jim Meyering <jim@meyering.net>
57721 Merge in a change from coreutils:
57722 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57723 that is guaranteed to be `no'. Use `no_such_member' to indicate
57724 that condition, rather than `-1' which is slightly misleading.
57725 Change the name of the cache variable to have the gl_ prefix.
57726 Prompted by a patch from Richard Dawe for DJGPP.
57728 2003-05-24 Karl Berry <karl@gnu.org>
57730 * config/config.guess: update from prep.
57732 2003-05-22 Karl Berry <karl@gnu.org>
57734 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57736 2003-05-20 Karl Berry <karl@gnu.org>
57738 * config/config.guess: update from prep.
57740 2003-05-18 Karl Berry <karl@gnu.org>
57742 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57743 might actually be set by the user.
57745 * config/depcomp, install-sh, mdate-sh: update from automake.
57747 2003-05-17 Bruno Haible <bruno@clisp.org>
57749 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57750 invalid expansion for AC_EGREP_CPP.
57751 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57752 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57753 Suggested by Akim Demaille <akim@epita.fr> in
57754 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57756 2003-05-12 Jim Meyering <jim@meyering.net>
57758 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57759 the space-padded-by-default conversion specifiers, %e, %k, %l.
57761 2003-05-12 Bruno Haible <bruno@clisp.org>
57763 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57764 the string is longer than 4 KB.
57766 2003-05-11 Karl Berry <karl@gnu.org>
57768 * config/config.{guess,sub}: update from prep.
57770 2003-05-09 Bruno Haible <bruno@clisp.org>
57772 * modules/error: Add m4/strerror_r.m4 to file list.
57774 2003-05-03 Bruno Haible <bruno@clisp.org>
57776 Upgrade to Unicode-4.0.
57777 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57778 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57779 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57780 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57781 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57782 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57783 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57784 Change width of U+E0100..U+E01EF from 1 to 0.
57786 2003-04-25 Jim Meyering <jim@meyering.net>
57788 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57789 of type size_t, not int.
57791 2003-04-25 Bruno Haible <bruno@clisp.org>
57793 * lib/copy-file.c: Include <stddef.h>, for size_t.
57795 2003-04-21 Paul Eggert <eggert@twinsun.com>
57797 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57798 code which expansion is under static control. Patch imported from
57799 Akim Demaille's patch to Bison; see
57800 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57802 2003-04-14 Bruno Haible <bruno@clisp.org>
57804 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57806 2003-04-11 Jim Meyering <jim@meyering.net>
57808 Merge changes from Coreutils.
57810 2003-03-22 Jim Meyering <jim@meyering.net>
57812 * lib/strftime.c (widen): Cast alloca return value to proper type.
57814 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57817 * lib/strftime.c (my_strftime): Handle very large width
57818 specifications for numeric values correctly. Improve checks for
57821 2003-01-19 Jim Meyering <jim@meyering.net>
57823 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57825 (nl_get_alt_digit) [! defined my_strftime]: Define.
57826 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57827 _nl_get_alt_digit and _nl_get_walt_digit.
57829 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57830 libc. These changes have no effect outside of _LIBC.
57832 2003-04-10 Bruno Haible <bruno@clisp.org>
57834 * modules/findprog: New file.
57835 * MODULES.html.sh (func_all_modules): Add it.
57837 2003-04-10 Bruno Haible <bruno@clisp.org>
57839 * m4/findprog.m4: New file.
57840 * m4/eaccess.m4: New file.
57842 2003-04-10 Bruno Haible <bruno@clisp.org>
57844 * lib/findprog.h: New file, from GNU gettext.
57845 * lib/findprog.c: New file, from GNU gettext.
57847 2003-04-05 Jim Meyering <jim@meyering.net>
57849 Merge changes from Coreutils.
57851 * lib/exclude.h (PARAMS): Remove definition and uses.
57852 * lib/exclude.c: Remove uses of `PARAMS'.
57854 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57855 Add test-cases for DOS filenames. Declare program_name.
57856 (main): Set up program_name. Patch by Rich Dawe.
57858 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57860 Use mntctl's return value to drive the entry-processing loop, since
57861 we can't rely on the value of the vmt_length member in the last
57862 entry. On some systems doing so could result in exhausting
57863 virtual memory. Based in part on a patch from Mike Jetzer.
57865 2003-04-04 Bruno Haible <bruno@clisp.org>
57867 * modules/linebreak: New file.
57868 * MODULES.html.sh (func_all_modules): Add it.
57870 2003-04-04 Bruno Haible <bruno@clisp.org>
57872 * m4/linebreak.m4: New file.
57874 2003-04-04 Bruno Haible <bruno@clisp.org>
57876 * lib/linebreak.h: New file, from GNU gettext.
57877 * lib/linebreak.c: New file, from GNU gettext with slight
57879 * lib/lbrkprop.h: New file, from GNU gettext.
57881 2003-04-03 Bruno Haible <bruno@clisp.org>
57883 * modules/utf8-ucs4: New file.
57884 * modules/utf16-ucs4: New file.
57885 * modules/ucs4-utf8: New file.
57886 * modules/ucs4-utf16: New file.
57887 * MODULES.html.sh (func_all_modules): Add them.
57889 2003-04-03 Bruno Haible <bruno@clisp.org>
57891 * m4/utf-ucs4.m4: New file.
57892 * m4/ucs4-utf.m4: New file.
57894 2003-04-03 Bruno Haible <bruno@clisp.org>
57896 * lib/utf8-ucs4.h: New file, from GNU gettext.
57897 * lib/utf16-ucs4.h: New file, from GNU gettext.
57898 * lib/ucs4-utf8.h: New file, from GNU gettext.
57899 * lib/ucs4-utf16.h: New file, from GNU gettext.
57901 2003-04-02 Bruno Haible <bruno@clisp.org>
57903 * modules/binary-io: New file.
57904 * MODULES.html.sh (func_all_modules): Add it.
57906 2003-04-02 Bruno Haible <bruno@clisp.org>
57908 * lib/binary-io.h: New file, from GNU gettext.
57910 2003-04-01 Bruno Haible <bruno@clisp.org>
57912 * modules/pathname: New file.
57913 * MODULES.html.sh (func_all_modules): Add it.
57915 2003-04-01 Bruno Haible <bruno@clisp.org>
57917 * lib/pathname.h: New file, from GNU gettext.
57918 * lib/concatpath.c: New file, from GNU gettext.
57920 2003-03-30 Bruno Haible <bruno@clisp.org>
57922 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57924 2003-03-30 Bruno Haible <bruno@clisp.org>
57926 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57927 function chown() doesn't exist.
57929 2003-03-28 Bruno Haible <bruno@clisp.org>
57931 * modules/copy-file: New file.
57932 * MODULES.html.sh (func_all_modules): Add it.
57934 2003-03-28 Bruno Haible <bruno@clisp.org>
57936 * m4/copy-file.m4: New file.
57938 2003-03-28 Bruno Haible <bruno@clisp.org>
57940 * lib/copy-file.h: New file, from GNU gettext.
57941 * lib/copy-file.c: New file, from GNU gettext.
57943 2003-03-18 Jim Meyering <jim@meyering.net>
57945 * lib/quote.c (quote_n): Fix typo in comment.
57947 2003-03-18 Bruno Haible <bruno@clisp.org>
57949 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57951 * m4/onceonly_2_57.m4: Likewise.
57953 2003-03-17 Bruno Haible <bruno@clisp.org>
57955 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57956 (m4_quote): Remove macro.
57957 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57959 2003-03-14 Jim Meyering <jim@meyering.net>
57961 Merge changes from Coreutils.
57962 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57963 to be const, in order to avoid warnings.
57964 (obstack_room): Likewise.
57965 (obstack_empty_p): Likewise.
57967 2003-03-14 Bruno Haible <bruno@clisp.org>
57969 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57970 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57972 2003-03-13 Paul Eggert <eggert@twinsun.com>
57974 Merge changes from Bison.
57975 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57976 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57977 when compiling Bison 1.875's `bitset bset = obstack_alloc
57978 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
57979 * lib/hash.c: Include <stdbool.h> unconditionally.
57981 2003-03-13 Paul Eggert <eggert@twinsun.com>
57983 * m4/onceonly.m4 (m4_quote): New macro.
57984 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57985 Quote AC_FOREACH variable-expansions properly.
57987 2003-03-13 Paul Eggert <eggert@twinsun.com>
57989 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57991 2003-03-09 Paul Eggert <eggert@twinsun.com>
57993 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57994 Reported by Bruce Becker; see:
57995 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57997 2003-03-03 Paul Eggert <eggert@twinsun.com>
57998 Bruno Haible <bruno@clisp.org>
58000 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58001 Reported by John Hughes, see
58002 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58004 2003-02-20 Bruno Haible <bruno@clisp.org>
58006 * MODULES.html.sh (func_all_modules): Add poll.
58008 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58010 * modules/poll: New file.
58012 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58014 * lib/poll_.h: New file.
58015 * lib/poll.c: New file.
58017 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58019 * m4/poll.m4: New file.
58021 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58023 * modules/mathl: New file.
58025 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58027 * lib/mathl.h: New file.
58028 * lib/acosl.c: New file.
58029 * lib/asinl.c: New file.
58030 * lib/atanl.c: New file.
58031 * lib/ceill.c: New file.
58032 * lib/cosl.c: New file.
58033 * lib/expl.c: New file.
58034 * lib/floorl.c: New file.
58035 * lib/frexpl.c: New file.
58036 * lib/ldexpl.c: New file.
58037 * lib/logl.c: New file.
58038 * lib/sincosl.c: New file.
58039 * lib/sinl.c: New file.
58040 * lib/sqrtl.c: New file.
58041 * lib/tanl.c: New file.
58042 * lib/trigl.c: New file.
58043 * lib/trigl.h: New file.
58045 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58047 * m4/mathl.m4: New file.
58049 2003-02-18 Bruno Haible <bruno@clisp.org>
58051 * MODULES.html.sh (func_all_modules): Add mathl.
58053 2003-02-17 Bruno Haible <bruno@clisp.org>
58055 * modules/mkdtemp: New module.
58056 * MODULES.html.sh (func_all_modules): Add it.
58058 2003-02-17 Bruno Haible <bruno@clisp.org>
58060 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58062 2003-02-17 Bruno Haible <bruno@clisp.org>
58064 * lib/mkdtemp.h: New file, from GNU gettext.
58065 * lib/mkdtemp.c: New file, from GNU gettext.
58067 2003-02-02 Jim Meyering <jim@meyering.net>
58069 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58072 2003-01-31 Bruno Haible <bruno@clisp.org>
58074 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58076 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58078 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58080 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58083 2003-01-31 Bruno Haible <bruno@clisp.org>
58085 * lib/rename.c: #undef rename before defining rpl_rename.
58086 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58088 2003-01-30 Bruno Haible <bruno@clisp.org>
58090 * modules/vasnprintf, modules/vasprintf: New modules.
58091 * MODULES.html.sh (func_all_modules): Add them.
58093 2003-01-30 Bruno Haible <bruno@clisp.org>
58095 * m4/signed.m4: New file, from GNU gettext.
58096 * m4/longdouble.m4: New file, from GNU gettext.
58097 * m4/wchar_t.m4: New file, from GNU gettext.
58098 * m4/wint_t.m4: New file, from GNU gettext.
58099 * m4/vasnprintf.m4: New file.
58100 * m4/vasprintf.m4: New file.
58102 2003-01-30 Bruno Haible <bruno@clisp.org>
58104 * lib/printf-args.h: New file, from GNU gettext.
58105 * lib/printf-args.c: New file, from GNU gettext.
58106 * lib/printf-parse.h: New file, from GNU gettext.
58107 * lib/printf-parse.c: New file, from GNU gettext.
58108 * lib/vasnprintf.h: New file, from GNU gettext.
58109 * lib/vasnprintf.c: New file, from GNU gettext.
58110 * lib/asnprintf.c: New file, from GNU gettext.
58111 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58112 * lib/vasprintf.c: New file, from GNU gettext.
58113 * lib/asprintf.c: New file, from GNU gettext.
58115 2003-01-29 Bruno Haible <bruno@clisp.org>
58117 * modules/stpncpy: New module.
58118 * MODULES.html.sh (func_all_modules): Add it.
58120 2003-01-29 Bruno Haible <bruno@clisp.org>
58122 * m4/stpncpy.m4: New file.
58124 2003-01-29 Bruno Haible <bruno@clisp.org>
58126 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58127 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58129 2003-01-28 Bruno Haible <bruno@clisp.org>
58131 * modules/c-ctype: New module.
58132 * MODULES.html.sh (func_all_modules): Add it.
58134 2003-01-28 Bruno Haible <bruno@clisp.org>
58136 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58138 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58141 2003-01-27 Bruno Haible <bruno@clisp.org>
58143 * modules/xsetenv: New module.
58144 * MODULES.html.sh (func_all_modules): Add it.
58146 2003-01-27 Bruno Haible <bruno@clisp.org>
58148 * lib/xsetenv.h: New file, from GNU gettext.
58149 * lib/xsetenv.c: New file, from GNU gettext.
58151 2003-01-23 Jim Meyering <jim@meyering.net>
58153 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58154 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58156 2003-01-23 Bruno Haible <bruno@clisp.org>
58158 * modules/minmax: New module.
58159 * MODULES.html.sh (func_all_modules): Add it.
58161 2003-01-23 Bruno Haible <bruno@clisp.org>
58163 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58166 2003-01-22 Bruno Haible <bruno@clisp.org>
58168 * modules/exit: New module.
58169 * MODULES.html.sh (func_all_modules): Add it.
58171 2003-01-22 Bruno Haible <bruno@clisp.org>
58173 * lib/exit.h: New file, from GNU gettext.
58175 2003-01-19 Bruno Haible <bruno@clisp.org>
58177 * gnulib-tool: Recognize option --extract-maintainer.
58178 (func_get_maintainer): New function.
58179 * modules/*: Add Maintainer entry.
58181 2003-01-16 Jim Meyering <jim@meyering.net>
58183 * m4/regex.m4: The `regex' struct is both input and output.
58184 Initialize it before each use. Patch by Tim Waugh.
58186 2003-01-16 Bruno Haible <bruno@clisp.org>
58188 * MODULES.html.sh: Add a table of contents. Add the module name as
58189 leftmost column. Add hyperlinks.
58191 2003-01-15 Bruno Haible <bruno@clisp.org>
58193 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58195 2003-01-15 Bruno Haible <bruno@clisp.org>
58197 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58198 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58201 2003-01-15 Bruno Haible <bruno@clisp.org>
58203 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58205 2003-01-15 Bruno Haible <bruno@clisp.org>
58207 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58208 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58210 2003-01-14 Jim Meyering <jim@meyering.net>
58212 * lib/same.c (same_name): Tweak a comment.
58214 2003-01-14 Bruno Haible <bruno@clisp.org>
58216 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58217 when a string comparison is sufficient.
58219 2003-01-14 Bruno Haible <bruno@clisp.org>
58221 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58224 2003-01-14 Bruno Haible <bruno@clisp.org>
58226 * lib/hash-pjw.c: Add comment about low quality of this function.
58228 2003-01-13 Bruno Haible <bruno@clisp.org>
58230 * modules/stpcpy: Distribute lib/stpcpy.h.
58231 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58233 2003-01-13 Bruno Haible <bruno@clisp.org>
58235 * modules/*: Add a description.
58236 * modules/strpbrk: Fix Makefile.am snippet.
58237 * modules/strtoimax: Fix dependencies.
58238 * modules/strtoumax: Likewise.
58240 2003-01-13 Bruno Haible <bruno@clisp.org>
58242 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58243 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58244 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58246 2003-01-13 Bruno Haible <bruno@clisp.org>
58248 * gnulib-tool (func_create_testdir): Store config/* files in the main
58250 * config.rpath: Move to ...
58251 * config/config.rpath: ... here.
58252 * modules/gettext: Contains config/config.rpath, not config.rpath.
58253 * modules/iconv: Likewise.
58255 2003-01-12 Paul Eggert <eggert@twinsun.com>
58257 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58258 to avoid collisions with libcurses and libreadline.
58260 * m4/getstr.m4: Remove.
58261 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58263 2003-01-12 Paul Eggert <eggert@twinsun.com>
58265 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58266 to avoid collisions with libcurses and libreadline.
58268 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58269 * lib/getstr.h, getstr.c: Remove.
58270 * lib/getline.c: Include "getline.h", to check interface.
58271 Move body of old getstr.c here: this defines MIN_CHUNK and
58272 declares getdelim2, which is renamed from getstr.
58273 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58275 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58277 * lib/linebuffer.h: Likewise.
58278 (readline): Remove backward-compatibility macro.
58280 2003-01-12 Paul Eggert <eggert@twinsun.com>
58282 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58283 to avoid collisions with libcurses and libreadline.
58285 * MODULES.html.sh: Remove getstr.
58286 * modules/getline: Depend on unlocked-io, not getstr.
58288 2003-01-12 Jim Meyering <jim@meyering.net>
58290 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58292 2003-01-10 Bruno Haible <bruno@clisp.org>
58294 * modules/alloca: Change Makefile.am requirements. Simplify Include
58295 requirements. Add lib/alloca_.h to file list.
58297 2003-01-10 Bruno Haible <bruno@clisp.org>
58299 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58301 2003-01-10 Bruno Haible <bruno@clisp.org>
58303 * lib/alloca_.h: New file.
58304 * lib/getdate.y: Unconditionally include alloca.h.
58305 * lib/makepath.c: Likewise.
58306 * lib/setenv.c: Likewise.
58307 * lib/userspec.c: Likewise.
58309 2003-01-09 Karl Berry <karl@gnu.org>
58311 * MODULES.html.sh: include `dirname $0` in PATH, to find
58314 2003-01-09 Bruno Haible <bruno@clisp.org>
58316 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58317 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58319 2003-01-09 Bruno Haible <bruno@clisp.org>
58321 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58323 2003-01-09 Bruno Haible <bruno@clisp.org>
58325 * lib/stdbool.h.in: New file.
58327 2003-01-09 Bruno Haible <bruno@clisp.org>
58329 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58330 * MODULES.html.sh: Likewise.
58332 2003-01-08 Jim Meyering <jim@meyering.net>
58334 * lib/full-write.c: Undefine and define-away `const' after inclusion
58335 of errno.h, not before. Suggestion from Bruno Haible.
58337 2003-01-08 Bruno Haible <bruno@clisp.org>
58339 * modules/full-read: Depend on full-write.
58341 2003-01-08 Bruno Haible <bruno@clisp.org>
58343 * lib/safe-read.c: Include specification header first, to ensure its
58345 * lib/full-write.c: Likewise.
58347 2003-01-07 Jim Meyering <jim@meyering.net>
58349 * lib/full-write.c: Rework so that it may serve to define full_read,
58351 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58353 2003-01-07 Bruno Haible <bruno@clisp.org>
58355 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58357 * lib/xstrtol.h: Likewise.
58358 * lib/xstrtoimax.c: Likewise.
58359 * lib/xstrtoumax.c: Likewise.
58360 * lib/human.h: Likewise.
58362 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58363 on systems that have <inttypes.h> but not <stdint.h>.
58365 2003-01-07 Bruno Haible <bruno@clisp.org>
58367 * MODULES.html.sh: Add copyright notice.
58368 (missed_files): Omit CVS directory entries.
58369 (func_module): Make it work with sed-3.02.
58370 * MODULES.txt: Remove file.
58372 2003-01-06 Jim Meyering <jim@meyering.net>
58374 * lib/version-etc.c: Update year in translatable copyright string.
58376 2003-01-03 Karl Berry <karl@gnu.org>
58378 * config/config.{guess,sub}: update from prep.
58380 2003-01-02 Karl Berry <karl@gnu.org>
58382 * doc/COPYING.DOC: belatedly updated to 1.2.
58384 2003-01-01 Karl Berry <karl@gnu.org>
58386 * gnulib-tool (func_verify_module): report module name $module in
58387 error message, not $1.
58388 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58389 be created, only if it doesn't exist.
58390 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58392 2002-12-31 Paul Eggert <eggert@twinsun.com>
58394 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58396 2002-12-31 Paul Eggert <eggert@twinsun.com>
58398 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58399 memcmp if strcoll doesn't work.
58401 2002-12-31 Bruno Haible <bruno@clisp.org>
58403 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58406 2002-12-31 Bruno Haible <bruno@clisp.org>
58408 * lib/memcoll.c (STRCOLL): New macro.
58411 2002-12-31 Bruno Haible <bruno@clisp.org>
58413 * lib/localcharset.h: New file.
58414 * lib/localcharset.c: Include it.
58415 * lib/unicodeio.c: Likewise.
58417 2002-12-31 Bruno Haible <bruno@clisp.org>
58419 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58420 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58422 2002-12-31 Bruno Haible <bruno@clisp.org>
58424 * lib/getline.h: Include <stddef.h>, for size_t.
58426 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58427 * lib/unicodeio.c: Don't include <stddef.h>.
58429 2002-12-31 Bruno Haible <bruno@clisp.org>
58431 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58434 2002-12-24 Karl Berry <karl@gnu.org>
58436 * config/config.guess: update from prep.
58438 2002-12-24 Bruno Haible <bruno@clisp.org>
58440 General infrasructure.
58441 * m4/README: Rewritten.
58442 * m4/onceonly.m4: New file.
58443 * m4/onceonly_2_57.m4: New file.
58446 * m4/atexit.m4: New file.
58449 * m4/strtod.m4: New file.
58452 * m4/strtol.m4: New file.
58455 * m4/strtoul.m4: New file.
58458 * m4/memchr.m4: New file.
58461 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58462 (jm_FUNC_MEMCMP): Invoke it.
58465 * m4/memcpy.m4: New file.
58468 * m4/memmove.m4: New file.
58471 * m4/memset.m4: New file.
58474 * m4/strcspn.m4: New file.
58477 * m4/strpbrk.m4: New file.
58480 * m4/strstr.m4: New file.
58483 * m4/strerror.m4: New file.
58486 * m4/mktime.m4: Renamed from jm-mktime.m4.
58487 (gl_PREREQ_MKTIME): New macro.
58488 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58491 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58492 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58493 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58496 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58497 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58498 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58501 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58502 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58503 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58505 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58508 * m4/xalloc.m4: New file.
58511 * m4/alloca.m4: New file.
58514 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58515 (jm_FUNC_PUTENV): Invoke it.
58518 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58519 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58520 when invoked twice.
58521 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58525 * m4/memrchr.m4: New file.
58528 * m4/stpcpy.m4: New file.
58531 * m4/strcase.m4: New file.
58534 * m4/strdup.m4: New file.
58537 * m4/strnlen.m4: New file.
58540 * m4/strndup.m4: New file.
58543 * m4/xstrtod.m4: New file.
58546 * m4/xstrtol.m4: New file.
58549 * m4/getdate.m4: New file.
58551 Module unlocked-io.
58552 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58553 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58554 * m4/jm-glibc-io.m4n: Remove file.
58556 Module long-options.
58557 * m4/long-options.m4: New file.
58560 * m4/md5.m4: New file.
58563 * m4/sha.m4: New file.
58566 * m4/getstr.m4: New file.
58569 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58570 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58571 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58572 simply getline. Infoke gl_PREREQ_GETLINE.
58575 * m4/obstack.m4: New file.
58578 * m4/hash.m4: New file.
58581 * m4/readtokens.m4: New file.
58584 * m4/strverscmp.m4: New file.
58587 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58591 * m4/strtoll.m4: New file.
58594 * m4/strtoull.m4: New file.
58597 * m4/strtoimax.m4: New file.
58600 * m4/strtoumax.m4: New file.
58603 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58604 jm_AC_PREREQ_XSTRTOIMAX.
58605 Moved the strtol prerequisites to strtol.m4.
58606 Moved the strtoll prerequisites to strtoll.m4.
58607 Moved the strtoimax prerequisites to strtoimax.m4.
58610 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58611 jm_AC_PREREQ_XSTRTOUMAX.
58612 Moved the strtoul prerequisites to strtoul.m4.
58613 Moved the strtoull prerequisites to strtoull.m4.
58614 Moved the strtoumax prerequisites to strtoumax.m4.
58617 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58618 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58621 * m4/dup2.m4: New file.
58624 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58625 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58628 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58629 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58631 Module gettimeofday.
58632 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58633 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58634 gl_PREREQ_GETTIMEOFDAY.
58637 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58638 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58641 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58642 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58643 jm_AC_TYPE_UINTMAX_T.
58644 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58647 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58648 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58651 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58652 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58655 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58656 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58657 * m4/st_mtim.m4: Indentation.
58660 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58661 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58662 gl_PREREQ_NANOSLEEP.
58665 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58666 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58667 (gl_REGEX): New macro.
58670 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58671 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58674 * m4/rmdir.m4: New file.
58677 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58678 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58679 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58682 * m4/dirname.m4: New file.
58685 * m4/getopt.m4: New file.
58687 Module unistd-safer.
58688 * m4/unistd-safer.m4: New file.
58691 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58693 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58694 (gl_FUNC_FNMATCH_POSIX): New macro.
58695 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58696 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58700 * m4/exclude.m4: New file.
58703 * m4/human.m4: New file.
58709 * m4/backupfile.m4: New file.
58710 * m4/d-ino.m4: Indentation.
58713 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58714 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58715 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58718 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58722 * m4/euidaccess.m4: New file.
58725 * m4/file-type.m4: New file.
58728 * m4/fileblocks.m4: New file.
58731 * m4/filemode.m4: New file.
58734 * m4/isdir.m4: New file.
58737 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58738 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58741 * m4/makepath.m4: New file.
58744 * m4/modechange.m4: New file.
58747 * m4/mountlist.m4: New file.
58748 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58751 Module path-concat.
58752 * m4/path-concat.m4: New file.
58755 * m4/pathmax.m4: New file.
58758 * m4/same.m4: New file.
58761 * m4/save-cwd.m4: New file.
58764 * m4/savedir.m4: New file.
58767 * m4/xgetcwd.m4: New file.
58768 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58771 * m4/xreadlink.m4: New file.
58774 * m4/safe-read.m4: New file.
58777 * m4/safe-write.m4: New file.
58780 * m4/closeout.m4: New file.
58782 Module stdio-safer.
58783 * m4/stdio-safer.m4: New file.
58786 * m4/getpass.m4: New file.
58789 * m4/getugroups.m4: New file.
58791 Module group-member.
58792 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58793 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58796 * m4/idcache.m4: New file.
58799 * m4/userspec.m4: New file.
58802 * m4/clock_time.m4: New file.
58803 * m4/gettime.m4: New file.
58806 * m4/settime.m4: New file.
58809 * m4/posixtm.m4: New file.
58811 Module gethostname.
58812 * m4/gethostname.m4: New file.
58815 * m4/canon-host.m4: New file.
58818 * m4/codeset.m4: New file, from gettext-0.11.5.
58819 * m4/gettext.m4: New file, from gettext-0.11.5.
58820 * m4/glibc21.m4: New file, from gettext-0.11.5.
58821 * m4/iconv.m4: New file, from gettext-0.11.5.
58822 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58823 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58824 * m4/inttypes.m4: New file, from gettext-0.11.5.
58825 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58826 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58827 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58828 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58829 * m4/lib-link.m4: New file, from gettext-0.11.5.
58830 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58831 * m4/progtest.m4: New file, from gettext-0.11.5.
58832 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58833 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58834 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58836 Module localcharset.
58837 * m4/localcharset.m4: New file.
58839 Module hard-locale.
58840 * m4/hard-locale.m4: New file.
58843 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58845 * m4/mbrtowc.m4: Add comment.
58848 * m4/memcasecmp.m4: New file.
58851 * m4/memcoll.m4: New file.
58854 * m4/unicodeio.m4: New file.
58857 * m4/rpmatch.m4: New file.
58860 * m4/yesno.m4: New file.
58863 * m4/exitfail.m4: New file.
58866 * m4/c-stack.m4 (gl_C_STACK): New macro.
58867 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58870 * m4/error.m4 (gl_ERROR): New macro.
58871 (jm_PREREQ_ERROR): Use onceonly macros.
58874 * m4/fatal.m4: New file.
58877 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58878 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58880 Module getpagesize.
58881 * m4/getpagesize.m4: New file.
58883 Module getusershell.
58884 * m4/getusershell.m4: New file.
58887 * m4/physmem.m4: New file.
58890 * m4/posixver.m4: New file.
58893 * m4/quotearg.m4: New file.
58896 * m4/quote.m4: New file.
58899 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58902 * m4/sig2str.m4: New file.
58905 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58907 * m4/intmax_t.m4: New file.
58908 * m4/d-type.m4: Indentation.
58909 * m4/jm-macros.m4: Update.
58910 * m4/prereq.m4 (jm_PREREQ): Update.
58911 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58912 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58913 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58914 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58915 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58916 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58917 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58918 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58919 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58920 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58921 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58922 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58923 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58924 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58925 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58926 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58927 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58928 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58929 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58931 2002-12-24 Bruno Haible <bruno@clisp.org>
58933 * MODULES.txt: Update according to m4/ changes.
58936 * config.rpath: New file, from gettext-0.11.5.
58938 * modules/*: New module descriptions.
58939 * gnulib-tool: New file.
58940 * MODULES.html.sh: New file.
58942 2002-12-21 Karl Berry <karl@gnu.org>
58944 * doc/fdl.texi: update to version 1.2.
58946 2002-12-19 Karl Berry <karl@gnu.org>
58948 * config/config.guess: update from prep.
58950 2002-12-18 Bruno Haible <bruno@clisp.org>
58952 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58953 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58955 2002-12-17 Bruno Haible <bruno@clisp.org>
58957 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58958 stdlib.h, string.h.
58960 2002-12-17 Bruno Haible <bruno@clisp.org>
58962 * lib/canon-host.c (strdup): Remove unused declaration.
58964 * lib/fsusage.c: Include full_read.h.
58965 (get_fs_usage): Use full_read instead of safe_read.
58967 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58969 2002-12-12 Karl Berry <karl@gnu.org>
58971 * config/config.guess: update from prep.
58973 2002-12-11 Bruno Haible <bruno@clisp.org>
58975 * m4/setenv.m4: New file, from gettext-0.11.5.
58977 2002-12-11 Bruno Haible <bruno@clisp.org>
58979 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58981 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58984 2002-12-11 Bruno Haible <bruno@clisp.org>
58986 * setenv.c (alloca): Fall back to malloc.
58987 (freea): New macro.
58988 (setenv): Use freea() to free memory allocated with alloca().
58990 2002-11-13 Bruno Haible <bruno@clisp.org>
58992 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58993 function declarations.
58994 * unsetenv.c (unsetenv): Likewise.
58996 2002-03-04 Bruno Haible <bruno@clisp.org>
58998 Portability to AIX 4.3.3.
58999 * unsetenv.c: New file, extracted from setenv.c.
59000 * setenv.c: Move the unsetenv() function to unsetenv.c.
59002 2001-12-20 Bruno Haible <bruno@clisp.org>
59004 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59005 use malloc instead. For SunOS 4.
59007 2001-12-11 Bruno Haible <bruno@clisp.org>
59009 * setenv.c: Declare alloca.
59010 (compar_fn_t): New typedef.
59011 (KNOWN_VALUE, STORE_VALUE): Use it.
59013 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59016 2002-12-10 Paul Eggert <eggert@twinsun.com>
59018 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59019 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59020 Choose values that are less likely to collide with system fnmatch
59022 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59023 defined (e.g., a pure POSIX system).
59024 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59025 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59027 2002-12-06 Paul Eggert <eggert@twinsun.com>
59029 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59030 a pain in practice to deal with generated m4 files. This change
59031 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59033 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59034 and jm-glibc-io.m4, as they are no longer a special case.
59035 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59036 kludge and the auto-generation stuff. Check only whether the
59037 functions are declared, not whether they exist, since older hosts
59038 that don't declare the functions can't use the optimization anyway.
59040 2002-12-06 Jim Meyering <jim@meyering.net>
59042 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59044 Merge in changes from libc's misc/error.c, in preparation
59045 for the merge of gnulib's changes back into libc.
59047 * lib/error.c (_): Define only if not already defined.
59048 Move definition to follow all #include directives.
59049 Include unlocked-io.h only if !_LIBC.
59050 [_LIBC]: Include <libio/libioP.h>.
59051 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59052 (fflush): Tweak definition to use INTUSE.
59055 2002-12-05 Paul Eggert <eggert@twinsun.com>
59057 * lib/alloca.c [defined emacs]: Include "lisp.h".
59058 (xalloc_die) [defined emacs]: New macro.
59059 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59060 [! defined emacs]: Include <xalloc.h>.
59061 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59062 (pointer): Typedef to POINTER_TYPE *.
59063 (malloc): Remove decl; we now always use xmalloc.
59064 (alloca): Use old-style definition, since Emacs needs this.
59065 Check for arithmetic overflow when computing combined size.
59067 2002-12-04 Paul Eggert <eggert@twinsun.com>
59069 Do not generate unlocked-io.h automatically, since it's easier to
59070 maintain it by hand.
59072 * lib/unlocked-io.h: New file, from GNU diffutils,
59073 but with proper copyright notice and attribution.
59074 * lib/gen-uio: Remove.
59075 * lib/Makefile.am: Add copyright notice.
59076 (libfetish_a_SOURCES): Add unlocked-io.h.
59077 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59078 (DISTCLEANFILES, io_functions): Remove macros.
59079 (EXTRA_DIST): Remove gen_uio.
59080 (unlocked-io.h): Remove rule.
59082 2002-12-04 Jim Meyering <jim@meyering.net>
59084 Reflect the fact that stat.c and lstat.c are no longer generated.
59085 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59086 (DISTCLEANFILES): Likewise.
59087 (EXTRA_DIST): Likewise.
59088 (all_local): Don't depend on stat.c or lstat.c.
59089 (stat.c, lstat.c): Remove rules.
59090 (EXTRA_DIST): Remove xstat.in.
59092 * lib/xstat.in: Remove file. Contents moved into stat.c.
59093 * lib/stat.c: New file. Contents mostly from xstat.in.
59094 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59095 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59097 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59099 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59101 2002-12-03 Jim Meyering <jim@meyering.net>
59103 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59104 but not semantics, to minimize the differences between these two files.
59105 (safe_read): Change comment to mention SAFE_READ_ERROR.
59107 * lib/safe-read.c (IS_EINTR): Define.
59108 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59110 2002-12-02 Jim Meyering <jim@meyering.net>
59112 * lib/safe-read.c (EINTR): Define.
59113 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59114 (INT_MAX): Provide fallback.
59115 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59117 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59119 2002-12-02 Bruno Haible <bruno@clisp.org>
59121 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59122 Define, taken from safe-read.c.
59123 (INT_MAX): Provide fallback.
59124 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59125 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59127 * lib/safe-read.c (EINTR): Remove definition.
59128 (safe_read): Don't use EINTR if it is absent.
59130 2002-12-01 Jim Meyering <jim@meyering.net>
59132 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59134 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59136 2002-11-27 Paul Eggert <eggert@twinsun.com>
59138 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59139 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59140 with `if (! (value < limit)) abort ();', for readability.
59142 2002-11-26 Karl Berry <karl@gnu.org>
59144 * lib/strdup.c: copy from libc again, with jim's ok.
59145 * lib/.cppi-disable: re-add strdup.c
59147 2002-11-25 Karl Berry <karl@gnu.org>
59149 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59150 instead of "strtol.c".
59152 2002-11-25 Karl Berry <karl@gnu.org>
59154 * config/install-sh: update from automake for variable quoting, $0 in
59157 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59158 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59161 2002-11-25 Jim Meyering <jim@meyering.net>
59163 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59165 2002-11-24 Karl Berry <karl@gnu.org>
59167 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59168 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59170 2002-11-24 Jim Meyering <jim@meyering.net>
59172 Update from coreutils:
59174 * lib/mktime.c: Merge in changes from libc.
59176 Avoid a link-time failure on some Linux systems.
59177 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59179 (__mon_yday): Declare with the STATIC attribute.
59180 (__mktime_internal): Likewise.
59181 Based on a report from Greg Schafer.
59183 2002-11-23 Jim Meyering <jim@meyering.net>
59185 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59186 Use `unsigned', not `int', as type of index.
59188 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59190 * lib/fsusage.c: Remove unneeded parentheses around operands of
59193 2002-11-22 Paul Eggert <eggert@twinsun.com>
59195 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59196 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59197 so that we can be included first.
59198 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59199 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59200 No need to include stddef.h or sys/types.h any more.
59201 Surround local include files with "", not "<>".
59202 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59203 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59204 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59205 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59206 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59207 (ISPRINT): Remove; no longer needed now that we assume C89.
59209 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59212 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59213 quotearg_char): Use SIZE_MAX rather than
59214 (size_t) -1 when we are talking about "infinity".
59216 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59218 2002-11-22 Paul Eggert <eggert@twinsun.com>
59220 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59221 hint that one should use `if (! x) abort ();' rather than `assert
59222 (x);', and anyway it's one less thing to worry about configuring.
59223 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59224 hash_rehash, hash_insert): Use abort rather than assert.
59226 2002-11-22 Bruno Haible <bruno@clisp.org>
59228 * lib/safe-read.h: Assume C89. Add comments.
59229 (safe_read): Change return type to size_t.
59230 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59231 byte counts > SSIZE_MAX correctly.
59232 * lib/safe-write.h: New file.
59233 * lib/safe-write.c: New file.
59234 * lib/full-read.h: New file.
59235 * lib/full-read.c: New file.
59236 * lib/full-write.h: Assume C89. Add comments.
59237 * lib/full-write.c: Include safe-write.h.
59238 (full_write): Rewritten to use safe_write.
59239 Suggested by Jim Meyering and Paul Eggert.
59241 2002-11-21 Jim Meyering <jim@meyering.net>
59243 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59245 Merge in changes from the coreutils.
59247 2002-09-25 Paul Eggert <eggert@twinsun.com>
59248 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59250 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59251 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59252 int. Work more efficiently if X is the same width as uintmax_t.
59253 Do not compare X to -1, to avoid bogus compiler warning.
59254 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59255 Don't assume that f_frsize and f_bsize are the same type.
59257 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59258 warning on FreeBSD.
59260 * lib/makepath.c (make_path): Restore umask *before* creating the final
59262 (make_path): Minor reformatting.
59264 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59265 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59266 HAVE_MALLOC/HAVE_REALLOC.
59268 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59269 dummy ones. At least on GNU/Linux systems, `auto' means something
59271 From Michael Stone.
59273 2002-11-21 Bruno Haible <bruno@clisp.org>
59275 Remove case insensitive option matching.
59276 * lib/argmatch.h (argcasematch): Remove declaration.
59277 (ARGCASEMATCH): Remove macro.
59278 (__xargmatch_internal): Remove case_sensitive argument.
59279 (XARGMATCH): Update.
59280 (XARGCASEMATCH): Remove macro.
59281 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59282 case_sensitive argument.
59283 (argcasematch): Remove function.
59284 (__xargmatch_internal): Remove case_sensitive argument.
59285 (main): Use XARGMATCH instead of XARGCASEMATCH.
59287 * lib/xmalloc.c: Change compile-time error message. Add comment about
59288 required autoconf version.
59290 2002-11-20 Paul Eggert <eggert@twinsun.com>
59292 Merge argmatch cleanups from Bison. Assume C89.
59294 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59295 Include stdlib.h, for EXIT_FAILURE.
59296 Always include <string.h>, since we assume C89.
59297 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59298 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59299 Include <stddef.h> instead, since it's all we need for size_t.
59300 (PARAMS): Remove. All uses removed.
59301 (ARRAY_CARDINALITY): Do not bother to #undef.
59302 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59303 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59304 Remove unnecessary parentheses.
59305 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59306 Insert necessary parentheses.
59307 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59308 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59310 2002-11-19 Bruno Haible <bruno@clisp.org>
59312 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59313 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59315 * lib/mbswidth.h (PARAMS): Remove macro.
59316 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59317 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59319 * lib/gcd.h (PARAMS): Remove macro.
59320 (gcd): Use ANSI C function declarations.
59321 * lib/gcd.c (gcd): Likewise.
59323 2002-11-15 Bruno Haible <bruno@clisp.org>
59325 * lib/strcspn.c: Include <stddef.h>.
59326 (strcspn): Use ANSI C function declaration. Change return type to
59328 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59329 (strpbrk): Use NULL.
59330 * lib/strpbrk.h (PARAMS): Remove macro.
59331 (strpbrk): Use ANSI C function declaration.
59332 * lib/strstr.c: Don't include <sys/types.h>.
59333 * lib/strstr.h (PARAMS): Remove macro.
59334 (strstr): Use ANSI C function declarations.
59336 2002-11-14 Karl Berry <karl@gnu.org>
59338 * config/mkinstalldirs: `do' on separate line, instead of
59341 2002-11-06 Bruno Haible <bruno@clisp.org>
59343 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59344 * lib/gcd.c (gcd): Likewise.
59346 2002-11-05 Bruno Haible <bruno@clisp.org>
59348 * lib/gcd.h: New file, from gettext-0.11.5.
59349 * lib/gcd.c: New file, from gettext-0.11.5.
59351 2002-11-05 Bruno Haible <bruno@clisp.org>
59353 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59354 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59355 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59356 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59358 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59360 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59363 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59364 * lib/human.c: Include gettext.h instead of <libintl.h>.
59365 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59366 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59367 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59368 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59369 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59370 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59371 (textdomain): Remove definition.
59372 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59374 * lib/long-options.c: Remove include of <libintl.h> and definition of
59376 * lib/same.c: Remove include of <libintl.h> and definition of _.
59378 2002-11-04 Owen Taylor <otaylor@redhat.com>
59380 * lib/config.charset: A few additions for Solaris.
59382 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59384 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59385 * lib/localcharset.c (locale_charset): Declare as extern "C".
59387 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59389 * lib/config.charset: msdos in uk_UA uses CP1125.
59391 2002-11-04 Bruno Haible <bruno@clisp.org>
59393 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59394 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59395 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59396 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59397 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59399 2002-11-04 Bruno Haible <bruno@clisp.org>
59401 * lib/localcharset.c (locale_charset): Don't return an empty string.
59403 2002-11-04 Bruno Haible <bruno@clisp.org>
59405 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59408 2002-11-04 Bruno Haible <bruno@clisp.org>
59410 * lib/config.charset: Update for newest glibc. Add canonical names
59411 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59413 2002-11-04 Bruno Haible <bruno@clisp.org>
59415 * lib/config.charset: Add support for NetBSD.
59417 2002-11-04 Bruno Haible <bruno@clisp.org>
59419 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59421 2002-11-01 Bruno Haible <bruno@clisp.org>
59423 * configure.in: Add AC_CONFIG_AUX_DIR call.
59424 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59426 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59428 2002-09-28 Karl Berry <karl@gnu.org>
59430 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59431 installed automake until the next release, since changes have been
59434 2002-09-25 Karl Berry <karl@gnu.org>
59436 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59437 * lib/getopt*: copy from libc/posix.
59438 * lib/gettext.h: copy from gettext.
59439 * lib/.cppi-disable: add strdup.c, gettext.h.
59441 2002-09-25 Karl Berry <karl@gnu.org>
59443 * config/srclist.txt: enable gettext.h check.
59444 * config/config.{guess,sub}: update from prep.
59445 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59446 from automake 1.6.3.
59449 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59451 * regex.c (PATFETCH): Remove the translating fetch.
59452 (PATFETCH_RAW): Rename to PATFETCH.
59453 (set_image_of_range): New fun.
59454 (SET_RANGE_TABLE_WORK_AREA): Use it.
59455 (regex_compile): Don't translate the pattern chars so eagerly.
59456 Only do it when inserting an `exactn' bytecode or when handling
59458 (mutually_exclusive_p): Avoid empty statement.
59460 2002-07-06 Jim Meyering <meyering@lucent.com>
59462 * m4/README: Don't mention Makefile.am.in.
59463 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59465 2002-07-01 Jim Meyering <meyering@lucent.com>
59467 * lib/c-stack.c: Include sys/time.h.
59468 From Volker Borchert.
59470 2002-06-26 Paul Eggert <eggert@twinsun.com>
59472 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59474 2002-06-26 Paul Eggert <eggert@twinsun.com>
59476 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59477 New macro. Use it uniformly instead of
59478 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59479 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59480 reported by Vin Shelton.
59482 2002-06-22 Paul Eggert <eggert@twinsun.com>
59484 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59485 Do not assume SA_SIGINFO behavior.
59486 Bug reported by Jim Meyering on NetBSD 1.5.2.
59488 2002-06-22 Jim Meyering <meyering@lucent.com>
59490 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59491 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59493 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59494 now that configure.ac uses AC_GNU_SOURCE.
59495 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59496 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59498 Update to latest tools. Suggestions from Paul Eggert.
59499 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59500 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59501 * m4/fnmatch.m4: Likewise.
59502 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59503 to AC_HEADER_STDBOOL
59505 2002-06-22 Jim Meyering <meyering@lucent.com>
59507 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59508 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59510 2002-06-22 Jim Meyering <meyering@lucent.com>
59512 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59514 * lib/exitfail.c, exitfail.h: Likewise.
59515 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59517 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59519 (EXTRA_DIST): Add fnmatch_loop.c.
59520 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59522 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59523 * lib/fnmatch.c: Update from diffutils-2.8.2.
59524 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59525 * lib/fnmatch.h: Remove file.
59527 2002-06-21 Jim Meyering <meyering@lucent.com>
59529 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59530 * m4/mbrtowc.m4: Likewise.
59532 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59533 * m4/mbswidth.m4: Reflect name change:
59534 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59535 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59537 * m4/lib-link.m4: Update from gettext-0.11.2.
59538 * m4/gettext.m4: Likewise.
59540 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59541 From Alfred M. Szmidt.
59543 2002-06-18 Paul Eggert <eggert@twinsun.com>
59545 * lib/file-type.h: Report an error if neither S_ISREG nor
59546 S_IFREG is defined, instead of using a test specific to glibc
59547 2.2. This should be safe, since POSIX requires S_ISREG and
59548 Unix Version 7 had S_IFREG. We don't need to check for
59549 <sys/types.h> since we don't use any symbols that it defines.
59551 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59553 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59554 $@-t, so that each temporary file name is unique and valid in the first
59555 8 characters, for operation under DOS.
59557 2002-06-15 Paul Eggert <eggert@twinsun.com>
59559 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59561 2002-06-15 Jim Meyering <meyering@lucent.com>
59563 Work even with DJGPP 2.03, which lacks support for symlinks.
59565 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59567 * lib/lchown.c (S_ISLNK): Likewise.
59569 2002-06-15 Jim Meyering <meyering@lucent.com>
59571 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59572 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59573 have been included before this file.
59575 2002-06-14 Jim Meyering <meyering@lucent.com>
59577 * lib/file-type.h: Use the version from diffutils-2.8.2.
59578 * lib/file-type.c: Likewise.
59580 2002-06-07 Jim Meyering <meyering@lucent.com>
59582 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59583 They're needed at least for NetBSD 1.5.2.
59584 ($statxfs_includes): Include those same headers.
59585 ($statxfs_includes): Include sys/vfs.h if available.
59586 ($statxfs_includes): Likewise for sys/statvfs.h.
59587 Check for the following members in both structs statfs and statvfs:
59588 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59590 2002-06-01 Jim Meyering <meyering@lucent.com>
59592 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59593 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59595 2002-05-28 Jim Meyering <meyering@lucent.com>
59597 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59598 Reported by Volker Borchert.
59600 2002-05-27 Jim Meyering <meyering@lucent.com>
59602 Fix a problem seen only on nonconforming systems whereby ls.c's
59603 use of localtime, and then of gettimeofday would cause trouble:
59604 the localtime call used to initialize rpl_gettimeofday's save
59605 mechanism would clobber ls's current local time information so
59606 that in any long listing the first file would always be listed
59607 with date 1970-01-01. Analysis by Volker Borchert.
59609 * lib/gettimeofday.c (localtime): Undefine.
59610 (rpl_localtime): New function.
59612 2002-05-27 Jim Meyering <meyering@lucent.com>
59614 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59617 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59618 use the replacement function; it wouldn't resolve at link time.
59619 Reported by Volker Borchert.
59621 2002-05-22 Jim Meyering <meyering@lucent.com>
59623 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59625 * lib/file-type.h: New file.
59626 * lib/file-type.c (file_type): New file/function. Extracted from
59629 2002-04-30 Jim Meyering <meyering@lucent.com>
59631 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59633 2002-04-29 Paul Eggert <eggert@twinsun.com>
59635 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59637 2002-04-29 Paul Eggert <eggert@twinsun.com>
59639 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59640 Do not check for alloca.h (no longer used) or stdbool.h (was never
59641 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59643 2002-04-29 Paul Eggert <eggert@twinsun.com>
59645 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59647 2002-04-29 Jim Meyering <meyering@lucent.com>
59649 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59650 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59651 Use AC_FUNC_STRNLEN here instead.
59653 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59654 With autoconf-2.53a, it's part of AC_PROG_CC.
59656 2002-04-28 Paul Eggert <eggert@twinsun.com>
59658 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59659 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59661 2002-04-28 Paul Eggert <eggert@twinsun.com>
59663 * lib/sig2str.h, lib/sig2str.c: New files.
59664 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59666 2002-04-28 Paul Eggert <eggert@twinsun.com>
59668 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59669 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59670 of 127, since 64 is the largest conceivable number for ancient
59672 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59674 2002-04-28 Jim Meyering <meyering@lucent.com>
59676 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59678 2002-04-24 Jim Meyering <meyering@lucent.com>
59680 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59681 (jm_PREREQ): Use it.
59683 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59684 mach/mach.h fcntl.h.
59685 Check for this function: setlocale.
59687 2002-04-24 Jim Meyering <meyering@lucent.com>
59689 * lib/gettext.h: New file, from Gettext.
59690 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59691 (libfetish_a_SOURCES): Add gettext.h.
59693 2002-04-16 Jim Meyering <meyering@lucent.com>
59695 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59696 ut_pid, ut_id, ut_exit.
59698 2002-04-16 Jim Meyering <meyering@lucent.com>
59700 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59701 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59702 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59704 2002-04-12 Jim Meyering <meyering@lucent.com>
59706 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59707 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59708 existence of the getmntinfo function. Needed for Darwin 5.3.
59710 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59711 This is necessary at least on Darwin 5.3.
59713 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59714 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59715 strnlen.o in the library, and that makes some versions of ranlib
59718 2002-04-12 Jim Meyering <meyering@lucent.com>
59720 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59722 2002-04-09 Jim Meyering <meyering@lucent.com>
59724 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59725 to be more precise. Rather than saying we're checking whether the
59726 function `works', say what we're testing.
59727 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59728 Reported by Bruno Haible.
59730 2002-03-10 Jim Meyering <meyering@lucent.com>
59732 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59733 Suggestion from Santiago Vila.
59735 2002-03-08 Jim Meyering <meyering@lucent.com>
59737 * lib/rename.c: Mention that this wrapper is needed also on
59738 mips-dec-ultrix4.4 systems.
59740 2002-03-02 Jim Meyering <meyering@lucent.com>
59742 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59743 not HAVE_CLOCK_SETTIME.
59745 2002-02-27 Paul Eggert <eggert@twinsun.com>
59747 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59748 Check for clock_settime.
59750 2002-02-27 Paul Eggert <eggert@twinsun.com>
59752 * lib/nanosleep.h: Rename to....
59753 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59755 * lib/gettime.c: New file.
59756 * lib/settime.c: New file.
59757 * lib/stime.c: Remove.
59759 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59760 timespec.h. Remove nanosleep.h.
59762 2002-02-25 Paul Eggert <eggert@twinsun.com>
59764 * m4/acl.m4: New file.
59765 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59766 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59768 2002-02-25 Paul Eggert <eggert@twinsun.com>
59770 * lib/acl.c, lib/acl.h: New files.
59771 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59773 2002-02-24 Jim Meyering <meyering@lucent.com>
59775 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59776 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59777 cause trouble. Reported by Nelson Beebe.
59779 2002-02-23 Paul Eggert <eggert@twinsun.com>
59781 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59782 compilers that don't know that xalloc_die never returns.
59784 2002-02-20 Jim Meyering <meyering@lucent.com>
59786 * lib/getdate.c: Regenerate using bison-1.33.
59788 2002-02-17 Jim Meyering <meyering@lucent.com>
59790 * config/config.guess (main): Don't use `head -1'; it's no longer
59791 portable. Use `sed 1q' instead.
59793 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59795 * m4/codeset.m4: Upgrade to gettext-0.11.
59796 * m4/gettext.m4: Upgrade to gettext-0.11.
59797 * m4/glibc21.m4: Upgrade to gettext-0.11.
59798 * m4/iconv.m4: Upgrade to gettext-0.11.
59799 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59800 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59801 * m4/lib-ld.m4: New file, from gettext-0.11.
59802 * m4/lib-link.m4: New file, from gettext-0.11.
59803 * m4/lib-prefix.m4: New file, from gettext-0.11.
59804 * m4/progtest.m4: Upgrade to gettext-0.11.
59806 2002-02-15 Paul Eggert <eggert@twinsun.com>
59808 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59809 (jm_PREREQ): Use it.
59811 2002-02-15 Paul Eggert <eggert@twinsun.com>
59813 * lib/posixver.c, lib/posixver.h: New files.
59814 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59816 2002-02-02 Paul Eggert <eggert@twinsun.com>
59817 Bruno Haible <bruno@clisp.org>
59819 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59820 (fwrite_success_callback): New declaration.
59821 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59822 print_unicode_char. Call failure callback instead of error.
59823 (fwrite_success_callback): New function.
59824 (exit_failure_callback): New function.
59825 (fallback_failure_callback): New function.
59826 (print_unicode_char): Call unicode_to_mb.
59828 2002-01-26 Jim Meyering <meyering@lucent.com>
59830 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59831 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59833 2002-01-26 Jim Meyering <meyering@lucent.com>
59835 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59837 2002-01-22 Paul Eggert <eggert@twinsun.com>
59839 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59841 2002-01-22 Jim Meyering <meyering@lucent.com>
59843 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59844 Otherwise, some versions of automake would omit the rule that makes
59845 Makefile from Makefile.in.
59847 2002-01-21 Paul Eggert <eggert@twinsun.com>
59849 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59850 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59851 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59852 (memcoll): Set errno to zero if there is no error.
59854 * lib/quotearg.c (quotearg_buffer_restyled):
59855 Fix bug with quoting buffers containing NUL when backslashing escapes.
59856 This bug was exposed by the other changes in this patch.
59857 (quotearg_n_options): New arg ARGSIZE.
59858 All callers changed.
59859 (quoting_options_from_style): New function.
59860 (quotearg_n_style): Use it.
59861 (quotearg_n_style_mem): New function.
59863 * lib/quotearg.h (quotearg_n_style_mem): New function.
59865 2002-01-19 Jim Meyering <meyering@lucent.com>
59867 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59868 Remove useless quotes: DF_PROG="df".
59869 * m4/strnlen.m4: New file.
59871 2002-01-16 Paul Eggert <eggert@twinsun.com>
59873 * lib/backupfile.c (ISDIGIT): Comment fix.
59874 * lib/getdate.y (ISDIGIT): Likewise.
59875 * lib/posixtm.c (ISDIGIT, year): Likewise.
59876 * lib/strverscmp.c (ISDIGIT): Likewise.
59877 * lib/userspec.c (ISDIGIT): Likewise.
59879 2002-01-16 Jim Meyering <meyering@lucent.com>
59881 * lib/getdate.y: Add three semicolons, each just before a closing
59882 brace. Bison (as of version 1.31) no longer papers over that mistake.
59884 2002-01-05 Jim Meyering <meyering@lucent.com>
59886 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59888 2001-12-19 Paul Eggert <eggert@twinsun.com>
59890 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59891 not silently exit merely because the output buffer happens to
59892 have nothing pending.
59894 2001-12-18 Paul Eggert <eggert@twinsun.com>
59896 See the big note in ../ChangeLog.
59897 * lib/human.c (suffixes): Prefer K to k for 1024.
59898 (generate_suffix_backwards): New function.
59899 (human_readable_inexact): Use it.
59900 * lib/xstrtol.c (__xstrtol): If there is no number but there
59901 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59902 Accept 'K' as well as 'k'.
59904 2001-12-15 Jim Meyering <meyering@lucent.com>
59906 * lib/regex.h (__restrict_arr): Update from libc.
59908 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59909 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59912 2001-12-14 Jim Meyering <meyering@lucent.com>
59914 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59915 Suggestion from Bruno Haible.
59917 2001-12-10 Jim Meyering <meyering@lucent.com>
59919 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59920 xrealloc, Instead, include "xalloc.h".
59921 (initbuffer): Don't cast xmalloc return value to char*.
59922 (readline): Reword comment.
59923 Don't cast xrealloc return value to char*
59924 Return NULL, not 0.
59926 2001-12-09 Jim Meyering <meyering@lucent.com>
59928 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59929 about `signed and unsigned type in conditional expression'.
59930 * lib/posixtm.c (posix_time_parse): Likewise.
59932 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59934 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59935 to avoid a pedantic warning.
59937 * lib/getstr.c: Don't include assert.h.
59938 (getstr): Remove warning-evoking assertions.
59939 Return -1 if offset parameter is out of bounds.
59940 Change the type of a local from int to size_t.
59942 * lib/strftime.c (my_strftime_localtime_r): Include this function
59943 definition in the `#if ! HAVE_TM_GMTOFF' block.
59945 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59946 Include xalloc.h instead.
59948 2001-12-02 Jim Meyering <meyering@lucent.com>
59950 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59951 2001-11-18. It's no longer necessary, now that stdlib.h is always
59954 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59955 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59957 2001-11-30 Akim Demaille <akim@epita.fr>
59959 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59960 before being defined.
59962 2001-11-27 Paul Eggert <eggert@twinsun.com>
59964 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59965 First arg is int, not unsigned.
59966 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59967 (SIZE_MAX, UINT_MAX): New macros.
59968 (quotearg_n_options): Abort if N is negative.
59969 Avoid overflow check on hosts where size_t is 64 bits and int
59970 is 32 bits, as overflow is impossible there.
59971 Fix off-by-one typo that caused unnecessary reallocation.
59973 2001-11-27 Jim Meyering <meyering@lucent.com>
59975 * lib/tempname.c: Merge with version from libc.
59976 * lib/regex.c: Likewise.
59978 * lib/tempname.c: Include stdlib.h unconditionally. On some old
59979 systems for which STDC_HEADERS is 0, it was not included, resulting in
59980 a warning about an integer-to-pointer conversion problem with getenv.
59981 Reported by Volker Borchert.
59983 2001-11-26 Jim Meyering <meyering@lucent.com>
59985 * lib/gtod.h: Remove file.
59986 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59987 * lib/gettimeofday.c: Don't include gtod.h.
59988 (GTOD_init): Remove function.
59989 (rpl_gettimeofday): Do its job here instead, rather than aborting.
59990 Suggestion from Volker Borchert.
59992 2001-11-23 Jim Meyering <meyering@lucent.com>
59994 * lib/hash.h (struct hash_table): Don't define here. Merely declare
59996 * lib/hash.c (struct hash_table): Define it here instead.
59998 2001-11-22 Jim Meyering <meyering@lucent.com>
60000 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60002 2001-11-20 Jim Meyering <meyering@lucent.com>
60004 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60005 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60007 2001-11-19 Jim Meyering <meyering@lucent.com>
60009 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60010 directory. Use "conftestXXXXXX" as the template.
60011 Suggestion from Paul Eggert.
60013 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60014 immediately, so the test doesn't mistakenly hit the max-open-files
60017 2001-11-18 Paul Eggert <eggert@twinsun.com>
60019 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60020 (TEMPORARIES): New macro.
60021 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60022 removes an artificial limitation (e.g. HP-UX 10.20, where
60025 2001-11-18 Jim Meyering <meyering@lucent.com>
60027 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60029 2001-11-18 Jim Meyering <meyering@lucent.com>
60031 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60034 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60035 files will be created before anything else.
60037 2001-11-17 Paul Eggert <eggert@twinsun.com>
60039 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60040 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60042 2001-11-17 Jim Meyering <meyering@lucent.com>
60044 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60045 Prompted by a report from Bob Proulx.
60047 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60048 Instead, require UTILS_FUNC_MKSTEMP.
60050 2001-11-17 Jim Meyering <meyering@lucent.com>
60052 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60053 Now, that's done as part of AC_FUNC_STRTOD.
60055 2001-11-17 Jim Meyering <meyering@lucent.com>
60057 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60058 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60059 rather than group writable. Patch by Juan F. Codagnone.
60061 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60062 xrealloc, Instead, include "xalloc.h".
60064 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60065 Remove explicit declarations of xmalloc, xrealloc,
60066 and xstrdup. Instead, include "xalloc.h".
60068 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60070 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60072 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60074 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60075 Reported by Padraig Brady.
60077 * lib/mkstemp.c: #undef mkstemp.
60079 (rpl_mkstemp): Rename from mkstemp.
60082 2001-11-16 Jim Meyering <meyering@lucent.com>
60084 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60085 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60086 determine the amount of total physical memory, use pstat_getstatic.
60087 HPUX-11 doesn't define _SC_PHYS_PAGES.
60088 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60089 If sysconf couldn't be used to determine the amount of available
60090 physical memory, use both pstat_getstatic and pstat_getdynamic.
60091 Based on a patch from Bob Proulx.
60093 2001-11-10 Jim Meyering <meyering@lucent.com>
60095 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60096 (jm_PREREQ): Use it.
60098 2001-11-09 Jim Meyering <meyering@lucent.com>
60100 * m4/jm-macros.m4: Require autoconf-2.52f.
60101 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60102 Use these AC_-prefixed names, not the AM_-prefixed ones.
60104 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60106 2001-11-05 Jim Meyering <meyering@lucent.com>
60108 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60110 2001-11-04 Jim Meyering <meyering@lucent.com>
60112 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60115 2001-11-03 Jim Meyering <meyering@lucent.com>
60117 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60120 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60121 know the name of the variable in the macro definition.
60123 2001-11-03 Jim Meyering <meyering@lucent.com>
60125 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60126 in argmatch_to_argument call.
60128 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60131 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60132 e.g., a fault due to an attempt to free a NULL pointer.
60134 2001-11-01 Jim Meyering <meyering@lucent.com>
60136 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60137 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60139 2001-11-01 Jim Meyering <meyering@lucent.com>
60141 * lib/dirfd.c, lib/dirfd.h: New files.
60142 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60144 * lib/hash.c (hash_print) [TESTING]: Clean up.
60146 2001-10-22 Paul Eggert <eggert@twinsun.com>
60148 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60149 to avoid a warning if -Wall.
60151 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60154 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60155 (per RMS's instructions, this is now the canonical source)
60156 * lgpl/, gpl/: New directories.
60158 2001-10-21 Paul Eggert <eggert@twinsun.com>
60160 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60162 2001-10-21 Jim Meyering <meyering@lucent.com>
60164 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60165 this code would end up calling gettext even in packages built
60166 with --disable-nls.
60167 * lib/getopt.c (_): Likewise.
60168 * lib/regex.c (_): Likewise.
60170 2001-10-20 Paul Eggert <eggert@twinsun.com>
60172 * m4/error.m4 (jm_PREREQ_ERROR):
60173 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60174 AC_FUNC_STRERROR_R does that.
60175 Check for strerror declaration.
60177 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60178 are supposed to have them these days.
60179 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60180 Merge changes from latest Autoconf CVS.
60181 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60182 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60183 POSIX decided to standardize on the int flavor of strerror_r.
60185 2001-10-20 Paul Eggert <eggert@twinsun.com>
60187 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60188 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60189 Use strerror_r that is only a macro, even if it is not a function.
60190 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60191 (private_strerror): Use prototypes, not old-style function definition.
60192 (print_errno_message): New function.
60193 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60194 char*-flavored one.
60195 (error_tail, error, error_at_line): Use it.
60197 2001-10-11 Jim Meyering <meyering@lucent.com>
60199 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60200 and quote_n (1, ... to avoid clobbering a buffer.
60202 2001-10-05 Jim Meyering <meyering@lucent.com>
60204 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60206 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60207 * lib/hash-pjw.h: New file.
60209 2001-09-30 Jim Meyering <meyering@lucent.com>
60211 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60212 `struct fsstat' has the `f_fstypename' member.
60213 Use that to define FS_TYPE, which is now used to make
60214 the getfsstat link test tighter.
60216 2001-09-30 Jim Meyering <meyering@lucent.com>
60218 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60219 Include <sys/ucred.h>, for Apple Darwin.
60220 Include sys/mount.h and sys/fs_types.h only if available.
60222 (read_filesystem_list): Use FS_TYPE.
60224 2001-09-29 Paul Eggert <eggert@twinsun.com>
60226 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60229 2001-09-29 Jim Meyering <meyering@lucent.com>
60231 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60232 [one-argument getmntent function]): Include stdio.h before mntent.h.
60233 SunOS 4.1.x needs it for the declaration of `FILE'.
60234 Patch by Volker Borchert.
60236 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60237 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60238 sys/fs_types.h, and make the link-test for getfsstat guard #include
60239 directives with appropriate #if HAVE_*_H tests so that we can
60240 detect getfsstat on Apple Darwin1.3.7 systems.
60241 Reported by Nelson Beebe.
60242 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60244 2001-09-28 Paul Eggert <eggert@twinsun.com>
60246 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60247 #defines strtoimax. Also treat the other strto* functions
60250 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60251 Check for strtoul and strtoumax,
60252 as those declarations are made even in the signed case.
60253 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60254 Likewise, for strtol and strtoimax.
60256 2001-09-28 Paul Eggert <eggert@twinsun.com>
60258 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60259 #defines strtoimax. Also treat the other strto* functions
60262 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60263 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60264 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60266 2001-09-26 Jim Meyering <meyering@lucent.com>
60268 Most macros in unlocked-io.h had the wrong number of arguments.
60269 * lib/gen-uio: New script.
60270 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60271 * lib/unlocked-io.hin: Remove file.
60272 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60273 rather than trying to embed it here.
60274 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60275 Reported by Padraig Brady.
60277 2001-09-25 Volker Borchert <bt@teknon.de>
60279 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60282 2001-09-24 Jim Meyering <meyering@lucent.com>
60284 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60286 2001-09-23 Jim Meyering <meyering@lucent.com>
60288 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60289 instead of the mere test for existence of mntent.h. The latter
60290 would get a false-positive on AIX 3.4 systems.
60291 In the outer getmntent if-block, don't die if neither of the getmntent
60292 tests succeeds. Instead, just fall through and continue with the
60295 2001-09-23 Jim Meyering <meyering@lucent.com>
60297 * lib/mountlist.c: Remove useless parentheses in #if directives.
60298 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60299 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60301 2001-09-22 Jim Meyering <meyering@lucent.com>
60303 * m4/gettext.m4: New file. From gettext.
60304 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60305 * m4/progtest.m4: Likewise
60306 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60307 * m4/glibc21.m4: Likewise.
60309 * m4/libintl.m4: Remove. No longer used.
60311 2001-09-22 Jim Meyering <meyering@lucent.com>
60313 * lib/localcharset.c: Update from latest gettext.
60314 * lib/config.charset: Likewise.
60316 2001-09-20 Jim Meyering <meyering@lucent.com>
60318 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60320 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60323 2001-09-20 Jim Meyering <meyering@lucent.com>
60325 * lib/xstrtol.c (strtoimax): Guard declaration with
60326 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60327 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60328 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60329 (strtoumax): Likewise, for completeness (it wasn't necessary).
60331 2001-09-17 Paul Eggert <eggert@twinsun.com>
60333 * lib/strtoimax.c (HAVE_LONG_LONG):
60334 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60335 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60336 to work around bug in IBM C compiler.
60338 2001-09-17 Jim Meyering <meyering@lucent.com>
60340 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60341 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60342 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60343 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60344 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60345 whenever the right hand side need not be expanded by the shell.
60347 2001-09-16 Paul Eggert <eggert@twinsun.com>
60349 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60350 library. It's not correct, as some older glibcs are buggy.
60351 fnmatch wasn't fixed until glibc 2.2.
60353 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60354 special shell magic here.
60356 2001-09-16 Jim Meyering <meyering@lucent.com>
60358 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60359 * m4/jm-macros.m4: Require it.
60361 2001-09-16 Jim Meyering <meyering@lucent.com>
60363 * lib/mkdir.c: New file.
60365 2001-09-15 Jim Meyering <meyering@lucent.com>
60367 * m4/jm-macros.m4: Check for help2man.
60369 2001-09-11 Jim Meyering <meyering@lucent.com>
60371 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60372 The body, by Paul Eggert, was moved here from configure.in.
60373 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60375 2001-09-04 Paul Eggert <eggert@twinsun.com>
60377 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60378 (jm_PREREQ): Use it.
60380 2001-09-04 Paul Eggert <eggert@twinsun.com>
60382 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60383 Use ssize_t, not int, to store result of readlink.
60384 Check for ssize_t overflow as well as size_t overflow,
60385 as POSIX says the result of readlink is implementation-defined
60386 when ssize_t overflows.
60387 Remove unnecessary cast to char*.
60388 Use free+malloc instead of realloc, as the storage doesn't need
60389 to be preserved and it's clearer and can be more efficient that way.
60390 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60391 * lib/xreadlink.h (xreadlink): Update prototype.
60393 2001-09-04 Paul Eggert <eggert@twinsun.com>
60395 * lib/xgetcwd.c: Revert some of the previous change; intead,
60396 fix the HAVE_GETCWD_NULL code to behave more like the
60397 !HAVE_GETCWD_NULL code used to.
60399 Include "xalloc.h".
60400 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60403 2001-09-03 Paul Eggert <eggert@twinsun.com>
60405 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60406 sys/param.h, as pathmax.h includes them.
60408 2001-09-03 Paul Eggert <eggert@twinsun.com>
60410 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60411 (jm_PREREQ_XGETCWD): New macro.
60413 * m4/getcwd.m4: New file.
60415 2001-09-03 Paul Eggert <eggert@twinsun.com>
60417 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60418 like the HAVE_GETCWD_NULL code.
60419 Include pathmax.h if not HAVE_GETCWD.
60420 Do not include xalloc.h.
60421 (INITIAL_BUFFER_SIZE): New symbol.
60422 Do not use xmalloc / xrealloc, since the caller is responsible for
60423 handling errors. Preserve errno around `free' during failure.
60424 Do not overrun buffer when using getwd.
60426 2001-09-03 Paul Eggert <eggert@twinsun.com>
60428 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60429 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60432 2001-09-03 Paul Eggert <eggert@twinsun.com>
60434 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60435 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60436 spotted by Jim Meyering.
60438 2001-09-03 Jim Meyering <meyering@lucent.com>
60440 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60443 2001-09-02 Jim Meyering <meyering@lucent.com>
60445 * lib/error.c: Update from GNU libc.
60447 2001-09-01 Jim Meyering <meyering@lucent.com>
60449 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60452 2001-09-01 Jim Meyering <meyering@lucent.com>
60454 * lib/xreadlink.c: New file.
60455 * lib/xreadlink.h: New file.
60456 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60459 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60460 doesn't conflict with sparc Solaris 7's definition in
60461 /usr/include/sys/int_types.h.
60463 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60465 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60466 and strncasecmp as r-values. Unixware didn't have declarations.
60468 2001-08-31 Paul Eggert <eggert@twinsun.com>
60470 * lib/xstrtol.h: Add copyright notice.
60471 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60472 LONGINT_INVALID_SUFFIX_CHAR.
60474 2001-08-31 Paul Eggert <eggert@twinsun.com>
60476 * lib/xstrtol.c (strtoimax): New decl.
60478 2001-08-31 Paul Eggert <eggert@twinsun.com>
60480 * lib/xgetcwd.c: Don't include pathmax.h.
60481 Include stdlib.h and unistd.h if available.
60483 (xmalloc, xstrdup, free): Remove decls.
60484 (xgetcwd): Don't assume sizes fit in unsigned.
60485 Check for overflow when computing sizes.
60486 Simplify reallocation code.
60488 2001-08-31 Paul Eggert <eggert@twinsun.com>
60490 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60491 a directory's st_size can have an arbitrary value, so the old
60492 usage could waste an arbitrary amount of memory. All uses
60494 * lib/savedir.h: Update prototype.
60496 2001-08-31 Paul Eggert <eggert@twinsun.com>
60498 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60500 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60503 Also, make the following further changes to make this file's
60504 configuration more similar to that of strtol.c:
60505 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60506 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60507 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60508 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60509 changed to signed values.
60511 And make the following changes as well:
60512 Fix copyright notice, as 1999 was missing.
60513 (verify): New macro.
60514 (strtoimax): Check sizes at compile-time, not run-time.
60515 Prefer strtol to strtoll if both work.
60516 (main): Remove; it was not that useful and was a pain to maintain.
60518 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60520 2001-08-31 Jim Meyering <meyering@lucent.com>
60522 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60523 Use an initial, malloc'd, buffer of length 128 rather than
60524 a statically allocated one of length 1024.
60526 2001-08-30 Paul Eggert <eggert@twinsun.com>
60528 Simplify code, partly by assuming autoconf 2.52 semantics.
60530 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60532 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60533 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60535 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60536 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60537 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60538 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60539 jm_AC_HEADER_INTTYPES_H.
60540 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60542 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60544 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60545 Quote first arg of AC_DEFUN.
60546 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60547 since they are needed to parse the include file even if we need
60548 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60549 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60550 but with opposite signedness.
60552 2001-08-30 Paul Eggert <eggert@twinsun.com>
60554 Merge 'exclude' changes from tar 1.13.22.
60555 This fixes one or two unlikely storage allocation overflow bugs,
60556 but doesn't change user-visible behavior otherwise.
60558 2001-08-30 Paul Eggert <eggert@twinsun.com>
60560 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60561 (jm_PREREQ_EXCLUDE): New macro.
60563 2001-08-30 Paul Eggert <eggert@twinsun.com>
60565 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60568 2001-08-30 Paul Eggert <eggert@twinsun.com>
60570 * lib/hash.c: Remove '2001' from copyright notice.
60572 2001-08-30 Paul Eggert <eggert@twinsun.com>
60574 * lib/full-write.h: New file.
60575 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60576 * lib/full-write.c: Correct credits, as cccp.c no longer
60577 exists and anyway it was so heavily changed from the old cccp
60578 code as to be unrecognizable. Include full-write.h.
60579 (full_write) Return size_t, with short writes meaning failure.
60580 All callers changed. This fixes a bug with large buffers
60582 * lib/utime.c: Include full-write.h.
60584 2001-08-30 Paul Eggert <eggert@twinsun.com>
60586 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60587 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60588 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60589 Include if available.
60590 (<xalloc.h>): Include
60591 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60592 (verify): New macro. Use it to verify that EXCLUDE macros do not
60593 collide with FNM macros.
60594 (struct patopts): New struct.
60595 (struct exclude): Use it, as exclude patterns now come with options.
60596 (new_exclude): Support above changes.
60597 (new_exclude, add_exclude_file):
60598 Initial size must now be a power of two to simplify overflow checking.
60599 (free_exclude, fnmatch_no_wildcards): New function.
60600 (excluded_filename): No longer requires options arg, as the options
60601 are determined by add_exclude. Now returns bool, not int.
60602 (excluded_filename, add_exclude):
60603 Add support for the fancy new exclusion options.
60604 (add_exclude, add_exclude_file): Now takes int options arg.
60605 Check for arithmetic overflow when computing sizes.
60606 (add_exclude_file): xrealloc might modify errno, so don't
60607 realloc until after errno might be used.
60609 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60611 (free_exclude): New decl.
60612 (add_exclude, add_exclude_file): Now takes int options arg.
60613 (excluded_filename): No longer requires options arg, as the options
60614 are determined by add_exclude. Now returns bool, not int.
60616 2001-08-30 Paul Eggert <eggert@twinsun.com>
60618 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60620 2001-08-27 Jim Meyering <meyering@lucent.com>
60622 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60624 * lib/version-etc.c (N_): Remove definition.
60625 Revert most of last change.
60626 Instead, simply don't mark the `Copyright...' string for translation.
60627 Based on advice from Paul Eggert.
60629 * lib/strtoxmax.c: Tweak comment.
60631 2001-08-26 Jim Meyering <meyering@lucent.com>
60633 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60635 * m4/xstrtoimax.m4: New file.
60636 * m4/xstrtoumax.m4: Add comments explaining why we
60637 AC_REPLACE_FUNCS(strtol).
60639 2001-08-26 Jim Meyering <meyering@lucent.com>
60641 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60642 of copyright with `%s' so translators don't get an untranslated
60644 (COPYRIGHT_YEAR): Define.
60645 (version_etc): Use fprintf rather than fputs.
60646 Suggestion from Ulrich Drepper.
60648 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60650 * lib/strtoll.c: New file, from GNU libc.
60651 * lib/xstrtoimax.c: New file.
60653 * lib/xstrtol.h: Add xstrtoimax.
60654 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60655 * lib/strtoimax.c: New file. Likewise, but first define
60658 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60660 * lib/strtoxmax.c: ... then renamed to this.
60662 2001-08-18 Paul Eggert <eggert@twinsun.com>
60664 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60665 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60666 (jm_AC_TYPE_INTMAX_T): New macro.
60667 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60669 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60671 * m4/longlong.m4: Renamed from ulonglong.m4.
60672 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60673 * m4/uintmax_t.m4: Removed.
60675 2001-08-13 Paul Eggert <eggert@twinsun.com>
60677 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60678 Port to Solaris 8, where 'sed' requires a space after the 'r'
60679 command, and where sh dislikes "$/". Clean up the spacing a bit.
60680 Redirect output to $tmp just once.
60682 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60684 * lib/addext.c (<errno.h>): Include.
60685 (errno): Declare if not defined.
60686 (addext): Work correctly when pathconf returns -1 and leaves
60687 errno alone because there is no limit. Also, work even if
60688 pathconf returns a value greater than SIZE_MAX.
60690 2001-08-12 Jim Meyering <meyering@lucent.com>
60692 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60693 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60694 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60695 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60696 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60697 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60698 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60699 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60700 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60701 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60702 utime.m4, utimes.m4, xstrtoumax.m4:
60703 Quote the first argument in each use of AC_DEFUN.
60705 2001-08-12 Jim Meyering <meyering@lucent.com>
60707 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60708 Simply `return getcwd (NULL, 0);'.
60709 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60710 Use 1300 as initial value for length, not PATH_MAX.
60712 * lib/pathmax.h: Clean up cpp syntax.
60714 2001-08-12 Jim Meyering <meyering@lucent.com>
60716 * lib/gettimeofday.c: New file.
60717 * lib/gtod.h: New file.
60718 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60720 2001-08-05 Jim Meyering <meyering@lucent.com>
60722 * m4/jm-macros.m4: Require autoconf-2.52.
60724 2001-08-04 Jim Meyering <meyering@lucent.com>
60726 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60727 stmt, to get in sync with glibc.
60729 2001-08-03 Paul Eggert <eggert@twinsun.com>
60731 The following changes are from gettext 0.10.39 as maintained by
60734 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60735 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60736 with inverted sense. All uses changed.
60738 * lib/mbswidth.c: Don't include <limits.h>.
60739 Include <stdlib.h> and <string.h> unconditionally.
60740 (iswcntrl, mbsinit, ISCNTRL): New macros.
60741 (mbsnwidth): Use K&R style function declarations.
60742 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60743 can optimize it when MB_CUR_MAX == 1.
60744 The width of control characters is zero, not 1.
60746 2001-08-03 Paul Eggert <eggert@twinsun.com>
60748 The following changes are from gettext 0.10.39 as maintained by
60749 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60751 * m4/codeset.m4: Upgrade to serial AM1.
60752 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60753 all uses changed. Quote first arg of AC_DEFUN.
60754 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60756 * m4/iconv.m4: Upgrade to serial AM2.
60757 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60758 Add --with-libconv-prefix.
60759 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60760 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60761 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60762 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60763 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60765 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60766 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60767 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60768 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60769 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60770 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60771 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60772 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60773 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60775 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60778 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60779 not the default value.
60781 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60782 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60783 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60784 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60785 Also check for iswcntrl, used for wcwidth fallback.
60786 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60789 2001-08-03 Jim Meyering <meyering@lucent.com>
60791 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60792 as it was in the original. Reported by Paul Eggert.
60794 2001-07-16 Jim Meyering <meyering@lucent.com>
60796 * m4/gettimeofday.m4: New file.
60797 Prompted by a report from Bernhard Baehr.
60799 2001-07-15 Jim Meyering <meyering@lucent.com>
60801 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60802 stuff. Now it's in ../Makefile.cfg.
60804 2001-07-15 Jim Meyering <meyering@lucent.com>
60806 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60807 (BUILT_SOURCES): Add unlocked-io.h.
60808 (io_functions): Define.
60809 (unlocked-io.h): New rule.
60810 (DISTCLEANFILES): Add unlocked-io.h.
60811 (all-local): Depend on unlocked-io.h, to ensure it is created.
60813 * lib/unlocked-io.hin: New file
60815 * lib/regex.c: Update from glibc.
60817 2001-07-05 Jim Meyering <meyering@lucent.com>
60819 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60821 (libfetish_a_SOURCES): Put all .h files here instead.
60822 Remove a thus-exposed (better checks in automake) duplicate and
60823 two unnecessary .h files.
60825 2001-07-04 Jim Meyering <meyering@lucent.com>
60827 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60828 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60831 2001-07-02 Jim Meyering <meyering@lucent.com>
60833 The following changes were prompted by suggestions from Bruno Haible.
60835 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60837 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60838 definition of EXTRA_DIST.
60839 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60840 ensure that the generated file is created/updated whenever the list
60841 of $(unlocked_functions) is changed.
60842 (jm-glibc-io.m4): New rule.
60843 (unlocked-io.h): New rule -- currently unused.
60845 2001-06-24 Jim Meyering <meyering@lucent.com>
60847 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60848 unmatched right bracket, rather than kludging it with an extra,
60849 falsely-matching quote in a comment. Patch by Akim Demaille.
60851 2001-06-11 Jim Meyering <meyering@lucent.com>
60853 * lib/regex.c: Update from GNU libc.
60855 2001-05-27 Jim Meyering <meyering@lucent.com>
60857 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60858 Check for ut_type in struct utmp.
60860 2001-05-27 Jim Meyering <meyering@lucent.com>
60862 * lib/readutmp.h (UT_TYPE): Define.
60864 2001-05-24 Jim Meyering <meyering@lucent.com>
60866 * lib/argmatch.c: Include "quote.h".
60867 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60868 quote function. Reported by Göran Uddeborg.
60870 2001-05-22 Jim Meyering <meyering@lucent.com>
60872 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60873 now that we use the package-supplied version unconditionally.
60874 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60876 2001-05-21 Jim Meyering <meyering@lucent.com>
60878 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60879 shell syntax errors.
60881 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60883 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60885 2001-05-20 Paul Eggert <eggert@twinsun.com>
60887 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60888 Don't bother to check library strftime, since
60889 we'll be using our own my_strftime function anyway.
60890 Define my_strftime instead of strftime.
60892 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60894 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60895 which is not yet declared.
60897 2001-05-15 Jim Meyering <meyering@lucent.com>
60899 * m4/regex.m4: Use proper quoting so brackets appear in the test
60901 Reported by, and with help from, Bruno Haible.
60903 2001-05-13 Jim Meyering <meyering@lucent.com>
60905 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60908 2001-05-11 Paul Eggert <eggert@twinsun.com>
60910 dirname code cleanup. base_name now behaves more compatibly
60911 with POSIX basename when given file names that have trailing
60912 slashes, and similarly for dir_name. Add new primitives
60913 base_len and dir_len. Put the directory-name-related decls
60916 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60917 * lib/backupfile.c (base_name): Likewise.
60918 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60919 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60920 * lib/makepath.c (strip_trailing_slashes): Likewise.
60921 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60922 ISSLASH): Likewise.
60923 * lib/rename.c (strip_trailing_slashes): Likewise.
60924 * lib/same.c (base_name): Likewise.
60925 * lib/stripslash.c (ISSLASH): Likewise.
60927 * lib/addext.c: Include <dirname.h> after size_t is defined.
60928 * lib/backupfile.c: Likewise.
60930 * lib/addext.c (addext): Use base_len to trim redundant
60931 trailing slashes instead of doing it ourselves.
60932 But do not trim the last slash if it is not redundant.
60934 * lib/backupfile.c (find_backup_file_name,
60935 max_backup_version): Use base_len instead of rolling it ourselves.
60936 Handle the case of "" and (on DOS) "C:" correctly.
60938 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60939 needed. Include <string.h>, <dirname.h>.
60940 (base_name): Allow file names ending in slashes, other than names
60941 that are all slashes. In this case, return the basename followed
60942 by the slashes. This is more general, and can be used in places
60943 where the original base_name purposely had an assertion failure.
60944 (base_len): New function.
60946 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60947 Do not include <assert.h>; no longer needed.
60949 (memrchr): Remove decl.
60950 (dir_name_r): Remove.
60951 (dir_len): Renamed from dirlen. All callers changed.
60952 Rewrite in terms of base_name, for simplicity and consistency.
60953 (dir_name): Never return NULL. All callers changed.
60954 Do not include <stdlib.h> in test program; no longer needed.
60955 return 0; is fine for test program.
60957 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60959 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60961 * lib/path-concat.c (path_concat): Use base_len to compute
60962 base length, not strlen; this means we cannot rely on memcpy
60965 * lib/same.c (STREQ): Remove.
60966 (same_name): Handle the case where the basename ends in trailing '/'.
60968 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60969 a slash was stripped. Do not strip the last slash after a
60970 file system prefix.
60972 2001-05-11 Paul Eggert <eggert@twinsun.com>
60974 * lib/Makefile.am (libfetish_a_SOURCES):
60975 Add strftime.c, since we now compile it on all hosts.
60977 * lib/strftime.c (my_strftime):
60978 Define to nstrftime if emacs, but only if my_strftime is not defined.
60979 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60980 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60981 Add one more extra argument: a nanoseconds value.
60984 (my_strftime function): Add %N format.
60985 (emacs_strftimeu): Renamed from emacs_strftime,
60986 with extra ut argument.
60988 2001-05-09 Paul Eggert <eggert@twinsun.com>
60990 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60992 2001-04-21 Jim Meyering <meyering@lucent.com>
60994 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60997 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60999 * m4/ftruncate.m4: Check for chsize.
61000 Link with ftruncate.o unconditionally if ftruncate is missing.
61001 This was required when cross-compiling to i586-mingw32msvc.
61003 2001-04-08 Jim Meyering <meyering@lucent.com>
61005 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61006 recomputed; that's necessary when the offset spans a DST transition.
61007 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61009 2001-04-02 Jim Meyering <meyering@lucent.com>
61011 * lib/regex.h, regex.c: Update from GNU libc.
61013 2001-03-24 Jim Meyering <meyering@lucent.com>
61015 * m4/jm-macros.m4: Require autoconf-2.49d.
61017 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61019 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61021 2001-03-19 Paul Eggert <eggert@twinsun.com>
61023 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61025 2001-03-17 Jim Meyering <meyering@lucent.com>
61027 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61028 now that the version in autoconf is equivalent.
61029 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61031 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61032 Suggestion from Akim Demaille.
61034 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61035 (jm_PREREQ_TEMPNAME): New function.
61037 2001-03-16 Paul Eggert <eggert@twinsun.com>
61039 * lib/tempname.c (uint64_t): Define to uintmax_t if
61040 not defined, and if UINT64_MAX is not defined.
61041 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61042 Reported by John David Anglin.
61044 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61046 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61047 resolve alias if codeset is empty.
61048 * lib/config.charset (BeOS): Use wildcard syntax.
61050 2001-03-13 Jim Meyering <meyering@lucent.com>
61052 * lib/path-concat.c (path_concat)
61053 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61054 concatenating e.g., `C:' and `foo'.
61057 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61059 * lib/localcharset.c (locale_charset): Don't use
61060 setlocale(LC_CTYPE,NULL). Don't return NULL.
61061 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61063 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61065 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61066 support for DOS/DJGPP.
61068 2001-03-01 Paul Eggert <eggert@twinsun.com>
61070 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61071 lacks mkstemp. Compile our own tempname.c if we compile our own
61072 mkstemp.c, as mkstemp relies on tempname.
61074 2001-03-01 Jim Meyering <meyering@lucent.com>
61076 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61077 AH_VERBATIM really does output its argument verbatim.
61079 2001-02-28 Paul Eggert <eggert@twinsun.com>
61081 * lib/Makefile.am (libfetish_a_SOURCES):
61082 Add dup-safer.c, fopen-safer.c.
61083 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61085 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61086 * lib/unistd-safer.h: New files.
61088 2001-02-25 Paul Eggert <eggert@twinsun.com>
61090 The mkstemp replacement is taken from glibc 2.2.2, with some
61091 portability fixes for use outside glibc, as follows:
61093 * lib/tempname.c (struct_stat64): New macro.
61094 (direxists, __gen_tempname): Use it.
61095 This avoids a portability problem with Solaris 8.
61097 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61098 (<stddef.h>, <stdint.h>, <string.h>):
61099 Include only if STDC_HEADERS || _LIBC.
61100 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61101 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61102 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61103 (__set_errno): Define this macro if <errno.h> doesn't.
61104 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61105 Define these macros if <stdio.h> doesn't.
61106 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61107 Define these macros if <sys/stat.h>
61108 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61109 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61110 __xstat64): Define if not _LIBC.
61111 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61112 (__gen_tempname): Invoke gettimeofday only if
61113 HAVE_GETTIMEOFDAY || _LIBC;
61114 otherwise, fall back on plain "time".
61115 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61117 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61119 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61121 2001-02-18 Paul Eggert <eggert@twinsun.com>
61123 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61125 2001-02-17 Paul Eggert <eggert@twinsun.com>
61127 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61128 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61129 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61130 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61132 2001-02-17 Paul Eggert <eggert@twinsun.com>
61134 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61135 Remove workaround macros for hosts that have mbrtowc but not
61136 mbstate_t, as we now insist on proper declarations for both
61137 before using mbrtowc.
61139 2001-02-17 Jim Meyering <meyering@lucent.com>
61141 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61142 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61143 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61146 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61147 rather than AC_CACHE_VAL.
61149 2001-02-17 Jim Meyering <meyering@lucent.com>
61151 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61152 around included file name.
61154 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61156 * lib/strftime.c: Update from GNU libc (the only changes were to
61159 2001-02-17 Jim Meyering <meyering@lucent.com>
61161 * lib/regex.c: Update from libc.
61163 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61165 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61168 2001-02-16 Paul Eggert <eggert@twinsun.com>
61170 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61171 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61172 Reported by Mark Hounschell via Paul Eggert.
61174 2001-02-07 Jim Meyering <meyering@lucent.com>
61176 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61178 2001-02-05 Jim Meyering <meyering@lucent.com>
61180 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61181 it includes the patch required for `large file' support with at least
61182 HP-UX's 10.20 /bin/cc.
61184 2001-02-03 Jim Meyering <meyering@lucent.com>
61186 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61187 AS_IF, now that it works once again (mysteriously).
61188 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61190 2001-01-30 Jim Meyering <meyering@lucent.com>
61192 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61193 * m4/chown.m4: Rename conftestchown to conftest.chown.
61194 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61195 s/conftestdir2/conftest.d2/.
61196 * m4/utimes.m4: s/conftestdata/conftest.data/
61197 Inspired by Pavel Roskin's change in autoconf.
61199 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61201 * lib/config.charset: Update for FreeBSD 4.2.
61203 2001-01-27 Jim Meyering <meyering@lucent.com>
61205 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61207 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61209 2001-01-26 Jim Meyering <meyering@lucent.com>
61211 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61212 quotearg.c includes it.
61214 2001-01-26 Jim Meyering <meyering@lucent.com>
61216 * lib/quotearg.c: Include stddef.h.
61217 * lib/quote.c: Include stddef.h.
61218 Reported by Axel Kittenberger.
61220 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61221 line in double quotes so that it evokes a better diagnostic.
61222 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61223 Reported by Axel Kittenberger.
61225 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61227 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61228 as if it was a `charset'.
61230 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61232 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61235 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61237 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61238 to avoid a warning. Add back 'const' to inptr.
61240 2001-01-20 Jim Meyering <meyering@lucent.com>
61242 Be sure that headers are checked before used in code compiled
61243 for the type checks.
61244 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61245 In place of that, invoke jm_CHECK_ALL_TYPES.
61246 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61247 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61248 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61249 The check for ssize_t was mistakenly run before the test for unistd.h.
61251 The configure-time check for stdbool.h was missing.
61252 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61253 (jm_PREREQ_HASH): New function.
61255 2001-01-17 Jim Meyering <meyering@lucent.com>
61257 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61258 for autoconf-2.49c.
61259 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61261 2001-01-16 Jim Meyering <meyering@lucent.com>
61263 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61266 2001-01-14 Jim Meyering <meyering@lucent.com>
61268 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61269 foo and bar. Create conftestdir/ in the script, not in the C code.
61270 Remove directories in the script, not in the C code.
61271 Remove conftestdir{,2} before trying to create the directory.
61272 Make the entire configure script fail if the mkdir fails.
61274 2001-01-14 Jim Meyering <meyering@lucent.com>
61276 * lib/rename.c: New file. From Volker Borchert.
61277 Include stdlib.h, string.h or strings.h, and xalloc.h.
61278 Use strip_trailing_slashes rather than open-coding it.
61280 2001-01-03 Paul Eggert <eggert@twinsun.com>
61282 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61284 2001-01-03 Jim Meyering <meyering@lucent.com>
61286 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61287 of local `inptr' to avoid warning with some system declarations of
61290 2001-01-02 Volker Borchert <bt@teknon.de>
61292 * m4/rename.m4: New file.
61293 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61295 2001-01-01 Jim Meyering <meyering@lucent.com>
61297 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61298 even on systems with utmpx.h. It's necessary for the declaration of
61299 utmp's ut_user member. Reported by Andreas Jaeger.
61301 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61302 available. They are required for the declarations of getgrgid and
61304 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61305 Reported by Andreas Jaeger.
61307 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61309 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61310 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61311 so `make install' also works in VPATH builds.
61313 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61315 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61316 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61317 can be used in subdirectories.
61319 2000-12-29 Paul Eggert <eggert@twinsun.com>
61321 * lib/modechange.c: Do not assume that mode_t uses the
61322 traditional octal encoding. E.g. "chmod 1 FOO" should set
61323 the other-execute bit of FOO even if S_IXOTH != 1.
61325 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61326 WOTH, XOTH, ALLM): New macros.
61327 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61328 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61330 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61331 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61333 No need to use uintmax_t; unsigned long is long enough.
61334 Don't bother to get suffix since we don't use it.
61336 2000-12-26 Jim Meyering <meyering@lucent.com>
61338 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61339 better with autoheader.
61341 2000-12-24 Jim Meyering <meyering@lucent.com>
61343 * lib/hash.c (is_prime): Return explicit boolean values.
61344 (hash_get_first): Return NULL to appease Irix5.6's 89.
61345 Reported by Nelson Beebe.
61347 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61349 * lib/localcharset.c (locale_charset): Add support for Win32.
61351 2000-12-18 Paul Eggert <eggert@twinsun.com>
61353 * lib/physmem.h, lib/physmem.c: New files.
61355 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61356 (noinst_HEADERS): Add physmem.h.
61358 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61359 't' for compatibility with Solaris 8 sort.
61361 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61363 * lib/config.charset: Add support for BeOS.
61365 2000-12-17 Jim Meyering <meyering@lucent.com>
61367 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61368 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61370 2000-12-16 Jim Meyering <meyering@lucent.com>
61372 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61373 N and M) would have treated it like `chown N:N FILE'.
61375 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61377 2000-12-16 Jim Meyering <meyering@lucent.com>
61379 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61380 SHELLS_FILE to a file name that's useful on djgpp systems.
61382 (ADDITIONAL_DEFAULT_SHELLS): Define.
61383 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61384 Based mostly on a patch from Prashant TR.
61386 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61388 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61389 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61390 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61392 2000-12-08 Andreas Schwab <schwab@suse.de>
61394 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61395 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61397 2000-12-07 Jim Meyering <meyering@lucent.com>
61399 * lib/stripslash.c (ISSLASH): Define.
61400 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61404 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61405 (dir_name_r): Declare this function as static.
61406 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61407 manifest itself on a name containing a mix of slashes and
61409 Make this function work with names starting with a DOS-style
61410 drive letter and colon prefix.
61411 (dir_name): Append `.' if necessary.
61412 Based mostly on patches from Prashant TR and Eli Zaretskii.
61414 * lib/dirname.h (dir_name_r): Remove prototype.
61416 2000-12-06 Paul Eggert <eggert@twinsun.com>
61418 * m4/off_t-format.m4: Remove this file.
61419 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61421 2000-12-06 Jim Meyering <meyering@lucent.com>
61423 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61424 replacement strtoull, we may well need the replacement strtoul, too.
61425 Check for declarations of strtoul and strtoull.
61426 Check for strtol. Mainly as a cue to cause automake to include
61427 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61428 Check for limits.h -- strtol.c needs it.
61430 2000-12-05 Jim Meyering <meyering@lucent.com>
61432 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61434 2000-12-04 Jim Meyering <meyering@lucent.com>
61436 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61437 Also include memory.h, stdlib.h, unistd.h if appropriate.
61438 Reported by Andreas Jaeger (conflicting declaration of malloc).
61440 2000-12-02 Jim Meyering <meyering@lucent.com>
61442 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61443 * m4/jm-macros.m4 (jm_MACROS): require it.
61445 2000-12-02 Jim Meyering <meyering@lucent.com>
61447 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61449 2000-12-01 Paul Eggert <eggert@twinsun.com>
61451 * lib/memrchr.c: Include <config.h> before any system include file.
61453 2000-11-30 Jim Meyering <meyering@lucent.com>
61455 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61457 2000-11-30 Jim Meyering <meyering@lucent.com>
61459 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61461 2000-11-29 Paul Eggert <eggert@twinsun.com>
61463 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61465 2000-11-26 Jim Meyering <meyering@lucent.com>
61467 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61469 2000-11-22 Paul Eggert <eggert@twinsun.com>
61471 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61472 size of (size_t) -1; it's not portable.
61474 2000-11-17 Jim Meyering <meyering@lucent.com>
61476 * lib/strstr.c: Update from GNU libc.
61478 2000-11-17 Akim Demaille <akim@epita.fr>
61480 * lib/obstack.h: Formatting changes.
61481 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61482 prevent type checking.
61483 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61484 cast the value to (void *): assigning a `foo *' to a `void *'
61486 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61488 2000-11-16 Jim Meyering <meyering@lucent.com>
61490 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61492 2000-11-11 Jim Meyering <meyering@lucent.com>
61494 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61496 2000-11-10 Jim Meyering <meyering@lucent.com>
61498 * lib/obstack.h: Update from GNU libc.
61499 * lib/obstack.c: Likewise.
61501 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61503 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61505 2000-11-06 Paul Eggert <eggert@twinsun.com>
61507 * lib/getusershell.c (setusershell): Use rewind rather than
61508 fseek/fseeko, to avoid configuration hassles with fseeko.
61509 Don't bother opening SHELLS_FILE if shellstream is NULL;
61510 it's not necessary.
61512 2000-11-05 Jim Meyering <meyering@lucent.com>
61514 * lib/makepath.h (make_dir): Declare.
61515 * lib/makepath.c (make_dir): Remove `static' attribute.
61518 2000-11-04 Jim Meyering <meyering@lucent.com>
61520 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61522 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61524 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61525 last one in a bucket, advance to the next bucket.
61527 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61529 * lib/fnmatch.c: Do not comment out all the code if we are using
61530 the GNU C library, because in some cases we are replacing buggy
61531 code in the GNU C library itself.
61533 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61535 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61536 (regex_compile): Catch bogus \(\1\).
61538 2000-10-30 Paul Eggert <eggert@twinsun.com>
61540 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61541 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61542 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61544 2000-10-30 Paul Eggert <eggert@twinsun.com>
61546 * lib/error.h, getline.h, modechange.h:
61547 Remove "2000" from Copyright line, as the file hasn't been
61548 changed this year other than in the copyright notice.
61550 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61551 was changed this year.
61553 2000-10-29 Jim Meyering <meyering@lucent.com>
61555 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61557 * m4/ls-mntd-fs.m4: Likewise
61559 2000-10-29 Jim Meyering <meyering@lucent.com>
61561 * lib/xstat.in: Fix grammar in comment.
61563 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61565 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61566 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61567 doesn't define __restrict_arr.
61569 2000-10-28 Jim Meyering <meyering@lucent.com>
61571 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61572 (jm_PREREQ_MEMCHR): New function.
61574 2000-10-28 Jim Meyering <meyering@lucent.com>
61576 * lib/memchr.c: Update from libc.
61577 Adjust for portability:
61578 [HAVE_STDLIB_H]: Include stdlib.h.
61579 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61580 Undef __memchr, too.
61581 [!weak_alias]: Define __memchr to memchr.
61583 * lib/regex.c: Update from libc.
61584 * lib/regex.h: Likewise.
61585 * lib/getopt1.c: Likewise.
61586 * lib/memcmp.c: Likewise.
61588 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61589 Avoid using fseek, when possible -- it's broken by design.
61590 Patch by Ulrich Drepper.
61592 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61594 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61595 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61596 Giving in to popular pressure to shut up the compiler with casts.
61598 2000-10-26 Jim Meyering <meyering@lucent.com>
61600 * lib/strftime.c: Update from libc.
61602 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61604 * regex.c: More `unsigned char' -> `re_char' changes.
61605 Also change several `int' into `re_wchar_t'.
61606 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61607 (PUSH_FAILURE_POINTER): Don't cast any more.
61608 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61609 We want GCC to complain, since this piece of code makes
61610 re_match non-reentrant, which *should* be fixed.
61611 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61612 (EXTEND_BUFFER): Use RETALLOC.
61613 (SET_LIST_BIT): Don't cast.
61614 (re_wchar_t): New type.
61615 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61616 that those two functions will always properly return.
61617 (IMMEDIATE_QUIT_CHECK): Cast to void.
61618 (analyse_first): Use recursion rather than an explicit stack.
61619 (re_compile_fastmap): Can't fail anymore.
61620 (re_search_2): Don't check re_compile_fastmap for failure.
61621 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61622 Now also sets the new value (passed in a new argument).
61623 (re_match_2_internal): Use it.
61624 Also, use a new var `reg' of type size_t when looping through regs
61625 rather than reuse the inappropriate `mcnt'.
61627 2000-10-25 Jim Meyering <meyering@lucent.com>
61629 * lib/obstack.c: Update from libc.
61631 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61633 * regex.c (regex_compile): Change the way of handling a range from
61634 a char less than 256 to a char not less than 256.
61636 2000-10-24 Andrew Innes <andrewi@gnu.org>
61638 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61640 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61641 so that re_search functions only quit when callers expect them to.
61643 2000-10-23 Jim Meyering <meyering@lucent.com>
61645 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61646 wrong. That set_locale call must not have any side effects.
61649 2000-10-22 Jim Meyering <meyering@lucent.com>
61651 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61652 [CYCLIC]: Remove now-unused definition.
61654 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61655 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61656 Suggestion from Ulrich Drepper.
61658 2000-10-21 Jim Meyering <meyering@lucent.com>
61660 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61661 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61662 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61664 2000-10-21 Jim Meyering <meyering@lucent.com>
61666 * lib/dirname.c (memrchr): Declare if necessary.
61667 (dir_name): Remove the restriction that there be no
61668 trailing slashes. Now, this code skips past them, effectively
61670 [TEST_DIRNAME] (main): New unit tests.
61672 * lib/memrchr.c: New file from GNU libc.
61673 Undef __memrchr, too.
61674 [!weak_alias]: Define __memrchr to memrchr.
61675 Guard weak_alias use with `#ifdef weak_alias'.
61677 2000-10-21 Jim Meyering <meyering@lucent.com>
61679 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61680 (dir_name): Use dir_name_r.
61681 * lib/dirname.h (dir_name_r): Declare it.
61683 2000-10-17 Jim Meyering <meyering@lucent.com>
61685 * lib/quote.h (PARAMS): Define and use.
61686 Reported by Akim Demaille.
61688 * lib/getopt.c: Update from libc.
61690 2000-10-16 Jim Meyering <meyering@lucent.com>
61692 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61696 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61698 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61700 2000-09-25 Jim Meyering <meyering@lucent.com>
61702 * lib/md5.h (rol): Define (from GnuPG).
61704 * lib/sha.c: Give credit (GnuPG) where due.
61705 (M): Use rol rather than open-coding it.
61706 Add a FIXME comment.
61708 2000-09-21 Jim Meyering <meyering@lucent.com>
61710 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61711 Reported by Michael Stone.
61713 2000-09-20 Jim Meyering <meyering@lucent.com>
61715 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61716 (noinst_HEADERS): Add sha.h.
61717 Based on code from Scott G. Miller and from GnuPG.
61719 2000-09-18 Jim Meyering <meyering@lucent.com>
61721 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61722 LIBS. Otherwise, everyone ends up linking with -lelf for some
61724 Reported by Mike Stone.
61726 2000-09-15 Jim Meyering <meyering@lucent.com>
61728 * lib/regex.c: Update from libc.
61730 2000-09-10 Jim Meyering <meyering@lucent.com>
61732 * lib/getopt.c (_getopt_internal): Update from glibc.
61734 2000-09-09 Jim Meyering <meyering@lucent.com>
61736 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61737 think it should be used as a general replacement for isascii.
61738 * lib/fnmatch.c: Likewise.
61739 * lib/mbswidth.c: Likewise
61740 * lib/regex.c: Likewise.
61743 * lib/userspec.c: Include sys/param.h and limits.h.
61745 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61746 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61747 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61748 UID, GID. Check range.
61750 2000-09-06 Jim Meyering <meyering@lucent.com>
61752 * lib/getopt.c (_getopt_internal): Update from glibc.
61754 2000-08-30 Jim Meyering <meyering@lucent.com>
61756 * lib/strftime.c: Merge in changes from GNU libc.
61758 2000-08-26 Jim Meyering <meyering@lucent.com>
61760 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61761 * m4/fpending.m4: New file.
61763 2000-08-26 Jim Meyering <meyering@lucent.com>
61765 * lib/closeout.c: Include "__fpending.h".
61766 (close_stdout_status): Return right away if there's nothing to flush.
61768 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61769 * lib/__fpending.c: New file.
61770 * lib/__fpending.h: New file.
61772 2000-08-20 Jim Meyering <meyering@lucent.com>
61774 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61775 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61776 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61778 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61780 Improve fileutils installation on systems where running
61781 programs (like install) can't be unlinked.
61782 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61783 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61785 2000-08-07 Paul Eggert <eggert@twinsun.com>
61787 Standardize on "memory exhausted" instead of "Memory exhausted"
61788 or "virtual memory exhausted".
61789 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61790 "virtual memory exhausted".
61791 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61793 * lib/userspec.c (parse_user_spec): Likewise.
61794 * lib/bumpalloc.h: comment fix
61795 * lib/same.c, userspec.c: Include xalloc.h.
61797 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61798 not char *const and pointing to a constant array.
61799 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61800 (xrealloc): Comment fix.
61802 * lib/userspec.c (parse_user_spec):
61803 Don't translate a message until just before returning,
61804 to avoid unnecessary translation.
61806 2000-08-07 Jim Meyering <meyering@lucent.com>
61808 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61809 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61810 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61811 getgroups.c, gethostname.c, getopt.h, group-member.c,
61812 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61813 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61814 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61815 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61816 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61817 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61818 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61819 yesno.c: Back out Copyright date changes for each file with no change
61820 this year. This eases coordination with other programs using the same
61821 source code modules. From Paul Eggert.
61823 2000-08-06 Paul Eggert <eggert@twinsun.com>
61825 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61826 not char, for compatibility with glibc 2.1.3 strftime.c.
61828 2000-08-03 Greg McGary <greg@mcgary.org>
61830 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61831 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61832 (EXTEND_BUFFER): Use them.
61834 2000-08-01 Jim Meyering <meyering@lucent.com>
61836 * lib/dirname.c (ISSLASH): Define.
61837 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61838 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61839 both `\' and `/' may be use as path separators.
61840 Based on a patch from Prashant TR.
61842 2000-07-31 Paul Eggert <eggert@twinsun.com>
61844 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61845 slot vector a constant, since it might get modified.
61847 2000-07-31 Jim Meyering <meyering@lucent.com>
61849 * lib/xmalloc.c: Use `virtual memory exhausted', not
61850 `Memory exhausted'.
61851 * lib/obstack.c (print_and_abort): Likewise.
61853 2000-07-30 Paul Eggert <eggert@twinsun.com>
61855 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61856 buffer, so that the caller can always quote one small
61857 component of a "memory exhausted" message in slot 0.
61858 From a suggestion by Jim Meyering.
61860 2000-07-30 Jim Meyering <meyering@lucent.com>
61862 * lib/makepath.c (make_path): Quote the other instance, too.
61864 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61865 (STATIC_BUF_SIZE): Define.
61866 (quotearg_n_options): Use only statically allocated storage when
61867 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61868 than STATIC_BUF_SIZE.
61870 2000-07-29 Jim Meyering <meyering@lucent.com>
61872 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61873 * lib/dirname.c (dir_name): Likewise.
61875 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61878 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61879 (dir_name): Assert that there are no trailing slashes.
61881 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61883 * lib/mbswidth.h (mbswidth): Add a flags argument.
61884 (mbswidth): New declaration.
61885 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61886 * lib/mbswidth.c (mbswidth): Add a flags argument.
61887 (mbsnwidth): New function.
61889 2000-07-24 Jim Meyering <meyering@lucent.com>
61891 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61893 2000-07-23 Paul Eggert <eggert@twinsun.com>
61895 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61897 2000-07-23 Paul Eggert <eggert@twinsun.com>
61899 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61900 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61901 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61902 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61903 invoke multibyte primitives.
61905 2000-07-23 Paul Eggert <eggert@twinsun.com>
61908 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61909 so that mbstate_t is always defined.
61911 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61912 be 1 in at least one GCC installation, and this configuration
61913 error is likely to be common. Ignoring MB_LEN_MAX hurts
61914 performance on hosts that have mbrtowc but have only unibyte
61915 locales, but I assume these hosts are rare.
61917 2000-07-23 Paul Eggert <eggert@twinsun.com>
61919 * lib/mbswidth.c (_XOPEN_SOURCE):
61920 Don't define; this causes problems on Solaris 7.
61921 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61923 2000-07-23 Jim Meyering <meyering@lucent.com>
61925 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61926 too: getgrgid, getpwuid, getuid.
61928 2000-07-23 Jim Meyering <meyering@lucent.com>
61930 * lib/basename.c (base_name): Add an assertion.
61932 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61934 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61935 shadow its mbsinit function.
61937 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61939 * lib/mbswidth.h: New file.
61940 * lib/mbswidth.c: New file.
61941 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61942 (noinst_HEADERS): Add mbswidth.h.
61944 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61946 * lib/config.charset: Add support for FreeBSD. Improve support for
61949 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61951 * m4/mbswidth.m4: New file.
61952 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61954 2000-07-15 Jim Meyering <meyering@lucent.com>
61956 * lib/makepath.c: Include quote.h.
61957 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61958 corresponding argument in a `quote (...)' call.
61959 Give better diagnostics.
61961 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61962 (noinst_HEADERS): Add quote.h.
61964 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61965 from tar's src/misc.c.
61966 * lib/quote.h: New file. Prototypes for same.
61968 2000-07-14 Paul Eggert <eggert@twinsun.com>
61970 From a suggestion by Bruno Haible.
61971 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61972 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61973 to decide whether to define the BeOS workaround macro;
61974 this adjusts to the change to AC_MBSTATE_T.
61976 2000-07-14 Jim Meyering <meyering@lucent.com>
61978 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61979 jm_AC_TYPE_UINTMAX_T.
61981 2000-07-13 Paul Eggert <eggert@twinsun.com>
61983 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61985 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61986 quotearg_buffer_restyled): Add support for
61987 clocale_quoting_style. Undo previous change to
61988 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61989 and "{RIGHT QUOTATION MARK}" msgids.
61991 2000-07-10 Paul Eggert <eggert@twinsun.com>
61993 From a suggestion by Bruno Haible.
61994 * m4/mbstate_t.m4 (AC_MBSTATE_T):
61995 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
61996 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61997 and mbstate_t, to a single-part test that simply defines mbstate_t.
61998 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61999 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62001 2000-07-10 Jim Meyering <meyering@lucent.com>
62003 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62005 * m4/gnu-source.m4: Output to confdefs.h directly.
62006 Suggestion from Akim Demaille.
62008 2000-07-09 Paul Eggert <eggert@twinsun.com>
62010 The old behavior of quoting `like this' doesn't look good with
62011 newer, ISO-style fonts. See:
62012 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62014 Instead, quote "like this" by default. Let the translator
62015 tailor the locale-specific quoting behavior by providing
62016 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62018 * lib/quotearg.c (N_): New macro.
62019 (gettext_default): New function.
62020 (quotearg_buffer_restyled): Use
62021 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62022 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62024 2000-07-09 Jim Meyering <meyering@lucent.com>
62026 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62027 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62029 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62030 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62032 2000-07-09 Jim Meyering <meyering@lucent.com>
62034 * lib/Most files: Update copyright dates to include 2000.
62036 2000-07-08 Jim Meyering <meyering@lucent.com>
62038 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62040 (xgethostname): Remove now-unnecessary #ifdef.
62041 Move declaration of `err' into loop where it's used.
62043 2000-07-05 Paul Eggert <eggert@twinsun.com>
62044 and Bruno Haible <haible@clisp.cons.org>
62046 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62047 only if the test for an object-type mbstate_t fails. This
62048 prevents us from mistakenly reporting that mbstate_t is a
62049 system object type after we "#define mbstate_t int" to work
62052 2000-07-05 Paul Eggert <eggert@twinsun.com>
62053 and Bruno Haible <haible@clisp.cons.org>
62055 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62057 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62059 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62061 Include <ctype.h> for use of isalpha.
62063 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62065 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62066 by allocating a larger buffer. Test the gethostname return value for
62067 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62068 returns an error and ENAMETOOLONG isn't defined.
62070 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62072 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62075 2000-07-04 Jim Meyering <meyering@lucent.com>
62077 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62078 of the deprecated AC_CHECKING.
62080 2000-07-04 Jim Meyering <meyering@lucent.com>
62082 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62083 Reported by Bruno Haible.
62085 2000-07-04 Jim Meyering <meyering@lucent.com>
62087 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62088 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62091 2000-07-03 Paul Eggert <eggert@twinsun.com>
62093 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62094 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62096 2000-07-03 Paul Eggert <eggert@twinsun.com>
62097 and Bruno Haible <haible@clisp.cons.org>
62099 * lib/quotearg.c (mbrtowc):
62100 Assign to *pwc, and return 1 only if result is nonzero.
62101 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62103 2000-07-03 Jim Meyering <meyering@lucent.com>
62105 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62107 2000-07-03 Jim Meyering <meyering@lucent.com>
62109 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62110 This is necessary to get a definition of e.g., UTMP_FILE on
62114 2000-07-02 Jim Meyering <meyering@lucent.com>
62116 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62118 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62119 AC_LIBOBJ(function_name).
62120 * m4/chown.m4: Likewise.
62121 * m4/fnmatch.m4: Likewise.
62122 * m4/ftruncate.m4: Likewise.
62123 * m4/getgroups.m4: Likewise.
62124 * m4/getline.m4: Likewise.
62125 * m4/group-member.m4: Likewise.
62126 * m4/jm-macros.m4: Likewise.
62127 * m4/lstat.m4: Likewise.
62128 * m4/malloc.m4: Likewise.
62129 * m4/memcmp.m4: Likewise.
62130 * m4/nanosleep.m4: Likewise.
62131 * m4/putenv.m4: Likewise.
62132 * m4/realloc.m4: Likewise.
62133 * m4/regex.m4: Likewise.
62134 * m4/stat.m4: Likewise.
62135 * m4/strftime.m4: Likewise.
62137 2000-07-02 Jim Meyering <meyering@lucent.com>
62139 * lib/quotearg.c (mbstate_t): Don't define here.
62141 2000-07-02 Jim Meyering <meyering@lucent.com>
62143 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62145 2000-07-01 Jim Meyering <meyering@lucent.com>
62147 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62149 2000-07-01 Jim Meyering <meyering@lucent.com>
62151 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62154 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62156 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62157 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62159 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62161 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62162 per change in ../m4/ls-mntd-fs.m4.
62163 (read_filesystem_list): Ignore symbolic links.
62165 2000-06-29 Jim Meyering <meyering@lucent.com>
62167 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62168 for declaration of strcmp.
62170 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62172 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62173 Avoid warning by casting result to `char *' to remove `const'.
62175 2000-06-28 Jim Meyering <meyering@lucent.com>
62177 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62178 included by quotearg.c, for which we perform this test. From
62181 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62183 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62184 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62185 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62187 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62189 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62191 2000-06-26 Paul Eggert <eggert@twinsun.com>
62193 savedir now sets errno on failure and invokes xmalloc to get memory.
62194 Fix a couple of other minor bugs while we're at it.
62196 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62197 (NAMLEN): Remove macro.
62198 (malloc, realloc): Remove decls.
62199 (stpcpy): Likewise.
62200 ("xalloc.h"): Include.
62201 (NAME_SIZE_DEFAULT): New macro.
62202 (savedir): Use xmalloc / xrealloc to allocate memory.
62203 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62204 Skip "" directory entries.
62205 Use strlen to calculate directory entry length, since the old method
62206 is rarely used these days and isn't worth supporting.
62207 Don't use a pointer after freeing it.
62208 Check for integer overflow when calculating allocation size.
62209 Use memcpy to copy entries, instead of stpcpy.
62210 Set errno properly when returning NULL.
62211 Check for readdir error.
62213 2000-06-26 Jim Meyering <meyering@lucent.com>
62215 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62217 2000-06-25 Jim Meyering <meyering@lucent.com>
62219 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62220 Linux header bug when _XOPEN_SOURCE is defined to 500.
62222 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62224 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62227 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62229 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62231 Don't include <stdlib.h>. Don't declare malloc, realloc.
62233 2000-06-24 Jim Meyering <meyering@lucent.com>
62235 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62236 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62237 for which strerror does return char*, but which lacks a conveniently
62238 accessible declaration of the function. If the compile-test says
62239 strerror_r doesn't work, then resort to a `run'-test that works on
62240 BeOS and segfaults on DEC Unix.
62242 2000-06-24 Jim Meyering <meyering@lucent.com>
62244 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62246 2000-06-23 Paul Eggert <eggert@twinsun.com>
62248 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62249 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62251 2000-06-23 Paul Eggert <eggert@twinsun.com>
62253 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62254 (mbrtowc, mbstate_t): Define substitutes if
62255 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62256 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62257 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62259 2000-06-23 Jim Meyering <meyering@lucent.com>
62261 * m4/afs.m4: Add missing AC_MSG_RESULT.
62262 Reported by Bruno Haible.
62264 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62265 Suggestion from Bruno Haible.
62267 2000-06-23 Jim Meyering <meyering@lucent.com>
62269 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62271 2000-06-21 Jim Meyering <meyering@lucent.com>
62273 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62275 2000-06-21 Jim Meyering <meyering@lucent.com>
62277 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62278 (noinst_HEADERS): Add getstr.h.
62280 * lib/getline.c (getstr): Move into a separate file.
62281 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62282 the following changes: new parameter, delim2; both delim[12]
62283 parameters have type `int', not `char'. The latter would lose
62284 with 8-bit delimiters.
62285 * lib/getstr.h: New file.
62287 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62289 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62290 than 1024, return a memory chunk of least possible size, instead
62291 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62292 Use free/xmalloc instead of xrealloc to avoid copying for very long
62295 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62297 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62300 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62302 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62303 address, not strdup. Include <stdlib.h> and don't declare free().
62305 2000-06-19 Jim Meyering <meyering@lucent.com>
62307 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62309 2000-06-18 Jim Meyering <meyering@lucent.com>
62311 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62313 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62314 `checking whether...' message to be consistent with that of the
62317 2000-06-18 Jim Meyering <meyering@lucent.com>
62319 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62320 Besides, these days every porting target provides a mkdir function.
62322 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62323 needed. (this snippet comes from src/system.h).
62325 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62327 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62329 2000-06-15 Paul Eggert <eggert@twinsun.com>
62331 * lib/human.c (adjust_value): New function.
62332 (human_readable_inexact): Apply rounding style even when
62333 printing approximate values.
62335 2000-06-14 Paul Eggert <eggert@twinsun.com>
62337 * lib/human.c (human_readable_inexact): Allow an input block
62338 size that is not a multiple of the output block size, and vice versa.
62339 Reported by Piergiorgio Sartor.
62341 2000-06-14 Paul Eggert <eggert@twinsun.com>
62343 * lib/getdate.y (get_date): Apply relative times after time
62344 zone indicator, not before. Reported by Todd A. Jacobs.
62346 2000-06-13 Jim Meyering <meyering@lucent.com>
62348 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62350 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62352 2000-06-12 Paul Eggert <eggert@twinsun.com>
62354 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62356 2000-06-12 Jim Meyering <meyering@lucent.com>
62358 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62359 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62361 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62362 the optional argument, `lib'.
62364 2000-06-08 Jim Meyering <meyering@lucent.com>
62366 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62368 2000-06-04 Paul Eggert <eggert@twinsun.com>
62370 Rewrite largefile configuration so that we don't need to run
62371 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62372 AC_CANONICAL_HOST in configure.in -- jmm]
62374 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62375 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62376 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62377 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62378 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62380 Instead of inspecting the output of getconf, try to compile the
62381 test program without and with the macro definition.
62382 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62383 for getconf. Instead, check for the needed flags by compiling
62386 2000-06-04 Paul Eggert <eggert@twinsun.com>
62388 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62390 2000-06-04 Jim Meyering <meyering@lucent.com>
62392 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62393 SunOS 4.1.4 for which gid_t is an unsigned type.
62395 2000-06-03 Jim Meyering <meyering@lucent.com>
62397 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62398 now that autoconf requires that.
62400 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62401 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62402 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62404 2000-06-03 Jim Meyering <meyering@lucent.com>
62406 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62408 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62410 * m4/glibc21.m4: New file.
62411 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62413 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62415 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62416 newer, don't install charset.alias.
62417 * lib/config.charset: Change the Linux/glibc rules so they become empty
62418 on glibc-2.1 or newer.
62420 2000-06-02 Jim Meyering <meyering@lucent.com>
62422 * lib/mountlist.c: Back out last change. Instead, do this...
62423 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62424 me_dummy member using the same `ignore'-testing code.
62425 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62429 2000-05-29 Jim Meyering <meyering@lucent.com>
62431 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62432 mounts with the `ignore' attribute. Based on a patch from
62435 2000-05-28 Jim Meyering <meyering@lucent.com>
62437 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62438 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62439 * m4/stat.m4: Likewise.
62440 * m4/lstat.m4: Likewise.
62441 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62443 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62444 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62446 2000-05-26 Jim Meyering <meyering@lucent.com>
62448 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62450 2000-05-24 Jim Meyering <meyering@lucent.com>
62452 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62453 autoconf requires that.
62454 * m4/lib-check.m4: Likewise.
62455 * m4/jm-macros.m4: Likewise.
62456 * m4/strftime.m4: Likewise.
62458 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62459 AC_CHECK_DECLS, now that autoconf requires that.
62461 2000-05-22 Jim Meyering <meyering@lucent.com>
62463 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62464 * m4/lstat.m4: Likewise.
62466 2000-05-22 Jim Meyering <meyering@lucent.com>
62468 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62470 2000-05-20 Jim Meyering <meyering@lucent.com>
62472 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62473 (jm_PREREQ): Use it.
62475 2000-05-18 Jim Meyering <meyering@lucent.com>
62477 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62478 back, too, since it may have been modified by allocate_entry.
62479 (hash_delete): Rewrite to use neither the assignment operator
62480 nor the comma operator in an if-expression.
62482 2000-05-15 Paul Eggert <eggert@twinsun.com>
62485 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62486 Remove; no longer needed.
62487 "quotearg.h": Add include.
62488 (file_name): Do not bother to explicitly initialize to NULL; it's less
62489 efficient on some hosts.
62490 (close_stdout_status): Remove test as to whether stdout was already
62491 closed; it breaks for the case "echo x | sort >&-".
62492 Quote file name colons.
62493 Do not assume that _("write error") lacks format strings.
62495 2000-05-15 Jim Meyering <meyering@lucent.com>
62497 * lib/version-etc.c (version_etc_copyright): Update the copyright
62498 string used in all --version output.
62500 2000-05-14 Jim Meyering <meyering@lucent.com>
62502 * lib/closeout.c (close_stdout_set_file_name): New function.
62503 (close_stdout_status): Use new file-scoped global.
62504 Return right away if fstat says the stdout file descriptor is invalid.
62505 * lib/closeout.h (close_stdout_set_file_name): Declare.
62507 2000-05-10 Jim Meyering <meyering@lucent.com>
62509 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62510 (close_stdout_set_status): New function.
62511 * lib/closeout.h (close_stdout_set_status): Declare.
62513 2000-05-09 Jim Meyering <meyering@lucent.com>
62515 * m4/gettext.m4: Rename this...
62516 * m4/libintl.m4: ...to this.
62518 2000-05-08 Jim Meyering <meyering@lucent.com>
62520 * lib/long-options.c: Don't include closeout.h.
62521 (parse_long_options): Don't call close_stdout for --version.
62523 2000-05-06 Paul Eggert <eggert@twinsun.com>
62525 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62526 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62527 2.1.3 bug. This avoids a clash when files like regex.c define
62530 2000-05-06 Jim Meyering <meyering@lucent.com>
62532 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62533 (AC_REPLACE_FUNCS): Add strnlen.
62535 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62536 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62538 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62539 AC_SEARCH_LIBS call for nanosleep.
62540 (LIB_NANOSLEEP): Set and AC_SUBST.
62542 2000-05-06 Jim Meyering <meyering@lucent.com>
62544 * lib/strnlen.c: Undefine __strnlen and strnlen.
62545 [!weak_alias]: Define __strnlen to strnlen.
62547 * lib/atexit.c: New file, from libiberty.
62549 2000-05-06 Jim Meyering <meyering@lucent.com>
62551 * lib/closeout.c (close_stdout_status): Also check for errors on the
62554 2000-05-05 Jim Meyering <meyering@lucent.com>
62556 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62557 AC_SEARCH_LIBS call for clock_gettime.
62558 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62560 * m4/search-libs.m4: Update from autoconf.
62562 su doesn't work on Solaris 2.6.
62563 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62564 <shadow.h>. Reported by Dragos Harabor.
62566 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62568 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62569 memcpy instead of xmalloc, xrealloc, path_concat.
62570 (locale_charset): Treat empty environment variables as absent.
62571 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62573 2000-05-04 Jim Meyering <meyering@lucent.com>
62575 * lib/getopt.c: Update from glibc.
62576 * lib/obstack.c: Likewise.
62577 * lib/obstack.h: Likewise.
62578 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62581 * lib/regex.h: Likewise.
62582 * lib/strndup.c: Likewise.
62583 * lib/strnlen.c: New file, from glibc.
62585 2000-05-03 Jim Meyering <meyering@lucent.com>
62587 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62589 2000-05-02 Paul Eggert <eggert@twinsun.com>
62591 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62592 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62593 compile-time test, rather than inspecting host and OS, to
62594 decide whether to define _LARGEFILE_SOURCE.
62596 2000-05-01 Jim Meyering <meyering@lucent.com>
62598 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62600 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62601 Based on a patch from Bruno Haible.
62603 2000-05-01 Jim Meyering <meyering@lucent.com>
62605 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62607 2000-04-29 Jim Meyering <meyering@lucent.com>
62609 * lib/path-concat.c: Declare strdup only if it's not defined.
62610 * lib/canon-host.c: Likewise.
62612 2000-04-28 Jim Meyering <meyering@lucent.com>
62614 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62615 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62616 is included first, then limits.h is included by locale.h by libintl.h.
62617 From John David Anglin.
62619 2000-04-25 Jim Meyering <meyering@lucent.com>
62621 * lib/makepath.c (S_IRWXUGO): Define.
62622 (make_path): Always perform explicit chmod if MODE specifies any
62623 of the `special' permission bits. Prompted by a bug report against
62624 install from Mate Wierdl and Joost van Baal.
62626 2000-04-18 Jim Meyering <meyering@lucent.com>
62628 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62629 (jm_PREREQ): Use it.
62631 2000-04-18 Jim Meyering <meyering@lucent.com>
62633 * lib/README: New file.
62635 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62636 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62638 2000-04-17 Jim Meyering <meyering@lucent.com>
62641 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62642 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62643 Suggestion from Akim Demaille.
62645 2000-04-17 Jim Meyering <meyering@lucent.com>
62647 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62648 the definition of it to rpl_strftime also defined-away the system's
62651 2000-04-15 Jim Meyering <meyering@lucent.com>
62653 Use `C' to denote so-called `contiguous' files, the same way
62655 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62656 (ftypelet): Use S_ISCTG.
62657 From Michael Deutschmann.
62659 2000-04-14 Jim Meyering <meyering@lucent.com>
62661 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62662 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62665 2000-04-14 Jim Meyering <meyering@lucent.com>
62667 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62669 2000-04-13 Jim Meyering <meyering@lucent.com>
62671 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62672 AH_VERBATIM to insert required #ifndef into config.h.in.
62673 Suggestion from Akim Demaille.
62675 2000-04-12 Jim Meyering <meyering@lucent.com>
62677 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62678 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62679 Christian Krackowizer.
62681 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62682 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62683 (AC_SYS_LARGEFILE): Require.
62684 (AM_C_PROTOTYPES): Require.
62686 2000-04-08 Jim Meyering <meyering@lucent.com>
62688 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62689 names don't conflict. Reported by Eli Zaretskii.
62691 2000-04-07 Jim Meyering <meyering@lucent.com>
62693 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62694 sys/types.h, to work around system header problems on AIX 3.2.5.
62697 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62699 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62700 bug. Deal with the different error behavior of Irix iconv.
62702 2000-04-05 Paul Eggert <eggert@twinsun.com>
62704 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62705 IRIX if the installer said otherwise.
62707 2000-04-05 Jim Meyering <meyering@lucent.com>
62709 Portability tweaks required for ultrix4.3.
62710 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62711 (jm_CHECK_DECLS): Add getutent to the list of functions.
62712 (_jm_DECL_HEADERS): Add utmpx.h.
62713 From John David Anglin.
62715 * m4/strftime.m4: Back out the 2000-04-02 change.
62716 Instead of that change, simply undefine putenv in the test program.
62718 2000-04-05 Jim Meyering <meyering@lucent.com>
62720 Portability tweaks required for ultrix4.3.
62721 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62723 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62724 * lib/canon-host.c: Declare strdup.
62725 * lib/path-concat.c: Likewise.
62726 From John David Anglin.
62728 2000-04-04 Jim Meyering <meyering@lucent.com>
62730 Be more DOS 8.3-friendly.
62731 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62732 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62733 * lib/Makefile.am: Reflect renaming.
62734 Reported by Eli Zaretskii.
62736 Use a temporary file name that won't clash with `charset.alias'
62737 in the DOS 8.3 name space.
62738 * lib/Makefile.am (charset_tmp): Define.
62739 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62740 (uninstall-local): Likewise.
62741 Reported by Eli Zaretskii.
62743 2000-04-03 Jim Meyering <meyering@lucent.com>
62745 * m4/gettext.m4: Fix typo in comment.
62747 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62748 textutils/configure.in). Suggestion from Paul Eggert.
62749 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62751 2000-04-02 Paul Eggert <eggert@twinsun.com>
62753 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62754 variable in the shell rather than using putenv, which isn't
62755 portable. This avoids the configure-time inter-test dependency
62756 on the potentially-renamed putenv function.
62758 2000-03-30 Paul Eggert <eggert@twinsun.com>
62760 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62761 before checking struct stat.st_blksize, so that
62762 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62764 2000-03-29 Paul Eggert <eggert@twinsun.com>
62766 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62767 since strftime.c uses HAVE_STRFTIME to decide whether to use
62768 the underlying strftime.
62770 2000-03-29 Paul Eggert <eggert@twinsun.com>
62772 * lib/time/strftime.c (my_strftime): Make sure we call the system
62773 strftime, not ourselves, when invoking the underlying strftime.
62775 2000-03-24 Jim Meyering <meyering@lucent.com>
62777 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62778 (charset_alias): Define.
62779 (install-exec-local): Factor out common code.
62780 (uninstall-local): Split lines longer than 80.
62781 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62782 (SUFFIXES): Define.
62783 (.sed.in.sed): New rule. Don't redirect directly to $@.
62784 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62786 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62788 * lib/config.charset: Output a line containing "Packages using this
62790 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62791 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62792 ref-del.sed): New rules.
62794 2000-03-17 Jim Meyering <meyering@lucent.com>
62796 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62797 Otherwise, include <strings.h>
62799 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62801 * lib/unicodeio.c (utf8_wctomb): New function.
62802 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62803 format instead of in UCS-4 with platform dependent endianness.
62805 2000-03-10 Jim Meyering <meyering@lucent.com>
62807 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62808 From Marco Franzen.
62810 2000-03-07 Paul Eggert <eggert@twinsun.com>
62812 * lib/savedir.c (savedir): Work even if directory size is
62813 negative; this can happen with some screwy NFS configurations.
62815 2000-03-06 Jim Meyering <meyering@lucent.com>
62817 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62818 if it's NULL (because we ran out of memory). From Bruno Haible.
62820 2000-03-05 Jim Meyering <meyering@lucent.com>
62822 * lib/localcharset.c ("path-concat.h"): Include.
62823 (get_charset_aliases): Use path_concat instead of ANSI string
62826 * lib/unicodeio.h (PARAMS): Define.
62827 Use it to guard prototype.
62829 2000-03-04 Jim Meyering <meyering@lucent.com>
62831 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62832 for lib/localcharset.c.
62834 2000-03-04 Jim Meyering <meyering@lucent.com>
62836 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62837 installing into it.
62838 (uninstall-local): Uncomment this rule so `make distcheck' works
62841 * lib/unicodeio.c (<errno.h>): Include it.
62842 (errno): Declare if not defined.
62844 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62846 * lib/config.charset: New version, incorporating remarks from a linux
62847 i18n mailing list. From Bruno Haible.
62849 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62851 * m4/codeset.m4: New file.
62852 * m4/iconv.m4: New file.
62853 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62855 2000-03-03 Jim Meyering <meyering@lucent.com>
62857 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62859 2000-03-02 Jim Meyering <meyering@lucent.com>
62861 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62862 the messages come out on separate lines.
62864 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62865 rather than jm_CHECK_DECLARATIONS.
62866 * m4/decl.m4: Remove now-unused file.
62868 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62871 2000-03-02 Jim Meyering <meyering@lucent.com>
62873 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62875 2000-03-01 Jim Meyering <meyering@lucent.com>
62877 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62878 * lib/unicodeio.c: Likewise.
62880 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62882 * lib/config.charset: New file.
62883 * lib/localcharset.c: New file.
62884 * lib/unicodeio.h, lib/unicodeio.c: New files.
62885 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62886 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62887 (noinst_HEADERS): Add unicodeio.h.
62888 (all-local, install-exec-local, charset.alias): New targets.
62890 2000-02-28 Paul Eggert <eggert@twinsun.com>
62892 * lib/quotearg.c (ALERT_CHAR): New macro.
62893 (quotearg_buffer_restyled): Use it.
62895 2000-02-27 Jim Meyering <meyering@lucent.com>
62897 * m4/check-decl.m4: Add getenv to the list.
62899 2000-02-27 Jim Meyering <meyering@lucent.com>
62901 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62902 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62904 * lib/backupfile.c: Guard inclusion of stdlib.h with
62905 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62906 Declare malloc if needed.
62908 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62909 `#ifndef HAVE_DECL..'
62910 now that autoconf always defines the HAVE_DECL_ symbols.
62911 * lib/human.c: Likewise.
62912 * lib/same.c: Likewise.
62913 * lib/strtoumax.c: Likewise.
62915 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62916 declaration check was not run.
62917 * lib/hash.c: Likewise.
62918 * lib/human.c: Likewise.
62919 * lib/same.c: Likewise.
62920 * lib/strtoumax.c: Likewise.
62922 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62923 `.', then first look up the entire `.'-containing string as a login
62926 2000-02-23 Jim Meyering <meyering@lucent.com>
62928 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62929 in place of my hack.
62931 2000-02-18 Paul Eggert <eggert@twinsun.com>
62933 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62934 (textint): New typedef.
62935 (parser_control): Member year changed from int to textint.
62937 (YYSTYPE): Removed; replaced by %union with int and textint members.
62938 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62939 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62940 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62941 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62942 (date, number, to_year): Use width of number in digits, not its value,
62943 to determine whether it's a 2-digit year, or a 2-digit time.
62944 (yylex): Store number of digits of numeric tokens.
62945 Reported by John Kendall.
62947 (parser_control): Changed from struct parser_control to typedef (for
62948 consistency). All uses changed.
62950 (tID): Removed; not used.
62951 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62953 2000-02-14 Paul Eggert <eggert@twinsun.com>
62955 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62956 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62958 2000-02-12 Jim Meyering <meyering@lucent.com>
62960 * lib/userspec.c (ISDIGIT): Define it.
62961 (isdigit): Remove definition.
62962 (is_number): Use ISDIGIT, not isdigit.
62963 <libintl.h>: Include.
62964 (_ and N_): Define.
62965 (parse_user_spec): Mark translatable strings.
62967 2000-02-10 Jim Meyering <meyering@lucent.com>
62969 With these changes, nanosleep.[ch] are finally enough like the other
62970 lib/* replacement files to compile on a few more losing systems.
62972 * lib/nanosleep.h: Don't include config.h.
62973 Remove prototype from declaration of nanosleep.
62974 (PARAMS): Remove now-unneeded definition.
62975 * lib/nanosleep.c: #undef nanosleep.
62976 (rpl_nanosleep): Rename from nanosleep.
62978 2000-02-10 Jim Meyering <meyering@lucent.com>
62980 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62981 gnu_nanosleep to rpl_nanosleep.
62983 2000-02-09 Jim Meyering <meyering@lucent.com>
62985 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62986 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
62988 2000-02-08 Akim Demaille <akim@epita.fr>
62990 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62991 `[' and `]' and remove uses of `changequote'.
62992 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62993 (AC_SYS_LARGEFILE): Likewise.
62994 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62995 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62997 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62998 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62999 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63000 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63002 2000-02-05 Jim Meyering <meyering@lucent.com>
63004 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63005 Remove explicit use of AC_HEADER_TIME. It is required by
63006 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63007 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63008 in autoconf whereby the expansion of the latter ended up preceding
63009 the expansion of its prerequisite, AC_HEADER_TIME.
63010 Reported by Volker Borchert.
63012 2000-02-03 Jim Meyering <meyering@lucent.com>
63014 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63016 2000-02-03 Jim Meyering <meyering@lucent.com>
63018 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63019 rather than with `#if HAVE_UTMPNAME'.
63021 2000-02-02 Jim Meyering <meyering@lucent.com>
63023 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63024 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63025 Reported by Eli Zaretskii.
63027 2000-02-01 Jim Meyering <meyering@lucent.com>
63029 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63031 2000-01-31 Jim Meyering <meyering@lucent.com>
63033 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63034 functions. Add the time.h and sys/time.h headers along with the
63035 AC_REQUIRE'ment of AC_HEADER_TIME.
63037 2000-01-31 Jim Meyering <meyering@lucent.com>
63039 * lib/nanosleep.h (nanosleep): Guard declaration with
63040 `#if ! HAVE_DECL_NANOSLEEP'.
63041 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63042 the declaration in that vendor's sys/timers.h.
63043 Reported by Christian Krackowizer.
63045 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63046 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63047 (ISPRINT): Likewise.
63048 Reported by Tom Tromey.
63050 2000-01-30 Jim Meyering <meyering@lucent.com>
63052 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63054 * m4/prereq.m4 (utmp_includes): Define.
63055 Check for ut_user and ut_name members in both struct utmpx
63058 2000-01-30 Jim Meyering <meyering@lucent.com>
63060 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63061 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63062 header files where only utmpx.ut_user is declared.
63064 * lib/readutmp.h (UT_USER): Define.
63066 2000-01-29 Jim Meyering <meyering@lucent.com>
63068 * m4/lib-check.m4: New file containing library-related checks from
63069 fileutils and sh-utils (textutils had none).
63071 2000-01-28 Jim Meyering <meyering@lucent.com>
63073 * m4/perl.m4: Change format of warning message to look more like that
63074 from the missing script. Suggestion from François Pinard.
63076 2000-01-25 Jim Meyering <meyering@lucent.com>
63078 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63079 well as time.h in the compile check.
63080 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63081 Fix typo in cross-compiling case: s/yes/no/.
63083 2000-01-23 Jim Meyering <meyering@lucent.com>
63085 * m4/jm-macros.m4: Move df-related tests here from
63086 fileutils/configure.in
63088 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63089 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63091 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63092 s/space/ac_fsusage_space/.
63093 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63095 * m4/ftruncate.m4: New file (derived from part of
63096 fileutils/configure.in).
63097 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63098 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63100 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63101 AC_SUBST these here, rather than just in sh-util/configure.in, so
63102 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63104 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63105 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63106 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63107 (AC_SUBST(POW_LIBM)): Likewise.
63108 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63110 2000-01-23 Jim Meyering <meyering@lucent.com>
63112 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63115 2000-01-22 Jim Meyering <meyering@lucent.com>
63117 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63119 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63121 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63123 (AC_CHECK_HEADERS): Likewise for sh-utils.
63124 (AC_CHECK_HEADERS): Likewise for textutils.
63125 Merge the three lists of headers.
63127 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63128 from fileutils' configure.in.
63130 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63131 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63134 * m4/check-decl.m4: Use #if rather than #ifdef.
63135 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63136 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63137 (_jm_DECL_HEADERS): Define new function.
63138 (jm_CHECK_DECLARATIONS): Require it.
63140 2000-01-22 Jim Meyering <meyering@lucent.com>
63142 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63143 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63144 Required for some AIX systems. Reported by Christian Krackowizer.
63145 [TESTING] (main): New function.
63147 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63148 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63151 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63154 * lib/strverscmp.c (ISDIGIT): Define.
63155 (strverscmp): Use ISDIGIT, not isdigit.
63157 2000-01-19 Jim Meyering <meyering@lucent.com>
63159 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63160 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63161 defines `struct timespec' in <sys/time.h>
63163 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63164 Thanks to Akim for explaining.
63166 2000-01-17 Paul Eggert <eggert@twinsun.com>
63168 * lib/nanosleep.c (nanosleep):
63169 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63170 POSIX.1 doesn't require SA_INTERRUPT and some systems
63171 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63172 it's been part of POSIX.1 since day 1 (in 1988).
63174 2000-01-17 Jim Meyering <meyering@lucent.com>
63176 * lib/interlock: Remove unused file. Reported by François Pinard.
63178 2000-01-16 Paul Eggert <eggert@twinsun.com>
63180 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63181 alert, backslash, formfeed, and vertical tab unnecessarily in
63182 shell quoting style.
63184 2000-01-16 Jim Meyering <meyering@lucent.com>
63186 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63187 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63188 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63189 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63191 2000-01-16 Jim Meyering <meyering@lucent.com>
63193 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63194 because the latter didn't work.
63196 2000-01-15 Jim Meyering <meyering@lucent.com>
63198 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63199 (AC_REPLACE_FUNCS): Add memcpy and memset.
63200 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63202 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63204 2000-01-12 Jim Meyering <meyering@lucent.com>
63206 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63207 (jm_PREREQ): Use it.
63208 (jm_PREREQ_READUTMP): New macro.
63209 (jm_PREREQ): Use it.
63211 2000-01-11 Paul Eggert <eggert@twinsun.com>
63213 Quote multibyte characters correctly.
63214 * m4/c-bs-a.m4: New file.
63215 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63216 (jm_PREREQ): Use it.
63218 2000-01-11 Paul Eggert <eggert@twinsun.com>
63220 * m4/uintmax_t.m4: Port to autoconf 2.13.
63222 2000-01-08 Jim Meyering <meyering@ascend.com>
63224 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63225 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63227 2000-01-04 Jim Meyering <meyering@ascend.com>
63229 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63230 jm_STRUCT_DIRENT_D_TYPE.
63231 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63232 jm_STRUCT_DIRENT_D_INO.
63233 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63235 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63237 * m4/utime.m4: Likewise.
63239 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63240 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63242 2000-01-03 Paul Eggert <eggert@twinsun.com>
63244 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63245 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63247 2000-01-02 Jim Meyering <meyering@ascend.com>
63249 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63250 remember if this is necessary.
63252 1999-12-26 Jim Meyering <meyering@ascend.com>
63254 * m4/jm-macros.m4: Use it here.
63255 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63257 1999-12-23 Jim Meyering <meyering@ascend.com>
63259 * m4/jm-macros.m4: Check for clock_gettime (moved from
63260 fileutils/configure.in)
63261 Check for gettimeofday.
63263 1999-12-20 Jim Meyering <meyering@ascend.com>
63265 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63266 autoconf-2.14a-1999-12-20.
63268 1999-12-19 Jim Meyering <meyering@ascend.com>
63270 * m4/lstat-slash.m4: New file.
63271 * m4/jm-macros.m4: Use the new macro:
63272 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63274 1999-12-07 Jim Meyering <meyering@ascend.com>
63276 * m4/perl.m4: Require that File::Compare be available, too.
63277 Too many systems seem to lack it.
63279 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63280 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63282 1999-11-18 Paul Eggert <eggert@twinsun.com>
63284 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63285 problem with the QNX 4.25 shell, which doesn't propagate exit
63286 status of failed commands inside shell assignments.
63288 1999-11-17 Jim Meyering <meyering@ascend.com>
63290 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63292 1999-11-07 Jim Meyering <meyering@ascend.com>
63294 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63296 1999-11-06 Jim Meyering <meyering@ascend.com>
63298 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63299 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63301 1999-11-05 Jim Meyering <meyering@ascend.com>
63303 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63304 configure.in of textutils, fileutils, and sh-utils into this one
63305 (shared between those packages) file.
63306 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63307 AC_STRUCT_ST_BLKSIZE.
63309 1999-11-03 Jim Meyering <meyering@ascend.com>
63311 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63312 of AC_CHECK_TYPE checks includes unistd.h.
63313 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63314 Suggestion from Akim Demaille.
63316 1999-10-30 Jim Meyering <meyering@ascend.com>
63318 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63320 * m4/ls-mntd-fs.m4: Likewise.
63321 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63322 * m4/jm-winsz1.m4: Likewise.
63324 * m4/const.m4: Remove file, since the fix made it into the experimental
63325 version of autoconf.
63326 * m4/mktime.m4: Likewise.
63328 * m4/check-type.m4: Remove file, now that the latest version of
63329 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63331 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63332 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63335 1999-10-04 Jim Meyering <meyering@ascend.com>
63337 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63339 1999-09-22 Paul Eggert <eggert@twinsun.com>
63341 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63342 2.95.1 bug with HP-UX 10.20.
63344 1999-09-17 Jim Meyering <meyering@ascend.com>
63346 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63347 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63348 due to missing strdup (against sh-utils-2.0).
63350 1999-08-29 Jim Meyering <meyering@ascend.com>
63352 * m4/jm-macros.m4: Require jm_BISON.
63353 * m4/bison.m4: New file.
63355 1999-08-17 Paul Eggert <eggert@twinsun.com>
63357 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63358 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63360 1999-08-05 Jim Meyering <meyering@ascend.com>
63362 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63363 to avoid conflicts with `conftest' on 8+3 filesystems.
63364 Suggestion from Eli Zaretskii.
63366 1999-08-04 Jim Meyering <meyering@ascend.com>
63368 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63369 fileutils and sh-utils (textutils's getline test was inadequate).
63370 (AM_FUNC_GETLINE): Run this test.
63371 (AC_CHECK_FUNCS): Check for getdelim.
63372 Reported by Bob Proulx.
63374 1999-08-02 Jim Meyering <meyering@ascend.com>
63376 * m4/jm-macros.m4: Add a comment.
63378 1999-08-01 Paul Eggert <eggert@twinsun.com>
63380 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63381 <inttypes.h> defines strtoumax as a macro (and not as a
63384 1999-08-01 Paul Eggert <eggert@twinsun.com>
63386 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63387 that we can shift, multiply and divide unsigned long long
63388 values; Ultrix cc can't do it.
63390 1999-08-01 Paul Eggert <eggert@twinsun.com>
63392 * m4/mktime.m4: New file, which is a preview of what should appear
63393 in the next public autoconf release.
63395 1999-08-01 Paul Eggert <eggert@twinsun.com>
63397 * m4/lfs.m4: Remove this file.
63398 * m4/largefile.m4: New file. It contains the old contents of
63399 lfs.m4, except that all names with prefix AC_LFS have been
63400 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63401 compatible with future autoconf versions. Also, some minor m4
63402 quoting problems have been fixed.
63404 1999-08-01 Paul Eggert <eggert@twinsun.com>
63406 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63407 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63408 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63409 and simplify the shell code.
63411 1999-08-01 Jim Meyering <meyering@ascend.com>
63413 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63416 1999-07-20 Jim Meyering <meyering@ascend.com>
63418 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63420 1999-07-15 Jim Meyering <meyering@ascend.com>
63422 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63424 1999-05-22 Jim Meyering <meyering@ascend.com>
63426 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63428 1999-05-20 Jim Meyering <meyering@ascend.com>
63430 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63431 Add a colon after each `then' in case $4 is empty.
63433 1999-05-16 Jim Meyering <meyering@ascend.com>
63435 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63437 1999-05-10 Jim Meyering <meyering@ascend.com>
63439 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63441 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63444 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63446 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63448 1999-05-04 Paul Eggert <eggert@twinsun.com>
63450 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63451 not CPPFLAGS, so that linking works correctly in IRIX.
63453 1999-04-30 Paul Eggert <eggert@twinsun.com>
63455 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63457 1999-04-20 Paul Eggert <eggert@twinsun.com>
63459 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63460 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63461 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63462 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63463 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63465 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63467 1999-04-20 Jim Meyering <meyering@ascend.com>
63469 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63470 AC_REPLACE xstroull if necessary. From Paul Eggert.
63471 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63473 1999-04-18 Jim Meyering <meyering@ascend.com>
63475 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63476 * m4/jm-macros.m4: Use it.
63478 1999-04-06 Jim Meyering <meyering@ascend.com>
63480 * m4/strftime.m4: Remove test for %f.
63482 1999-03-29 Jim Meyering <meyering@ascend.com>
63484 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63485 superset of the AC_TYPE_* checks in the textutils, fileutils,
63486 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63489 1999-03-28 Jim Meyering <meyering@ascend.com>
63491 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63492 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63493 replaced e.g., in the *.sh files of the sh-utils.
63495 1999-03-20 Jim Meyering <meyering@ascend.com>
63497 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63498 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63499 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63501 1999-03-19 Jim Meyering <meyering@ascend.com>
63503 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63505 1999-03-12 Jim Meyering <meyering@ascend.com>
63507 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63509 1999-03-07 Jim Meyering <meyering@ascend.com>
63511 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63514 1999-02-17 Jim Meyering <meyering@ascend.com>
63516 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63517 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63519 1999-02-07 Jim Meyering <meyering@ascend.com>
63521 * m4/group-member.m4: New file -- extracted from sh-utils'
63524 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63525 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63527 1999-02-06 Jim Meyering <meyering@ascend.com>
63529 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63530 * m4/fnmatch.m4: Likewise.
63531 * m4/getgroups.m4: Likewise.
63532 * m4/lstat.m4: Likewise.
63533 * m4/malloc.m4: Likewise.
63534 * m4/putenv.m4: Likewise.
63535 * m4/realloc.m4: Likewise.
63536 * m4/regex.m4: Likewise.
63537 * m4/stat.m4: Likewise.
63538 * m4/strftime.m4: Likewise.
63539 Suggestion from Alain Magloire.
63541 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63542 * m4/fnmatch.m4: Likewise.
63543 * m4/getgroups.m4: Likewise.
63544 * m4/getline.m4: Likewise.
63545 * m4/lstat.m4: Likewise.
63546 * m4/malloc.m4: Likewise.
63547 * m4/memcmp.m4: Likewise.
63548 * m4/putenv.m4: Likewise.
63549 * m4/realloc.m4: Likewise.
63550 * m4/regex.m4: Likewise.
63551 * m4/stat.m4: Likewise.
63552 * m4/strftime.m4: Likewise.
63553 Suggestion from Alain Magloire.
63555 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63558 * m4/regex.m4: Add a run-time Test for proper operation of
63559 re_compile_pattern.
63561 1999-01-31 Jim Meyering <meyering@ascend.com>
63563 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63565 1999-01-30 Jim Meyering <meyering@ascend.com>
63567 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63569 * m4/jm-mktime.m4: Make this a wrapper around the official
63570 AM_FUNC_MKTIME rather than my private copy, now that the official one
63572 * m4/mktime.m4: Remove file.
63574 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63575 * m4/uptime.m4: Likewise.
63576 * m4/uintmax_t.m4: Likewise.
63578 1999-01-28 Jim Meyering <meyering@ascend.com>
63580 * m4/jm-macros.m4: Use jm_AFS.
63581 * m4/afs.m4: New file (from fileutils' configure.in).
63583 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63584 * m4/chown.m4: Likewise.
63585 * m4/d-ino.m4: Likewise.
63586 * m4/d-type.m4: Likewise.
63587 * m4/fnmatch.m4: Likewise.
63588 * m4/getgroups.m4: Likewise.
63589 * m4/gettext.m4: Likewise.
63590 * m4/jm-mktime.m4: Likewise.
63591 * m4/jm-winsz2.m4: Likewise.
63592 * m4/lcmessage.m4: Likewise.
63593 * m4/ls-mntd-fs.m4: Likewise.
63594 * m4/malloc.m4: Likewise.
63595 * m4/memcmp.m4: Likewise.
63596 * m4/putenv.m4: Likewise.
63597 * m4/realloc.m4: Likewise.
63598 * m4/st_mtim.m4: Likewise.
63599 * m4/strftime.m4: Likewise.
63601 1999-01-16 Jim Meyering <meyering@ascend.com>
63603 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63604 (ARGMATCH_DIE_DECL): Define.
63606 1999-01-12 Jim Meyering <meyering@ascend.com>
63608 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63609 Reported by Lars Hecking.
63611 1999-01-10 Jim Meyering <meyering@ascend.com>
63613 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63615 * m4/inttypes_h.m4: Likewise.
63616 * m4/lstat.m4: Likewise.
63617 * m4/malloc.m4: Likewise.
63618 * m4/readdir.m4: Likewise.
63619 * m4/realloc.m4: Likewise.
63620 * m4/st_dm_mode.m4: Likewise.
63621 * m4/stat.m4: Likewise.
63622 * m4/utimbuf.m4: Likewise.
63623 * m4/utimes.m4: Likewise.
63625 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63626 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63627 comments in config.h.in are meaningful.
63629 * m4/jm-macros.m4: Require autoconf-2.13 here.
63631 * m4/regex.m4: By default, don't use the included regex.c on systems
63632 with glibc 2. Suggestion from Uli Drepper.
63634 1999-01-02 Jim Meyering <meyering@ascend.com>
63636 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63638 1998-12-18 Jim Meyering <meyering@ascend.com>
63640 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63641 Based on a suggestion from Lars Hecking.
63643 1998-11-16 Paul Eggert <eggert@twinsun.com>
63645 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63647 1998-11-16 Jim Meyering <meyering@ascend.com>
63649 * m4/lfs.m4: Double-quote the `uname...` expression.
63651 1998-11-14 Jim Meyering <meyering@ascend.com>
63653 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63654 * m4/stat.m4: Likewise.
63656 1998-11-03 Jim Meyering <meyering@ascend.com>
63658 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63659 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63661 1998-10-18 Jim Meyering <meyering@ascend.com>
63663 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63665 1998-10-17 Jim Meyering <meyering@ascend.com>
63667 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63668 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63669 calls for those previously hard-coded headers. Instead, take a new
63671 (jm_CHECK_DECLARATIONS): Reflect interface change.
63672 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63673 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63675 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63677 1998-10-14 Jim Meyering <meyering@ascend.com>
63679 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63680 instead of "TZ=America/Vancouver". From Paul Eggert.
63682 1998-10-11 Jim Meyering <meyering@ascend.com>
63684 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63685 This adds a test for a recently added compatibility fix for mktime.c.
63686 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63688 1998-09-27 Jim Meyering <meyering@ascend.com>
63690 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63692 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63693 ../configure.in, including a change from Gordon Matzigkeit to allow
63694 cross-compiling for the Hurd.
63696 * m4/glibc.m4: New file/macro to test for the GNU C Library
63697 versions 1 and 2. From Gordon Matzigkeit.
63700 1998-09-21 Jim Meyering <meyering@ascend.com>
63702 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63704 1998-08-18 Paul Eggert <eggert@twinsun.com>
63706 Port nanosecond-resolution times to UnixWare 2.1.2 and
63707 pedantic Solaris 2.6.
63709 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63711 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63712 Generate name of ns member, instead of just 1 or undef.
63713 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63715 1998-08-15 Jim Meyering <meyering@ascend.com>
63717 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63718 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63719 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63720 instead of jm_TYPE_SSIZE_T.
63722 1998-08-12 Jim Meyering <meyering@ascend.com>
63724 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63726 1998-08-02 Jim Meyering <meyering@ascend.com>
63728 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63729 in acconfig.h manually.
63731 1998-07-31 Paul Eggert <eggert@twinsun.com>
63733 * m4/st_mtim.m4: New file.
63735 1998-07-28 Jim Meyering <meyering@ascend.com>
63737 * m4/utimes.m4: Undef stat.
63739 1998-07-25 Jim Meyering <meyering@ascend.com>
63741 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63742 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63744 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63746 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63747 uid and gid actually remain unchanged.
63749 1998-07-07 Jim Meyering <meyering@ascend.com>
63751 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63753 1998-07-04 Jim Meyering <meyering@ascend.com>
63755 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63756 to prove that this macro can be used in packages without regex.c.
63758 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63760 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63763 1998-07-03 Jim Meyering <meyering@ascend.com>
63765 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63767 * m4/gettext.m4: New file -- from gettext-0.10.35.
63768 * m4/lcmessage.m4: Likewise.
63769 * m4/progtest.m4: Likewise.
63771 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63772 * m4/jm-macros.m4: Require the new macro.
63774 1998-06-29 Jim Meyering <meyering@ascend.com>
63776 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63777 for the definition of NGROUPS (used in a system header included
63780 1998-06-28 Jim Meyering <meyering@ascend.com>
63782 * m4/ls-mntd-fs.m4: New file.
63783 * m4/fstypename.m4: New file.
63785 * m4/jm-macros.m4: Require the new macro.
63786 * m4/jm-glibc-io.m4: New file.
63788 1998-05-19 Jim Meyering <meyering@ascend.com>
63790 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63791 * m4/lchown.m4: New file.
63793 * m4/Makefile.am.in: New file.
63794 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63796 1998-05-14 Jim Meyering <meyering@ascend.com>
63798 * m4/Makefile.am (EXTRA_DIST): Add them.
63799 * m4/jm-macros.m4: New file.
63800 * m4/utimbuf.m4: New file.
63802 1998-05-12 Jim Meyering <meyering@ascend.com>
63804 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63806 1998-05-11 Jim Meyering <meyering@ascend.com>
63808 * m4/isc-posix.m4: New file.
63810 1998-05-10 Jim Meyering <meyering@ascend.com>
63812 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63814 1998-05-09 Jim Meyering <meyering@ascend.com>
63816 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63817 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63820 * m4/ssize_t.m4: New file.
63821 * m4/mktime.m4: Remove file -- the new automake has this now.
63823 1998-04-26 Jim Meyering <meyering@ascend.com>
63825 * m4/assert.m4: New file.
63826 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63828 1998-04-05 Jim Meyering <meyering@ascend.com>
63830 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63831 (jm_PREREQ): Use it here.
63833 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63835 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63838 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63840 * m4/prereq.m4: New file.
63841 * m4/error.m4: New file.
63842 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63844 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63846 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63847 cache-check for the same variable -- that defeated the purpose of
63848 the test; the test program was never run. This was a problem only
63849 on systems with losing getline functions -- HP-UX 10.20 is one.
63850 Reported by Bjorn Helgaas.
63852 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63854 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63856 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63858 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63860 * m4/const.m4: New file. Use an initializer in this declaration
63861 typedef int charset[2]; const charset x;
63862 Reported by Bob Glickstein.
63864 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63866 * m4/chown.m4: Fix reversed types on -1 args to chown.
63869 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63871 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63872 Add lseek and memchr.
63874 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63875 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63876 have a 20-character limit on names.
63878 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63880 * m4/inttypes_h.m4: New file.
63881 * m4/uintmax_t.m4: New file.
63882 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63891 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63893 Copying and distribution of this file, with or without
63894 modification, are permitted provided the copyright notice
63895 and this notice are preserved.