1 2010-03-07 Bruno Haible <bruno@clisp.org>
3 Tests of module 'wctype' in C++ mode.
4 * tests/test-wctype-c++.cc: New file.
5 * modules/wctype-tests (Files): Add it and tests/signature.h.
6 (Depends-on): Add ansi-c++-opt.
7 (Makefile.am): Arrange to compile and run test-wctype-c++.
9 Tests of module 'wchar' in C++ mode.
10 * tests/test-wchar-c++.cc: New file.
11 * modules/wchar-tests (Files): Add it and tests/signature.h.
12 (Depends-on): Add ansi-c++-opt.
13 (Makefile.am): Arrange to compile and run test-wchar-c++.
14 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17 Tests of module 'unistd' in C++ mode.
18 * tests/test-unistd-c++.cc: New file.
19 * modules/unistd-tests (Files): Add it and tests/signature.h.
20 (Depends-on): Add ansi-c++-opt.
21 (Makefile.am): Arrange to compile and run test-unistd-c++.
22 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25 Tests of module 'time' in C++ mode.
26 * tests/test-time-c++.cc: New file.
27 * modules/time-tests (Files): Add it and tests/signature.h.
28 (Depends-on): Add ansi-c++-opt.
29 (Makefile.am): Arrange to compile and run test-time-c++.
30 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32 Tests of module 'sys_time' in C++ mode.
33 * tests/test-sys_time-c++.cc: New file.
34 * modules/sys_time-tests (Files): Add it and tests/signature.h.
35 (Depends-on): Add ansi-c++-opt.
36 (Makefile.am): Arrange to compile and run test-sys_time-c++.
37 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
40 Tests of module 'sys_stat' in C++ mode.
41 * tests/test-sys_stat-c++.cc: New file.
42 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
43 (Depends-on): Add ansi-c++-opt.
44 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
45 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
48 Tests of module 'sys_socket' in C++ mode.
49 * tests/test-sys_socket-c++.cc: New file.
50 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
51 (Depends-on): Add ansi-c++-opt.
52 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
53 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
56 Tests of module 'sys_select' in C++ mode.
57 * tests/test-sys_select-c++.cc: New file.
58 * modules/sys_select-tests (Files): Add it and tests/signature.h.
59 (Depends-on): Add ansi-c++-opt.
60 (Makefile.am): Arrange to compile and run test-sys_select-c++.
61 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
64 Tests of module 'sys_ioctl' in C++ mode.
65 * tests/test-sys_ioctl-c++.cc: New file.
66 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67 (Depends-on): Add ansi-c++-opt.
68 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
69 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
72 Tests of module 'string' in C++ mode.
73 * tests/test-string-c++.cc: New file.
74 * modules/string-tests (Files): Add it and tests/signature.h.
75 (Depends-on): Add ansi-c++-opt.
76 (Makefile.am): Arrange to compile and run test-string-c++.
77 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
80 Tests of module 'stdlib' in C++ mode.
81 * tests/test-stdlib-c++.cc: New file.
82 * modules/stdlib-tests (Files): Add it and tests/signature.h.
83 (Depends-on): Add ansi-c++-opt.
84 (Makefile.am): Arrange to compile and run test-stdlib-c++.
85 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
88 Tests of module 'stdio' in C++ mode.
89 * tests/test-stdio-c++.cc: New file.
90 * modules/stdio-tests (Files): Add it and tests/signature.h.
91 (Depends-on): Add ansi-c++-opt.
92 (Makefile.am): Arrange to compile and run test-stdio-c++.
93 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
96 Tests of module 'spawn' in C++ mode.
97 * tests/test-spawn-c++.cc: New file.
98 * modules/spawn-tests (Files): Add it and tests/signature.h.
99 (Depends-on): Add ansi-c++-opt.
100 (Makefile.am): Arrange to compile and run test-spawn-c++.
101 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
104 Tests of module 'signal' in C++ mode.
105 * tests/test-signal-c++.cc: New file.
106 * modules/signal-tests (Files): Add it and tests/signature.h.
107 (Depends-on): Add ansi-c++-opt.
108 (Makefile.am): Arrange to compile and run test-signal-c++.
109 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
112 Tests of module 'search' in C++ mode.
113 * tests/test-search-c++.cc: New file.
114 * modules/search-tests (Files): Add it and tests/signature.h.
115 (Depends-on): Add ansi-c++-opt.
116 (Makefile.am): Arrange to compile and run test-search-c++.
117 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
120 Tests of module 'math' in C++ mode.
121 * tests/test-math-c++.cc: New file.
122 * modules/math-tests (Files): Add it and tests/signature.h.
123 (Depends-on): Add ansi-c++-opt.
124 (Makefile.am): Arrange to compile and run test-math-c++.
125 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
127 Tests of module 'locale' in C++ mode.
128 * tests/test-locale-c++.cc: New file.
129 * modules/locale-tests (Files): Add it and tests/signature.h.
130 (Depends-on): Add ansi-c++-opt.
131 (Makefile.am): Arrange to compile and run test-locale-c++.
132 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
135 Tests of module 'langinfo' in C++ mode.
136 * tests/test-langinfo-c++.cc: New file.
137 * modules/langinfo-tests (Files): Add it and tests/signature.h.
138 (Depends-on): Add ansi-c++-opt.
139 (Makefile.am): Arrange to compile and run test-langinfo-c++.
140 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
143 Tests of module 'iconv-h' in C++ mode.
144 * tests/test-iconv-h-c++.cc: New file.
145 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
146 (Depends-on): Add ansi-c++-opt.
147 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
149 Tests of module 'glob' in C++ mode.
150 * tests/test-glob-c++.cc: New file.
151 * modules/glob-tests (Files): Add it.
152 (Depends-on): Add ansi-c++-opt.
153 (Makefile.am): Arrange to compile and run test-glob-c++.
155 Tests of module 'fcntl-h' in C++ mode.
156 * tests/test-fcntl-h-c++.cc: New file.
157 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
158 (Depends-on): Add ansi-c++-opt.
159 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
160 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
163 Tests of module 'dirent' in C++ mode.
164 * tests/test-dirent-c++.cc: New file.
165 * modules/dirent-tests (Files): Add it and tests/signature.h.
166 (Depends-on): Add ansi-c++-opt.
167 (Makefile.am): Arrange to compile and run test-dirent-c++.
168 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
171 New module 'ansi-c++-opt'.
172 * modules/ansi-c++-opt: New file.
173 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
175 Document C++ namespace mode.
176 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
178 wctype: Avoid #define replacements in C++ mode.
179 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
180 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
181 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
182 In C++, define a namespaced alias symbol.
183 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
184 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
185 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
188 wchar: Avoid #define replacements in C++ mode.
189 * lib/wchar.in.h: Include c++defs.h.
190 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
191 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
193 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
194 * modules/wchar (Depends-on): Add c++defs.
195 (Makefile.am): Update wchar.h rule.
197 unistd: Avoid #define replacements in C++ mode.
198 * lib/unistd.in.h: Include c++defs.h.
199 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
200 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
201 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
202 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
203 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
204 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
207 * modules/unistd (Depends-on): Add c++defs.
208 (Makefile.am): Update unistd.h rule.
210 time: Avoid #define replacements in C++ mode.
211 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
212 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
213 define a namespaced alias symbol.
214 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
215 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
216 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
217 * modules/time (Depends-on): Add c++defs, warn-on-use.
218 (Makefile.am): Update time.h rule.
219 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
220 * modules/nanosleep (configure.ac): Likewise.
221 * modules/strptime (configure.ac): Likewise.
222 * modules/timegm (configure.ac): Likewise.
224 sys_time: Avoid #define replacements in C++ mode.
225 * lib/sys_time.in.h: Include c++defs.h.
226 (gettimeofday): In C++, define a namespaced alias symbol.
227 * modules/sys_time (Depends-on): Add c++defs.
228 (Makefile.am): Update sys/time.h rule.
230 sys_stat: Avoid #define replacements in C++ mode.
231 * lib/sys_stat.in.h: Include c++defs.h.
232 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
233 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
234 namespaced alias symbol.
235 In C++, define a namespaced alias symbol.
236 * modules/sys_stat (Depends-on): Add c++defs.
237 (Makefile.am): Update sys/stat.h rule.
239 sys_socket: Avoid #define replacements in C++ mode.
240 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
241 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
242 definitions also when the system has a <sys/socket.h>.
243 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
244 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
245 In C++, define a namespaced alias symbol.
246 * modules/sys_socket (Depends-on): Add c++defs.
247 (Makefile.am): Update sys/socket.h rule.
249 sys_select: Avoid #define replacements in C++ mode.
250 * lib/sys_select.in.h: Include c++defs.h. Enable the function
251 definitions also when the system has a <sys/select.h>.
252 (select): In C++, define a namespaced alias symbol.
253 * modules/sys_select (Depends-on): Add c++defs.
254 (Makefile.am): Update sys/select.h rule.
256 sys_ioctl: Avoid #define replacements in C++ mode.
257 * lib/sys_ioctl.in.h: Include c++defs.h.
258 (ioctl): In C++, define a namespaced alias symbol.
259 * modules/sys_ioctl (Depends-on): Add c++defs.
260 (Makefile.am): Update sys/ioctl.h rule.
262 string: Avoid #define replacements in C++ mode.
263 * lib/string.in.h: Include c++defs.h.
264 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
265 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
266 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
267 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
268 strsignal, strverscmp): In C++, define a namespaced alias symbol.
269 * modules/string (Depends-on): Add c++defs.
270 (Makefile.am): Update string.h rule.
272 stdlib: Avoid #define replacements in C++ mode.
273 * lib/stdlib.in.h: Include c++defs.h.
274 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
275 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
276 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
277 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
279 * modules/stdlib (Depends-on): Add c++defs.
280 (Makefile.am): Update stdlib.h rule.
282 stdio: Avoid #define replacements in C++ mode.
283 * lib/stdio.in.h: Include c++defs.h.
284 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
285 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
286 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
287 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
288 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
289 namespaced alias symbol.
290 * modules/stdio (Depends-on): Add c++defs.
291 (Makefile.am): Update stdio.h rule.
293 spawn: Avoid #define replacements in C++ mode.
294 * lib/spawn.in.h: Include c++defs.h.
295 (posix_spawn, posix_spawnp, posix_spawnattr_init,
296 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
297 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
298 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
299 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
300 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
301 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
302 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
303 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
304 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
305 In C++, define a namespaced alias symbol.
306 * modules/spawn (Depends-on): Add c++defs.
307 (Makefile.am): Update spawn.h rule.
309 signal: Avoid #define replacements in C++ mode.
310 * lib/signal.in.h: Include c++defs.h.
311 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
312 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
313 namespaced alias symbol.
314 * modules/signal (Depends-on): Add c++defs.
315 (Makefile.am): Update signal.h rule.
317 search: Avoid #define replacements in C++ mode.
318 * lib/search.in.h: Include c++defs.h.
319 (_gl_search_compar_fn, _gl_search_action_fn): New types.
320 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
322 * modules/search (Depends-on): Add c++defs.
323 (Makefile.am): Update search.h rule.
325 math: Avoid #define replacements in C++ mode.
326 * lib/math.in.h: Include c++defs.h.
327 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
328 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
329 trunc, truncl): In C++, define a namespaced alias symbol.
330 * modules/math (Depends-on): Add c++defs.
331 (Makefile.am): Update math.h rule.
333 locale: Avoid #define replacements in C++ mode.
334 * lib/locale.in.h: Include c++defs.h.
335 (duplocale): In C++, define a namespaced alias symbol.
336 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
337 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
338 * modules/locale (Depends-on): Add c++defs.
339 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
341 langinfo: Avoid #define replacements in C++ mode.
342 * lib/langinfo.in.h: Include c++defs.h.
343 (nl_langinfo): In C++, define a namespaced alias symbol.
344 * modules/langinfo (Depends-on): Add c++defs.
345 (Makefile.am): Update langinfo.h rule.
347 iconv-h: Avoid #define replacements in C++ mode.
348 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
349 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
351 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
352 whenever iconv is present.
353 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
354 (Makefile.am): Update iconv.h rule.
356 glob: Avoid #define replacements in C++ mode.
357 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
358 (_gl_glob_errfunc_fn): New type.
359 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
361 * modules/glob (Depends-on): Add c++defs, warn-on-use.
362 (Makefile.am): Update glob.h rule.
364 fcntl-h: Avoid #define replacements in C++ mode.
365 * lib/fcntl.in.h: Include c++defs.h.
366 (fcntl, open, openat): In C++, define a namespaced alias symbol.
367 * modules/fcntl-h (Depends-on): Add c++defs.
368 (Makefile.am): Update fcntl.h rule.
370 dirent: Avoid #define replacements in C++ mode.
371 * lib/dirent.in.h: Include c++defs.h.
372 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
373 namespaced alias symbol.
374 (dirfd): Update declaration.
375 * modules/dirent (Depends-on): Add c++defs.
376 (Makefile.am): Update dirent.h rule.
378 ctype: Make it usable in C++ code.
379 * lib/ctype.in.h: Include c++defs.h.
380 (isblank): Declare as extern "C".
381 * modules/ctype (Depends-on): Add c++defs.
382 (Makefile.am): Update ctype.h rule.
384 New module 'c++defs'.
385 * modules/c++defs: New file.
386 * build-aux/c++defs.h: New file.
387 Reported by John W. Eaton <jwe@gnu.org>.
389 2010-03-07 Bruno Haible <bruno@clisp.org>
391 logb: Provide missing declaration for Cygwin.
392 * lib/math.in.h (logb): New declaration.
393 * m4/logb.m4: New file.
394 * modules/logb (Files): Add m4/logb.m4.
395 (Depends-on): Add math.
396 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
397 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
398 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
399 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
400 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
402 2010-03-07 Bruno Haible <bruno@clisp.org>
404 Fix test-cond link error.
405 * tests/test-cond.c: Include <stdio.h>.
407 2010-03-07 Bruno Haible <bruno@clisp.org>
409 Fix test-dirent-safer link error.
410 * modules/dirent-safer-tests (Makefile.am): Define
411 test_dirent_safer_LDADD.
413 2010-03-07 Bruno Haible <bruno@clisp.org>
415 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
416 among default module list.
418 2010-03-07 Bruno Haible <bruno@clisp.org>
420 Fix link error on platforms with GNU libiconv.
421 * modules/unistr/u8-strcoll-tests (Makefile): Define
422 test_u8_strcoll_LDADD.
423 * modules/unistr/u16-strcoll-tests (Makefile): Define
424 test_u16_strcoll_LDADD.
425 * modules/unistr/u32-strcoll-tests (Makefile): Define
426 test_u32_strcoll_LDADD.
428 2010-03-07 Bruno Haible <bruno@clisp.org>
430 Use POSIX declarations for socket functions.
431 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
432 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
433 rpl_sendto): Change declaration to match POSIX.
434 * lib/connect.c (rpl_connect): Likewise.
435 * lib/accept.c (rpl_accept): Likewise.
436 * lib/bind.c (rpl_bind): Likewise.
437 * lib/getpeername.c (rpl_getpeername): Likewise.
438 * lib/getsockname.c (rpl_getsockname): Likewise.
439 * lib/recv.c (rpl_recv): Likewise.
440 * lib/send.c (rpl_send): Likewise.
441 * lib/recvfrom.c (rpl_recvfrom): Likewise.
442 * lib/sendto.c (rpl_sendto): Likewise.
444 2010-03-06 Bruno Haible <bruno@clisp.org>
446 Clarify access, euidaccess, faccessat.
447 * doc/posix-functions/faccessat.texi: Mention security problem under
448 "Other problems", not "Portability problems".
449 * doc/posix-functions/access.texi: Likewise. Mention a related security
451 * doc/glibc-functions/euidaccess.texi: Mention security problems.
452 * lib/euidaccess.c: Add comments about platforms.
453 * lib/unistd.in.h (access, euidaccess): Add warnings.
455 2010-03-07 Bruno Haible <bruno@clisp.org>
457 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
458 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
459 (POSIX_SPAWN_SETSCHEDULER): Likewise.
460 (POSIX_SPAWN_USEVFORK): Define in a way that works when
461 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
462 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
463 declare when POSIX_SPAWN_SETSCHEDULER is zero.
464 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
465 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
466 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
467 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
468 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
469 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
470 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
471 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
472 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
473 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
474 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
475 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
476 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
478 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
479 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
480 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
482 * tests/test-spawn.c (main): Make it work when
483 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
485 2010-03-07 Bruno Haible <bruno@clisp.org>
487 Fix incorrect Makefile.am generation in German locale.
488 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
489 Execute sed command with character range in C locale.
491 2010-03-06 Bruno Haible <bruno@clisp.org>
493 Tests for module 'iconv-h'.
494 * modules/iconv-h-tests: New file.
495 * tests/test-iconv-h.c: New file.
497 New module 'iconv-h'.
498 * modules/iconv-h: New file.
499 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
500 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
501 (configure.ac): Remove gl_ICONV_H.
502 (Makefile.am): Remove rule for iconv.h.
504 2010-03-06 Bruno Haible <bruno@clisp.org>
506 More consistent naming of *.m4 files.
507 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
508 * modules/wctype (Files): Update.
510 More consistent naming of *.m4 files.
511 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
512 * modules/wchar (Files): Update.
514 2010-03-06 Jim Meyering <meyering@redhat.com>
516 euidaccess: relax license to LGPLv2+
517 * modules/euidaccess (License): Relax to LGPLv2+.
519 2010-03-06 Bruno Haible <bruno@clisp.org>
521 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
522 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
523 (Makefile.am): Augment lib_SOURCES instead.
525 2010-03-04 Jim Meyering <meyering@redhat.com>
527 utime: remove obsolete module
528 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
529 unnecessary for years, and has been marked as obsolete for 10 months.
530 * modules/utime: Remove file.
531 * lib/utime.c: Remove file.
532 * m4/utime.m4: Remove file.
533 * m4/utimes-null.m4: Remove file.
534 * doc/posix-functions/utime.texi (utime): Remove reference to
535 the module. Move the sole "fixed by gnulib" item into the
536 "problems not fixed by Gnulib" list.
537 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
539 2010-03-05 Simon Josefsson <simon@josefsson.org>
541 * modules/exit (License): Relax license to LGPLv2+.
542 (Status): Mark as obsolete.
543 * NEWS: Mention deprecated 'exit' module.
544 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
545 of now obsolete 'exit'.
547 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
549 fts-lgpl: remove unused module
550 * modules/fts-lgpl: Remove.
551 * MODULES.html.sh (func_all_modules): Adjust.
552 * check-module (find_included_lib_files): Adjust.
553 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
555 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
557 copy-acl: enhance Solaris ACL error handling
558 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
559 * lib/set-mode-acl.c (qset_acl): Likewise.
561 2010-03-02 Bruno Haible <bruno@clisp.org>
563 spawn: Don't override the system defined values on FreeBSD 8.
564 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
565 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
566 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
567 if HAVE_POSIX_SPAWN is 1.
568 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
570 2010-03-01 Bruno Haible <bruno@clisp.org>
572 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
575 2010-02-25 Bruno Haible <bruno@clisp.org>
577 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
578 * gnulib-tool: Define 'echo' as a function only before the ksh alias
579 setting, not afterwards.
580 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
582 2010-02-24 Eric Blake <eblake@redhat.com>
584 bootstrap, git-version-gen: use timestamp
585 * build-aux/git-version-gen (scriptversion): Force UTC.
586 * build-aux/bootstrap (scriptversion): New variable.
588 bootstrap: allow older git
589 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
590 older than 1.6.4. Requested by the libvirt project.
592 2010-02-23 Eric Blake <eblake@redhat.com>
594 warn-on-use: work with old autoconf
595 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
596 AS_VAR semantics of autoconf 2.60.
597 Reported by Bruno Haible.
599 bootstrap: improve some comments
600 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
601 clarification comments.
603 gettimeofday: provide correct function
604 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
605 when replacement is declared, otherwise provide gettimeofday.
606 Reported by Michael Goffioul.
608 2010-02-23 Jim Meyering <meyering@redhat.com>
610 lib-ignore: relax license to "unlimited", not LGPLv2+
611 * modules/lib-ignore (License): Relax to "unlimited".
613 2010-02-23 Jim Meyering <meyering@redhat.com>
615 lib-ignore: relax license to LGPLv2+
616 * modules/lib-ignore (License): Relax to LGPLv2+.
618 2010-02-22 Eric Blake <eblake@redhat.com>
620 lseek: avoid bash 3.2 broken pipe bug
621 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
622 warning from bash 3.2.
623 Reported by Ben Pfaff, with analysis from Bruno Haible.
625 bootstrap: support non-FSF copyright holder
626 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
627 bootstrap.conf override of COPYRIGHT_HOLDER.
628 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
630 bootstrap: interoperate with gettext 0.14.1
631 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
633 bootstrap: allow for alternate submodule location
634 * build-aux/bootstrap (gnulib_path): New variable; use instead of
635 hardcoding submodule location.
636 (gnulib_mk): Allow direct use of Makefile.am.
638 bootstrap: use GNULIB_SRCDIR to reduce disk usage
639 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
640 rather than reconfiguring where the submodule points.
642 gettimeofday: restore support for platforms that lack function
643 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
644 replacement if function is missing.
645 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
646 * modules/sys_time (Makefile.am): Substitute it.
647 * lib/sys_time.in.h (gettimeofday): Check it.
648 Reported by Michael Goffioul.
650 2010-02-21 Bruno Haible <bruno@clisp.org>
652 * lib/stdio.in.h (obstack_printf): Fix typo.
654 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
656 vc-list-files: use bzr ls's -R option
657 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
658 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
660 2010-02-21 Jim Meyering <meyering@redhat.com>
662 init.sh: fix EXEEXT shims to work also for names like test-prog
663 * tests/init.sh: Re-exec a better shell, when needed.
664 If the current shell lacks support for posix $(...), an init.sh-using
665 test will now try to find a shell that supports that. If EXEEXT is
666 nonempty, we also require support for hyphen-in-alias-name and shell
667 substitutions like ${var#glob}. Failure to find such a shell results
670 2010-02-21 Bruno Haible <bruno@clisp.org>
672 Really work around around "broken pipe" error message from bash 3.2.
673 * gnulib-tool (func_reset_sigpipe): Remove function.
674 (echo): In bash 3.2, define to a function that uses printf.
675 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
677 2010-02-20 Bruno Haible <bruno@clisp.org>
679 Restore support for automake 1.9.6 with autoconf 2.61.
680 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
681 Reported by James Youngman <jay@gnu.org>.
683 2010-02-20 Bruno Haible <bruno@clisp.org>
685 Improve *printf warning condition.
686 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
687 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
688 and the function is overridden due to SIGPIPE emulation.
690 2010-02-20 Bruno Haible <bruno@clisp.org>
692 * lib/stdio.in.h: Tweak comments.
694 2010-02-19 Bruno Haible <bruno@clisp.org>
696 Make it easier to find modules. New gnulib-tool option '--find'.
697 * gnulib-tool: New option --find.
698 (func_usage): Document it.
699 (func_sanitize_modulelist): New function, extracted from
701 (func_all_modules): Invoke it.
702 * doc/gnulib-tool.texi (Which modules?): New node.
704 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
706 * lib/sys_select.in.h: Provide select replacement even if
707 sys/select.h exists on a system, for Interix.
709 2010-02-18 Jim Meyering <meyering@redhat.com>
711 init.sh: don't use $(...) just yet
712 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
713 to accommodate e.g., Solaris' /bin/sh.
715 2010-02-17 Bruno Haible <bruno@clisp.org>
717 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
718 Reported by Ludovic Courtès <ludo@gnu.org>.
720 2010-02-16 Simon Josefsson <simon@josefsson.org>
722 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
725 2010-02-17 Simon Josefsson <simon@josefsson.org>
727 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
728 if not provided by the system's netdb.h. Reported by
729 ludo@gnu.org (Ludovic Courtès).
731 2010-02-15 Jim Meyering <meyering@redhat.com>
733 init.sh: improve portability and efficiency
734 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
735 "dummy" in a for loop.
736 Use '!', not '^' to select the complement of a character set used
737 in a "case" statement.
738 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
739 Suggestions from Eric Blake.
741 init.sh: automatically accommodate programs with the .exe suffix
742 Automatically arrange for an invocation of "prog" to execute the
743 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
744 may use the simpler "prog", yet still work when built on a system
745 that requires specifying the added suffix.
746 Do this by constructing a function named "prog" that invokes
747 "prog.exe" for each .exe file in selected directories.
748 * tests/init.sh (find_exe_basenames_): New function.
749 (create_exe_shim_functions_): New function.
750 (path_prepend_): Use it.
752 maint.mk: mark syntax-check sc_*.m rules as .PHONY
753 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
754 "make -t syntax-check" doesn't create a ton of sc_*.m files.
756 2010-02-14 Jim Meyering <meyering@redhat.com>
758 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
759 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
760 (sc_prohibit_hash_pjw_without_use): New rule.
762 maint.mk: allow the default upload destination dir to be overridden
763 * top/maint.mk (upload_dest_dir_): Define with a default that
764 preserves the status quo.
765 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
766 Reported by Peter Simons.
768 maint.mk: prohibit inclusion of "hash.h" without_use
769 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
771 2010-02-10 Jim Meyering <meyering@redhat.com>
773 maint.mk: prohibit inclusion of "ignore-value.h" without_use
774 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
776 2010-02-09 Eric Blake <ebb9@byu.net>
777 and Bruno Haible <bruno@clisp.org>
779 obstack-printf-posix: ensure declaration
780 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
781 extracted from gl_FUNC_OBSTACK_PRINTF.
782 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
783 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
785 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
786 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
789 2010-02-08 Bruno Haible <bruno@clisp.org>
791 gnulib-tool: Fix typo in 2010-02-07 commit.
792 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
793 Reported by Eric Blake.
795 2010-02-07 Bruno Haible <bruno@clisp.org>
797 gnulib-tool: Fix up caching patches.
798 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
799 option --no-cache. Use associative arrays when supported by the shell.
800 (sed_comments): New variable.
801 (modcache): Renamed from do_cache.
802 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
803 abbreviate unnecessarily.
804 (have_associative): New variable.
805 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
806 way also for ksh and zsh.
807 (func_init_sed_convert_to_cache_statements): New function, extracted
808 from func_cache_lookup_module. Add support for associative arrays.
809 Don't set the c_MODULE_cached variable here. Ignore all lines before
810 the first field header. Remove only the final newline, not all trailing
811 newlines. Support empty fields correctly. Limit the use of 'eval' to
813 (func_get_description, func_get_status, func_get_notice,
814 func_get_applicability, func_get_filelist, func_get_dependencies,
815 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
816 func_get_automake_snippet, func_get_include_directive,
817 func_get_link_directive, func_get_license, func_get_maintainer):
818 Update documentation. List the unoptimized code first. Add support for
819 associative arrays. Limit the use of 'eval' to assignments.
820 (func_get_applicability): Undo stylistic pessimisations.
821 (func_get_automake_snippet, func_get_include_directive): Reduce code
823 (func_modules_transitive_closure, func_modules_add_dummy,
824 func_modules_notice, func_modules_to_filelist, func_add_file,
825 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
826 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
827 func_create_testdir, func_create_megatestdir): Update documentation.
829 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
831 * gnulib-tool (func_cache_lookup_module): Store the module name
832 belonging to the cache variable; error out if two different
833 module names map to the same cache variable name.
835 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
837 gnulib-tool: Make caching optional.
838 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
839 Update matching short versions of --no-changelog.
840 (func_usage): Update.
841 (sed_extract_cache_prog): Renamed from ...
842 (sed_extract_prog): ... this; revert to old extraction script.
843 (func_get_description, func_get_status)
844 (func_get_notice, func_get_applicability, func_get_filelist)
845 (func_get_dependencies, func_get_autoconf_early_snippet)
846 (func_get_autoconf_snippet, func_get_automake_snippet)
847 (func_get_include_directive, func_get_link_directive)
848 (func_get_license, func_get_maintainer): If $do_cache is false,
849 use old, non-caching extraction scripts.
850 Suggestion by Bruno Haible.
852 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
854 gnulib-tool: cache module metainformation.
855 * gnulib-tool (sed_extract_prog): Match newline before each
856 header, and rewrite header to a shell variable suffix.
857 (func_cache_var, func_cache_lookup_module): New functions,
858 to turn a module name into a cache variable prefix, and to
859 look up and cache module metainformation.
860 (func_get_description, func_get_status)
861 (func_get_notice, func_get_applicability, func_get_filelist)
862 (func_get_dependencies, func_get_autoconf_early_snippet)
863 (func_get_autoconf_snippet, func_get_automake_snippet)
864 (func_get_include_directive, func_get_link_directive)
865 (func_get_license, func_get_maintainer): Use
866 func_cache_lookup_module.
868 2010-02-07 Bruno Haible <bruno@clisp.org>
870 fnctl: Fix missing dependency.
871 * modules/fcntl (Depends-on): Add getdtablesize.
872 Reported by John W. Eaton <jwe@gnu.org>.
874 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
876 Argp: fix recognition of short alias options.
878 * lib/argp-parse.c (convert_options): Fix improper use of
879 `|' between character values.
880 * tests/test-argp.c (group1_option): New alias option
882 (group1_parser): Special handling for 'r'.
883 (test15): New test case.
884 (test_fun): Add test15.
885 * tests/test-argp-2.sh: Update expected --help and --usage
888 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
890 * tests/test-argp.c: Fix indentation.
892 2010-02-04 Eric Blake <ebb9@byu.net>
894 gettimeofday: expose type of second argument
895 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
896 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
897 * tests/test-gettimeofday.c: Use it to silence warning.
898 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
901 2010-02-03 Jim Meyering <meyering@redhat.com>
903 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
904 * lib/regcomp.c (TYPE_SIGNED): Define.
905 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
907 regcomp.c: avoid a new -Wshadow warning
908 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
910 2010-02-01 Jim Meyering <meyering@redhat.com>
912 removing useless parentheses in cpp #define directives
913 For motivation, see commit c0221df4, "define STREQ(a,b)
914 consistently, removing useless parentheses"
915 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
916 * lib/mountlist.c (MNT_IGNORE): Likewise.
917 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
919 2010-02-01 Eric Blake <ebb9@byu.net>
921 sys_time: use link-warning
922 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
923 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
924 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
925 * modules/sys_time (Depends-on): Add warn-on-use.
926 (Makefile.am): Always build replacement.
927 (configure.ac): Update substitutions.
928 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
929 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
930 bother with SYS_TIME_H.
931 * modules/gettimeofday (configure.ac): Declare indicator.
932 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
935 closein-tests: silence compiler warning
936 * tests/test-closein.c (main): Ignore fread result.
937 * modules/closein-tests (Depends-on): Add ignore-value.
939 tests: silence warning about system return
940 * tests/test-areadlink-with-size.c (main): Ignore system result.
941 * tests/test-areadlink.c (main): Likewise.
942 * tests/test-areadlinkat-with-size.c (main): Likewise.
943 * tests/test-areadlinkat.c (main): Likewise.
944 * tests/test-canonicalize-lgpl.c (main): Likewise.
945 * tests/test-canonicalize.c (main): Likewise.
946 * tests/test-chown.c (main): Likewise.
947 * tests/test-fchownat.c (main): Likewise.
948 * tests/test-fdutimensat.c (main): Likewise.
949 * tests/test-fstatat.c (main): Likewise.
950 * tests/test-futimens.c (main): Likewise.
951 * tests/test-lchown.c (main): Likewise.
952 * tests/test-link.c (main): Likewise.
953 * tests/test-linkat.c (main): Likewise.
954 * tests/test-lstat.c (main): Likewise.
955 * tests/test-mkdir.c (main): Likewise.
956 * tests/test-mkdirat.c (main): Likewise.
957 * tests/test-mkfifo.c (main): Likewise.
958 * tests/test-mkfifoat.c (main): Likewise.
959 * tests/test-mknod.c (main): Likewise.
960 * tests/test-readlink.c (main): Likewise.
961 * tests/test-remove.c (main): Likewise.
962 * tests/test-rename.c (main): Likewise.
963 * tests/test-renameat.c (main): Likewise.
964 * tests/test-rmdir.c (main): Likewise.
965 * tests/test-symlink.c (main): Likewise.
966 * tests/test-symlinkat.c (main): Likewise.
967 * tests/test-unlink.c (main): Likewise.
968 * tests/test-unlinkat.c (main): Likewise.
969 * tests/test-utimens.c (main): Likewise.
970 * tests/test-utimensat.c (main): Likewise.
971 * modules/areadlink-tests (Depends-on): Add ignore-value.
972 * modules/areadlink-with-size-tests (Depends-on): Likewise.
973 * modules/areadlinkat-tests (Depends-on): Likewise.
974 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
975 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
976 * modules/canonicalize-tests (Depends-on): Likewise.
977 * modules/chown-tests (Depends-on): Likewise.
978 * modules/fdutimensat-tests (Depends-on): Likewise.
979 * modules/futimens-tests (Depends-on): Likewise.
980 * modules/lchown-tests (Depends-on): Likewise.
981 * modules/link-tests (Depends-on): Likewise.
982 * modules/linkat-tests (Depends-on): Likewise.
983 * modules/lstat-tests (Depends-on): Likewise.
984 * modules/mkdir-tests (Depends-on): Likewise.
985 * modules/mkfifo-tests (Depends-on): Likewise.
986 * modules/mkfifoat-tests (Depends-on): Likewise.
987 * modules/mknod-tests (Depends-on): Likewise.
988 * modules/openat-tests (Depends-on): Likewise.
989 * modules/readlink-tests (Depends-on): Likewise.
990 * modules/remove-tests (Depends-on): Likewise.
991 * modules/rename-tests (Depends-on): Likewise.
992 * modules/renameat-tests (Depends-on): Likewise.
993 * modules/rmdir-tests (Depends-on): Likewise.
994 * modules/symlink-tests (Depends-on): Likewise.
995 * modules/symlinkat-tests (Depends-on): Likewise.
996 * modules/unlink-tests (Depends-on): Likewise.
997 * modules/utimens-tests (Depends-on): Likewise.
998 * modules/utimensat-tests (Depends-on): Likewise.
1000 2010-01-31 Bruno Haible <bruno@clisp.org>
1002 Perform the same test for many <math.h> functions.
1003 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1004 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1005 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1007 * modules/acos (configure.ac): Likewise.
1008 * modules/asin (configure.ac): Likewise.
1009 * modules/atan (configure.ac): Likewise.
1010 * modules/atan2 (configure.ac): Likewise.
1011 * modules/cbrt (configure.ac): Likewise.
1012 * modules/copysign (configure.ac): Likewise.
1013 * modules/cos (configure.ac): Likewise.
1014 * modules/cosh (configure.ac): Likewise.
1015 * modules/erf (configure.ac): Likewise.
1016 * modules/erfc (configure.ac): Likewise.
1017 * modules/exp (configure.ac): Likewise.
1018 * modules/fmod (configure.ac): Likewise.
1019 * modules/hypot (configure.ac): Likewise.
1020 * modules/j0 (configure.ac): Likewise.
1021 * modules/j1 (configure.ac): Likewise.
1022 * modules/jn (configure.ac): Likewise.
1023 * modules/lgamma (configure.ac): Likewise.
1024 * modules/log (configure.ac): Likewise.
1025 * modules/log10 (configure.ac): Likewise.
1026 * modules/log1p (configure.ac): Likewise.
1027 * modules/pow (configure.ac): Likewise.
1028 * modules/remainder (configure.ac): Likewise.
1029 * modules/sin (configure.ac): Likewise.
1030 * modules/sinh (configure.ac): Likewise.
1031 * modules/tan (configure.ac): Likewise.
1032 * modules/tanh (configure.ac): Likewise.
1033 * modules/y0 (configure.ac): Likewise.
1034 * modules/y1 (configure.ac): Likewise.
1035 * modules/yn (configure.ac): Likewise.
1036 Suggested by Paolo Bonzini.
1038 2010-01-31 Bruno Haible <bruno@clisp.org>
1040 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1042 2010-01-31 Bruno Haible <bruno@clisp.org>
1044 Work around getdelim() bug on FreeBSD 8.0.
1045 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1046 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1048 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1050 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1051 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1052 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1054 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1056 2010-01-31 Bruno Haible <bruno@clisp.org>
1058 Work around getline() bug on FreeBSD 8.0.
1059 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1060 and a non-zero size.
1061 * tests/test-getline.c (main): Likewise.
1062 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1063 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1065 2010-01-28 Eric Blake <ebb9@byu.net>
1067 regex: fix build failure
1068 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1071 2010-01-28 Jim Meyering <meyering@redhat.com>
1073 regex: do not ignore memory allocation failure
1074 * lib/regex_internal.c (create_cd_newstate): Detect
1075 re_node_set_init_copy failure. Extracted from glibc commit
1076 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1078 regex: sync more white-space changes from libc
1079 * lib/regex_internal.c: White-space only changes.
1080 * lib/regexec.c: Likewise.
1082 regex: add many uses of __attribute_warn_unused_result__
1083 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1084 * lib/regexec.c: Likewise.
1085 Extracted from a messy glibc commit.
1087 regcomp.c: spelling and merge-artifact from glibc
1088 * lib/regcomp.c: Merge remainder of glibc's
1089 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1091 regcomp.c: sync white-space changes from glibc
1092 * lib/regcomp.c: Merge to accommodate white space
1093 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1095 regcomp.c: do not ignore internal return values
1096 * lib/regcomp.c: Do not ignore internal return values.
1097 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1098 but without its white-space changes and spelling fixes.
1100 regex_internal.h: define __attribute_warn_unused_result__
1101 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1103 maint: add a syntax-check rule to check for vulnerable Makefile.in
1104 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1106 2010-01-27 Jim Meyering <meyering@redhat.com>
1108 ncftpput-ftp: clean up spaces
1109 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1110 Remove trailing blanks.
1112 2010-01-27 Simon Josefsson <simon@josefsson.org>
1114 * build-aux/git-version-gen: Fix copyright statement.
1115 * build-aux/gnupload: Likewise.
1116 * tests/test-arcfour.c: Likewise.
1117 * tests/test-arctwo.c: Likewise.
1118 * tests/test-count-one-bits.c: Likewise.
1119 * tests/test-crc.c: Likewise.
1120 * tests/test-des.c: Likewise.
1121 * tests/test-gc-arcfour.c: Likewise.
1122 * tests/test-gc-arctwo.c: Likewise.
1123 * tests/test-gc-des.c: Likewise.
1124 * tests/test-gc-hmac-md5.c: Likewise.
1125 * tests/test-gc-hmac-sha1.c: Likewise.
1126 * tests/test-gc-md2.c: Likewise.
1127 * tests/test-gc-md4.c: Likewise.
1128 * tests/test-gc-md5.c: Likewise.
1129 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1130 * tests/test-gc-rijndael.c: Likewise.
1131 * tests/test-gc-sha1.c: Likewise.
1132 * tests/test-gc.c: Likewise.
1133 * tests/test-gethostname.c: Likewise.
1134 * tests/test-gettimeofday.c: Likewise.
1135 * tests/test-hash.c: Likewise.
1136 * tests/test-hmac-md5.c: Likewise.
1137 * tests/test-hmac-sha1.c: Likewise.
1138 * tests/test-md2.c: Likewise.
1139 * tests/test-md4.c: Likewise.
1140 * tests/test-md5.c: Likewise.
1141 * tests/test-memchr.c: Likewise.
1142 * tests/test-memchr2.c: Likewise.
1143 * tests/test-memcmp.c: Likewise.
1144 * tests/test-memmem.c: Likewise.
1145 * tests/test-memrchr.c: Likewise.
1146 * tests/test-rawmemchr.c: Likewise.
1147 * tests/test-read-file.c: Likewise.
1148 * tests/test-rijndael.c: Likewise.
1149 * tests/test-sockets.c: Likewise.
1150 * tests/test-strchrnul.c: Likewise.
1151 * tests/test-strstr.c: Likewise.
1152 * tests/test-strtod.c: Likewise.
1153 * build-aux/ncftpput-ftp: Likewise.
1155 2010-01-26 Eric Blake <ebb9@byu.net>
1157 ignore-value: update recommended header name
1158 * modules/ignore-value (Include): Only use <> for headers that
1161 2010-01-26 Jim Meyering <meyering@redhat.com>
1163 test-userspec.c: avoid compiler warnings
1164 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1165 and "initialization discards qualifiers..." warnings.
1166 Put the first "uid" in its own scope, and make char* members "const".
1168 2010-01-25 Bruno Haible <bruno@clisp.org>
1170 gnulib-tool: Make warning diagnostics consistent.
1171 * gnulib-tool (func_warning): New function.
1172 Use it everywhere where gnulib-tool produces output to stderr and it is
1175 2010-01-25 Bruno Haible <bruno@clisp.org>
1177 Fix test dependencies.
1178 * modules/xstrtol-tests (Depends-on): Add inttypes.
1179 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1181 2010-01-25 Pádraig Brady <P@draigBrady.com>
1183 syntax-check: detect incorrect boolean macro values in config.h
1184 * modules/maintainer-makefile (configure.ac): Parameterize the location
1185 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1186 The logic is from Eric Blake and the location indicated by Jim Meyering.
1187 Note the more natural CONFIG_HEADER name is prohibited by automake
1188 for backwards compatibility reasons.
1189 * top/maint.mk (sc_Wundef_boolean): New rule.
1191 2010-01-25 Jim Meyering <meyering@redhat.com>
1193 bootstrap: detect MacOS 10.6's shasum, too
1194 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1195 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1197 2010-01-23 Jim Meyering <meyering@redhat.com>
1199 xstrtoll: new module
1200 * modules/xstrtoll: New file.
1201 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1202 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1203 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1204 ./configure fails if you use this module and lack "long long".
1205 * modules/xstrtoll-tests: New module.
1206 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1207 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1208 new init.sh-based test framework.
1210 2010-01-24 Bruno Haible <bruno@clisp.org>
1212 Tests for module 'yn'.
1213 * modules/yn-tests: New file.
1214 * tests/test-yn.c: New file.
1216 Tests for module 'y1'.
1217 * modules/y1-tests: New file.
1218 * tests/test-y1.c: New file.
1220 Tests for module 'y0'.
1221 * modules/y0-tests: New file.
1222 * tests/test-y0.c: New file.
1224 Tests for module 'tanh'.
1225 * modules/tanh-tests: New file.
1226 * tests/test-tanh.c: New file.
1228 Tests for module 'tan'.
1229 * modules/tan-tests: New file.
1230 * tests/test-tan.c: New file.
1232 Tests for module 'sqrt'.
1233 * modules/sqrt-tests: New file.
1234 * tests/test-sqrt.c: New file.
1236 Tests for module 'sinh'.
1237 * modules/sinh-tests: New file.
1238 * tests/test-sinh.c: New file.
1240 Tests for module 'sin'.
1241 * modules/sin-tests: New file.
1242 * tests/test-sin.c: New file.
1244 Tests for module 'rint'.
1245 * modules/rint-tests: New file.
1246 * tests/test-rint.c: New file.
1248 Tests for module 'remainder'.
1249 * modules/remainder-tests: New file.
1250 * tests/test-remainder.c: New file.
1252 Tests for module 'pow'.
1253 * modules/pow-tests: New file.
1254 * tests/test-pow.c: New file.
1256 Tests for module 'nextafter'.
1257 * modules/nextafter-tests: New file.
1258 * tests/test-nextafter.c: New file.
1260 Tests for module 'modf'.
1261 * modules/modf-tests: New file.
1262 * tests/test-modf.c: New file.
1264 Tests for module 'logb'.
1265 * modules/logb-tests: New file.
1266 * tests/test-logb.c: New file.
1268 Tests for module 'log1p'.
1269 * modules/log1p-tests: New file.
1270 * tests/test-log1p.c: New file.
1272 Tests for module 'log10'.
1273 * modules/log10-tests: New file.
1274 * tests/test-log10.c: New file.
1276 Tests for module 'log'.
1277 * modules/log-tests: New file.
1278 * tests/test-log.c: New file.
1280 Tests for module 'lgamma'.
1281 * modules/lgamma-tests: New file.
1282 * tests/test-lgamma.c: New file.
1284 Tests for module 'ldexp'.
1285 * modules/ldexp-tests: New file.
1286 * tests/test-ldexp.c: New file.
1288 Tests for module 'jn'.
1289 * modules/jn-tests: New file.
1290 * tests/test-jn.c: New file.
1292 Tests for module 'j1'.
1293 * modules/j1-tests: New file.
1294 * tests/test-j1.c: New file.
1296 Tests for module 'j0'.
1297 * modules/j0-tests: New file.
1298 * tests/test-j0.c: New file.
1300 Tests for module 'hypot'.
1301 * modules/hypot-tests: New file.
1302 * tests/test-hypot.c: New file.
1304 Tests for module 'fmod'.
1305 * modules/fmod-tests: New file.
1306 * tests/test-fmod.c: New file.
1308 Tests for module 'fabs'.
1309 * modules/fabs-tests: New file.
1310 * tests/test-fabs.c: New file.
1312 Tests for module 'exp'.
1313 * modules/exp-tests: New file.
1314 * tests/test-exp.c: New file.
1316 Tests for module 'erfc'.
1317 * modules/erfc-tests: New file.
1318 * tests/test-erfc.c: New file.
1320 Tests for module 'erf'.
1321 * modules/erf-tests: New file.
1322 * tests/test-erf.c: New file.
1324 Tests for module 'cosh'.
1325 * modules/cosh-tests: New file.
1326 * tests/test-cosh.c: New file.
1328 Tests for module 'cos'.
1329 * modules/cos-tests: New file.
1330 * tests/test-cos.c: New file.
1332 Tests for module 'copysign'.
1333 * modules/copysign-tests: New file.
1334 * tests/test-copysign.c: New file.
1336 Tests for module 'cbrt'.
1337 * modules/cbrt-tests: New file.
1338 * tests/test-cbrt.c: New file.
1340 Tests for module 'atan2'.
1341 * modules/atan2-tests: New file.
1342 * tests/test-atan2.c: New file.
1344 Tests for module 'atan'.
1345 * modules/atan-tests: New file.
1346 * tests/test-atan.c: New file.
1348 Tests for module 'asin'.
1349 * modules/asin-tests: New file.
1350 * tests/test-asin.c: New file.
1352 Tests for module 'acos'.
1353 * modules/acos-tests: New file.
1354 * tests/test-acos.c: New file.
1356 2010-01-24 Bruno Haible <bruno@clisp.org>
1358 Fix tests for common <math.h> functions.
1359 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1360 code snippet that references the function pointer, rather than merely
1361 calling the function. Substitute the FUNC_LIBM variable.
1362 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1363 * modules/acos (configure.ac): Likewise.
1364 * modules/asin (configure.ac): Likewise.
1365 * modules/atan (configure.ac): Likewise.
1366 * modules/atan2 (configure.ac): Likewise.
1367 * modules/cbrt (configure.ac): Likewise.
1368 * modules/copysign (configure.ac): Likewise.
1369 * modules/cos (configure.ac): Likewise.
1370 * modules/cosh (configure.ac): Likewise.
1371 * modules/erf (configure.ac): Likewise.
1372 * modules/erfc (configure.ac): Likewise.
1373 * modules/exp (configure.ac): Likewise.
1374 * modules/fabs (configure.ac): Likewise.
1375 * modules/fmod (configure.ac): Likewise.
1376 * modules/hypot (configure.ac): Likewise.
1377 * modules/j0 (configure.ac): Likewise.
1378 * modules/j1 (configure.ac): Likewise.
1379 * modules/jn (configure.ac): Likewise.
1380 * modules/ldexp (configure.ac): Likewise.
1381 * modules/lgamma (configure.ac): Likewise.
1382 * modules/log (configure.ac): Likewise.
1383 * modules/log10 (configure.ac): Likewise.
1384 * modules/log1p (configure.ac): Likewise.
1385 * modules/logb (configure.ac): Likewise.
1386 * modules/modf (configure.ac): Likewise.
1387 * modules/nextafter (configure.ac): Likewise.
1388 * modules/pow (configure.ac): Likewise.
1389 * modules/remainder (configure.ac): Likewise.
1390 * modules/rint (configure.ac): Likewise.
1391 * modules/sin (configure.ac): Likewise.
1392 * modules/sinh (configure.ac): Likewise.
1393 * modules/tan (configure.ac): Likewise.
1394 * modules/tanh (configure.ac): Likewise.
1395 * modules/y0 (configure.ac): Likewise.
1396 * modules/y1 (configure.ac): Likewise.
1397 * modules/yn (configure.ac): Likewise.
1399 2010-01-24 Bruno Haible <bruno@clisp.org>
1401 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1402 * tests/test-acosl.c (x): New variable.
1403 (main): Store argument in x and fetch it from x.
1404 * tests/test-asinl.c (x): New variable.
1405 (main): Store argument in x and fetch it from x.
1406 * tests/test-atanl.c (x): New variable.
1407 (main): Store argument in x and fetch it from x.
1408 * tests/test-cosl.c (x): New variable.
1409 (main): Store argument in x and fetch it from x.
1410 * tests/test-expl.c (x): New variable.
1411 (main): Store argument in x and fetch it from x.
1412 * tests/test-logl.c (x): New variable.
1413 (main): Store argument in x and fetch it from x.
1414 * tests/test-sinl.c (x): New variable.
1415 (main): Store argument in x and fetch it from x.
1416 * tests/test-sqrtl.c (x): New variable.
1417 (main): Store argument in x and fetch it from x.
1418 * tests/test-tanl.c (x): New variable.
1419 (main): Store argument in x and fetch it from x.
1421 2010-01-24 Bruno Haible <bruno@clisp.org>
1423 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1424 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1425 assignments to the initial TESTS_ENVIRONMENT.
1426 * doc/gnulib.texi (Unit test modules): Document it.
1427 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1429 * modules/btowc-tests (Makefile.am): Likewise.
1430 * modules/c-stack-tests (Makefile.am): Likewise.
1431 * modules/c-strcase-tests (Makefile.am): Likewise.
1432 * modules/copy-file-tests (Makefile.am): Likewise.
1433 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1434 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1435 * modules/mbrtowc-tests (Makefile.am): Likewise.
1436 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1437 * modules/mbscasestr-tests (Makefile.am): Likewise.
1438 * modules/mbschr-tests (Makefile.am): Likewise.
1439 * modules/mbscspn-tests (Makefile.am): Likewise.
1440 * modules/mbsinit-tests (Makefile.am): Likewise.
1441 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1442 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1443 * modules/mbspbrk-tests (Makefile.am): Likewise.
1444 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1445 * modules/mbsrchr-tests (Makefile.am): Likewise.
1446 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1447 * modules/mbsspn-tests (Makefile.am): Likewise.
1448 * modules/mbsstr-tests (Makefile.am): Likewise.
1449 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1450 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1451 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1452 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1453 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1454 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1455 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1456 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1457 * modules/wcrtomb-tests (Makefile.am): Likewise.
1458 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1459 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1460 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1461 assignments from TESTS_ENVIRONMENT.
1462 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1464 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1465 * modules/atexit-tests (Makefile.am): Likewise.
1466 * modules/binary-io-tests (Makefile.am): Likewise.
1467 * modules/closein-tests (Makefile.am): Likewise.
1468 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1469 * modules/exclude-tests (Makefile.am): Likewise.
1470 * modules/fflush-tests (Makefile.am): Likewise.
1471 * modules/fpending-tests (Makefile.am): Likewise.
1472 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1473 * modules/freadahead-tests (Makefile.am): Likewise.
1474 * modules/freadptr-tests (Makefile.am): Likewise.
1475 * modules/freadseek-tests (Makefile.am): Likewise.
1476 * modules/fseek-tests (Makefile.am): Likewise.
1477 * modules/fseeko-tests (Makefile.am): Likewise.
1478 * modules/ftell-tests (Makefile.am): Likewise.
1479 * modules/ftello-tests (Makefile.am): Likewise.
1480 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1481 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1482 * modules/lseek-tests (Makefile.am): Likewise.
1483 * modules/parse-duration-tests (Makefile.am): Likewise.
1484 * modules/perror-tests (Makefile.am): Likewise.
1485 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1486 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1487 * modules/pipe-tests (Makefile.am): Likewise.
1488 * modules/pread-tests (Makefile.am): Likewise.
1489 * modules/printf-posix-tests (Makefile.am): Likewise.
1490 * modules/select-tests (Makefile.am): Likewise.
1491 * modules/sigpipe-tests (Makefile.am): Likewise.
1492 * modules/tsearch-tests (Makefile.am): Likewise.
1493 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1494 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1495 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1496 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1497 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1498 * modules/version-etc-tests (Makefile.am): Likewise.
1499 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1500 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1501 * modules/xalloc-die-tests (Makefile.am): Likewise.
1502 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1503 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1504 * modules/xstrtol-tests (Makefile.am): Likewise.
1505 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1506 * modules/yesno-tests (Makefile.am): Likewise.
1507 Suggested by Jim Meyering.
1509 2010-01-24 Bruno Haible <bruno@clisp.org>
1512 * doc/gnulib.texi (Writing modules): New chapter.
1513 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1516 2010-01-24 Jim Meyering <meyering@redhat.com>
1518 maint.mk: do not prepend "./" after filtering
1519 * top/maint.mk (_prepend_srcdir_prefix): New variable
1520 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1521 "./" when $(srcdir) is ".".
1523 define STREQ(a,b) consistently, removing useless parentheses
1524 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1525 since the only risk is that "a" or "b" contains an unparenthesized
1526 comma, but if either did that, STREQ would have 3 or more arguments.
1527 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1528 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1529 * lib/hash-triple.c (STREQ): Likewise.
1530 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1531 * lib/getugroups.c (STREQ): Likewise.
1533 2010-01-23 Jim Meyering <meyering@redhat.com>
1535 maint.mk: fix syntax-check in a non-srcdir build directory
1536 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1537 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1539 2010-01-22 Jim Meyering <meyering@redhat.com>
1541 userspec: add unit tests
1542 * tests/test-userspec.c: New file.
1543 * modules/userspec-tests: Likewise.
1545 2010-01-21 Jim Meyering <meyering@redhat.com>
1547 maint.mk: handle source file names containing "." robustly
1548 * top/maint.mk (_dot_escaped_srcdir): Define.
1549 (VC_LIST): Use it in LHS of sed substitution.
1551 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1553 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1554 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1555 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1556 from a non-srcdir build.
1558 2010-01-20 Eric Blake <ebb9@byu.net>
1560 warn-on-use: use instead of link-warning
1561 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1562 * modules/unistd (Depends-on, Makefile.am): Likewise.
1563 * modules/arpa_inet (Depends-on): Replace link-warning with
1565 (Makefile.am): Update rules accordingly.
1566 * modules/ctype (Depends-on, Makefile.am): Likewise.
1567 * modules/dirent (Depends-on, Makefile.am): Likewise.
1568 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1569 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1570 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1571 * modules/locale (Depends-on, Makefile.am): Likewise.
1572 * modules/math (Depends-on, Makefile.am): Likewise.
1573 * modules/search (Depends-on, Makefile.am): Likewise.
1574 * modules/signal (Depends-on, Makefile.am): Likewise.
1575 * modules/spawn (Depends-on, Makefile.am): Likewise.
1576 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1577 * modules/string (Depends-on, Makefile.am): Likewise.
1578 * modules/strings (Depends-on, Makefile.am): Likewise.
1579 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1580 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1581 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1582 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1583 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1584 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1585 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1586 * modules/wchar (Depends-on, Makefile.am): Likewise.
1587 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1589 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1590 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1591 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1592 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1593 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1594 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1595 * m4/math_h.m4 (gl_MATH_H): Likewise.
1596 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1597 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1598 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1599 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1600 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1601 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1602 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1603 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1604 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1605 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1606 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1607 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1608 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1609 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1610 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1611 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1612 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1614 * lib/ctype.in.h: Likewise.
1615 * lib/dirent.in.h: Likewise.
1616 * lib/fcntl.in.h: Likewise.
1617 * lib/inttypes.in.h: Likewise.
1618 * lib/langinfo.in.h: Likewise.
1619 * lib/locale.in.h: Likewise.
1620 * lib/math.in.h: Likewise.
1621 * lib/search.in.h: Likewise.
1622 * lib/signal.in.h: Likewise.
1623 * lib/spawn.in.h: Likewise.
1624 * lib/stdio.in.h: Likewise.
1625 * lib/stdlib.in.h: Likewise.
1626 * lib/string.in.h: Likewise.
1627 * lib/strings.in.h: Likewise.
1628 * lib/sys_file.in.h: Likewise.
1629 * lib/sys_ioctl.in.h: Likewise.
1630 * lib/sys_select.in.h: Likewise.
1631 * lib/sys_socket.in.h: Likewise.
1632 * lib/sys_stat.in.h: Likewise.
1633 * lib/sys_times.in.h: Likewise.
1634 * lib/sys_utsname.in.h: Likewise.
1635 * lib/unistd.in.h: Likewise.
1636 * lib/wchar.in.h: Likewise.
1638 2010-01-20 Bruno Haible <bruno@clisp.org>
1640 Avoid duplicate -lm.
1641 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1642 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1643 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1644 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1645 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1646 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1647 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1648 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1649 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1650 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1651 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1652 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1653 Reported by Paolo Bonzini.
1655 2010-01-19 Bruno Haible <bruno@clisp.org>
1657 langinfo, nl_langinfo: Relicense under LGPLv2+.
1658 * modules/langinfo (License): Change to LGPLv2+.
1659 * modules/nl_langinfo (License): Likewise.
1660 Patch by David Lutterkort <lutter@redhat.com>.
1662 2010-01-19 Bruno Haible <bruno@clisp.org>
1664 Avoid compilation error with cc on OSF/1 5.1.
1665 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1666 statement, not before.
1667 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1669 2010-01-18 Bruno Haible <bruno@clisp.org>
1671 Avoid a link error due to the __printf__ symbol.
1672 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1674 (__format__, __printf__): Remove definitions.
1675 * lib/argp-fmtstream.h: Likewise.
1676 * lib/argp.h: Likewise.
1677 * lib/error.h: Likewise.
1678 * lib/vasnprintf.h: Likewise.
1679 * lib/xprintf.h: Likewise.
1680 * lib/xvasprintf.h: Likewise.
1681 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1683 2010-01-18 Bruno Haible <bruno@clisp.org>
1685 Tests for module 'tanl'.
1686 * modules/tanl-tests: New file.
1687 * tests/test-tanl.c: New file.
1689 Tests for module 'sqrtl'.
1690 * modules/sqrtl-tests: New file.
1691 * tests/test-sqrtl.c: New file.
1693 Tests for module 'sinl'.
1694 * modules/sinl-tests: New file.
1695 * tests/test-sinl.c: New file.
1697 Tests for module 'logl'.
1698 * modules/logl-tests: New file.
1699 * tests/test-logl.c: New file.
1701 Tests for module 'expl'.
1702 * modules/expl-tests: New file.
1703 * tests/test-expl.c: New file.
1705 Tests for module 'cosl'.
1706 * modules/cosl-tests: New file.
1707 * tests/test-cosl.c: New file.
1709 Tests for module 'atanl'.
1710 * modules/atanl-tests: New file.
1711 * tests/test-atanl.c: New file.
1713 Tests for module 'asinl'.
1714 * modules/asinl-tests: New file.
1715 * tests/test-asinl.c: New file.
1717 Tests for module 'acosl'.
1718 * modules/acosl-tests: New file.
1719 * tests/test-acosl.c: New file.
1721 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1722 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1723 tanl): Use the standard gnulib idiom.
1724 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1725 * lib/sinl.c: Likewise.
1726 * lib/tanl.c: Don't include trigl.c.
1727 (kernel_tanl): Make static.
1728 * lib/sincosl.c: Include trigl.h first.
1729 * lib/trigl.c: Likewise.
1730 * m4/acosl.m4: New file.
1731 * m4/asinl.m4: New file.
1732 * m4/atanl.m4: New file.
1733 * m4/cosl.m4: New file.
1734 * m4/expl.m4: New file.
1735 * m4/logl.m4: New file.
1736 * m4/sinl.m4: New file.
1737 * m4/sqrtl.m4: New file.
1738 * m4/tanl.m4: New file.
1739 * m4/mathl.m4: Remove file.
1740 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1741 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1742 Don't initialize GNULIB_MATHL.
1743 * modules/acosl: New file.
1744 * modules/asinl: New file.
1745 * modules/atanl: New file.
1746 * modules/cosl: New file.
1747 * modules/expl: New file.
1748 * modules/logl: New file.
1749 * modules/sinl: New file.
1750 * modules/sqrtl: New file.
1751 * modules/tanl: New file.
1752 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1753 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1754 substitute GNULIB_MATHL.
1755 * modules/mathl: Rewritten.
1756 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1757 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1758 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1759 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1760 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1761 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1762 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1763 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1764 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1766 2010-01-18 Bruno Haible <bruno@clisp.org>
1768 sqrt: Make gl_FUNC_SQRT requirable.
1769 * m4/sqrt.m4: New file.
1770 * modules/sqrt (Files): Add it.
1771 (configure.ac): Invoke gl_FUNC_SQRT.
1773 2010-01-18 Bruno Haible <bruno@clisp.org>
1775 New modules for common <math.h> functions.
1776 * m4/mathfunc.m4: New file.
1777 * modules/acos: New file.
1778 * modules/asin: New file.
1779 * modules/atan: New file.
1780 * modules/atan2: New file.
1781 * modules/cbrt: New file.
1782 * modules/copysign: New file.
1783 * modules/cos: New file.
1784 * modules/cosh: New file.
1785 * modules/erf: New file.
1786 * modules/erfc: New file.
1787 * modules/exp: New file.
1788 * modules/fabs: New file.
1789 * modules/fmod: New file.
1790 * modules/hypot: New file.
1791 * modules/j0: New file.
1792 * modules/j1: New file.
1793 * modules/jn: New file.
1794 * modules/ldexp: New file.
1795 * modules/lgamma: New file.
1796 * modules/log: New file.
1797 * modules/log10: New file.
1798 * modules/log1p: New file.
1799 * modules/logb: New file.
1800 * modules/modf: New file.
1801 * modules/nextafter: New file.
1802 * modules/pow: New file.
1803 * modules/remainder: New file.
1804 * modules/rint: New file.
1805 * modules/sin: New file.
1806 * modules/sinh: New file.
1807 * modules/sqrt: New file.
1808 * modules/tan: New file.
1809 * modules/tanh: New file.
1810 * modules/y0: New file.
1811 * modules/y1: New file.
1812 * modules/yn: New file.
1813 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1814 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1815 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1816 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1817 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1818 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1819 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1820 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1821 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1822 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1823 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1824 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1825 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1826 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1827 * doc/posix-functions/j0.texi: Mention the 'j0' module.
1828 * doc/posix-functions/j1.texi: Mention the 'j1' module.
1829 * doc/posix-functions/jn.texi: Mention the 'jn' module.
1830 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1831 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1832 * doc/posix-functions/log.texi: Mention the 'log' module.
1833 * doc/posix-functions/log10.texi: Mention the 'log10' module.
1834 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1835 * doc/posix-functions/logb.texi: Mention the 'logb' module.
1836 * doc/posix-functions/modf.texi: Mention the 'modf' module.
1837 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1838 * doc/posix-functions/pow.texi: Mention the 'pow' module.
1839 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1840 * doc/posix-functions/rint.texi: Mention the 'rint' module.
1841 * doc/posix-functions/sin.texi: Mention the 'sin' module.
1842 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1843 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1844 * doc/posix-functions/tan.texi: Mention the 'tan' module.
1845 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1846 * doc/posix-functions/y0.texi: Mention the 'y0' module.
1847 * doc/posix-functions/y1.texi: Mention the 'y1' module.
1848 * doc/posix-functions/yn.texi: Mention the 'yn' module.
1850 2010-01-18 Jim Meyering <meyering@redhat.com>
1852 ignore-value: relax license to LGPLv2+
1853 * modules/ignore-value (License): Relax to LGPLv2+.
1855 getdate: don't leak when TZ contains two or more '"'s
1856 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1857 double quote in TZ after the first one.
1859 readtokens: do not leak internal token_lengths buffer
1860 * lib/readtokens.c (readtokens): Free the local, lengths,
1861 when the supplied "token_lengths" parameter is NULL.
1863 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1865 Fix a couple of missing LIBTHREAD link failures on AIX.
1866 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1868 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1870 Link test-poll against INET_PTON_LIB.
1871 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1872 for inet_pton on Solaris 10.
1874 2010-01-17 Bruno Haible <bruno@clisp.org>
1876 unistdio/*-sprintf: Fix typo in module description.
1877 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1878 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1879 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1880 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1881 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1882 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1883 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1884 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1886 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1888 gnulib-tool: fix filelist for AIX, HP-UX ksh.
1889 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1890 variables in shell case patterns, for AIX and HP-UX ksh.
1892 Split large sed scripts, for HP-UX sed.
1893 * modules/stdio: Split sed scripts around 50 sed commands,
1894 to avoid HP-UX limit of 99 commands, in the near future.
1895 * modules/string: Likewise.
1896 * modules/unistd: Likewise.
1898 gnulib-tool: avoid writing in the current directory.
1899 * gnulib-tool (func_emit_lib_Makefile_am)
1900 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1901 not in the current directory, so concurrent gnulib-tool
1902 instances do not interfere.
1904 2010-01-16 Jim Meyering <meyering@redhat.com>
1906 doc: update users.txt
1907 * users.txt: Add grep.
1908 (diffutils, gzip): Update URLs.
1910 2010-01-12 Bruno Haible <bruno@clisp.org>
1912 posix_spawn: Avoid test failure on Cygwin.
1913 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1915 Reported by Simon Josefsson.
1917 2010-01-12 Bruno Haible <bruno@clisp.org>
1919 * tests/test-cond.c (main): When skipping the test, show the reason.
1921 2010-01-12 Simon Josefsson <simon@josefsson.org>
1923 * lib/striconv.c (str_cd_iconv): Avoid if before free.
1925 2010-01-12 Simon Josefsson <simon@josefsson.org>
1927 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1928 VC_LIST_ALWAYS_EXCLUDE_REGEX.
1930 2010-01-12 Eric Blake <ebb9@byu.net>
1932 build: guarantee AS_VAR_IF
1933 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1934 (gl_AS_VAR_IF): Move...
1935 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1936 Reported by Simon Josefsson.
1938 2010-01-12 Simon Josefsson <simon@josefsson.org>
1940 * lib/stdio.in.h: Fix typo.
1942 2010-01-12 Simon Josefsson <simon@josefsson.org>
1944 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1947 2010-01-12 Simon Josefsson <simon@josefsson.org>
1949 * tests/test-xalloc-die.sh: Use $EXEEXT.
1951 2010-01-12 Simon Josefsson <simon@josefsson.org>
1952 Bruno Haible <bruno@clisp.org>
1954 getlogin, getlogin_r: Avoid test failure.
1955 * tests/test-getlogin.c: Include <stdio.h>.
1956 (main): Skip the test when the function fails because stdin is not a
1958 * tests/test-getlogin_r.c: Include <stdio.h>.
1959 (main): Skip the test when the function fails because stdin is not a
1962 2010-01-11 Eric Blake <ebb9@byu.net>
1964 tests: avoid more large file warnings
1965 * tests/test-fflush.c: Avoid warning about ftell use.
1966 * tests/test-fseek.c: Avoid warning about fseek use.
1968 2010-01-10 Bruno Haible <bruno@clisp.org>
1970 nproc: Work better on Linux when /proc and /sys are not mounted.
1971 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1972 as lower bound when, on glibc/Linux systems,
1973 sysconf (_SC_NPROCESSORS_CONF) returns 1.
1974 Suggested by Pádraig Brady <P@draigbrady.com>.
1975 Reported by Dmitry V. Levin <ldv@altlinux.org>.
1978 * lib/nproc.c (num_processors_via_affinity_mask): New function,
1979 extracted from num_processors.
1980 (num_processors): Call it.
1982 2010-01-11 Jim Meyering <meyering@redhat.com>
1984 utimecmp: avoid new warning from upcoming gcc-4.5.0
1985 * lib/utimecmp.c (BILLION): Define using #define rather than an
1986 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1988 2010-01-11 Eric Blake <ebb9@byu.net>
1990 math: add portability warnings for classification macros
1991 * modules/math (Depends-on): Add warn-on-use.
1992 (Makefile.am): Provide new substitutions.
1993 * m4/math_h.m4 (gl_MATH_H): Require inline.
1994 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1995 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1996 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1999 unistd: warn on use of environ without module
2000 * modules/unistd (Depends-on): Add warn-on-use.
2001 (Makefile.am): Provide new substitutions.
2002 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2003 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2005 stdio: warn on suspicious uses
2006 * modules/stdio (Depends-on): Add warn-on-use.
2007 (Makefile.am): Provide new substitutions.
2008 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2010 * lib/stdio.in.h (gets): Always warn on use.
2011 (fseek, ftell): Adjust when warnings are issued, and honor
2012 _GL_NO_LARGE_FILES as a way to silence the warning.
2013 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2014 any warning about large file offsets.
2015 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2016 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2017 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2018 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2019 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2020 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2021 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2022 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2024 warn-on-use: new module
2025 * modules/warn-on-use: New file.
2026 * build-aux/warn-on-use.h: Likewise.
2027 * m4/warn-on-use.m4: Likewise.
2028 * MODULES.html.sh (Support for building): Mention it.
2030 2010-01-10 Bruno Haible <bruno@clisp.org>
2032 Tests for module 'unistr/u32-strdup'.
2033 * modules/unistr/u32-strdup-tests: New file.
2034 * tests/unistr/test-u32-strdup.c: New file.
2036 Tests for module 'unistr/u16-strdup'.
2037 * modules/unistr/u16-strdup-tests: New file.
2038 * tests/unistr/test-u16-strdup.c: New file.
2040 Tests for module 'unistr/u8-strdup'.
2041 * modules/unistr/u8-strdup-tests: New file.
2042 * tests/unistr/test-u8-strdup.c: New file.
2043 * tests/unistr/test-strdup.h: New file.
2045 Tests for module 'unistr/u32-strncmp'.
2046 * modules/unistr/u32-strncmp-tests: New file.
2047 * tests/unistr/test-u32-strncmp.c: New file.
2049 Tests for module 'unistr/u16-strncmp'.
2050 * modules/unistr/u16-strncmp-tests: New file.
2051 * tests/unistr/test-u16-strncmp.c: New file.
2053 Tests for module 'unistr/u8-strncmp'.
2054 * modules/unistr/u8-strncmp-tests: New file.
2055 * tests/unistr/test-u8-strncmp.c: New file.
2056 * tests/unistr/test-strncmp.h: New file.
2058 Tests for module 'unistr/u32-strcoll'.
2059 * modules/unistr/u32-strcoll-tests: New file.
2060 * tests/unistr/test-u32-strcoll.c: New file.
2062 Tests for module 'unistr/u16-strcoll'.
2063 * modules/unistr/u16-strcoll-tests: New file.
2064 * tests/unistr/test-u16-strcoll.c: New file.
2066 Tests for module 'unistr/u8-strcoll'.
2067 * modules/unistr/u8-strcoll-tests: New file.
2068 * tests/unistr/test-u8-strcoll.c: New file.
2070 Tests for module 'unistr/u32-strcmp'.
2071 * modules/unistr/u32-strcmp-tests: New file.
2072 * tests/unistr/test-u32-strcmp.c: New file.
2073 * tests/unistr/test-u32-strcmp.h: New file.
2075 Tests for module 'unistr/u16-strcmp'.
2076 * modules/unistr/u16-strcmp-tests: New file.
2077 * tests/unistr/test-u16-strcmp.c: New file.
2078 * tests/unistr/test-u16-strcmp.h: New file.
2080 Tests for module 'unistr/u8-strcmp'.
2081 * modules/unistr/u8-strcmp-tests: New file.
2082 * tests/unistr/test-u8-strcmp.c: New file.
2083 * tests/unistr/test-u8-strcmp.h: New file.
2084 * tests/unistr/test-strcmp.h: New file.
2086 Tests for module 'unistr/u32-strncat'.
2087 * modules/unistr/u32-strncat-tests: New file.
2088 * tests/unistr/test-u32-strncat.c: New file.
2090 Tests for module 'unistr/u16-strncat'.
2091 * modules/unistr/u16-strncat-tests: New file.
2092 * tests/unistr/test-u16-strncat.c: New file.
2094 Tests for module 'unistr/u8-strncat'.
2095 * modules/unistr/u8-strncat-tests: New file.
2096 * tests/unistr/test-u8-strncat.c: New file.
2097 * tests/unistr/test-strncat.h: New file.
2099 Tests for module 'unistr/u32-strcat'.
2100 * modules/unistr/u32-strcat-tests: New file.
2101 * tests/unistr/test-u32-strcat.c: New file.
2103 Tests for module 'unistr/u16-strcat'.
2104 * modules/unistr/u16-strcat-tests: New file.
2105 * tests/unistr/test-u16-strcat.c: New file.
2107 Tests for module 'unistr/u8-strcat'.
2108 * modules/unistr/u8-strcat-tests: New file.
2109 * tests/unistr/test-u8-strcat.c: New file.
2110 * tests/unistr/test-strcat.h: New file.
2112 Tests for module 'unistr/u32-stpncpy'.
2113 * modules/unistr/u32-stpncpy-tests: New file.
2114 * tests/unistr/test-u32-stpncpy.c: New file.
2116 Tests for module 'unistr/u16-stpncpy'.
2117 * modules/unistr/u16-stpncpy-tests: New file.
2118 * tests/unistr/test-u16-stpncpy.c: New file.
2120 Tests for module 'unistr/u8-stpncpy'.
2121 * modules/unistr/u8-stpncpy-tests: New file.
2122 * tests/unistr/test-u8-stpncpy.c: New file.
2123 * tests/unistr/test-stpncpy.h: New file.
2125 Tests for module 'unistr/u32-strncpy'.
2126 * modules/unistr/u32-strncpy-tests: New file.
2127 * tests/unistr/test-u32-strncpy.c: New file.
2129 Tests for module 'unistr/u16-strncpy'.
2130 * modules/unistr/u16-strncpy-tests: New file.
2131 * tests/unistr/test-u16-strncpy.c: New file.
2133 Tests for module 'unistr/u8-strncpy'.
2134 * modules/unistr/u8-strncpy-tests: New file.
2135 * tests/unistr/test-u8-strncpy.c: New file.
2136 * tests/unistr/test-strncpy.h: New file.
2138 Tests for module 'unistr/u32-stpcpy'.
2139 * modules/unistr/u32-stpcpy-tests: New file.
2140 * tests/unistr/test-u32-stpcpy.c: New file.
2142 Tests for module 'unistr/u16-stpcpy'.
2143 * modules/unistr/u16-stpcpy-tests: New file.
2144 * tests/unistr/test-u16-stpcpy.c: New file.
2146 Tests for module 'unistr/u8-stpcpy'.
2147 * modules/unistr/u8-stpcpy-tests: New file.
2148 * tests/unistr/test-u8-stpcpy.c: New file.
2149 * tests/unistr/test-stpcpy.h: New file.
2151 Tests for module 'unistr/u32-strcpy'.
2152 * modules/unistr/u32-strcpy-tests: New file.
2153 * tests/unistr/test-u32-strcpy.c: New file.
2155 Tests for module 'unistr/u16-strcpy'.
2156 * modules/unistr/u16-strcpy-tests: New file.
2157 * tests/unistr/test-u16-strcpy.c: New file.
2159 Tests for module 'unistr/u8-strcpy'.
2160 * modules/unistr/u8-strcpy-tests: New file.
2161 * tests/unistr/test-u8-strcpy.c: New file.
2162 * tests/unistr/test-strcpy.h: New file.
2164 Tests for module 'unistr/u32-strnlen'.
2165 * modules/unistr/u32-strnlen-tests: New file.
2166 * tests/unistr/test-u32-strnlen.c: New file.
2168 Tests for module 'unistr/u16-strnlen'.
2169 * modules/unistr/u16-strnlen-tests: New file.
2170 * tests/unistr/test-u16-strnlen.c: New file.
2172 Tests for module 'unistr/u8-strnlen'.
2173 * modules/unistr/u8-strnlen-tests: New file.
2174 * tests/unistr/test-u8-strnlen.c: New file.
2175 * tests/unistr/test-strnlen.h: New file.
2177 Tests for module 'unistr/u32-strlen'.
2178 * modules/unistr/u32-strlen-tests: New file.
2179 * tests/unistr/test-u32-strlen.c: New file.
2181 Tests for module 'unistr/u16-strlen'.
2182 * modules/unistr/u16-strlen-tests: New file.
2183 * tests/unistr/test-u16-strlen.c: New file.
2185 Tests for module 'unistr/u8-strlen'.
2186 * modules/unistr/u8-strlen-tests: New file.
2187 * tests/unistr/test-u8-strlen.c: New file.
2189 Tests for module 'unistr/u32-prev'.
2190 * modules/unistr/u32-prev-tests: New file.
2191 * tests/unistr/test-u32-prev.c: New file.
2193 Tests for module 'unistr/u16-prev'.
2194 * modules/unistr/u16-prev-tests: New file.
2195 * tests/unistr/test-u16-prev.c: New file.
2197 Tests for module 'unistr/u8-prev'.
2198 * modules/unistr/u8-prev-tests: New file.
2199 * tests/unistr/test-u8-prev.c: New file.
2201 Tests for module 'unistr/u32-next'.
2202 * modules/unistr/u32-next-tests: New file.
2203 * tests/unistr/test-u32-next.c: New file.
2205 Tests for module 'unistr/u16-next'.
2206 * modules/unistr/u16-next-tests: New file.
2207 * tests/unistr/test-u16-next.c: New file.
2209 Tests for module 'unistr/u8-next'.
2210 * modules/unistr/u8-next-tests: New file.
2211 * tests/unistr/test-u8-next.c: New file.
2213 Tests for module 'unistr/u32-strmbtouc'.
2214 * modules/unistr/u32-strmbtouc-tests: New file.
2215 * tests/unistr/test-u32-strmbtouc.c: New file.
2217 Tests for module 'unistr/u16-strmbtouc'.
2218 * modules/unistr/u16-strmbtouc-tests: New file.
2219 * tests/unistr/test-u16-strmbtouc.c: New file.
2221 Tests for module 'unistr/u8-strmbtouc'.
2222 * modules/unistr/u8-strmbtouc-tests: New file.
2223 * tests/unistr/test-u8-strmbtouc.c: New file.
2225 Tests for module 'unistr/u32-strmblen'.
2226 * modules/unistr/u32-strmblen-tests: New file.
2227 * tests/unistr/test-u32-strmblen.c: New file.
2229 Tests for module 'unistr/u16-strmblen'.
2230 * modules/unistr/u16-strmblen-tests: New file.
2231 * tests/unistr/test-u16-strmblen.c: New file.
2233 Tests for module 'unistr/u8-strmblen'.
2234 * modules/unistr/u8-strmblen-tests: New file.
2235 * tests/unistr/test-u8-strmblen.c: New file.
2237 Tests for module 'unistr/u32-cpy-alloc'.
2238 * modules/unistr/u32-cpy-alloc-tests: New file.
2239 * tests/unistr/test-u32-cpy-alloc.c: New file.
2241 Tests for module 'unistr/u16-cpy-alloc'.
2242 * modules/unistr/u16-cpy-alloc-tests: New file.
2243 * tests/unistr/test-u16-cpy-alloc.c: New file.
2245 Tests for module 'unistr/u8-cpy-alloc'.
2246 * modules/unistr/u8-cpy-alloc-tests: New file.
2247 * tests/unistr/test-u8-cpy-alloc.c: New file.
2248 * tests/unistr/test-cpy-alloc.h: New file.
2250 Tests for module 'unistr/u32-mbsnlen'.
2251 * modules/unistr/u32-mbsnlen-tests: New file.
2252 * tests/unistr/test-u32-mbsnlen.c: New file.
2254 Tests for module 'unistr/u16-mbsnlen'.
2255 * modules/unistr/u16-mbsnlen-tests: New file.
2256 * tests/unistr/test-u16-mbsnlen.c: New file.
2258 Tests for module 'unistr/u8-mbsnlen'.
2259 * modules/unistr/u8-mbsnlen-tests: New file.
2260 * tests/unistr/test-u8-mbsnlen.c: New file.
2262 Tests for module 'unistr/u32-chr'.
2263 * modules/unistr/u32-chr-tests: New file.
2264 * tests/unistr/test-u32-chr.c: New file.
2266 Tests for module 'unistr/u16-chr'.
2267 * modules/unistr/u16-chr-tests: New file.
2268 * tests/unistr/test-u16-chr.c: New file.
2270 Tests for module 'unistr/u8-chr'.
2271 * modules/unistr/u8-chr-tests: New file.
2272 * tests/unistr/test-u8-chr.c: New file.
2273 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2275 Tests for module 'unistr/u32-cmp2'.
2276 * modules/unistr/u32-cmp2-tests: New file.
2277 * tests/unistr/test-u32-cmp2.c: New file.
2279 Tests for module 'unistr/u16-cmp2'.
2280 * modules/unistr/u16-cmp2-tests: New file.
2281 * tests/unistr/test-u16-cmp2.c: New file.
2283 Tests for module 'unistr/u8-cmp2'.
2284 * modules/unistr/u8-cmp2-tests: New file.
2285 * tests/unistr/test-u8-cmp2.c: New file.
2286 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2288 Tests for module 'unistr/u32-cmp'.
2289 * modules/unistr/u32-cmp-tests: New file.
2290 * tests/unistr/test-u32-cmp.c: New file.
2292 Tests for module 'unistr/u16-cmp'.
2293 * modules/unistr/u16-cmp-tests: New file.
2294 * tests/unistr/test-u16-cmp.c: New file.
2296 Tests for module 'unistr/u8-cmp'.
2297 * modules/unistr/u8-cmp-tests: New file.
2298 * tests/unistr/test-u8-cmp.c: New file.
2299 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2301 Tests for module 'unistr/u32-set'.
2302 * modules/unistr/u32-set-tests: New file.
2303 * tests/unistr/test-u32-set.c: New file.
2305 Tests for module 'unistr/u16-set'.
2306 * modules/unistr/u16-set-tests: New file.
2307 * tests/unistr/test-u16-set.c: New file.
2309 Tests for module 'unistr/u8-set'.
2310 * modules/unistr/u8-set-tests: New file.
2311 * tests/unistr/test-u8-set.c: New file.
2312 * tests/unistr/test-set.h: New file.
2314 Tests for module 'unistr/u32-move'.
2315 * modules/unistr/u32-move-tests: New file.
2316 * tests/unistr/test-u32-move.c: New file.
2318 Tests for module 'unistr/u16-move'.
2319 * modules/unistr/u16-move-tests: New file.
2320 * tests/unistr/test-u16-move.c: New file.
2322 Tests for module 'unistr/u8-move'.
2323 * modules/unistr/u8-move-tests: New file.
2324 * tests/unistr/test-u8-move.c: New file.
2325 * tests/unistr/test-move.h: New file.
2327 Tests for module 'unistr/u32-cpy'.
2328 * modules/unistr/u32-cpy-tests: New file.
2329 * tests/unistr/test-u32-cpy.c: New file.
2331 Tests for module 'unistr/u16-cpy'.
2332 * modules/unistr/u16-cpy-tests: New file.
2333 * tests/unistr/test-u16-cpy.c: New file.
2335 Tests for module 'unistr/u8-cpy'.
2336 * modules/unistr/u8-cpy-tests: New file.
2337 * tests/unistr/test-u8-cpy.c: New file.
2338 * tests/unistr/test-cpy.h: New file.
2340 2010-01-09 Bruno Haible <bruno@clisp.org>
2342 Tests for module 'unistr/u32-uctomb'.
2343 * modules/unistr/u32-uctomb-tests: New file.
2344 * tests/unistr/test-u32-uctomb.c: New file.
2346 Tests for module 'unistr/u16-uctomb'.
2347 * modules/unistr/u16-uctomb-tests: New file.
2348 * tests/unistr/test-u16-uctomb.c: New file.
2350 Tests for module 'unistr/u8-uctomb'.
2351 * modules/unistr/u8-uctomb-tests: New file.
2352 * tests/unistr/test-u8-uctomb.c: New file.
2354 Tests for module 'unistr/u32-mbtoucr'.
2355 * modules/unistr/u32-mbtoucr-tests: New file.
2356 * tests/unistr/test-u32-mbtoucr.c: New file.
2358 Tests for module 'unistr/u16-mbtoucr'.
2359 * modules/unistr/u16-mbtoucr-tests: New file.
2360 * tests/unistr/test-u16-mbtoucr.c: New file.
2362 Tests for module 'unistr/u8-mbtoucr'.
2363 * modules/unistr/u8-mbtoucr-tests: New file.
2364 * tests/unistr/test-u8-mbtoucr.c: New file.
2366 Tests for module 'unistr/u32-mbtouc'.
2367 * modules/unistr/u32-mbtouc-tests: New file.
2368 * tests/unistr/test-u32-mbtouc.c: New file.
2370 Tests for module 'unistr/u16-mbtouc'.
2371 * modules/unistr/u16-mbtouc-tests: New file.
2372 * tests/unistr/test-u16-mbtouc.c: New file.
2374 Tests for module 'unistr/u8-mbtouc'.
2375 * modules/unistr/u8-mbtouc-tests: New file.
2376 * tests/unistr/test-u8-mbtouc.c: New file.
2378 Tests for module 'unistr/u32-mbtouc-unsafe'.
2379 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2380 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2381 * tests/unistr/test-u32-mbtouc.h: New file.
2383 Tests for module 'unistr/u16-mbtouc-unsafe'.
2384 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2385 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2386 * tests/unistr/test-u16-mbtouc.h: New file.
2388 Tests for module 'unistr/u8-mbtouc-unsafe'.
2389 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2390 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2391 * tests/unistr/test-u8-mbtouc.h: New file.
2393 Tests for module 'unistr/u32-mblen'.
2394 * modules/unistr/u32-mblen-tests: New file.
2395 * tests/unistr/test-u32-mblen.c: New file.
2397 Tests for module 'unistr/u16-mblen'.
2398 * modules/unistr/u16-mblen-tests: New file.
2399 * tests/unistr/test-u16-mblen.c: New file.
2401 Tests for module 'unistr/u8-mblen'.
2402 * modules/unistr/u8-mblen-tests: New file.
2403 * tests/unistr/test-u8-mblen.c: New file.
2405 Tests for module 'unistr/u32-to-u16'.
2406 * modules/unistr/u32-to-u16-tests: New file.
2407 * tests/unistr/test-u32-to-u16.c: New file.
2409 Tests for module 'unistr/u32-to-u8'.
2410 * modules/unistr/u32-to-u8-tests: New file.
2411 * tests/unistr/test-u32-to-u8.c: New file.
2413 Tests for module 'unistr/u16-to-u32'.
2414 * modules/unistr/u16-to-u32-tests: New file.
2415 * tests/unistr/test-u16-to-u32.c: New file.
2417 Tests for module 'unistr/u16-to-u8'.
2418 * modules/unistr/u16-to-u8-tests: New file.
2419 * tests/unistr/test-u16-to-u8.c: New file.
2421 Tests for module 'unistr/u8-to-u32'.
2422 * modules/unistr/u8-to-u32-tests: New file.
2423 * tests/unistr/test-u8-to-u32.c: New file.
2425 Tests for module 'unistr/u8-to-u16'.
2426 * modules/unistr/u8-to-u16-tests: New file.
2427 * tests/unistr/test-u8-to-u16.c: New file.
2429 Tests for module 'unistr/u32-check'.
2430 * modules/unistr/u32-check-tests: New file.
2431 * tests/unistr/test-u32-check.c: New file.
2433 Tests for module 'unistr/u16-check'.
2434 * modules/unistr/u16-check-tests: New file.
2435 * tests/unistr/test-u16-check.c: New file.
2437 Tests for module 'unistr/u8-check'.
2438 * modules/unistr/u8-check-tests: New file.
2439 * tests/unistr/test-u8-check.c: New file.
2441 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2442 (category_equals): New function.
2443 (main): Add more tests.
2444 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2446 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2448 2010-01-10 Bruno Haible <bruno@clisp.org>
2450 unistr/u*-strcoll: Try harder to distinguish different strings.
2451 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2452 compare s1 and s2 to see if they are different.
2454 2010-01-10 Bruno Haible <bruno@clisp.org>
2456 unistr/u*-stpncpy: Fix the return value.
2457 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2458 description of the return value consistent with stpncpy in glibc.
2459 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2460 written non-NUL unit.
2462 2010-01-10 Bruno Haible <bruno@clisp.org>
2464 unistr/u*-next: Add missing dependencies.
2465 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2466 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2467 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2469 2010-01-10 Bruno Haible <bruno@clisp.org>
2471 unistr/u8-mbsnlen: Fix return value for incomplete character.
2472 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2474 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2475 Remove unistr/u8-mblen.
2476 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2478 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2479 Remove unistr/u16-mblen.
2481 2010-01-10 Bruno Haible <bruno@clisp.org>
2483 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2484 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2485 Reported by Brian Gough <bjg@gnu.org> and
2486 Chris Clayton <chris2553@googlemail.com> via
2487 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2489 2010-01-09 Bruno Haible <bruno@clisp.org>
2491 unistr/u16-to-u32: Reject invalid input.
2492 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2494 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2495 Remove unistr/u16-mbtouc.
2497 unistr/u16-to-u8: Reject invalid input.
2498 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2500 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2501 Remove unistr/u16-mbtouc.
2503 unistr/u8-to-u32: Reject invalid input.
2504 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2506 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2507 Remove unistr/u8-mbtouc.
2509 unistr/u8-to-u16: Reject invalid input.
2510 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2512 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2513 Remove unistr/u8-mbtouc.
2515 2010-01-09 Bruno Haible <bruno@clisp.org>
2517 Tests for module 'getlogin'.
2518 * modules/getlogin-tests: New file.
2519 * tests/test-getlogin.c: New file.
2521 New module 'getlogin'.
2522 * lib/unistd.in.h (getlogin): New declaration.
2523 * lib/getlogin.c: New file.
2524 * m4/getlogin.m4: New file.
2525 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2527 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2529 * modules/getlogin: New file.
2530 * doc/posix-functions/getlogin.texi: Mention the new module.
2531 Reported by John W. Eaton <jwe@gnu.org>.
2533 2010-01-09 Bruno Haible <bruno@clisp.org>
2535 getlogin_r: Support for native Windows.
2536 * lib/getlogin_r.c: Include <windows.h>
2537 (getlogin_r): Implement for native Windows.
2538 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2539 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2540 via John W. Eaton <jwe@gnu.org>.
2542 2010-01-09 Bruno Haible <bruno@clisp.org>
2544 getlogin_r: Small fixes.
2545 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2547 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2548 before testing whether getlogin_r is declared. No need to set
2549 HAVE_DECL_GETLOGIN_R to 1.
2550 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2552 2010-01-09 Bruno Haible <bruno@clisp.org>
2554 * lib/unistd.in.h (getlogin_r): Add comment.
2556 2010-01-09 Bruno Haible <bruno@clisp.org>
2558 Tests for module 'getlogin_r'.
2559 * modules/getlogin_r-tests: New file.
2560 * tests/test-getlogin_r.c: New file.
2562 2010-01-09 Jim Meyering <meyering@redhat.com>
2564 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2565 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2566 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2568 2010-01-08 Simon Josefsson <simon@josefsson.org>
2570 * lib/dup2.c (rpl_dup2): Improve comment.
2572 2010-01-08 Eric Blake <ebb9@byu.net>
2574 maint.mk: allow packages to add makefile @@ exceptions
2575 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2576 (sc_makefile_check): Rename...
2577 (sc_makefile_at_at_check): ...to this, and use hook.
2579 dup2: work around mingw bug
2580 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2581 Reported by Simon Josefsson.
2583 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2585 glob: Fix C++ compilation.
2586 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2589 2010-01-07 Bruno Haible <bruno@clisp.org>
2591 Fix indentation of wctype.in.h, broken since 2007-01-06.
2592 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2594 2010-01-07 Bruno Haible <bruno@clisp.org>
2596 mbslen: Avoid collision with system function.
2597 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2598 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2599 * m4/mbslen.m4: New file.
2600 * modules/mbslen (Files): Add it.
2601 (configure.ac): Invoke gl_MBSLEN.
2602 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2603 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2604 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2605 via Ian Beckwith <ianb@erislabs.net>.
2607 2010-01-07 Bruno Haible <bruno@clisp.org>
2609 dirent: Document the last fix.
2610 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2612 2010-01-07 Bruno Haible <bruno@clisp.org>
2614 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2615 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2616 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2617 va_list are defined.
2618 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2619 Reported by Eric Blake.
2621 2010-01-07 Bruno Haible <bruno@clisp.org>
2623 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2624 * modules/xlist (Depends-on): Add 'list',
2625 * modules/xoset (Depends-on): Add 'oset'.
2626 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2628 2010-01-07 Bruno Haible <bruno@clisp.org>
2630 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2631 * doc/posix-functions/strncasecmp.texi: Likewise.
2633 2010-01-07 Bruno Haible <bruno@clisp.org>
2635 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2637 2010-01-07 John W. Eaton <jwe@octave.org>
2639 wctype: allow C++ use
2640 * lib/wctype.in.h: Add extern "C" block for C++.
2642 2010-01-06 Eric Blake <ebb9@byu.net>
2644 maint.mk: detect incorrect GFDL usage
2645 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2647 2010-01-06 Jim Meyering <meyering@redhat.com>
2648 and Eric Blake <ebb9@byu.net>
2650 maint.mk: ignore multi-line copyright in NEWS
2651 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2653 2010-01-06 Eric Blake <ebb9@byu.net>
2655 select: add missing dependency
2656 * modules/select-tests (Depends-on): Move sockets dependency...
2657 * modules/select (Depends-on): ...here.
2658 Reported by Ian Beckwith.
2660 doc: regenerate INSTALL
2661 * doc/INSTALL: Reflect recent autoconf update.
2662 * doc/INSTALL.ISO: Likewise.
2663 * doc/INSTALL.UTF-8: Likewise.
2665 pread: fix compilation on glibc
2666 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2667 Reported by Ralf Wildenhues.
2669 dirent: fix test failure
2670 * lib/dirent.in.h (includes): Guarantee ino_t.
2671 Reported by Ralf Wildenhues.
2673 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2675 linkat, renameat: avoid bad free
2676 * lib/at-func2.c (at_func2): Fix typo.
2677 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2679 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2681 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2682 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2683 to avoid failure of symlink test later.
2685 2010-01-06 Eric Blake <ebb9@byu.net>
2687 stdio, unistd: guarantee ssize_t
2688 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2689 2008 are exposed when needed.
2690 * lib/stdio.in.h (includes): Likewise.
2691 Reported by Ralf Wildenhues.
2693 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2695 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2696 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2697 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2699 2010-01-06 Jim Meyering <meyering@redhat.com>
2701 readtokens: this module *does* require xalloc.h
2702 It uses only functions that were omitted by the old syntax-check rule.
2703 * lib/readtokens.c: Include "xalloc.h" once again.
2704 * modules/readtokens (Depends-on): Add xalloc.
2705 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2707 2010-01-05 Eric Blake <ebb9@byu.net>
2709 maint: support 'make announcement' from a VPATH build
2710 * top/maint.mk (announcement): Look for correct NEWS file.
2712 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2714 utimens (fdutimens): ignore a negative FD, per contract
2715 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2716 when we have a valid file descriptor. Otherwise, using a brand
2717 new glibc (with just-patched futimens that now fails with EBADF)
2718 would cause this function to fail with ENOSYS.
2719 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2720 See also http://bugzilla.redhat.com/552320.
2722 2010-01-05 Eric Blake <ebb9@byu.net>
2724 strcase: document what it provides
2725 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2727 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2728 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2730 2010-01-05 Jim Meyering <meyering@redhat.com>
2732 maint: remove useless inclusions of "xalloc.h"
2733 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2734 * lib/readtokens.c: Likewise.
2735 * lib/same.c: Likewise.
2736 * modules/getloadavg (Depends-on): Remove xalloc.
2737 * modules/readtokens: Likewise.
2738 * modules/same: Likewise.
2740 maint.mk: include 4 more function names in alloca.h-checking regexp
2741 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2742 regexp. Before, we would give a false-positive (saying alloca.h
2743 is included unnecessarily) when the only uses involved omitted symbols.
2745 xalloc.h: use consistent formatting
2746 * lib/xalloc.h: Move declarations to start in the first column.
2748 2010-01-05 Eric Blake <ebb9@byu.net>
2751 * lib/mkdir.c (includes): Drop unused header.
2752 Reported by John W. Eaton.
2754 2010-01-04 Jim Meyering <meyering@redhat.com>
2756 nl_langinfo: avoid configure-time syntax error
2757 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2758 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2759 the empty string. Don't let that provoke a shell syntax error.
2761 regcomp, regexec, fnmatch: avoid array bounds read error
2762 * lib/regcomp.c (build_equiv_class): From glibc:
2763 Use only the low 24 bits of a findidx return value as an index
2764 into the weights array. Patch by Ulrich Drepper:
2765 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2766 * lib/regexec.c (check_node_accept_bytes): Likewise.
2767 * lib/fnmatch_loop.c (FCT): Likewise.
2769 regcomp: skip collseq lookup when there are no rules
2770 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2771 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2773 regcomp: recognize ill-formed { } expressions
2774 * lib/regcomp.c (parse_dup_op): From glibc:
2775 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2777 regcomp: fix typo in comment
2778 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2779 s/satisfy/satisfies/.
2781 regcomp: sync from glibc: remove dead store
2782 * lib/regcomp.c (duplicate_node_closure): Remove useless
2783 search_duplicated_node call and dead store.
2785 regcomp: sync from glibc; always use nl_langinfo
2786 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2787 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2788 * modules/regex (Depends-on): Add nl_langinfo.
2790 2010-01-04 Eric Blake <ebb9@byu.net>
2792 fdopendir: fix configure test
2793 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2795 2010-01-01 Bruno Haible <bruno@clisp.org>
2797 wchar: Remove unused configure check.
2798 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2800 2010-01-01 Eric Blake <ebb9@byu.net>
2802 headers: make check of system header explicit
2803 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2804 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2806 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2807 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2808 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2809 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2811 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2813 Suggested by Bruno Haible.
2815 2010-01-01 Jim Meyering <meyering@redhat.com>
2817 ChangeLog: tweak to eliminate unnecessary copyright line
2818 * ChangeLog: Remove a copyright line that was mistakenly updated
2819 by today's update-copyright run. Reported by Eric Blake.
2821 test-update-copyright: don't let envvar setting cause test failure
2822 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2824 2010-01-01 Bruno Haible <bruno@clisp.org>
2826 localename: Avoid gcc warning.
2827 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2828 function if it is not used.
2830 2010-01-01 Jim Meyering <meyering@redhat.com>
2832 update nearly all FSF copyright year lists to include 2010
2833 Use the same procedure as for 2009, outlined in
2834 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2836 version-etc: set COPYRIGHT_YEAR to 2010
2837 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2839 2009-12-31 Eric Blake <ebb9@byu.net>
2841 doc: correct availability of cygwin 1.5.x getopt
2842 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2844 * doc/posix-functions/opterr.texi (opterr): Likewise.
2845 * doc/posix-functions/optind.texi (optind): Likewise.
2846 * doc/posix-functions/optopt.texi (optopt): Likewise.
2847 * doc/posix-functions/tzname.texi (tzname): Likewise.
2849 openat: update maintainer
2850 * modules/openat (Maintainer): Add myself.
2852 utimens: avoid shadowing warning
2853 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2854 buffers into one, to avoid shadowing, as well as avoiding a
2856 Reported by Jim Meyering.
2858 test-dup2: avoid compiler warning
2859 * tests/test-dup2.c (is_inheritable): Only define if used.
2861 2010-01-01 Bruno Haible <bruno@clisp.org>
2863 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2864 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2865 defined, use wctomb instead of wcrtomb.
2867 2010-01-01 Bruno Haible <bruno@clisp.org>
2869 iconv: Reject native Solaris iconv.
2870 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2871 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2873 2009-12-31 Bruno Haible <bruno@clisp.org>
2875 * tests/test-signal.c (main): Remove test of 'SIG'.
2877 2009-12-31 Bruno Haible <bruno@clisp.org>
2879 spawn: Fix incomplete fix.
2880 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2881 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2882 warnings for GNULIB_POSIXCHECK again.
2883 Reported by Eric Blake.
2885 2009-12-31 Bruno Haible <bruno@clisp.org>
2887 Avoid namespace pollution on glibc systems.
2888 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2889 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2890 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2893 2009-12-31 Bruno Haible <bruno@clisp.org>
2895 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2896 (gl_REPLACE_WCHAR_H): Turn into a no-op.
2897 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2898 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2899 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2900 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2901 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2903 2009-12-31 Bruno Haible <bruno@clisp.org>
2905 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2906 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2909 2009-12-31 Bruno Haible <bruno@clisp.org>
2911 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2914 2009-12-31 Bruno Haible <bruno@clisp.org>
2916 spawn: Fix misapplied patch.
2917 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2918 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2919 warnings for GNULIB_POSIXCHECK.
2921 2009-12-31 Bruno Haible <bruno@clisp.org>
2923 times: Update after sys_times changed.
2924 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2925 * modules/times (Files): Add it.
2926 (configure.ac): Invoke gl_FUNC_TIMES.
2928 2009-12-31 Bruno Haible <bruno@clisp.org>
2930 Use AC_C_INLINE where necessary.
2931 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2932 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2933 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2934 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2935 * m4/mbfile.m4 (gl_MBFILE): Likewise.
2936 * m4/mbiter.m4 (gl_MBITER): Likewise.
2937 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2938 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2939 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2940 * modules/u64 (configure.ac): Likewise.
2942 2009-12-31 Bruno Haible <bruno@clisp.org>
2944 Use AC_C_INLINE instead of module 'inline' where possible.
2945 * modules/inline (Description): Clarify purpose.
2946 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2947 * modules/count-one-bits (Depends-on): Remove inline.
2948 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2949 * modules/openat (Depends-on): Remove inline.
2950 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2951 instead of depending on module 'inline'.
2952 * modules/filevercmp (Depends-on, configure.ac): Likewise.
2953 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2954 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2955 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2956 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2957 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2958 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2959 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2960 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2961 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2962 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2963 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2964 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2965 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2966 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2967 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2968 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2969 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2971 * modules/unictype/property-ascii-hex-digit (Depends-on,
2972 configure.ac): Likewise.
2973 * modules/unictype/property-bidi-arabic-digit (Depends-on,
2974 configure.ac): Likewise.
2975 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2976 configure.ac): Likewise.
2977 * modules/unictype/property-bidi-block-separator (Depends-on,
2978 configure.ac): Likewise.
2979 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2980 configure.ac): Likewise.
2981 * modules/unictype/property-bidi-common-separator (Depends-on,
2982 configure.ac): Likewise.
2983 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2985 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2986 configure.ac): Likewise.
2987 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2988 configure.ac): Likewise.
2989 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2990 configure.ac): Likewise.
2991 * modules/unictype/property-bidi-european-digit (Depends-on,
2992 configure.ac): Likewise.
2993 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2994 configure.ac): Likewise.
2995 * modules/unictype/property-bidi-left-to-right (Depends-on,
2996 configure.ac): Likewise.
2997 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2998 configure.ac): Likewise.
2999 * modules/unictype/property-bidi-other-neutral (Depends-on,
3000 configure.ac): Likewise.
3001 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3003 * modules/unictype/property-bidi-segment-separator (Depends-on,
3004 configure.ac): Likewise.
3005 * modules/unictype/property-bidi-whitespace (Depends-on,
3006 configure.ac): Likewise.
3007 * modules/unictype/property-combining (Depends-on, configure.ac):
3009 * modules/unictype/property-composite (Depends-on, configure.ac):
3011 * modules/unictype/property-currency-symbol (Depends-on,
3012 configure.ac): Likewise.
3013 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3014 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3016 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3017 configure.ac): Likewise.
3018 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3020 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3022 * modules/unictype/property-extender (Depends-on, configure.ac):
3024 * modules/unictype/property-format-control (Depends-on, configure.ac):
3026 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3028 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3030 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3032 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3034 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3036 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3038 * modules/unictype/property-id-start (Depends-on, configure.ac):
3040 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3042 * modules/unictype/property-ids-binary-operator (Depends-on,
3043 configure.ac): Likewise.
3044 * modules/unictype/property-ids-trinary-operator (Depends-on,
3045 configure.ac): Likewise.
3046 * modules/unictype/property-ignorable-control (Depends-on,
3047 configure.ac): Likewise.
3048 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3050 * modules/unictype/property-join-control (Depends-on, configure.ac):
3052 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3054 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3056 * modules/unictype/property-logical-order-exception (Depends-on,
3057 configure.ac): Likewise.
3058 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3060 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3061 * modules/unictype/property-non-break (Depends-on, configure.ac):
3063 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3065 * modules/unictype/property-numeric (Depends-on, configure.ac):
3067 * modules/unictype/property-other-alphabetic (Depends-on,
3068 configure.ac): Likewise.
3069 * modules/unictype/property-other-default-ignorable-code-point
3070 (Depends-on, configure.ac): Likewise.
3071 * modules/unictype/property-other-grapheme-extend (Depends-on,
3072 configure.ac): Likewise.
3073 * modules/unictype/property-other-id-continue (Depends-on,
3074 configure.ac): Likewise.
3075 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3077 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3079 * modules/unictype/property-other-math (Depends-on, configure.ac):
3081 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3083 * modules/unictype/property-paired-punctuation (Depends-on,
3084 configure.ac): Likewise.
3085 * modules/unictype/property-paragraph-separator (Depends-on,
3086 configure.ac): Likewise.
3087 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3089 * modules/unictype/property-pattern-white-space (Depends-on,
3090 configure.ac): Likewise.
3091 * modules/unictype/property-private-use (Depends-on, configure.ac):
3093 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3095 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3097 * modules/unictype/property-radical (Depends-on, configure.ac):
3099 * modules/unictype/property-sentence-terminal (Depends-on,
3100 configure.ac): Likewise.
3101 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3103 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3104 * modules/unictype/property-terminal-punctuation (Depends-on,
3105 configure.ac): Likewise.
3106 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3108 * modules/unictype/property-unassigned-code-value (Depends-on,
3109 configure.ac): Likewise.
3110 * modules/unictype/property-unified-ideograph (Depends-on,
3111 configure.ac): Likewise.
3112 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3114 * modules/unictype/property-variation-selector (Depends-on,
3115 configure.ac): Likewise.
3116 * modules/unictype/property-white-space (Depends-on, configure.ac):
3118 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3120 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3122 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3124 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3125 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3128 2009-12-31 Bruno Haible <bruno@clisp.org>
3130 Remove unnecessary AC_C_INLINE invocation.
3131 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3134 2009-12-31 Jim Meyering <meyering@redhat.com>
3136 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3137 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3138 With this change, we can all remove the gpg_key_ID = ... definition
3139 from our respective cfg.mk files.
3141 maint.mk: create announcement template in ~/, not in /tmp
3142 * top/maint.mk (emit_upload_commands): Adjust.
3143 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3144 Remove temporary file, .ci-msg.
3146 2009-12-31 Eric Blake <ebb9@byu.net>
3148 link-warning: always build headers with link warnings
3149 * modules/arpa_inet (Makefile.am): Always build replacement
3151 * modules/ctype (Makefile.am): Likewise.
3152 * modules/dirent (Makefile.am): Likewise.
3153 * modules/inttypes (Makefile.am): Likewise.
3154 * modules/langinfo (Makefile.am): Likewise.
3155 * modules/locale (Makefile.am): Likewise.
3156 * modules/spawn (Makefile.am): Likewise.
3157 * modules/sys_file (Makefile.am): Likewise.
3158 * modules/sys_ioctl (Makefile.am): Likewise.
3159 * modules/sys_select (Makefile.am): Likewise.
3160 * modules/sys_socket (Makefile.am): Likewise.
3161 * modules/sys_times (Makefile.am): Likewise.
3162 * modules/sys_utsname (Makefile.am): Likewise.
3163 * modules/sys_wait (Makefile.am): Likewise.
3164 * modules/wchar (Makefile.am): Likewise.
3165 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3166 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3167 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3168 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3169 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3171 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3172 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3173 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3175 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3177 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3178 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3179 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3180 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3181 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3182 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3183 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3184 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3185 (gl_WCHAR_H_DEFAULTS): Likewise.
3187 2009-12-31 Eric Blake <ebb9@byu.net>
3189 signal, spawn: use link warnings
3190 * lib/signal.in.h (sigset_t): Make unconditional.
3191 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3192 (sigpending, sigprocmask, sigaction): Add link warnings.
3193 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3194 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3195 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3196 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3197 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3198 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3199 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3200 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3201 (posix_spawn_file_actions_destroy)
3202 (posix_spawn_file_actions_addopen)
3203 (posix_spawn_file_actions_addclose)
3204 (posix_spawwn_file_actions_adddup2): Likewise.
3205 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3206 * tests/test-signal.c (main): Enhance test.
3208 spawn: improve wrapper support
3209 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3210 (gl_SPAWN_H_DEFAULTS): New defaults.
3211 * modules/spawn (Makefile.am): Substitute them.
3212 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3213 Only declare if missing or broken.
3215 sys_times, sys_utsname: use include_next
3216 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3218 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3219 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3220 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3221 * modules/sys_times (Depends-on): Add include_next.
3222 (Makefile.am): Substitute additional values.
3223 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3224 * lib/sys_times.in.h (includes): Include native header, if
3226 * lib/sys_utsname.in.h (includes): Likewise.
3227 * tests/test-sys_times.c (main): Enhance test.
3229 fdutimensat: revert prior patch
3230 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3232 Reported by Bruno Haible.
3234 2009-12-30 Eric Blake <ebb9@byu.net>
3236 sys_wait: drop link-warning dependency
3237 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3238 link-warning efforts.
3239 * lib/sys_wait.in.h: Likewise.
3241 fdutimensat: remove bogus dependency
3242 * modules/fdutimensat (Depends-on): Drop inline.
3245 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3247 2009-12-30 Bruno Haible <bruno@clisp.org>
3249 Fix compilation error with Solaris cc.
3250 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3251 * lib/unicase/u16-is-invariant.c: Likewise.
3252 * lib/unicase/u32-is-invariant.c: Likewise.
3253 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3255 2009-12-30 Bruno Haible <bruno@clisp.org>
3258 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3260 Reported by Simon Josefsson <simon@josefsson.org>.
3262 2009-12-30 Bruno Haible <bruno@clisp.org>
3264 Fix compilation error on most platforms.
3265 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3266 Reported by Simon Josefsson <simon@josefsson.org>
3267 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3269 2009-12-30 Eric Blake <ebb9@byu.net>
3271 futimens, utimensat: work around ntfs-3g bug
3272 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3273 a ctime bug is present, and expand workaround to cover ntfs-3g.
3274 * lib/utimens.c (fdutimens, lutimens): Likewise.
3275 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3276 (validate_timespec): Adjust return value.
3277 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3278 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3279 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3281 2009-12-29 Eric Blake <ebb9@byu.net>
3283 link-warning: make usage consistent
3284 * modules/ctype (Depends-on): Add link-warning.
3285 (Makefile.am): Update rules accordingly.
3286 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3287 * modules/locale (Depends-on, Makefile.am): Likewise.
3288 * modules/sys_file (Makefile.am): Likewise.
3289 * modules/getopt-posix (Makefile.am): Delete unused link warning
3291 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3292 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3293 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3294 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3296 stdio: remove unused variables
3297 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3298 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3299 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3301 tests: test more substitute headers
3302 * modules/ctype-tests: New file.
3303 * modules/dirent-tests: Likewise.
3304 * modules/spawn-tests: Likewise.
3305 * modules/sys_file-tests: Likewise.
3306 * modules/sys_ioctl-tests: Likewise.
3307 * modules/sys_wait-tests: Likewise.
3308 * tests/test-ctype.c: Likewise.
3309 * tests/test-dirent.c: Likewise.
3310 * tests/test-spawn.c: Likewise.
3311 * tests/test-sys_file.c: Likewise.
3312 * tests/test-sys_ioctl.c: Likewise.
3313 * tests/test-sys_wait.c: Likewise.
3314 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3315 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3316 whether or not flock is in use.
3318 tests: remove License section from module
3319 * modules/arpa_inet-tests: Remove unneeded section.
3320 * modules/byteswap-tests: Likewise.
3321 * modules/ceilf-tests: Likewise.
3322 * modules/ceill-tests: Likewise.
3323 * modules/crypto/des-tests: Likewise.
3324 * modules/crypto/gc-arcfour-tests: Likewise.
3325 * modules/crypto/gc-arctwo-tests: Likewise.
3326 * modules/crypto/gc-des-tests: Likewise.
3327 * modules/crypto/gc-hmac-md5-tests: Likewise.
3328 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3329 * modules/crypto/gc-md2-tests: Likewise.
3330 * modules/crypto/gc-md4-tests: Likewise.
3331 * modules/crypto/gc-md5-tests: Likewise.
3332 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3333 * modules/crypto/gc-rijndael-tests: Likewise.
3334 * modules/crypto/gc-sha1-tests: Likewise.
3335 * modules/crypto/gc-tests: Likewise.
3336 * modules/crypto/md2-tests: Likewise.
3337 * modules/crypto/md4-tests: Likewise.
3338 * modules/fcntl-h-tests: Likewise.
3339 * modules/floorf-tests: Likewise.
3340 * modules/floorl-tests: Likewise.
3341 * modules/frexp-nolibm-tests: Likewise.
3342 * modules/frexp-tests: Likewise.
3343 * modules/frexpl-nolibm-tests: Likewise.
3344 * modules/frexpl-tests: Likewise.
3345 * modules/getaddrinfo-tests: Likewise.
3346 * modules/inttypes-tests: Likewise.
3347 * modules/isfinite-tests: Likewise.
3348 * modules/isinf-tests: Likewise.
3349 * modules/ldexpl-tests: Likewise.
3350 * modules/locale-tests: Likewise.
3351 * modules/math-tests: Likewise.
3352 * modules/netdb-tests: Likewise.
3353 * modules/netinet_in-tests: Likewise.
3354 * modules/printf-frexp-tests: Likewise.
3355 * modules/printf-frexpl-tests: Likewise.
3356 * modules/priv-set-tests: Likewise.
3357 * modules/random_r-tests: Likewise.
3358 * modules/round-tests: Likewise.
3359 * modules/roundf-tests: Likewise.
3360 * modules/roundl-tests: Likewise.
3361 * modules/search-tests: Likewise.
3362 * modules/select-tests: Likewise.
3363 * modules/signal-tests: Likewise.
3364 * modules/stdbool-tests: Likewise.
3365 * modules/stddef-tests: Likewise.
3366 * modules/stdint-tests: Likewise.
3367 * modules/stdio-tests: Likewise.
3368 * modules/stdlib-tests: Likewise.
3369 * modules/string-tests: Likewise.
3370 * modules/strings-tests: Likewise.
3371 * modules/sys_select-tests: Likewise.
3372 * modules/sys_socket-tests: Likewise.
3373 * modules/sys_stat-tests: Likewise.
3374 * modules/sys_time-tests: Likewise.
3375 * modules/sys_utsname-tests: Likewise.
3376 * modules/sysexits-tests: Likewise.
3377 * modules/time-tests: Likewise.
3378 * modules/trunc-tests: Likewise.
3379 * modules/truncf-tests: Likewise.
3380 * modules/truncl-tests: Likewise.
3381 * modules/tsearch-tests: Likewise.
3382 * modules/unistd-tests: Likewise.
3383 * modules/wchar-tests: Likewise.
3384 * modules/wctype-tests: Likewise.
3386 tests: fix license on several tests
3387 * tests/test-des.c: Update to GPLv3+.
3388 * tests/test-flock.c: Likewise.
3389 * tests/test-fsync.c: Likewise.
3390 * tests/test-futimens.h: Likewise.
3391 * tests/test-gc-arcfour.c: Likewise.
3392 * tests/test-gc-arctwo.c: Likewise.
3393 * tests/test-gc-des.c: Likewise.
3394 * tests/test-gc-hmac-md5.c: Likewise.
3395 * tests/test-gc-hmac-sha1.c: Likewise.
3396 * tests/test-gc-md2.c: Likewise.
3397 * tests/test-gc-md4.c: Likewise.
3398 * tests/test-gc-md5.c: Likewise.
3399 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3400 * tests/test-gc-rijndael.c: Likewise.
3401 * tests/test-gc-sha1.c: Likewise.
3402 * tests/test-gc.c: Likewise.
3403 * tests/test-getcwd.c: Likewise.
3404 * tests/test-link.c: Likewise.
3405 * tests/test-link.h: Likewise.
3406 * tests/test-lutimens.h: Likewise.
3407 * tests/test-md2.c: Likewise.
3408 * tests/test-md4.c: Likewise.
3409 * tests/test-mkdir.h: Likewise.
3410 * tests/test-rename.c: Likewise.
3411 * tests/test-rename.h: Likewise.
3412 * tests/test-safe-alloc.c: Likewise.
3413 * tests/test-utimens-common.h: Likewise.
3414 * tests/test-utimens.h: Likewise.
3416 maint: sync license texts
3417 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3418 * doc/gpl-3.0.texi: Revert copyright year update.
3419 * doc/lgpl-3.0.texi: Likewise.
3421 2009-12-29 Jim Meyering <meyering@redhat.com>
3423 update nearly all FSF copyright year lists to include 2009
3424 The files named by the following are exempted:
3425 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3426 test -f "$dst" && { echo "$dst"; continue; }
3427 test -d "$dst" || continue
3428 echo "$dst"/$(basename "$src")
3430 git ls-files tests/unictype >> exempt
3431 In the remaining files, convert to all-interval notation if
3432 - there is already at least one year interval like 2000-2003
3433 - the file is maintained by me
3434 - the file is in lib/uni*/, where that style already prevails
3435 Otherwise, use update-copyright's default.
3437 2009-12-29 Simon Josefsson <simon@josefsson.org>
3438 and Eric Blake <ebb9@byu.net>
3440 tests: don't require debug system() to pass
3441 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3442 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3443 * tests/test-unlink.h (test_unlink_func): Likewise.
3444 * tests/test-fstatat.c (main): ...into callers.
3445 * tests/test-lstat.c (main): Likewise.
3446 * tests/test-rmdir.c (main): Likewise.
3447 * tests/test-unlink.c (main): Likewise.
3448 * tests/test-unlinkat.c (main): Likewise.
3449 * tests/test-areadlink-with-size.c (main): Don't require a
3450 debug-only system call to pass, aiding cross-testing to mingw.
3451 * tests/test-areadlink.c (main): Likewise.
3452 * tests/test-areadlinkat-with-size.c (main): Likewise.
3453 * tests/test-areadlinkat.c (main): Likewise.
3454 * tests/test-canonicalize-lgpl.c (main): Likewise.
3455 * tests/test-canonicalize.c (main): Likewise.
3456 * tests/test-chown.c (main): Likewise.
3457 * tests/test-fchownat.c (main): Likewise.
3458 * tests/test-lchown.c (main): Likewise.
3459 * tests/test-fdutimensat.c (main): Likewise.
3460 * tests/test-futimens.c (main): Likewise.
3461 * tests/test-link.c (main): Likewise.
3462 * tests/test-linkat.c (main): Likewise.
3463 * tests/test-mkdir.c (main): Likewise.
3464 * tests/test-mkdirat.c (main): Likewise.
3465 * tests/test-mkfifo.c (main): Likewise.
3466 * tests/test-mkfifoat.c (main): Likewise.
3467 * tests/test-mknod.c (main): Likewise.
3468 * tests/test-readlink.c (main): Likewise.
3469 * tests/test-remove.c (main): Likewise.
3470 * tests/test-rename.c (main): Likewise.
3471 * tests/test-renameat.c (main): Likewise.
3472 * tests/test-symlink.c (main): Likewise.
3473 * tests/test-symlinkat.c (main): Likewise.
3474 * tests/test-utimens.c (main): Likewise.
3475 * tests/test-utimensat.c (main): Likewise.
3477 2009-12-29 Simon Josefsson <simon@josefsson.org>
3479 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3480 on $(UNUSED_PARAMETER_H) to avoid build failure.
3482 2009-12-28 Jim Meyering <meyering@redhat.com>
3484 update-copyright: you may specify a max. line length other than 72
3485 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3487 maint: use consistent FSF copyright line syntax
3488 * lib/posixtm.c: Add missing comma in FSF copyright line.
3489 * lib/posixtm.h: Likewise.
3490 * lib/getugroups.c: Add missing ", Inc.".
3492 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3493 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3494 FSF copyright line. Remove trailing blanks.
3496 2009-12-28 Eric Blake <ebb9@byu.net>
3498 test-dup2: reduce dependencies
3499 * modules/cloexec (Configure.ac): Set witness.
3500 * modules/dup2-tests (Depends-on): Drop cloexec.
3501 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3503 Suggested by Bruno Haible.
3505 2009-12-26 Bruno Haible <bruno@clisp.org>
3507 Remove an unneeded dependency.
3508 * modules/fseterr (Depends-on): Remove dup2.
3510 2009-12-26 Eric Blake <ebb9@byu.net>
3512 tests: use macros.h in more places
3513 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3514 (ASSERT_STREAM): Provide default of stderr.
3515 * tests/test-dirent-safer.c: Include macros.h, using alternate
3516 stream for assertions.
3517 * tests/test-dup-safer.c: Likewise.
3518 * tests/test-freopen-safer.c: Likewise.
3519 * tests/test-getopt.c: Likewise.
3520 * tests/test-openat-safer.c: Likewise.
3521 * tests/test-pipe.c: Likewise.
3522 * tests/test-popen-safer.c: Likewise.
3523 * modules/dirent-safer-tests (Files): Include macros.h.
3524 * modules/unistd-safer-tests (Files): Likewise.
3525 * modules/freopen-safer-tests (Files): Likewise.
3526 * modules/getopt-posix-tests (Files): Likewise.
3527 * modules/openat-safer-tests (Files): Likewise.
3528 * modules/pipe-tests (Files): Likewise.
3530 2009-12-26 Bruno Haible <bruno@clisp.org>
3532 javacomp: Portability fix.
3533 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3534 that it also works on Solaris.
3536 2009-12-26 Bruno Haible <bruno@clisp.org>
3538 localename: Fix storage allocation of gl_locale_name_thread's result.
3539 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3540 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3541 all platforms that have 'uselocale'.
3542 (gl_locale_name_thread_unsafe): New function, extracted from
3543 gl_locale_name_thread.
3544 (gl_locale_name_thread): Call struniq on all platforms that have
3546 * tests/test-localename.c (test_locale_name_thread): Check that the
3547 resulting strings are permanently allocated.
3548 * modules/localename-tests (Depends-on): Add strdup.
3550 2009-12-26 Bruno Haible <bruno@clisp.org>
3552 * tests/test-localename.c (categories): Fill in the strings.
3554 2009-12-26 Jim Meyering <meyering@redhat.com>
3556 isdir: complete the removal of m4/isdir.m4
3557 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3559 isdir: clean up, since at least grep still uses it
3560 * lib/isdir.c: Include "isdir.h".
3561 (S_ISDIR): Remove now-unneeded definition.
3562 * modules/isdir (Files): Add lib/isdir.h.
3563 * lib/isdir.h: New file, with declaration.
3564 * m4/isdir.m4: Remove file -- unneeded.
3566 2009-12-25 Bruno Haible <bruno@clisp.org>
3568 selinux-h: Make generated .h files standalone.
3569 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3570 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3571 * lib/se-selinux.in.h: Likewise.
3572 * modules/selinux-h (Depends-on): Add unused-parameter.
3573 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3574 selinux/selinux.h and selinux/context.h.
3575 Suggested by Eric Blake.
3577 2009-12-25 Bruno Haible <bruno@clisp.org>
3579 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3580 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3581 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3582 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3583 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3585 2009-12-24 Bruno Haible <bruno@clisp.org>
3587 openat: Fix warning.
3588 * lib/openat-proc.c: Include <unistd.h>.
3590 2009-12-24 Bruno Haible <bruno@clisp.org>
3592 New module 'unused-parameter'.
3593 * build-aux/unused-parameter.h: New file, extracted from earlier
3595 * modules/unused-parameter: New file.
3596 * lib/unistr.h: Include unused-parameter.h.
3597 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3599 * modules/unistr/base (Depends-on): Add unused-parameter.
3601 2009-12-24 Bruno Haible <bruno@clisp.org>
3603 Add missing dependencies to 'extensions' module.
3604 * m4/extensions.m4: Add comment.
3605 * modules/accept4 (Depends-on): Add extensions.
3606 * modules/dup3 (Depends-on): Likewise.
3607 * modules/fcntl (Depends-on): Likewise.
3608 * modules/futimens (Depends-on): Likewise.
3609 * modules/mknod (Depends-on): Likewise.
3610 * modules/pipe2 (Depends-on): Likewise.
3611 * modules/stat-time (Depends-on): Likewise.
3612 * modules/strcasestr-simple (Depends-on): Likewise.
3613 * modules/strsignal (Depends-on): Likewise.
3614 * modules/utimensat (Depends-on): Likewise.
3615 * modules/localcharset (Depends-on): Likewise. Needed because of
3617 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3619 * modules/wcsnrtombs (Depends-on): Likewise.
3620 * modules/wcsrtombs (Depends-on): Likewise.
3622 2009-12-24 Bruno Haible <bruno@clisp.org>
3624 binary-io: Avoid gcc warning due to SET_BINARY.
3625 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3626 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3628 2009-12-24 Bruno Haible <bruno@clisp.org>
3630 Avoid future namespace pollution on glibc systems.
3631 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3632 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3633 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3636 2009-12-24 Bruno Haible <bruno@clisp.org>
3638 Refactor common macros used in tests.
3639 * tests/macros.h: New file.
3640 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3641 and/or <stdlib.h>, if appropriate.
3642 (ASSERT, SIZEOF): Remove macros.
3643 * tests/test-areadlink-with-size.c: Likewise.
3644 * tests/test-areadlinkat.c: Likewise.
3645 * tests/test-areadlinkat-with-size.c: Likewise.
3646 * tests/test-argmatch.c: Likewise.
3647 * tests/test-argv-iter.c: Likewise.
3648 * tests/test-array-mergesort.c: Likewise.
3649 * tests/test-array_list.c: Likewise.
3650 * tests/test-array_oset.c: Likewise.
3651 * tests/test-avltree_list.c: Likewise.
3652 * tests/test-avltree_oset.c: Likewise.
3653 * tests/test-avltreehash_list.c: Likewise.
3654 * tests/test-base64.c: Likewise.
3655 * tests/test-binary-io.c: Likewise.
3656 * tests/test-bitrotate.c: Likewise.
3657 * tests/test-btowc.c: Likewise.
3658 * tests/test-byteswap.c: Likewise.
3659 * tests/test-c-ctype.c: Likewise.
3660 * tests/test-c-stack.c: Likewise.
3661 * tests/test-c-strcasecmp.c: Likewise.
3662 * tests/test-c-strcasestr.c: Likewise.
3663 * tests/test-c-strncasecmp.c: Likewise.
3664 * tests/test-c-strstr.c: Likewise.
3665 * tests/test-canonicalize-lgpl.c: Likewise.
3666 * tests/test-canonicalize.c: Likewise.
3667 * tests/test-carray_list.c: Likewise.
3668 * tests/test-ceilf1.c: Likewise.
3669 * tests/test-ceilf2.c: Likewise.
3670 * tests/test-ceill.c: Likewise.
3671 * tests/test-chown.c: Likewise.
3672 * tests/test-cloexec.c: Likewise.
3673 * tests/test-copy-acl.c: Likewise.
3674 * tests/test-copy-file.c: Likewise.
3675 * tests/test-count-one-bits.c: Likewise.
3676 * tests/test-dprintf-posix.c: Likewise.
3677 * tests/test-dup2.c: Likewise.
3678 * tests/test-dup3.c: Likewise.
3679 * tests/test-duplocale.c: Likewise.
3680 * tests/test-fbufmode.c: Likewise.
3681 * tests/test-fchdir.c: Likewise.
3682 * tests/test-fchownat.c: Likewise.
3683 * tests/test-fcntl-safer.c: Likewise.
3684 * tests/test-fcntl.c: Likewise.
3685 * tests/test-fdopendir.c: Likewise.
3686 * tests/test-fdutimensat.c: Likewise.
3687 * tests/test-fflush2.c: Likewise.
3688 * tests/test-file-has-acl.c: Likewise.
3689 * tests/test-filevercmp.c: Likewise.
3690 * tests/test-flock.c: Likewise.
3691 * tests/test-floorf1.c: Likewise.
3692 * tests/test-floorf2.c: Likewise.
3693 * tests/test-floorl.c: Likewise.
3694 * tests/test-fnmatch.c: Likewise.
3695 * tests/test-fopen.h: Likewise.
3696 * tests/test-fpending.c: Likewise.
3697 * tests/test-fprintf-posix.c: Likewise.
3698 * tests/test-fpurge.c: Likewise.
3699 * tests/test-freadable.c: Likewise.
3700 * tests/test-freadahead.c: Likewise.
3701 * tests/test-freading.c: Likewise.
3702 * tests/test-freadptr.c: Likewise.
3703 * tests/test-freadptr2.c: Likewise.
3704 * tests/test-freadseek.c: Likewise.
3705 * tests/test-freopen.c: Likewise.
3706 * tests/test-frexp.c: Likewise.
3707 * tests/test-frexpl.c: Likewise.
3708 * tests/test-fseek.c: Likewise.
3709 * tests/test-fseeko.c: Likewise.
3710 * tests/test-fstatat.c: Likewise.
3711 * tests/test-fstrcmp.c: Likewise.
3712 * tests/test-fsync.c: Likewise.
3713 * tests/test-ftell.c: Likewise.
3714 * tests/test-ftello.c: Likewise.
3715 * tests/test-func.c: Likewise.
3716 * tests/test-futimens.c: Likewise.
3717 * tests/test-fwritable.c: Likewise.
3718 * tests/test-fwriting.c: Likewise.
3719 * tests/test-getcwd.c: Likewise.
3720 * tests/test-getdate.c: Likewise.
3721 * tests/test-getdelim.c: Likewise.
3722 * tests/test-getdtablesize.c: Likewise.
3723 * tests/test-getgroups.c: Likewise.
3724 * tests/test-getline.c: Likewise.
3725 * tests/test-getndelim2.c: Likewise.
3726 * tests/test-glob.c: Likewise.
3727 * tests/test-hash.c: Likewise.
3728 * tests/test-i-ring.c: Likewise.
3729 * tests/test-iconv-utf.c: Likewise.
3730 * tests/test-iconv.c: Likewise.
3731 * tests/test-idpriv-drop.c: Likewise.
3732 * tests/test-idpriv-droptemp.c: Likewise.
3733 * tests/test-inet_ntop.c: Likewise.
3734 * tests/test-inet_pton.c: Likewise.
3735 * tests/test-isblank.c: Likewise.
3736 * tests/test-isfinite.c: Likewise.
3737 * tests/test-isinf.c: Likewise.
3738 * tests/test-isnan.c: Likewise.
3739 * tests/test-isnand.h: Likewise.
3740 * tests/test-isnanf.h: Likewise.
3741 * tests/test-isnanl.h: Likewise.
3742 * tests/test-lchown.c: Likewise.
3743 * tests/test-ldexpl.c: Likewise.
3744 * tests/test-link.c: Likewise.
3745 * tests/test-linkat.c: Likewise.
3746 * tests/test-linked_list.c: Likewise.
3747 * tests/test-linkedhash_list.c: Likewise.
3748 * tests/test-localename.c: Likewise.
3749 * tests/test-lseek.c: Likewise.
3750 * tests/test-lstat.c: Likewise.
3751 * tests/test-mbmemcasecmp.c: Likewise.
3752 * tests/test-mbmemcasecoll.c: Likewise.
3753 * tests/test-mbrtowc.c: Likewise.
3754 * tests/test-mbscasecmp.c: Likewise.
3755 * tests/test-mbscasestr1.c: Likewise.
3756 * tests/test-mbscasestr2.c: Likewise.
3757 * tests/test-mbscasestr3.c: Likewise.
3758 * tests/test-mbscasestr4.c: Likewise.
3759 * tests/test-mbschr.c: Likewise.
3760 * tests/test-mbscspn.c: Likewise.
3761 * tests/test-mbsinit.c: Likewise.
3762 * tests/test-mbsncasecmp.c: Likewise.
3763 * tests/test-mbsnrtowcs.c: Likewise.
3764 * tests/test-mbspbrk.c: Likewise.
3765 * tests/test-mbspcasecmp.c: Likewise.
3766 * tests/test-mbsrchr.c: Likewise.
3767 * tests/test-mbsrtowcs.c: Likewise.
3768 * tests/test-mbsspn.c: Likewise.
3769 * tests/test-mbsstr1.c: Likewise.
3770 * tests/test-mbsstr2.c: Likewise.
3771 * tests/test-mbsstr3.c: Likewise.
3772 * tests/test-memchr.c: Likewise.
3773 * tests/test-memchr2.c: Likewise.
3774 * tests/test-memcmp.c: Likewise.
3775 * tests/test-memmem.c: Likewise.
3776 * tests/test-memrchr.c: Likewise.
3777 * tests/test-mkdir.c: Likewise.
3778 * tests/test-mkdirat.c: Likewise.
3779 * tests/test-mkfifo.c: Likewise.
3780 * tests/test-mkfifoat.c: Likewise.
3781 * tests/test-mknod.c: Likewise.
3782 * tests/test-nanosleep.c: Likewise.
3783 * tests/test-nl_langinfo.c: Likewise.
3784 * tests/test-obstack-printf.c: Likewise.
3785 * tests/test-open.c: Likewise.
3786 * tests/test-openat.c: Likewise.
3787 * tests/test-pipe-filter-gi1.c: Likewise.
3788 * tests/test-pipe-filter-gi2-main.c: Likewise.
3789 * tests/test-pipe-filter-ii1.c: Likewise.
3790 * tests/test-pipe-filter-ii2-main.c: Likewise.
3791 * tests/test-pipe2.c: Likewise.
3792 * tests/test-popen.h: Likewise.
3793 * tests/test-posixtm.c: Likewise.
3794 * tests/test-pread.c: Likewise.
3795 * tests/test-printf-frexp.c: Likewise.
3796 * tests/test-printf-frexpl.c: Likewise.
3797 * tests/test-printf-posix.c: Likewise.
3798 * tests/test-priv-set.c: Likewise.
3799 * tests/test-quotearg.c: Likewise.
3800 * tests/test-random_r.c: Likewise.
3801 * tests/test-rawmemchr.c: Likewise.
3802 * tests/test-rbtree_list.c: Likewise.
3803 * tests/test-rbtree_oset.c: Likewise.
3804 * tests/test-rbtreehash_list.c: Likewise.
3805 * tests/test-readlink.c: Likewise.
3806 * tests/test-remove.c: Likewise.
3807 * tests/test-rename.c: Likewise.
3808 * tests/test-renameat.c: Likewise.
3809 * tests/test-rmdir.c: Likewise.
3810 * tests/test-round1.c: Likewise.
3811 * tests/test-roundf1.c: Likewise.
3812 * tests/test-roundl.c: Likewise.
3813 * tests/test-safe-alloc.c: Likewise.
3814 * tests/test-sameacls.c: Likewise.
3815 * tests/test-set-mode-acl.c: Likewise.
3816 * tests/test-setenv.c: Likewise.
3817 * tests/test-sigaction.c: Likewise.
3818 * tests/test-signbit.c: Likewise.
3819 * tests/test-sleep.c: Likewise.
3820 * tests/test-snprintf-posix.c: Likewise.
3821 * tests/test-snprintf.c: Likewise.
3822 * tests/test-sprintf-posix.c: Likewise.
3823 * tests/test-stat-time.c: Likewise.
3824 * tests/test-stat.c: Likewise.
3825 * tests/test-strcasestr.c: Likewise.
3826 * tests/test-strchrnul.c: Likewise.
3827 * tests/test-strerror.c: Likewise.
3828 * tests/test-striconv.c: Likewise.
3829 * tests/test-striconveh.c: Likewise.
3830 * tests/test-striconveha.c: Likewise.
3831 * tests/test-strsignal.c: Likewise.
3832 * tests/test-strstr.c: Likewise.
3833 * tests/test-strtod.c: Likewise.
3834 * tests/test-strverscmp.c: Likewise.
3835 * tests/test-symlink.c: Likewise.
3836 * tests/test-symlinkat.c: Likewise.
3837 * tests/test-trunc1.c: Likewise.
3838 * tests/test-trunc2.c: Likewise.
3839 * tests/test-truncf1.c: Likewise.
3840 * tests/test-truncf2.c: Likewise.
3841 * tests/test-truncl.c: Likewise.
3842 * tests/test-uname.c: Likewise.
3843 * tests/test-unlink.c: Likewise.
3844 * tests/test-unlinkat.c: Likewise.
3845 * tests/test-unsetenv.c: Likewise.
3846 * tests/test-usleep.c: Likewise.
3847 * tests/test-utimens.c: Likewise.
3848 * tests/test-utimensat.c: Likewise.
3849 * tests/test-vasnprintf-posix.c: Likewise.
3850 * tests/test-vasnprintf-posix2.c: Likewise.
3851 * tests/test-vasnprintf.c: Likewise.
3852 * tests/test-vasprintf-posix.c: Likewise.
3853 * tests/test-vasprintf.c: Likewise.
3854 * tests/test-vdprintf-posix.c: Likewise.
3855 * tests/test-vfprintf-posix.c: Likewise.
3856 * tests/test-vprintf-posix.c: Likewise.
3857 * tests/test-vsnprintf-posix.c: Likewise.
3858 * tests/test-vsnprintf.c: Likewise.
3859 * tests/test-vsprintf-posix.c: Likewise.
3860 * tests/test-wcrtomb.c: Likewise.
3861 * tests/test-wcsnrtombs.c: Likewise.
3862 * tests/test-wcsrtombs.c: Likewise.
3863 * tests/test-wctype.c: Likewise.
3864 * tests/test-wcwidth.c: Likewise.
3865 * tests/test-xfprintf-posix.c: Likewise.
3866 * tests/test-xmemdup0.c: Likewise.
3867 * tests/test-xprintf-posix.c: Likewise.
3868 * tests/test-xvasprintf.c: Likewise.
3869 * tests/unicase/test-locale-language.c: Likewise.
3870 * tests/unicase/test-mapping-part1.h: Likewise.
3871 * tests/unicase/test-predicate-part1.h: Likewise.
3872 * tests/unicase/test-u8-casecmp.c: Likewise.
3873 * tests/unicase/test-u8-casecoll.c: Likewise.
3874 * tests/unicase/test-u8-casefold.c: Likewise.
3875 * tests/unicase/test-u8-is-cased.c: Likewise.
3876 * tests/unicase/test-u8-is-casefolded.c: Likewise.
3877 * tests/unicase/test-u8-is-lowercase.c: Likewise.
3878 * tests/unicase/test-u8-is-titlecase.c: Likewise.
3879 * tests/unicase/test-u8-is-uppercase.c: Likewise.
3880 * tests/unicase/test-u8-tolower.c: Likewise.
3881 * tests/unicase/test-u8-totitle.c: Likewise.
3882 * tests/unicase/test-u8-toupper.c: Likewise.
3883 * tests/unicase/test-u16-casecmp.c: Likewise.
3884 * tests/unicase/test-u16-casecoll.c: Likewise.
3885 * tests/unicase/test-u16-casefold.c: Likewise.
3886 * tests/unicase/test-u16-is-cased.c: Likewise.
3887 * tests/unicase/test-u16-is-casefolded.c: Likewise.
3888 * tests/unicase/test-u16-is-lowercase.c: Likewise.
3889 * tests/unicase/test-u16-is-titlecase.c: Likewise.
3890 * tests/unicase/test-u16-is-uppercase.c: Likewise.
3891 * tests/unicase/test-u16-tolower.c: Likewise.
3892 * tests/unicase/test-u16-totitle.c: Likewise.
3893 * tests/unicase/test-u16-toupper.c: Likewise.
3894 * tests/unicase/test-u32-casecmp.c: Likewise.
3895 * tests/unicase/test-u32-casecoll.c: Likewise.
3896 * tests/unicase/test-u32-casefold.c: Likewise.
3897 * tests/unicase/test-u32-is-cased.c: Likewise.
3898 * tests/unicase/test-u32-is-casefolded.c: Likewise.
3899 * tests/unicase/test-u32-is-lowercase.c: Likewise.
3900 * tests/unicase/test-u32-is-titlecase.c: Likewise.
3901 * tests/unicase/test-u32-is-uppercase.c: Likewise.
3902 * tests/unicase/test-u32-tolower.c: Likewise.
3903 * tests/unicase/test-u32-totitle.c: Likewise.
3904 * tests/unicase/test-u32-toupper.c: Likewise.
3905 * tests/unicase/test-ulc-casecmp.c: Likewise.
3906 * tests/unicase/test-ulc-casecoll.c: Likewise.
3907 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3908 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3909 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3910 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3911 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3912 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3913 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3914 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3915 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3916 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3917 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3918 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3919 * tests/unictype/test-bidi_byname.c: Likewise.
3920 * tests/unictype/test-bidi_name.c: Likewise.
3921 * tests/unictype/test-bidi_of.c: Likewise.
3922 * tests/unictype/test-bidi_test.c: Likewise.
3923 * tests/unictype/test-block_list.c: Likewise.
3924 * tests/unictype/test-block_of.c: Likewise.
3925 * tests/unictype/test-block_test.c: Likewise.
3926 * tests/unictype/test-categ_and.c: Likewise.
3927 * tests/unictype/test-categ_and_not.c: Likewise.
3928 * tests/unictype/test-categ_byname.c: Likewise.
3929 * tests/unictype/test-categ_name.c: Likewise.
3930 * tests/unictype/test-categ_none.c: Likewise.
3931 * tests/unictype/test-categ_of.c: Likewise.
3932 * tests/unictype/test-categ_or.c: Likewise.
3933 * tests/unictype/test-categ_test_withtable.c: Likewise.
3934 * tests/unictype/test-combining.c: Likewise.
3935 * tests/unictype/test-decdigit.c: Likewise.
3936 * tests/unictype/test-digit.c: Likewise.
3937 * tests/unictype/test-mirror.c: Likewise.
3938 * tests/unictype/test-numeric.c: Likewise.
3939 * tests/unictype/test-pr_byname.c: Likewise.
3940 * tests/unictype/test-pr_test.c: Likewise.
3941 * tests/unictype/test-predicate-part1.h: Likewise.
3942 * tests/unictype/test-scripts.c: Likewise.
3943 * tests/unictype/test-sy_c_ident.c: Likewise.
3944 * tests/unictype/test-sy_java_ident.c: Likewise.
3945 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3946 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3947 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3948 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3949 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3950 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3951 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3952 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3953 * tests/uninorm/test-canonical-decomposition.c: Likewise.
3954 * tests/uninorm/test-compat-decomposition.c: Likewise.
3955 * tests/uninorm/test-composition.c: Likewise.
3956 * tests/uninorm/test-decomposing-form.c: Likewise.
3957 * tests/uninorm/test-decomposition.c: Likewise.
3958 * tests/uninorm/test-u8-nfc.c: Likewise.
3959 * tests/uninorm/test-u8-nfd.c: Likewise.
3960 * tests/uninorm/test-u8-nfkc.c: Likewise.
3961 * tests/uninorm/test-u8-nfkd.c: Likewise.
3962 * tests/uninorm/test-u8-normcmp.c: Likewise.
3963 * tests/uninorm/test-u8-normcoll.c: Likewise.
3964 * tests/uninorm/test-u16-nfc.c: Likewise.
3965 * tests/uninorm/test-u16-nfd.c: Likewise.
3966 * tests/uninorm/test-u16-nfkc.c: Likewise.
3967 * tests/uninorm/test-u16-nfkd.c: Likewise.
3968 * tests/uninorm/test-u16-normcmp.c: Likewise.
3969 * tests/uninorm/test-u16-normcoll.c: Likewise.
3970 * tests/uninorm/test-u32-nfc.c: Likewise.
3971 * tests/uninorm/test-u32-nfd.c: Likewise.
3972 * tests/uninorm/test-u32-nfkc.c: Likewise.
3973 * tests/uninorm/test-u32-nfkd.c: Likewise.
3974 * tests/uninorm/test-u32-normalize-big.c: Likewise.
3975 * tests/uninorm/test-u32-normcmp.c: Likewise.
3976 * tests/uninorm/test-u32-normcoll.c: Likewise.
3977 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3978 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3979 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3980 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3981 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3982 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3983 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3984 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3985 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3986 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3987 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3988 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3989 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3990 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3991 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3992 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3993 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3994 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3995 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3996 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3997 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3998 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3999 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4000 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4001 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4002 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4003 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4004 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4005 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4006 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4007 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4008 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4009 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4010 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4011 * tests/uniwidth/test-u8-width.c: Likewise.
4012 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4013 * tests/uniwidth/test-u16-width.c: Likewise.
4014 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4015 * tests/uniwidth/test-u32-width.c: Likewise.
4016 * tests/uniwidth/test-uc_width.c: Likewise.
4017 * tests/uniwidth/test-uc_width2.c: Likewise.
4018 * modules/acl-tests (Files): Add tests/macros.h.
4019 * modules/areadlink-tests (Files): Likewise.
4020 * modules/areadlink-with-size-tests (Files): Likewise.
4021 * modules/areadlinkat-tests (Files): Likewise.
4022 * modules/areadlinkat-with-size-tests (Files): Likewise.
4023 * modules/argmatch-tests (Files): Likewise.
4024 * modules/argv-iter-tests (Files): Likewise.
4025 * modules/array-list-tests (Files): Likewise.
4026 * modules/array-mergesort-tests (Files): Likewise.
4027 * modules/array-oset-tests (Files): Likewise.
4028 * modules/avltree-list-tests (Files): Likewise.
4029 * modules/avltree-oset-tests (Files): Likewise.
4030 * modules/avltreehash-list-tests (Files): Likewise.
4031 * modules/base64-tests (Files): Likewise.
4032 * modules/binary-io-tests (Files): Likewise.
4033 * modules/bitrotate-tests (Files): Likewise.
4034 * modules/btowc-tests (Files): Likewise.
4035 * modules/byteswap-tests (Files): Likewise.
4036 * modules/c-ctype-tests (Files): Likewise.
4037 * modules/c-stack-tests (Files): Likewise.
4038 * modules/c-strcase-tests (Files): Likewise.
4039 * modules/c-strcasestr-tests (Files): Likewise.
4040 * modules/c-strstr-tests (Files): Likewise.
4041 * modules/canonicalize-lgpl-tests (Files): Likewise.
4042 * modules/canonicalize-tests (Files): Likewise.
4043 * modules/carray-list-tests (Files): Likewise.
4044 * modules/ceilf-tests (Files): Likewise.
4045 * modules/ceill-tests (Files): Likewise.
4046 * modules/chown-tests (Files): Likewise.
4047 * modules/cloexec-tests (Files): Likewise.
4048 * modules/copy-file-tests (Files): Likewise.
4049 * modules/count-one-bits-tests (Files): Likewise.
4050 * modules/dprintf-posix-tests (Files): Likewise.
4051 * modules/dup2-tests (Files): Likewise.
4052 * modules/dup3-tests (Files): Likewise.
4053 * modules/duplocale-tests (Files): Likewise.
4054 * modules/fbufmode-tests (Files): Likewise.
4055 * modules/fchdir-tests (Files): Likewise.
4056 * modules/fcntl-safer-tests (Files): Likewise.
4057 * modules/fcntl-tests (Files): Likewise.
4058 * modules/fdopendir-tests (Files): Likewise.
4059 * modules/fdutimensat-tests (Files): Likewise.
4060 * modules/fflush-tests (Files): Likewise.
4061 * modules/filevercmp-tests (Files): Likewise.
4062 * modules/flock-tests (Files): Likewise.
4063 * modules/floorf-tests (Files): Likewise.
4064 * modules/floorl-tests (Files): Likewise.
4065 * modules/fnmatch-tests (Files): Likewise.
4066 * modules/fopen-safer-tests (Files): Likewise.
4067 * modules/fopen-tests (Files): Likewise.
4068 * modules/fpending-tests (Files): Likewise.
4069 * modules/fprintf-posix-tests (Files): Likewise.
4070 * modules/fpurge-tests (Files): Likewise.
4071 * modules/freadable-tests (Files): Likewise.
4072 * modules/freadahead-tests (Files): Likewise.
4073 * modules/freading-tests (Files): Likewise.
4074 * modules/freadptr-tests (Files): Likewise.
4075 * modules/freadseek-tests (Files): Likewise.
4076 * modules/freopen-tests (Files): Likewise.
4077 * modules/frexp-nolibm-tests (Files): Likewise.
4078 * modules/frexp-tests (Files): Likewise.
4079 * modules/frexpl-nolibm-tests (Files): Likewise.
4080 * modules/frexpl-tests (Files): Likewise.
4081 * modules/fseek-tests (Files): Likewise.
4082 * modules/fseeko-tests (Files): Likewise.
4083 * modules/fstrcmp-tests (Files): Likewise.
4084 * modules/fsync-tests (Files): Likewise.
4085 * modules/ftell-tests (Files): Likewise.
4086 * modules/ftello-tests (Files): Likewise.
4087 * modules/func-tests (Files): Likewise.
4088 * modules/futimens-tests (Files): Likewise.
4089 * modules/fwritable-tests (Files): Likewise.
4090 * modules/fwriting-tests (Files): Likewise.
4091 * modules/getcwd-tests (Files): Likewise.
4092 * modules/getdate-tests (Files): Likewise.
4093 * modules/getdelim-tests (Files): Likewise.
4094 * modules/getdtablesize-tests (Files): Likewise.
4095 * modules/getgroups-tests (Files): Likewise.
4096 * modules/getline-tests (Files): Likewise.
4097 * modules/getndelim2-tests (Files): Likewise.
4098 * modules/glob-tests (Files): Likewise.
4099 * modules/hash-tests (Files): Likewise.
4100 * modules/i-ring-tests (Files): Likewise.
4101 * modules/iconv-tests (Files): Likewise.
4102 * modules/iconv_open-utf-tests (Files): Likewise.
4103 * modules/idpriv-drop-tests (Files): Likewise.
4104 * modules/idpriv-droptemp-tests (Files): Likewise.
4105 * modules/inet_ntop-tests (Files): Likewise.
4106 * modules/inet_pton-tests (Files): Likewise.
4107 * modules/isblank-tests (Files): Likewise.
4108 * modules/isfinite-tests (Files): Likewise.
4109 * modules/isinf-tests (Files): Likewise.
4110 * modules/isnan-tests (Files): Likewise.
4111 * modules/isnand-nolibm-tests (Files): Likewise.
4112 * modules/isnand-tests (Files): Likewise.
4113 * modules/isnanf-nolibm-tests (Files): Likewise.
4114 * modules/isnanf-tests (Files): Likewise.
4115 * modules/isnanl-nolibm-tests (Files): Likewise.
4116 * modules/isnanl-tests (Files): Likewise.
4117 * modules/lchown-tests (Files): Likewise.
4118 * modules/ldexpl-tests (Files): Likewise.
4119 * modules/link-tests (Files): Likewise.
4120 * modules/linkat-tests (Files): Likewise.
4121 * modules/linked-list-tests (Files): Likewise.
4122 * modules/linkedhash-list-tests (Files): Likewise.
4123 * modules/localename-tests (Files): Likewise.
4124 * modules/lseek-tests (Files): Likewise.
4125 * modules/lstat-tests (Files): Likewise.
4126 * modules/mbmemcasecmp-tests (Files): Likewise.
4127 * modules/mbmemcasecoll-tests (Files): Likewise.
4128 * modules/mbrtowc-tests (Files): Likewise.
4129 * modules/mbscasecmp-tests (Files): Likewise.
4130 * modules/mbscasestr-tests (Files): Likewise.
4131 * modules/mbschr-tests (Files): Likewise.
4132 * modules/mbscspn-tests (Files): Likewise.
4133 * modules/mbsinit-tests (Files): Likewise.
4134 * modules/mbsncasecmp-tests (Files): Likewise.
4135 * modules/mbsnrtowcs-tests (Files): Likewise.
4136 * modules/mbspbrk-tests (Files): Likewise.
4137 * modules/mbspcasecmp-tests (Files): Likewise.
4138 * modules/mbsrchr-tests (Files): Likewise.
4139 * modules/mbsrtowcs-tests (Files): Likewise.
4140 * modules/mbsspn-tests (Files): Likewise.
4141 * modules/mbsstr-tests (Files): Likewise.
4142 * modules/memchr-tests (Files): Likewise.
4143 * modules/memchr2-tests (Files): Likewise.
4144 * modules/memcmp-tests (Files): Likewise.
4145 * modules/memmem-tests (Files): Likewise.
4146 * modules/memrchr-tests (Files): Likewise.
4147 * modules/mkdir-tests (Files): Likewise.
4148 * modules/mkfifo-tests (Files): Likewise.
4149 * modules/mkfifoat-tests (Files): Likewise.
4150 * modules/mknod-tests (Files): Likewise.
4151 * modules/nanosleep-tests (Files): Likewise.
4152 * modules/nl_langinfo-tests (Files): Likewise.
4153 * modules/obstack-printf-tests (Files): Likewise.
4154 * modules/open-tests (Files): Likewise.
4155 * modules/openat-tests (Files): Likewise.
4156 * modules/pipe-filter-gi-tests (Files): Likewise.
4157 * modules/pipe-filter-ii-tests (Files): Likewise.
4158 * modules/pipe2-tests (Files): Likewise.
4159 * modules/popen-safer-tests (Files): Likewise.
4160 * modules/popen-tests (Files): Likewise.
4161 * modules/posixtm-tests (Files): Likewise.
4162 * modules/pread-tests (Files): Likewise.
4163 * modules/printf-frexp-tests (Files): Likewise.
4164 * modules/printf-frexpl-tests (Files): Likewise.
4165 * modules/printf-posix-tests (Files): Likewise.
4166 * modules/priv-set-tests (Files): Likewise.
4167 * modules/quotearg-tests (Files): Likewise.
4168 * modules/random_r-tests (Files): Likewise.
4169 * modules/rawmemchr-tests (Files): Likewise.
4170 * modules/rbtree-list-tests (Files): Likewise.
4171 * modules/rbtree-oset-tests (Files): Likewise.
4172 * modules/rbtreehash-list-tests (Files): Likewise.
4173 * modules/readlink-tests (Files): Likewise.
4174 * modules/remove-tests (Files): Likewise.
4175 * modules/rename-tests (Files): Likewise.
4176 * modules/renameat-tests (Files): Likewise.
4177 * modules/rmdir-tests (Files): Likewise.
4178 * modules/round-tests (Files): Likewise.
4179 * modules/roundf-tests (Files): Likewise.
4180 * modules/roundl-tests (Files): Likewise.
4181 * modules/safe-alloc-tests (Files): Likewise.
4182 * modules/setenv-tests (Files): Likewise.
4183 * modules/sigaction-tests (Files): Likewise.
4184 * modules/signbit-tests (Files): Likewise.
4185 * modules/sleep-tests (Files): Likewise.
4186 * modules/snprintf-posix-tests (Files): Likewise.
4187 * modules/snprintf-tests (Files): Likewise.
4188 * modules/sprintf-posix-tests (Files): Likewise.
4189 * modules/stat-tests (Files): Likewise.
4190 * modules/stat-time-tests (Files): Likewise.
4191 * modules/strcasestr-tests (Files): Likewise.
4192 * modules/strchrnul-tests (Files): Likewise.
4193 * modules/strerror-tests (Files): Likewise.
4194 * modules/striconv-tests (Files): Likewise.
4195 * modules/striconveh-tests (Files): Likewise.
4196 * modules/striconveha-tests (Files): Likewise.
4197 * modules/strsignal-tests (Files): Likewise.
4198 * modules/strstr-tests (Files): Likewise.
4199 * modules/strtod-tests (Files): Likewise.
4200 * modules/strverscmp-tests (Files): Likewise.
4201 * modules/symlink-tests (Files): Likewise.
4202 * modules/symlinkat-tests (Files): Likewise.
4203 * modules/trunc-tests (Files): Likewise.
4204 * modules/truncf-tests (Files): Likewise.
4205 * modules/truncl-tests (Files): Likewise.
4206 * modules/uname-tests (Files): Likewise.
4207 * modules/unicase/cased-tests (Files): Likewise.
4208 * modules/unicase/ignorable-tests (Files): Likewise.
4209 * modules/unicase/locale-language-tests (Files): Likewise.
4210 * modules/unicase/tolower-tests (Files): Likewise.
4211 * modules/unicase/totitle-tests (Files): Likewise.
4212 * modules/unicase/toupper-tests (Files): Likewise.
4213 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4214 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4215 * modules/unicase/u8-casefold-tests (Files): Likewise.
4216 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4217 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4218 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4219 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4220 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4221 * modules/unicase/u8-tolower-tests (Files): Likewise.
4222 * modules/unicase/u8-totitle-tests (Files): Likewise.
4223 * modules/unicase/u8-toupper-tests (Files): Likewise.
4224 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4225 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4226 * modules/unicase/u16-casefold-tests (Files): Likewise.
4227 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4228 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4229 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4230 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4231 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4232 * modules/unicase/u16-tolower-tests (Files): Likewise.
4233 * modules/unicase/u16-totitle-tests (Files): Likewise.
4234 * modules/unicase/u16-toupper-tests (Files): Likewise.
4235 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4236 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4237 * modules/unicase/u32-casefold-tests (Files): Likewise.
4238 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4239 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4240 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4241 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4242 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4243 * modules/unicase/u32-tolower-tests (Files): Likewise.
4244 * modules/unicase/u32-totitle-tests (Files): Likewise.
4245 * modules/unicase/u32-toupper-tests (Files): Likewise.
4246 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4247 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4248 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4249 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4250 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4251 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4252 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4253 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4254 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4255 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4256 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4257 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4258 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4259 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4260 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4261 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4262 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4263 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4264 * modules/unictype/block-list-tests (Files): Likewise.
4265 * modules/unictype/block-of-tests (Files): Likewise.
4266 * modules/unictype/block-test-tests (Files): Likewise.
4267 * modules/unictype/category-C-tests (Files): Likewise.
4268 * modules/unictype/category-Cc-tests (Files): Likewise.
4269 * modules/unictype/category-Cf-tests (Files): Likewise.
4270 * modules/unictype/category-Cn-tests (Files): Likewise.
4271 * modules/unictype/category-Co-tests (Files): Likewise.
4272 * modules/unictype/category-Cs-tests (Files): Likewise.
4273 * modules/unictype/category-L-tests (Files): Likewise.
4274 * modules/unictype/category-Ll-tests (Files): Likewise.
4275 * modules/unictype/category-Lm-tests (Files): Likewise.
4276 * modules/unictype/category-Lo-tests (Files): Likewise.
4277 * modules/unictype/category-Lt-tests (Files): Likewise.
4278 * modules/unictype/category-Lu-tests (Files): Likewise.
4279 * modules/unictype/category-M-tests (Files): Likewise.
4280 * modules/unictype/category-Mc-tests (Files): Likewise.
4281 * modules/unictype/category-Me-tests (Files): Likewise.
4282 * modules/unictype/category-Mn-tests (Files): Likewise.
4283 * modules/unictype/category-N-tests (Files): Likewise.
4284 * modules/unictype/category-Nd-tests (Files): Likewise.
4285 * modules/unictype/category-Nl-tests (Files): Likewise.
4286 * modules/unictype/category-No-tests (Files): Likewise.
4287 * modules/unictype/category-P-tests (Files): Likewise.
4288 * modules/unictype/category-Pc-tests (Files): Likewise.
4289 * modules/unictype/category-Pd-tests (Files): Likewise.
4290 * modules/unictype/category-Pe-tests (Files): Likewise.
4291 * modules/unictype/category-Pf-tests (Files): Likewise.
4292 * modules/unictype/category-Pi-tests (Files): Likewise.
4293 * modules/unictype/category-Po-tests (Files): Likewise.
4294 * modules/unictype/category-Ps-tests (Files): Likewise.
4295 * modules/unictype/category-S-tests (Files): Likewise.
4296 * modules/unictype/category-Sc-tests (Files): Likewise.
4297 * modules/unictype/category-Sk-tests (Files): Likewise.
4298 * modules/unictype/category-Sm-tests (Files): Likewise.
4299 * modules/unictype/category-So-tests (Files): Likewise.
4300 * modules/unictype/category-Z-tests (Files): Likewise.
4301 * modules/unictype/category-Zl-tests (Files): Likewise.
4302 * modules/unictype/category-Zp-tests (Files): Likewise.
4303 * modules/unictype/category-Zs-tests (Files): Likewise.
4304 * modules/unictype/category-and-not-tests (Files): Likewise.
4305 * modules/unictype/category-and-tests (Files): Likewise.
4306 * modules/unictype/category-byname-tests (Files): Likewise.
4307 * modules/unictype/category-name-tests (Files): Likewise.
4308 * modules/unictype/category-none-tests (Files): Likewise.
4309 * modules/unictype/category-of-tests (Files): Likewise.
4310 * modules/unictype/category-or-tests (Files): Likewise.
4311 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4312 * modules/unictype/combining-class-tests (Files): Likewise.
4313 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4314 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4315 * modules/unictype/ctype-blank-tests (Files): Likewise.
4316 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4317 * modules/unictype/ctype-digit-tests (Files): Likewise.
4318 * modules/unictype/ctype-graph-tests (Files): Likewise.
4319 * modules/unictype/ctype-lower-tests (Files): Likewise.
4320 * modules/unictype/ctype-print-tests (Files): Likewise.
4321 * modules/unictype/ctype-punct-tests (Files): Likewise.
4322 * modules/unictype/ctype-space-tests (Files): Likewise.
4323 * modules/unictype/ctype-upper-tests (Files): Likewise.
4324 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4325 * modules/unictype/decimal-digit-tests (Files): Likewise.
4326 * modules/unictype/digit-tests (Files): Likewise.
4327 * modules/unictype/mirror-tests (Files): Likewise.
4328 * modules/unictype/numeric-tests (Files): Likewise.
4329 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4330 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4331 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4332 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4334 * modules/unictype/property-bidi-block-separator-tests (Files):
4336 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4338 * modules/unictype/property-bidi-common-separator-tests (Files):
4340 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4341 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4343 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4345 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4347 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4348 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4350 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4351 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4353 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4354 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4355 * modules/unictype/property-bidi-segment-separator-tests (Files):
4357 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4358 * modules/unictype/property-byname-tests (Files): Likewise.
4359 * modules/unictype/property-combining-tests (Files): Likewise.
4360 * modules/unictype/property-composite-tests (Files): Likewise.
4361 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4362 * modules/unictype/property-dash-tests (Files): Likewise.
4363 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4364 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4366 * modules/unictype/property-deprecated-tests (Files): Likewise.
4367 * modules/unictype/property-diacritic-tests (Files): Likewise.
4368 * modules/unictype/property-extender-tests (Files): Likewise.
4369 * modules/unictype/property-format-control-tests (Files): Likewise.
4370 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4371 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4372 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4373 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4374 * modules/unictype/property-hyphen-tests (Files): Likewise.
4375 * modules/unictype/property-id-continue-tests (Files): Likewise.
4376 * modules/unictype/property-id-start-tests (Files): Likewise.
4377 * modules/unictype/property-ideographic-tests (Files): Likewise.
4378 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4379 * modules/unictype/property-ids-trinary-operator-tests (Files):
4381 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4382 * modules/unictype/property-iso-control-tests (Files): Likewise.
4383 * modules/unictype/property-join-control-tests (Files): Likewise.
4384 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4385 * modules/unictype/property-line-separator-tests (Files): Likewise.
4386 * modules/unictype/property-logical-order-exception-tests (Files):
4388 * modules/unictype/property-lowercase-tests (Files): Likewise.
4389 * modules/unictype/property-math-tests (Files): Likewise.
4390 * modules/unictype/property-non-break-tests (Files): Likewise.
4391 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4392 * modules/unictype/property-numeric-tests (Files): Likewise.
4393 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4394 * modules/unictype/property-other-default-ignorable-code-point-tests
4396 * modules/unictype/property-other-grapheme-extend-tests (Files):
4398 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4399 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4400 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4401 * modules/unictype/property-other-math-tests (Files): Likewise.
4402 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4403 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4404 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4405 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4406 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4407 * modules/unictype/property-private-use-tests (Files): Likewise.
4408 * modules/unictype/property-punctuation-tests (Files): Likewise.
4409 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4410 * modules/unictype/property-radical-tests (Files): Likewise.
4411 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4412 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4413 * modules/unictype/property-space-tests (Files): Likewise.
4414 * modules/unictype/property-terminal-punctuation-tests (Files):
4416 * modules/unictype/property-test-tests (Files): Likewise.
4417 * modules/unictype/property-titlecase-tests (Files): Likewise.
4418 * modules/unictype/property-unassigned-code-value-tests (Files):
4420 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4421 * modules/unictype/property-uppercase-tests (Files): Likewise.
4422 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4423 * modules/unictype/property-white-space-tests (Files): Likewise.
4424 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4425 * modules/unictype/property-xid-start-tests (Files): Likewise.
4426 * modules/unictype/property-zero-width-tests (Files): Likewise.
4427 * modules/unictype/scripts-tests (Files): Likewise.
4428 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4429 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4430 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4431 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4432 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4433 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4434 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4435 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4436 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4437 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4438 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4439 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4440 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4441 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4442 * modules/uninorm/composition-tests (Files): Likewise.
4443 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4444 * modules/uninorm/decomposition-tests (Files): Likewise.
4445 * modules/uninorm/filter-tests (Files): Likewise.
4446 * modules/uninorm/nfc-tests (Files): Likewise.
4447 * modules/uninorm/nfd-tests (Files): Likewise.
4448 * modules/uninorm/nfkc-tests (Files): Likewise.
4449 * modules/uninorm/nfkd-tests (Files): Likewise.
4450 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4451 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4452 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4453 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4454 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4455 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4456 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4457 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4458 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4459 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4460 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4461 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4462 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4463 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4464 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4465 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4466 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4467 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4468 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4469 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4470 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4471 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4472 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4473 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4474 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4475 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4476 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4477 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4478 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4479 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4480 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4481 * modules/uniwidth/u8-width-tests (Files): Likewise.
4482 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4483 * modules/uniwidth/u16-width-tests (Files): Likewise.
4484 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4485 * modules/uniwidth/u32-width-tests (Files): Likewise.
4486 * modules/uniwidth/width-tests (Files): Likewise.
4487 * modules/unlink-tests (Files): Likewise.
4488 * modules/unsetenv-tests (Files): Likewise.
4489 * modules/usleep-tests (Files): Likewise.
4490 * modules/utimens-tests (Files): Likewise.
4491 * modules/utimensat-tests (Files): Likewise.
4492 * modules/vasnprintf-posix-tests (Files): Likewise.
4493 * modules/vasnprintf-tests (Files): Likewise.
4494 * modules/vasprintf-posix-tests (Files): Likewise.
4495 * modules/vasprintf-tests (Files): Likewise.
4496 * modules/vdprintf-posix-tests (Files): Likewise.
4497 * modules/vfprintf-posix-tests (Files): Likewise.
4498 * modules/vprintf-posix-tests (Files): Likewise.
4499 * modules/vsnprintf-posix-tests (Files): Likewise.
4500 * modules/vsnprintf-tests (Files): Likewise.
4501 * modules/vsprintf-posix-tests (Files): Likewise.
4502 * modules/wcrtomb-tests (Files): Likewise.
4503 * modules/wcsnrtombs-tests (Files): Likewise.
4504 * modules/wcsrtombs-tests (Files): Likewise.
4505 * modules/wctype-tests (Files): Likewise.
4506 * modules/wcwidth-tests (Files): Likewise.
4507 * modules/xmemdup0-tests (Files): Likewise.
4508 * modules/xprintf-posix-tests (Files): Likewise.
4509 * modules/xvasprintf-tests (Files): Likewise.
4511 2009-12-24 Eric Blake <ebb9@byu.net>
4513 test-nanosleep: fix typo
4514 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4516 Reported by Bruno Haible.
4518 2009-12-24 Bruno Haible <bruno@clisp.org>
4520 Reduce namespace pollution on glibc systems.
4521 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4522 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4524 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4525 <getopt.h> on glibc systems.
4526 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4528 * lib/fcntl.c: Include <unistd.h> here instead.
4530 2009-12-24 Bruno Haible <bruno@clisp.org>
4532 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4534 2009-12-24 Eric Blake <ebb9@byu.net>
4536 tests: add signature checks
4537 * tests/signature.h (SIGNATURE_CHECK): New file.
4538 * modules/atexit-tests (Files): Use it.
4539 * modules/btowc-tests (Files): Likewise.
4540 * modules/canonicalize-lgpl-tests (Files): Likewise.
4541 * modules/ceilf-tests (Files): Likewise.
4542 * modules/ceill-tests (Files): Likewise.
4543 * modules/chown-tests (Files): Likewise.
4544 * modules/dprintf-posix-tests (Files): Likewise.
4545 * modules/dup2-tests (Files): Likewise.
4546 * modules/dup3-tests (Files): Likewise.
4547 * modules/duplocale-tests (Files): Likewise.
4548 * modules/fchdir-tests (Files): Likewise.
4549 * modules/fcntl-tests (Files): Likewise.
4550 * modules/fdopendir-tests (Files): Likewise.
4551 * modules/fflush-tests (Files): Likewise.
4552 * modules/flock-tests (Files): Likewise.
4553 * modules/floorf-tests (Files): Likewise.
4554 * modules/floorl-tests (Files): Likewise.
4555 * modules/fnmatch-tests (Files): Likewise.
4556 * modules/fopen-tests (Files): Likewise.
4557 * modules/fprintf-posix-tests (Files): Likewise.
4558 * modules/freopen-tests (Files): Likewise.
4559 * modules/frexp-nolibm-tests (Files): Likewise.
4560 * modules/frexp-tests (Files): Likewise.
4561 * modules/frexpl-nolibm-tests (Files): Likewise.
4562 * modules/frexpl-tests (Files): Likewise.
4563 * modules/fseek-tests (Files): Likewise.
4564 * modules/fseeko-tests (Files): Likewise.
4565 * modules/fsync-tests (Files): Likewise.
4566 * modules/ftell-tests (Files): Likewise.
4567 * modules/ftello-tests (Files): Likewise.
4568 * modules/futimens-tests (Files): Likewise.
4569 * modules/getaddrinfo-tests (Files): Likewise.
4570 * modules/getcwd-tests (Files): Likewise.
4571 * modules/getdelim-tests (Files): Likewise.
4572 * modules/getdtablesize-tests (Files): Likewise.
4573 * modules/getgroups-tests (Files): Likewise.
4574 * modules/gethostname-tests (Files): Likewise.
4575 * modules/getline-tests (Files): Likewise.
4576 * modules/getopt-posix-tests (Files): Likewise.
4577 * modules/gettimeofday-tests (Files): Likewise.
4578 * modules/glob-tests (Files): Likewise.
4579 * modules/iconv-tests (Files): Likewise.
4580 * modules/inet_ntop-tests (Files): Likewise.
4581 * modules/inet_pton-tests (Files): Likewise.
4582 * modules/isblank-tests (Files): Likewise.
4583 * modules/lchown-tests (Files): Likewise.
4584 * modules/ldexpl-tests (Files): Likewise.
4585 * modules/link-tests (Files): Likewise.
4586 * modules/linkat-tests (Files): Likewise.
4587 * modules/lseek-tests (Files): Likewise.
4588 * modules/lstat-tests (Files): Likewise.
4589 * modules/mbrtowc-tests (Files): Likewise.
4590 * modules/mbsinit-tests (Files): Likewise.
4591 * modules/mbsnrtowcs-tests (Files): Likewise.
4592 * modules/mbsrtowcs-tests (Files): Likewise.
4593 * modules/memchr-tests (Files): Likewise.
4594 * modules/memcmp-tests (Files): Likewise.
4595 * modules/memmem-tests (Files): Likewise.
4596 * modules/memrchr-tests (Files): Likewise.
4597 * modules/mkdir-tests (Files): Likewise.
4598 * modules/mkfifo-tests (Files): Likewise.
4599 * modules/mkfifoat-tests (Files): Likewise.
4600 * modules/mknod-tests (Files): Likewise.
4601 * modules/nanosleep-tests (Files): Likewise.
4602 * modules/nl_langinfo-tests (Files): Likewise.
4603 * modules/obstack-printf-tests (Files): Likewise.
4604 * modules/open-tests (Files): Likewise.
4605 * modules/openat-tests (Files): Likewise.
4606 * modules/perror-tests (Files): Likewise.
4607 * modules/pipe2-tests (Files): Likewise.
4608 * modules/poll-tests (Files): Likewise.
4609 * modules/popen-tests (Files): Likewise.
4610 * modules/posix_spawn-tests (Files): Likewise.
4611 * modules/posix_spawnp-tests (Files): Likewise.
4612 * modules/pread-tests (Files): Likewise.
4613 * modules/printf-posix-tests (Files): Likewise.
4614 * modules/pty-tests (Files): Likewise.
4615 * modules/random_r-tests (Files): Likewise.
4616 * modules/rawmemchr-tests (Files): Likewise.
4617 * modules/readlink-tests (Files): Likewise.
4618 * modules/remove-tests (Files): Likewise.
4619 * modules/rename-tests (Files): Likewise.
4620 * modules/renameat-tests (Files): Likewise.
4621 * modules/rmdir-tests (Files): Likewise.
4622 * modules/round-tests (Files): Likewise.
4623 * modules/roundf-tests (Files): Likewise.
4624 * modules/roundl-tests (Files): Likewise.
4625 * modules/select-tests (Files): Likewise.
4626 * modules/setenv-tests (Files): Likewise.
4627 * modules/sigaction-tests (Files): Likewise.
4628 * modules/sleep-tests (Files): Likewise.
4629 * modules/snprintf-posix-tests (Files): Likewise.
4630 * modules/snprintf-tests (Files): Likewise.
4631 * modules/sprintf-posix-tests (Files): Likewise.
4632 * modules/stat-tests (Files): Likewise.
4633 * modules/strcasestr-tests (Files): Likewise.
4634 * modules/strchrnul-tests (Files): Likewise.
4635 * modules/strerror-tests (Files): Likewise.
4636 * modules/strsignal-tests (Files): Likewise.
4637 * modules/strstr-tests (Files): Likewise.
4638 * modules/strtod-tests (Files): Likewise.
4639 * modules/strverscmp-tests (Files): Likewise.
4640 * modules/symlink-tests (Files): Likewise.
4641 * modules/symlinkat-tests (Files): Likewise.
4642 * modules/times-tests (Files): Likewise.
4643 * modules/trunc-tests (Files): Likewise.
4644 * modules/truncf-tests (Files): Likewise.
4645 * modules/truncl-tests (Files): Likewise.
4646 * modules/tsearch-tests (Files): Likewise.
4647 * modules/uname-tests (Files): Likewise.
4648 * modules/unlink-tests (Files): Likewise.
4649 * modules/unsetenv-tests (Files): Likewise.
4650 * modules/usleep-tests (Files): Likewise.
4651 * modules/utimensat-tests (Files): Likewise.
4652 * modules/vasprintf-tests (Files): Likewise.
4653 * modules/vdprintf-posix-tests (Files): Likewise.
4654 * modules/vfprintf-posix-tests (Files): Likewise.
4655 * modules/vprintf-posix-tests (Files): Likewise.
4656 * modules/vsnprintf-posix-tests (Files): Likewise.
4657 * modules/vsnprintf-tests (Files): Likewise.
4658 * modules/vsprintf-posix-tests (Files): Likewise.
4659 * modules/wcrtomb-tests (Files): Likewise.
4660 * modules/wcsnrtombs-tests (Files): Likewise.
4661 * modules/wcsrtombs-tests (Files): Likewise.
4662 * modules/wcwidth-tests (Files): Likewise.
4663 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4664 * tests/test-isinf.c (isinf): Likewise.
4665 * tests/test-isnan.c (isnan): Likewise.
4666 * tests/test-signbit.c (signbit): Likewise.
4667 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4668 declaration, either as macro or with correct signature.
4669 (select): Ensure function under test is declared with correct
4670 signature in correct header.
4671 * tests/test-atexit.c (atexit): Likewise.
4672 * tests/test-btowc.c (btowc): Likewise.
4673 * tests/test-canonicalize-lgpl.c (realpath)
4674 (canonicalize_file_name): Likewise.
4675 * tests/test-ceilf1.c (ceilf): Likewise.
4676 * tests/test-ceill.c (ceill): Likewise.
4677 * tests/test-chown.c (chown): Likewise.
4678 * tests/test-dprintf-posix.c (dprintf): Likewise.
4679 * tests/test-dup2.c (dup2): Likewise.
4680 * tests/test-dup3.c (dup3): Likewise.
4681 * tests/test-duplocale.c (duplocale): Likewise.
4682 * tests/test-fchdir.c (fchdir): Likewise.
4683 * tests/test-fchownat.c (fchownat): Likewise.
4684 * tests/test-fcntl.c (fcntl): Likewise.
4685 * tests/test-fdopendir.c (fdopendir): Likewise.
4686 * tests/test-fflush.c (fflush): Likewise.
4687 * tests/test-flock.c (flock): Likewise.
4688 * tests/test-floorf1.c (floorf): Likewise.
4689 * tests/test-floorl.c (floorl): Likewise.
4690 * tests/test-fnmatch.c (fnmatch): Likewise.
4691 * tests/test-fopen.c (fopen): Likewise.
4692 * tests/test-fprintf-posix.c (fprintf): Likewise.
4693 * tests/test-freopen.c (freopen): Likewise.
4694 * tests/test-frexp.c (frexp): Likewise.
4695 * tests/test-frexpl.c (frexpl): Likewise.
4696 * tests/test-fseek.c (fseek): Likewise.
4697 * tests/test-fseeko.c (fseeko): Likewise.
4698 * tests/test-fstatat.c (fstatat): Likewise.
4699 * tests/test-fsync.c (fsync): Likewise.
4700 * tests/test-ftell.c (ftell): Likewise.
4701 * tests/test-ftello.c (ftello): Likewise.
4702 * tests/test-futimens.c (futimens): Likewise.
4703 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4704 (gai_strerror): Likewise.
4705 * tests/test-getcwd.c (getcwd): Likewise.
4706 * tests/test-getdelim.c (getdelim): Likewise.
4707 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4708 * tests/test-getgroups.c (getgroups): Likewise.
4709 * tests/test-gethostname.c (gethostname): Likewise.
4710 * tests/test-getline.c (getline): Likewise.
4711 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4713 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4714 * tests/test-glob.c (glob, globfree): Likewise.
4715 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4716 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4717 * tests/test-inet_pton.c (inet_pton): Likewise.
4718 * tests/test-isblank.c (isblank): Likewise.
4719 * tests/test-lchown.c (lchown): Likewise.
4720 * tests/test-ldexpl.c (ldexpl): Likewise.
4721 * tests/test-link.c (link): Likewise.
4722 * tests/test-linkat.c (linkat): Likewise.
4723 * tests/test-lseek.c (lseek): Likewise.
4724 * tests/test-lstat.c (lstat): Likewise.
4725 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4726 * tests/test-mbsinit.c (mbsinit): Likewise.
4727 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4728 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4729 * tests/test-memchr.c (memchr): Likewise.
4730 * tests/test-memcmp.c (memcmp): Likewise.
4731 * tests/test-memmem.c (memmem): Likewise.
4732 * tests/test-memrchr.c (memrchr): Likewise.
4733 * tests/test-mkdir.c (mkdir): Likewise.
4734 * tests/test-mkdirat.c (mkdirat): Likewise.
4735 * tests/test-mkfifo.c (mkfifo): Likewise.
4736 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4737 * tests/test-mknod.c (mknod): Likewise.
4738 * tests/test-nanosleep.c (nanosleep): Likewise.
4739 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4740 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4742 * tests/test-open.c (open): Likewise.
4743 * tests/test-openat.c (openat): Likewise.
4744 * tests/test-perror.c (perror): Likewise.
4745 * tests/test-pipe2.c (pipe2): Likewise.
4746 * tests/test-poll.c (poll): Likewise.
4747 * tests/test-popen.c (popen, pclose): Likewise.
4748 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4749 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4750 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4751 (posix_spawn_file_actions_destroy)
4752 (posix_spawn_file_actions_addclose)
4753 (posix_spawn_file_actions_addopen)
4754 (posix_spawn_file_actions_adddup2): Likewise.
4755 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4756 * tests/test-pread.c (pread): Likewise.
4757 * tests/test-printf-posix.c (printf): Likewise.
4758 * tests/test-pty.c (openpty, forkpty): Likewise.
4759 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4760 (random_r): Likewise.
4761 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4762 * tests/test-readlink.c (readlink): Likewise.
4763 * tests/test-remove.c (remove): Likewise.
4764 * tests/test-rename.c (rename): Likewise.
4765 * tests/test-renameat.c (renameat): Likewise.
4766 * tests/test-rmdir.c (rmdir): Likewise.
4767 * tests/test-round1.c (round): Likewise.
4768 * tests/test-roundf1.c (roundf): Likewise.
4769 * tests/test-roundl.c (roundl): Likewise.
4770 * tests/test-setenv.c (setenv): Likewise.
4771 * tests/test-sigaction.c (sigaction): Likewise.
4772 * tests/test-sleep.c (sleep): Likewise.
4773 * tests/test-snprintf.c (snprintf): Likewise.
4774 * tests/test-sprintf-posix.c (sprintf): Likewise.
4775 * tests/test-stat.c (stat): Likewise.
4776 * tests/test-stpncpy.c (stpncpy): Likewise.
4777 * tests/test-strcasestr.c (strcasestr): Likewise.
4778 * tests/test-strchrnul.c (strchrnul): Likewise.
4779 * tests/test-strerror.c (strerror): Likewise.
4780 * tests/test-strsignal.c (strsignal): Likewise.
4781 * tests/test-strstr.c (strstr): Likewise.
4782 * tests/test-strtod.c (strtod): Likewise.
4783 * tests/test-strverscmp.c (strverscmp): Likewise.
4784 * tests/test-symlink.c (symlink): Likewise.
4785 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4786 * tests/test-times.c (times): Likewise.
4787 * tests/test-trunc1.c (trunc): Likewise.
4788 * tests/test-truncf1.c (truncf): Likewise.
4789 * tests/test-truncl.c (truncl): Likewise.
4790 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4792 * tests/test-uname.c (uname): Likewise.
4793 * tests/test-unlink.c (unlink): Likewise.
4794 * tests/test-unlinkat.c (unlinkat): Likewise.
4795 * tests/test-unsetenv.c (unsetenv): Likewise.
4796 * tests/test-usleep.c (usleep): Likewise.
4797 * tests/test-utimensat.c (utimensat): Likewise.
4798 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4799 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4800 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4801 * tests/test-vprintf-posix.c (vprintf): Likewise.
4802 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4803 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4804 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4805 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4806 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4807 * tests/test-wcwidth.c (wcwidth): Likewise.
4809 build: pull in conditional headers during GNULIB_POSIXCHECK
4810 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4811 definitions from any conditionally-included headers.
4812 * lib/stdlib.in.h (includes): Likewise.
4813 * lib/unistd.in.h (includes): Likewise.
4815 2009-12-24 Bruno Haible <bruno@clisp.org>
4817 * tests/test-argv-iter.c: Include header file being tested immediately
4819 * tests/test-base64.c: Likewise.
4820 * tests/test-flock.c: Likewise.
4821 * tests/test-fsync.c: Likewise.
4822 * tests/test-getdate.c: Likewise.
4823 * tests/test-getndelim2.c: Likewise.
4824 * tests/test-isfinite.c: Likewise.
4825 * tests/test-isinf.c: Likewise.
4826 * tests/test-strerror.c: Likewise.
4827 * tests/test-strsignal.c: Likewise.
4829 2009-12-23 Eric Blake <ebb9@byu.net>
4831 unistd: work around cygwin bug
4832 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4833 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4834 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4836 2009-12-23 Bruno Haible <bruno@clisp.org>
4838 localename: More tests.
4839 * tests/test-localename.c (SIZEOF): New macro.
4840 (categories): New variable.
4841 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4842 test_locale_name_default): Add test w.r.t. thread locale.
4843 (test_locale_name_thread): New function.
4846 localename: Make aware of thread locale.
4847 * lib/localename.h (gl_locale_name_thread): New declaration.
4848 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4849 behaviour with respect to thread locale.
4850 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4851 <langinfo.h>, glthread/lock.h.
4852 (SIZE_BITS): New macro.
4853 (string_hash): New function.
4854 (struct hash_node): New type.
4855 (HASH_TABLE_SIZE): New macro.
4856 (struniq_hash_table, struniq_lock): New variables.
4857 (struniq): New function.
4858 (gl_locale_name_thread): New function.
4859 (gl_locale_name): Invoke it.
4860 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4861 * modules/localename (Depends-on): Add lock.
4862 Reported by Mike Gran <spk121@yahoo.com>.
4864 2009-12-23 Eric Blake <ebb9@byu.net>
4867 * modules/va-args: New file.
4868 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4869 * MODULES.html.sh (Core language properties): Mention it.
4871 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4872 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4873 named alias for __attribute__((__unused__)).
4874 * lib/chown.c: Update client.
4875 * lib/fchmodat.c: Likewise.
4876 * lib/fts.c: Likewise.
4877 * lib/getdate.y: Likewise.
4878 * lib/getgroups.c: Likewise.
4879 * lib/getopt.c: Likewise.
4880 * lib/getugroups.c: Likewise.
4881 * lib/mkdir.c: Likewise.
4882 * lib/mkfifo.c: Likewise.
4883 * lib/mkfifoat.c: Likewise.
4884 * lib/mknod.c: Likewise.
4885 * lib/mknodat.c: Likewise.
4886 * lib/readlink.c: Likewise.
4887 * lib/se-context.in.h: Likewise.
4888 * lib/se-selinux.in.h: Likewise.
4889 * lib/sockets.c: Likewise.
4890 * lib/symlink.c: Likewise.
4891 * lib/symlinkat.c: Likewise.
4892 * lib/unicodeio.c: Likewise.
4893 * lib/unistr.h: Likewise.
4894 * tests/test-areadlink.c: Likewise.
4895 * tests/test-areadlinkat.c: Likewise.
4896 * tests/test-filenamecat.c: Likewise.
4897 * tests/test-fseeko.c: Likewise.
4898 * tests/test-ftello.c: Likewise.
4899 * tests/test-getdate.c: Likewise.
4900 * tests/test-getgroups.c: Likewise.
4901 * tests/test-gethostname.c: Likewise.
4902 * tests/test-quotearg.c: Likewise.
4903 * tests/test-version-etc.c: Likewise.
4904 * tests/test-xalloc-die.c: Likewise.
4905 * tests/test-xfprintf-posix.c: Likewise.
4906 * tests/test-xprintf-posix.c: Likewise.
4907 * tests/test-xvasprintf.c: Likewise.
4909 tests: avoid compiler warnings
4910 * tests/test-fcntl.c (main): Delete unused parameters.
4911 * tests/test-freopen-safer.c (main): Likewise.
4912 * tests/test-xalloc-die.c (main): Mark unused parameters.
4913 * tests/test-fseeko.c (main): Likewise.
4914 * tests/test-ftello.c (main): Likewise.
4915 * tests/test-nanosleep.c (main): Avoid declaration warning.
4916 * tests/test-sleep.c (main): Likewise.
4917 * tests/test-unsetenv.c (main): Silence warning about string
4919 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4921 2009-12-23 Bruno Haible <bruno@clisp.org>
4923 * tests/test-localename.c (test_locale_name): New function, extracted
4924 from main. Also test mixed situations.
4925 (test_locale_name_posix, test_locale_name_environ,
4926 test_locale_name_default): New functions.
4927 (main): Invoke them all.
4928 * modules/localename-tests (configure.ac): Test for newlocale.
4930 2009-12-23 Bruno Haible <bruno@clisp.org>
4932 unistd: Ensure getcwd gets declared before being overridden.
4933 * lib/unistd.in.h: Conditionally include <io.h>.
4935 2009-12-22 Bruno Haible <bruno@clisp.org>
4937 wchar: Diagnose broken combination of glibc and gcc versions and flags.
4938 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4939 (gl_WCHAR_H): Invoke it.
4940 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4941 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4942 Reported by Karl Berry <karl@freefriends.org>.
4944 2009-12-22 Eric Blake <ebb9@byu.net>
4946 math, unistd: avoid redundant includes
4947 * lib/math.in.h (isnan): No need to re-include <math.h>.
4948 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4950 getsubopt: work around cygwin bug
4951 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4952 avoid conflicting with system getsubopt.
4953 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4956 getopt: synchronize from glibc
4957 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4958 parameter order. Adjust all callers.
4959 (_getopt_internal_r, main): Adjust quoting in error messages.
4960 Drop considerations for outdated POSIX 1003.2 error message.
4961 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4963 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4965 test-getopt: test stderr behavior
4966 * modules/getopt-posix-tests (Depends-on): Add dup2.
4967 * tests/test-getopt.c (ASSERT): Avoid stderr.
4968 (main): Move stderr to a temporary file.
4969 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4970 Instead, add parameter to inform caller if output occurred.
4971 (test_getopt): Adjust all existing tests to expect silence, and
4972 add new tests of leading ":".
4973 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4974 glibc shortcomings with leading "-:" or "+:" in optstring.
4975 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4977 * doc/posix-functions/getopt.texi (getopt): Likewise.
4979 test-getopt: enhance test
4980 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4982 * tests/test-getopt.c (OPTIND_MIN): Move...
4983 * tests/test-getopt.h (OPTIND_MIN): ...here.
4984 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4985 Require that optind=0 works, since modern BSD supports it in
4986 addition to optreset, and since coreutils expects it.
4987 (test_getopt_long_only): New test.
4988 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4989 glibc shortcomings with 'W;', and enforcement of optind=0.
4990 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4993 2009-12-21 Bruno Haible <bruno@clisp.org>
4995 localename: Improvements for MacOS X and Cygwin.
4996 * lib/localename.h (gl_locale_name_environ): New declaration.
4997 * lib/localename.c (gl_locale_name_environ): New function, extracted from
4998 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4999 (gl_locale_name_posix): Invoke it.
5000 (gl_locale_name_default): Add comments. Use Windows native API also on
5003 2009-12-21 Bruno Haible <bruno@clisp.org>
5005 Update list of Win32 locale ids.
5006 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5007 (LANG_SAMI): Renamed from LANG_SAAMI.
5008 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5009 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5010 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5011 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5012 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5013 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5014 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5015 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5016 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5017 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5018 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5019 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5020 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5021 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5022 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5023 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5024 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5025 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5026 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5027 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5028 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5029 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5030 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5031 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5032 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5033 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5034 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5035 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5036 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5037 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5038 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5039 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5040 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5041 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5042 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5043 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5044 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5045 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5046 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5047 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5048 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5049 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5050 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5051 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5052 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5053 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5054 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5055 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5056 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5057 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5058 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5059 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5060 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5061 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5062 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5063 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5064 Add more languages and countries for Sami, Sorbian. Add more countries
5065 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5066 for Pashto. Change country for Syriac, Tswana.
5068 2009-12-21 Eric Blake <ebb9@byu.net>
5070 test-utimens: avoid spurious failure
5071 * tests/test-chown.h (nap): Factor...
5072 * tests/nap.h: ...into new file.
5073 * tests/test-lchown.h (nap): Avoid duplication.
5074 * tests/test-utimens-common.h (nap): Use shared implementation,
5075 necessary on file systems with 1-second resolution.
5076 * modules/chown-tests (Files): Include new file.
5077 * modules/fdutimensat-tests (Files): Likewise.
5078 * modules/futimens-tests (Files): Likewise.
5079 * modules/lchown-tests (Files): Likewise.
5080 * modules/openat-tests (Files): Likewise.
5081 * modules/utimens-tests (Files): Likewise.
5082 * modules/utimensat-tests (Files): Likewise.
5084 2009-12-19 Eric Blake <ebb9@byu.net>
5086 futimens, utimensat: work around Linux bug
5087 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5088 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5089 * lib/utimensat.c (rpl_utimensat): Work around it.
5090 * lib/futimens.c (rpl_futimens): Adjust comment.
5092 utimens: work around Linux ctime bug
5093 * lib/utimens.c (detect_ctime_bug): New helper function.
5094 (update_timespec): Differentiate between workaround needed for
5095 this bug vs. what is needed for systems that lack utimensat.
5096 (fdutimens, lutimens): Work around bug.
5098 utimens: check for ctime update
5099 * tests/test-utimens-common.h (check_ctime): Define.
5100 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5101 * tests/test-futimens.h (test_futimens): Likewise.
5102 * tests/test-lutimens.h (test_lutimens): Likewise.
5103 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5104 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5106 2009-12-19 Bruno Haible <bruno@clisp.org>
5108 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5109 * tests/test-dprintf-posix2.sh: New file.
5110 * tests/test-dprintf-posix2.c: New file.
5111 * modules/dprintf-posix-tests (Files): Add them.
5112 (configure.ac): Check for getrlimit and setrlimit.
5113 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5115 2009-12-19 Bruno Haible <bruno@clisp.org>
5117 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5118 * tests/test-fprintf-posix3.sh: New file.
5119 * tests/test-fprintf-posix3.c: New file.
5120 * modules/fprintf-posix-tests (Files): Add them.
5121 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5123 2009-12-19 Eric Blake <ebb9@byu.net>
5125 dirfd: fix prototype
5126 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5127 * lib/dirfd.c (dirfd): Likewise.
5129 canonicalize: reduce memory usage
5130 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5132 Reported by Solar Designer <solar@openwall.com>.
5134 2009-12-19 Bruno Haible <bruno@clisp.org>
5136 New module attribute 'Applicability'.
5137 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5138 * gnulib-tool: New option --extract-applicability.
5139 (func_usage): Document it.
5140 (sed_extract_prog): Recognize it.
5141 (func_get_applicability): New function.
5142 (func_import): Generalize handling of 'link-warning' module.
5143 * modules/link-warning (Applicability): New section.
5144 * modules/arg-nonnull (Applicability): New section.
5145 Repoted by Simon Josefsson <simon@josefsson.org>.
5147 2009-12-19 Bruno Haible <bruno@clisp.org>
5150 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5151 * lib/fseeko.c (rpl_fseeko): Likewise.
5153 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5155 * lib/gl_list.h: Fix typo in comment.
5157 2009-12-16 Eric Blake <ebb9@byu.net>
5159 fcntl: use to simplify other modules
5160 * modules/cloexec (Depends-on): Add fcntl.
5161 * modules/fchdir (Depends-on): Likewise.
5162 * modules/fd-safer-flag (Depends-on): Likewise.
5163 * modules/unistd-safer (Depends-on): Likewise.
5164 * modules/dup3 (configure.ac): Set module indicator.
5165 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5167 * lib/fchdir.c (_gl_register_dup): Fix comment.
5168 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5169 * lib/dup-safer.c (dup_safer): Likewise.
5170 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5171 * lib/dup3.c (dup3): Likewise.
5172 * tests/test-fchdir.c (main): Enhance test.
5173 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
5175 fcntl: port portions of fcntl to mingw
5176 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5177 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5178 replacement for mingw.
5179 * modules/fcntl (Description): Update.
5180 (Depends-on): Add dup2.
5181 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5182 * modules/fcntl-h (Makefile.am): Substitute it.
5183 * lib/fcntl.in.h (fcntl): Update declaration.
5184 (F_DUPFD, F_GETFD): New macros, when needed.
5185 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5186 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5187 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5190 fcntl: work around cygwin bug in F_DUPFD
5191 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5192 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5193 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5194 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5195 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5197 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5198 * modules/fcntl (Files): List new files.
5199 (configure.ac): Run a test.
5200 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5201 * lib/fcntl.c (rpl_fcntl): Likewise.
5202 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5203 (gl_FCNTL_H): Always replace fcntl.h.
5204 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5205 * lib/fcntl.in.h (fcntl): Declare replacement.
5206 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5207 needed, plus a witness.
5208 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5209 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5210 * tests/test-fcntl.c: New file.
5211 * modules/fcntl-tests: Likewise.
5213 binary-io: avoid potential compilation warning
5214 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5217 fflush: avoid compilation error on NetBSD
5218 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5219 between off_t and fpos_t, since the latter is sometimes a struct.
5220 * lib/fseeko.c (rpl_fseeko): Likewise.
5221 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5223 2009-12-15 Eric Blake <ebb9@byu.net>
5225 fcntl-h, stdio, sys_ioctl: fix declarations
5226 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5227 function must not take arguments.
5228 * lib/sys_ioctl.in.h (ioctl): Likewise.
5229 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5230 (open): Add a link warning.
5232 2009-12-15 Jim Meyering <meyering@redhat.com>
5234 areadlink, areadlink-with-size: relax license to LGPLv2+
5235 * modules/areadlink (License): Relax to LGPLv2+.
5236 * modules/areadlink-with-size (License): Likewise.
5238 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5239 Bruno Haible <bruno@clisp.org>
5241 *printf: Fix memory leak.
5242 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5243 * lib/vfprintf.c (vfprintf): Likewise.
5244 * lib/dprintf.c (dprintf): Likewise.
5245 * lib/vdprintf.c (vdprintf): Likewise.
5247 2009-12-14 Eric Blake <ebb9@byu.net>
5249 accept4: adjust module dependencies
5250 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5252 utimens: one more try at avoiding compiler warning
5253 * lib/utimens.c (lutimens): Lower scope of result.
5255 2009-12-13 Bruno Haible <bruno@clisp.org>
5257 Move the malloc checking from module 'list' to new module 'xlist'.
5258 * modules/xlist: New file.
5259 * lib/gl_xlist.h: New file.
5260 * lib/gl_xlist.c: New file.
5261 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5262 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5263 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5264 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5265 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5266 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5267 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5268 gl_sortedlist_nx_add): New declarations.
5269 (struct gl_list_implementation): Rename and change methods accordingly.
5270 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5271 (gl_list_nx_create): Renamed from gl_list_create.
5272 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5273 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5274 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5275 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5276 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5277 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5278 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5279 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5280 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5281 gl_list_create_empty.
5282 (gl_list_nx_create): Renamed from gl_list_create.
5283 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5284 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5285 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5286 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5287 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5288 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5289 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5290 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5291 * lib/gl_array_list.c: Don't include xalloc.h.
5292 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5293 NULL upon out-of-memory.
5294 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5296 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5297 Change return type to 'int'.
5298 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5299 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5300 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5302 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5304 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5306 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5308 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5310 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5312 (gl_array_list_implementation): Update.
5313 * lib/gl_carray_list.c: Don't include xalloc.h.
5314 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5315 Return NULL upon out-of-memory.
5316 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5318 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5319 Change return type to 'int'.
5320 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5321 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5322 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5324 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5326 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5328 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5329 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5330 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5332 (gl_carray_list_implementation): Update.
5333 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5334 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5335 gl_linked_create_empty. Return NULL upon out-of-memory.
5336 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5338 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5339 Change return type to 'int'. Return -1 upon out-of-memory.
5340 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5342 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5344 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5346 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5347 NULL upon out-of-memory.
5348 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5350 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5352 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5354 * lib/gl_linked_list.c: Don't include xalloc.h.
5355 (gl_linked_list_implementation): Update.
5356 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5357 (add_to_bucket): Change return type to 'int'.
5358 (gl_linkedhash_list_implementation): Update.
5359 * lib/gl_anytree_list1.h (free_subtree): New function.
5360 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5361 gl_tree_create_empty. Return NULL upon out-of-memory.
5362 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5363 Change return type to 'int'. Return -1 upon out-of-memory.
5364 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5366 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5367 (gl_tree_remove_node): New function, moved here from
5368 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5369 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5371 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5372 malloc, not xmalloc. Return NULL upon out-of-memory.
5373 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5375 (gl_tree_remove_node_from_tree): New function, extracted from
5376 gl_tree_remove_node.
5377 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5379 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5381 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5383 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5385 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5386 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5387 not xmalloc. Return NULL upon out-of-memory.
5388 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5390 (gl_tree_remove_node_from_tree): New function, extracted from
5391 gl_tree_remove_node.
5392 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5394 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5396 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5398 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5400 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5401 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5402 gl_anytree_list1.h before gl_anyavltree_list2.h.
5403 (gl_avltree_list_implementation): Update.
5404 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5405 gl_anytree_list1.h before gl_anyavltree_list2.h.
5406 (gl_rbtree_list_implementation): Update.
5407 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5408 Change return type to 'int'. Return -1 upon out-of-memory. Use
5410 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5411 (gl_avltreehash_list_implementation): Update.
5412 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5413 (gl_rbtreehash_list_implementation): Update.
5414 * modules/array-list (Depends-on): Remove xalloc.
5415 * modules/carray-list (Depends-on): Likewise.
5416 * modules/linked-list (Depends-on): Likewise.
5417 * modules/linkedhash-list (Depends-on): Likewise.
5418 * modules/avltree-list (Depends-on): Likewise.
5419 * modules/rbtree-list (Depends-on): Likewise.
5420 * modules/avltreehash-list (Depends-on): Likewise.
5421 * modules/rbtreehash-list (Depends-on): Likewise.
5423 * modules/xsublist: New file.
5424 * lib/gl_xsublist.h: New file.
5425 * lib/gl_xsublist.c: New file.
5426 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5427 (gl_sublist_nx_create): New declaration.
5428 * lib/gl_sublist.c: Don't include xalloc.h.
5429 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5430 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5431 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5432 Change return type to 'int'. Return -1 upon out-of-memory.
5433 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5435 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5436 NULL upon out-of-memory.
5437 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5439 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5440 NULL upon out-of-memory.
5441 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5442 NULL upon out-of-memory.
5443 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5445 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5446 (gl_sublist_list_implementation): Update.
5447 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5449 * modules/sublist (Depends-on): Remove xalloc.
5451 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5452 * tests/test-carray_list.c: Likewise.
5453 * tests/test-linked_list.c: Likewise.
5454 * tests/test-linkedhash_list.c: Likewise.
5455 * tests/test-avltree_list.c: Likewise.
5456 * tests/test-rbtree_list.c: Likewise.
5457 * tests/test-avltreehash_list.c: Likewise.
5458 * tests/test-rbtreehash_list.c: Likewise.
5459 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5460 * modules/carray-list-tests (Makefile.am): Likewise.
5461 * modules/linked-list-tests (Makefile.am): Likewise.
5462 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5463 * modules/avltree-list-tests (Makefile.am): Likewise.
5464 * modules/rbtree-list-tests (Makefile.am): Likewise.
5465 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5466 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5468 * NEWS: Mention the changes.
5470 * lib/clean-temp.c: Include gl_xlist.h.
5471 * modules/clean-temp (Depends-on): Add xlist.
5473 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5474 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5476 * tests/test-array_oset.c: Include gl_xlist.h.
5477 * modules/array-oset-tests (Depends-on): Add xlist.
5479 Reported by José E. Marchesi <jemarch@gnu.org>.
5481 2009-12-13 Bruno Haible <bruno@clisp.org>
5483 Move the malloc checking from module 'oset' to new module 'xoset'.
5484 * modules/xoset: New file.
5485 * lib/gl_xoset.h: New file.
5486 * lib/gl_xoset.c: New file.
5487 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5489 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5490 (struct gl_oset_implementation): Rename and change methods accordingly.
5491 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5492 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5493 'int'. Mark as __warn_unused_result__.
5494 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5495 gl_oset_create_empty.
5496 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5498 * lib/gl_array_oset.c: Don't include xalloc.h.
5499 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5500 malloc, not xmalloc.
5501 (grow): Change return type to 'int'. Don't call xalloc_die.
5502 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5504 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5506 (gl_array_oset_implementation): Update.
5507 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5508 gl_tree_create_empty.
5509 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5511 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5512 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5514 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5516 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5518 (gl_avltree_oset_implementation): Update.
5519 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5520 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5522 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5524 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5526 (gl_rbtree_oset_implementation): Update.
5527 * modules/array-oset (Depends-on): Remove xalloc.
5528 * modules/avltree-oset (Depends-on): Likewise.
5529 * modules/rbtree-oset (Depends-on): Likewise.
5530 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5531 * tests/test-avltree_oset.c: Likewise.
5532 * tests/test-rbtree_oset.c: Likewise.
5533 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5534 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5535 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5536 * NEWS: Mention the change.
5538 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5540 maint.mk: allow a project to override release-prep commands
5541 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5542 commands into a new rule.
5543 (release-prep): New rule.
5544 (release-prep-hook): New overridable variable.
5546 2009-12-13 Bruno Haible <bruno@clisp.org>
5548 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5550 2009-12-13 Jim Meyering <meyering@redhat.com>
5552 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5553 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5555 2009-12-12 Bruno Haible <bruno@clisp.org>
5558 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5560 2009-12-12 Karl Berry <karl@gnu.org>
5562 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5564 2009-12-12 Bruno Haible <bruno@clisp.org>
5566 * m4/po.m4: Undo incorrect untabification.
5568 2009-12-12 Bruno Haible <bruno@clisp.org>
5570 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5571 * modules/c-strtod (Depends-on): Add locale.
5572 * modules/c-strtold (Depends-on): Likewise.
5574 2009-12-12 Bruno Haible <bruno@clisp.org>
5576 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5578 2009-12-11 Eric Blake <ebb9@byu.net>
5580 setenv: relax requirement in light of POSIX ruling
5581 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5583 * tests/test-setenv.c (main): Relax test.
5584 * tests/test-unsetenv.c (main): Likewise.
5585 * doc/posix-functions/setenv.texi (setenv): Document this.
5586 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5588 2009-12-11 Bruno Haible <bruno@clisp.org>
5590 New module 'fd-safer-flag'.
5591 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5592 * lib/dup-safer.c (dup_safer_flag): Remove function.
5593 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5594 * lib/fd-safer.c (fd_safer_flag): Remove function.
5595 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5596 * modules/cloexec (configure.ac): Drop indicator macro.
5597 * modules/fd-safer-flag: New file.
5598 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5599 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5600 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5602 2009-12-11 Bruno Haible <bruno@clisp.org>
5604 Tests for module 'nl_langinfo'.
5605 * modules/nl_langinfo-tests: New file.
5606 * tests/test-nl_langinfo.sh: New file.
5607 * tests/test-nl_langinfo.c: New file.
5609 New module 'nl_langinfo'.
5610 * lib/nl_langinfo.c: New file.
5611 * m4/nl_langinfo.m4: New file.
5612 * modules/nl_langinfo: New file.
5613 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5615 2009-12-11 Bruno Haible <bruno@clisp.org>
5617 Tests for module 'langinfo'.
5618 * modules/langinfo-tests: New file.
5619 * tests/test-langinfo.c: New file.
5621 New module 'langinfo'.
5622 * lib/langinfo.in.h: New file.
5623 * m4/langinfo_h.m4: New file.
5624 * modules/langinfo: New file.
5625 * doc/posix-headers/langinfo.texi: Mention the new module.
5627 2009-12-11 Bruno Haible <bruno@clisp.org>
5629 * lib/config.charset: Untabify.
5631 2009-12-11 Bruno Haible <bruno@clisp.org>
5633 * modules/unistd-safer (configure.ac): Drop indicator macro.
5635 2009-12-11 Bruno Haible <bruno@clisp.org>
5637 Move pipe2-safer code to its own file.
5638 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5639 * lib/pipe-safer.c (pipe2_safer): Remove function.
5640 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5641 (Makefile.am): Add it to lib_SOURCES.
5643 2009-12-10 Bruno Haible <bruno@clisp.org>
5645 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5647 2009-12-10 Bruno Haible <bruno@clisp.org>
5649 Declare which arguments expect non-NULL values, for GCC and clang.
5650 * build-aux/arg-nonnull.h: New file.
5651 * modules/arg-nonnull: New file.
5652 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5653 (inet_ntop, inet_pton): Use it.
5654 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5655 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5656 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5657 (open, openat): Use it.
5658 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5660 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5661 (getopt, getopt_long, getopt_long_only): Use it.
5662 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5663 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5665 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5666 (iconv_open): Use it.
5667 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5668 (strtoimax, strtoumax): Use it.
5669 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5670 (duplocale): Use it.
5671 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5672 (frexp, frexpl): Use it.
5673 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5674 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5675 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5676 (tsearch, tfind, tdelete, twalk): Use it.
5677 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5678 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5679 sigpending): Use it.
5680 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5681 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5682 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5683 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5684 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5685 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5686 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5687 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5688 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5689 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5690 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5692 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5693 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5694 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5695 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5696 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5697 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5698 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5699 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5700 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5701 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5702 strtoull, unsetenv): Use it.
5703 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5704 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5705 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5706 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5707 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5708 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5709 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5710 (strcasecmp, strncasecmp): Use it.
5711 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5712 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5713 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5714 rpl_setsockopt): Use it.
5715 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5716 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5717 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5718 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5719 (gettimeofday): Use it.
5720 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5722 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5724 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5725 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5726 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5727 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5728 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5729 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5730 unlinkat, write): Use it.
5731 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5732 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5733 * lib/argv-iter.h: Include arg-nonnull.h.
5734 (_ATTRIBUTE_NONNULL_): Remove macro.
5735 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5736 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5737 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5739 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5740 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5741 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5742 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5743 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5744 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5745 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5746 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5747 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5748 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5749 * modules/dirent (Depends-on): Add arg-nonnull.
5750 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5751 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5752 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5753 * modules/fnmatch (Depends-on): Add arg-nonnull.
5754 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5755 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5756 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5757 * modules/glob (Depends-on): Add arg-nonnull.
5758 (Makefile.am): Insert arg-nonnull.h into glob.h.
5759 * modules/iconv_open (Depends-on): Add arg-nonnull.
5760 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5761 * modules/inttypes (Depends-on): Add arg-nonnull.
5762 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5763 * modules/locale (Depends-on): Add arg-nonnull.
5764 (Makefile.am): Insert arg-nonnull.h into locale.h.
5765 * modules/math (Depends-on): Add arg-nonnull.
5766 (Makefile.am): Insert arg-nonnull.h into math.h.
5767 * modules/netdb (Depends-on): Add arg-nonnull.
5768 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5769 * modules/search (Depends-on): Add arg-nonnull.
5770 (Makefile.am): Insert arg-nonnull.h into search.h.
5771 * modules/signal (Depends-on): Add arg-nonnull.
5772 (Makefile.am): Insert arg-nonnull.h into signal.h.
5773 * modules/spawn (Depends-on): Add arg-nonnull.
5774 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5775 * modules/stdio (Depends-on): Add arg-nonnull.
5776 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5777 * modules/stdlib (Depends-on): Add arg-nonnull.
5778 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5779 * modules/string (Depends-on): Add arg-nonnull.
5780 (Makefile.am): Insert arg-nonnull.h into string.h.
5781 * modules/strings (Depends-on): Add arg-nonnull.
5782 (Makefile.am): Insert arg-nonnull.h into strings.h.
5783 * modules/sys_socket (Depends-on): Add arg-nonnull.
5784 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5785 * modules/sys_stat (Depends-on): Add arg-nonnull.
5786 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5787 * modules/sys_time (Depends-on): Add arg-nonnull.
5788 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5789 * modules/sys_times (Depends-on): Add arg-nonnull.
5790 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5791 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5792 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5793 * modules/time (Depends-on): Add arg-nonnull.
5794 (Makefile.am): Insert arg-nonnull.h into time.h.
5795 * modules/unistd (Depends-on): Add arg-nonnull.
5796 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5797 * modules/wchar (Depends-on): Add arg-nonnull.
5798 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5799 * modules/argv-iter (Depends-on): Add arg-nonnull.
5800 * tests/test-canonicalize.c (null_ptr): New function.
5802 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5804 * tests/test-memmem.c (null_ptr): New function.
5806 Reported by Jim Meyering.
5808 2009-12-10 Bruno Haible <bruno@clisp.org>
5810 Use spaces for indentation, not tabs.
5811 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5812 * m4/*.m4: Untabify.
5813 * build-aux/*.h: Untabify.
5814 * tests/**/*.[hc]: Untabify.
5815 * README: New section "Indent with spaces, not TABs", based on
5816 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5817 * NEWS: Mention the change.
5819 2009-12-10 Bruno Haible <bruno@clisp.org>
5821 pty test: Fix link error.
5822 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5825 2009-12-07 Simon Josefsson <simon@josefsson.org>
5827 * modules/pty: New file.
5828 * modules/pty-tests: New file.
5829 * m4/pty.m4: New file.
5830 * tests/test-pty.c: New file.
5831 * doc/glibc-headers/pty.texi: Modified.
5832 * doc/glibc-functions/forkpty.texi: Modified.
5833 * doc/glibc-functions/openpty.texi: Modified.
5835 2009-12-10 Bruno Haible <bruno@clisp.org>
5837 Avoid syntax error in C++ mode.
5838 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5840 2009-12-10 Bruno Haible <bruno@clisp.org>
5842 Use sed with option -e.
5843 * gnulib-tool (func_version, func_emit_copyright_notice,
5844 func_emit_initmacro_end, func_import, func_create_testdir): Pass
5846 * modules/link-warning (Makefile.am): Likewise.
5848 2009-12-10 Jim Meyering <meyering@redhat.com>
5850 mgetgroups: do not write bytes beyond end of malloc'd buffer
5851 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
5852 username, we call getgroups with a one-element-shorter buffer,
5853 but still told it the length was original, max_n_groups.
5855 2009-12-09 Eric Blake <ebb9@byu.net>
5857 cloexec: relax license
5858 * modules/cloexec (Maintainer): Add myself.
5859 (License): Use LGPL, not GPL.
5861 link-warning: optimize generation
5862 * modules/link-warning (Makefile.am): Reduce process usage.
5864 2009-12-09 Bruno Haible <bruno@clisp.org>
5866 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5867 workaround was added on 2009-11-17.
5869 2009-12-09 Jim Meyering <meyering@redhat.com>
5870 Bruno Haible <bruno@clisp.org>
5872 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5873 * modules/link-warning (Makefile.am): Make the comment-removing sed
5874 command more robust in the face of bootstrap-prepended comment lines.
5876 2009-12-09 Bruno Haible <bruno@clisp.org>
5878 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5881 2009-12-09 Simon Josefsson <simon@josefsson.org>
5882 Bruno Haible <bruno@clisp.org>
5884 * build-aux/link-warning.h: Add copyright notice.
5885 * modules/link-warning (Makefile.am): Generate link-warning.h from
5886 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5887 * NEWS: Mention change in link-warning module.
5888 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5889 * modules/dirent (Makefile.am): Add dependency to dirent.h.
5890 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5891 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5892 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5893 * modules/math (Makefile.am): Add dependency to math.h.
5894 * modules/search (Makefile.am): Add dependency to search.h.
5895 * modules/signal (Makefile.am): Add dependency to signal.h.
5896 * modules/spawn (Makefile.am): Add dependency to spawn.h.
5897 * modules/stdio (Makefile.am): Add dependency to stdio.h.
5898 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5899 * modules/string (Makefile.am): Add dependency to string.h.
5900 * modules/strings (Makefile.am): Add dependency to strings.h.
5901 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5902 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5903 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5904 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5905 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5906 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5907 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5908 * modules/unistd (Makefile.am): Add dependency to unistd.h.
5909 * modules/wchar (Makefile.am): Add dependency to wchar.h.
5911 2009-12-09 Bruno Haible <bruno@clisp.org>
5913 fchdir: Optimize away rpl_fstat when possible.
5914 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5915 REPLACE_OPEN_DIRECTORY.
5916 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5918 2009-12-09 Bruno Haible <bruno@clisp.org>
5920 * lib/fchdir.c: Update comment.
5922 2009-12-09 Bruno Haible <bruno@clisp.org>
5924 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5926 2009-12-08 Eric Blake <ebb9@byu.net>
5928 fchdir: avoid memory leak on re-registration.
5929 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5931 2009-12-08 Jim Meyering <meyering@redhat.com>
5933 init.sh: avoid Solaris 10 /bin/sh portability problem
5934 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5936 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5937 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5939 tests/init.sh relied on that, accepting a --set-path=DIR argument,
5940 and two tests used that idiom.
5941 * tests/init.sh: Update suggested usage comments.
5942 (path_prepend_): New function, to be used in place
5943 of the --src-path=DIR option.
5944 (setup_): Move PATH-prepending code into path_prepend_.
5945 * tests/test-pread.sh: Adapt to new usage.
5946 * tests/test-xalloc-die.sh: Likewise.
5948 2009-12-08 Simon Josefsson <simon@josefsson.org>
5950 * doc/gnulib.texi (Glibc pty.h): Add.
5951 * doc/glibc-functions/forkpty.texi: Add.
5952 * doc/glibc-functions/openpty.texi: Add.
5953 Suggested by Bruno Haible.
5955 2009-12-08 Eric Blake <ebb9@byu.net>
5957 fchdir: fix logic bugs
5958 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5959 * tests/test-fchdir.c (main): Enhance test.
5960 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5963 dup2: fix logic bugs
5964 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
5965 REPLACE_DUP2 to decide when rpl_dup2 is needed.
5966 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5968 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5970 2009-12-07 Eric Blake <ebb9@byu.net>
5972 unlink: fix m4 detection
5973 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5975 unistd-safer: add unit test
5976 * modules/unistd-safer-tests: New file.
5977 * tests/test-dup-safer.c: Likewise.
5978 * tests/test-cloexec.c (setmode): Avoid compiler warning.
5979 * tests/test-dup2.c (setmode): Likewise.
5980 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5982 cloexec: preserve text vs. binary across dup_cloexec
5983 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5985 * modules/dup2-tests (Depends-on): Add binary-io.
5986 * modules/cloexec-tests (Depends-on): Likewise.
5987 * tests/test-dup2.c (setmode, is_mode): New helpers.
5988 (main): Add tests that translation mode is preserved.
5989 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5990 Reported by Bruno Haible.
5992 mgetgroups: reduce duplicate listings
5993 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5995 * tests/test-chown.h (test_chown): Simplify client.
5996 * tests/test-lchown.h (test_lchown): Likewise.
5998 2009-12-06 Bruno Haible <bruno@clisp.org>
6000 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6003 2009-12-06 Bruno Haible <bruno@clisp.org>
6005 * lib/progname.c: Include stdio.h, stdlib.h.
6006 (set_program_name): Reject a NULL argument.
6008 2009-12-05 Eric Blake <ebb9@byu.net>
6010 pipe2-safer: new module
6011 * modules/pipe2-safer: New file.
6012 * lib/unistd-safer.h (pipe2_safer): New prototype.
6013 * lib/unistd--.h (pipe2): New wrapper.
6014 * lib/pipe-safer.c (pipe2_safer): New function.
6015 * modules/pipe (Depends-on): Add pipe2-safer.
6016 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6018 stdlib-safer: preserve cloexec flag for mkostemp[s]
6019 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6022 unistd-safer: allow preservation of cloexec status via flag
6023 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6025 * lib/dup-safer.c (dup_safer_flag): New function.
6026 * lib/fd-safer.c (fd_safer_flag): Likewise.
6027 * modules/cloexec (configure.ac): Set witness.
6029 test-dup2: enhance test
6030 * modules/dup2-tests (Depends-on): Add cloexec.
6031 * tests/test-dup2.c (main): Enhance test.
6033 cloexec: add dup_cloexec
6034 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6035 header and comments.
6036 * lib/cloexec.c (set_cloexec_flag): Add comments.
6037 (dup_cloexec): New function, with mingw implementation borrowed
6039 * lib/w32spawn.h (dup_noinherit): ...here.
6040 * modules/execute (Depends-on): Add cloexec.
6041 * modules/pipe (Depends-on): Likewise.
6042 * modules/cloexec (Depends-on): Add dup2.
6043 * modules/cloexec-tests (Files): New file.
6044 * tests/test-cloexec.c: Likewise.
6046 test-xalloc-die: fix test for mingw
6047 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6048 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6049 directory and .exe suffix off argv[0] output.
6051 test-fseeko: fix test for mingw
6052 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6053 than undefining fseek, so test will pass on mingw.
6055 2009-12-05 Bruno Haible <bruno@clisp.org>
6057 * lib/progname.h (set_program_name): Clarify specification.
6058 * lib/progname.c (set_program_name): Likewise.
6059 Reported by Jim Meyering.
6061 2009-12-05 Jim Meyering <meyering@redhat.com>
6063 maint.mk: backslash-escape parens in default regexp
6064 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6065 backslash-escape the literal parentheses.
6067 maint.mk: news-date-check: use grep -E
6068 * top/maint.mk (today): Define a Make variable, not a...
6069 (news-date-check): ...shell variable.
6070 (news-date-regexp): Use the Make variable.
6071 Use grep's -E option. Change the failing diagnostic to mention
6072 the variable, $(news-date-regexp).
6074 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6076 maintainer-makefile: allow customization of NEWS entry format
6077 * top/maint.mk (news-date-regexp): New overridable variable.
6078 (news-date-check): Use it.
6080 2009-12-04 Eric Blake <ebb9@byu.net>
6082 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6083 * lib/mgetgroups.h (xgetgroups): New prototype.
6084 * lib/mgetgroups.c (xgetgroups): New wrapper.
6085 (mgetgroups): Handle ENOSYS.
6086 * modules/mgetgroups (Depends-on): Add realloc.
6087 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6089 mgetgroups: avoid argument promotion issues with -1
6090 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6092 * tests/test-chown.h (getegid, test_chown): Likewise.
6093 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6095 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6097 exclude: Fix header file problems.
6098 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6100 2009-12-01 Jim Meyering <meyering@redhat.com>
6102 fts: fts_open: do not let an empty string cause immediate failure
6103 This is required in support of GNU rm, for which the command
6104 "rm A '' B" must process and remove both A and B, in spite of
6105 the empty string argument.
6106 * lib/fts.c (fts_open): Do not let the presence of an empty string
6107 cause fts_open to fail immediately. Most fts-using tools must be
6108 able to process all arguments, in order, and can be expected to
6109 diagnose such arguments themselves.
6111 2009-11-30 Eric Blake <ebb9@byu.net>
6113 utimens: fix compilation error
6114 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6115 Declare variable at right scope.
6117 2009-11-29 Jim Meyering <meyering@redhat.com>
6119 bootstrap: handle perl-5.11's changed --version output
6120 * build-aux/bootstrap (get_version): Handle perl separately,
6121 since perl-5.11's --version output is different.
6123 2009-11-28 Jim Meyering <meyering@redhat.com>
6125 userspec: depend on the inttostr module, too
6126 * modules/userspec (Depends-on): Add inttostr.
6128 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6129 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6130 number of MAXUID when it evaluates to (uid_t) -1.
6131 Likewise for group ID. Reported by Matt McCutchen in
6132 <http://savannah.gnu.org/bugs/?28113>
6134 userspec: reformat to use spaces, not TABs
6135 * lib/userspec.c: Expand TABs to spaces.
6136 Add Emacs' "indent-tabs-mode: nil" hint.
6138 2009-11-27 Eric Blake <ebb9@byu.net>
6140 getopt-gnu: flush out another BSD bug
6141 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6142 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6144 * tests/test-getopt.h (test_getopt): End lists with NULL.
6145 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6146 (test_getopt_long_posix): Enhance test.
6147 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6148 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6150 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6153 2009-11-27 Simon Josefsson <simon@josefsson.org>
6155 * modules/idpriv-droptemp-tests (Notice): Fix text.
6157 2009-11-27 Jim Meyering <meyering@redhat.com>
6159 test-xalloc-die: avoid spurious failure due to libtool argv difference
6160 In a libtool-enabled project, this test would fail due to a difference
6161 in the emitted program name, e.g.,
6162 -test-xalloc-die: memory exhausted
6163 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6164 Use program to avoid that.
6165 * modules/xalloc-die-tests (Depends-on): Add progname.
6166 * tests/test-xalloc-die.c: Include progname.h".
6167 (program_name): Remove decl.
6168 (main): Call set_program_name.
6169 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6171 2009-11-26 Richard Jones <rjones@redhat.com>
6173 w32sock: leave win32 error in place.
6174 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6176 2009-11-26 Eric Blake <ebb9@byu.net>
6178 init.sh: suggest to use skip_ and fail_ functions in comments
6179 * tests/init.sh: Add a sentence.
6181 2009-11-25 Bruno Haible <bruno@clisp.org>
6183 init.sh: add documentation in comments
6184 * tests/init.sh: Add some developer and user documentation.
6186 2009-11-26 Jim Meyering <meyering@redhat.com>
6188 init.sh: accommodate even those who specify bogus srcdir manually
6189 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6190 configure-time tests to be sanitized, so that there is no need to
6191 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6192 (with no double quotes) suffices. However, since tests may be
6193 invoked manually, and since you may explicitly set srcdir to the
6194 name of a directory containing spaces, do quote its uses here.
6195 * tests/test-pread.sh: Likewise.
6196 Suggested by Bruno Haible.
6198 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6199 * tests/test-pread.sh: Write no data into the pipe, because
6200 test-pread actually reads none. This avoids a diagnostic,
6201 "bash: echo: write error: Broken pipe", that arises in the unusual
6202 event something is ignoring SIGPIPE, and might be interpreted
6203 as some sort of failure. Reported by Bruno Haible.
6205 2009-11-25 Jim Meyering <meyering@redhat.com>
6207 test-pread: cover failure with ESPIPE and EINVAL
6208 * tests/test-pread.c (main): Test for failure, too.
6209 * tests/test-pread.sh: Invoke with stdin on a pipe.
6210 Suggested by Eric Blake.
6212 pread: improvement and fix
6213 * modules/pread (Depends-on): Depend on lseek, for portability to
6214 e.g., mingw. Suggested by Eric Blake.
6215 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6217 unistd.in.h: correct declaration of pread
6218 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6219 Reported by Richard W.M. Jones.
6221 test-pread.sh: distribute the test script
6222 * modules/pread-tests (Files): Include test-pread.sh.
6224 test-pread.sh: clean up
6225 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6226 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6227 That is unnecessary, since it's always ".".
6228 Suggestion from Eric Blake.
6230 test-pread.sh: make executable
6231 * tests/test-pread.sh: Set executable bit.
6232 Reported by Eric Blake.
6234 correct typo in test-pread.sh
6235 * tests/test-pread.sh: Add #! line.
6238 * tests/test-pread.c: New file.
6239 * tests/test-pread.sh: Likewise.
6240 * modules/pread-tests: Likewise.
6243 * modules/pread: New file.
6244 * lib/unistd.in.h (pread): Define/declare.
6245 * lib/pread.c (pread): New file.
6246 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6247 * modules/unistd (Makefile.am): Substitute witnesses.
6248 * doc/posix-functions/pread.texi (pread): Update.
6249 * MODULES.html.sh: Add pread.
6251 2009-11-25 Jim Meyering <meyering@redhat.com>
6253 tests/init.sh: new file to be used via most *.sh tests
6254 * tests/init.sh: New file.
6256 2009-11-25 Eric Blake <ebb9@byu.net>
6258 utimens: work around older Linux failure with symlinks
6259 * lib/utimens.c (lutimensat_works_really): New variable.
6260 (fdutimens, lutimens): Use it to manage kernels that support
6261 nanosecond times on files, but not on symlinks.
6262 Reported by OndÅ™ej VaÅ¡Ãk.
6264 utimes: fix configure grammar
6265 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6267 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6269 regex: Fix fastmap for multibyte character ranges.
6270 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6271 characters when a multibyte character range is included.
6273 2009-11-22 Andy Wingo <wingo@pobox.com>
6275 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6276 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6278 2009-11-24 Bruno Haible <bruno@clisp.org>
6280 doc: Most *_l functions exist in MacOS X 10.5.
6281 * doc/posix-functions/duplocale.texi: Update platforms list.
6282 * doc/posix-functions/freelocale.texi: Likewise.
6283 * doc/posix-functions/newlocale.texi: Likewise.
6284 * doc/posix-functions/uselocale.texi: Likewise.
6285 * doc/posix-functions/isalnum_l.texi: Likewise.
6286 * doc/posix-functions/isalpha_l.texi: Likewise.
6287 * doc/posix-functions/isblank_l.texi: Likewise.
6288 * doc/posix-functions/iscntrl_l.texi: Likewise.
6289 * doc/posix-functions/isdigit_l.texi: Likewise.
6290 * doc/posix-functions/isgraph_l.texi: Likewise.
6291 * doc/posix-functions/islower_l.texi: Likewise.
6292 * doc/posix-functions/isprint_l.texi: Likewise.
6293 * doc/posix-functions/ispunct_l.texi: Likewise.
6294 * doc/posix-functions/isspace_l.texi: Likewise.
6295 * doc/posix-functions/isupper_l.texi: Likewise.
6296 * doc/posix-functions/iswalnum_l.texi: Likewise.
6297 * doc/posix-functions/iswalpha_l.texi: Likewise.
6298 * doc/posix-functions/iswblank_l.texi: Likewise.
6299 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6300 * doc/posix-functions/iswctype_l.texi: Likewise.
6301 * doc/posix-functions/iswdigit_l.texi: Likewise.
6302 * doc/posix-functions/iswgraph_l.texi: Likewise.
6303 * doc/posix-functions/iswlower_l.texi: Likewise.
6304 * doc/posix-functions/iswprint_l.texi: Likewise.
6305 * doc/posix-functions/iswpunct_l.texi: Likewise.
6306 * doc/posix-functions/iswspace_l.texi: Likewise.
6307 * doc/posix-functions/iswupper_l.texi: Likewise.
6308 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6309 * doc/posix-functions/isxdigit_l.texi: Likewise.
6310 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6311 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6312 * doc/posix-functions/strcoll_l.texi: Likewise.
6313 * doc/posix-functions/strfmon_l.texi: Likewise.
6314 * doc/posix-functions/strftime_l.texi: Likewise.
6315 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6316 * doc/posix-functions/strxfrm_l.texi: Likewise.
6317 * doc/posix-functions/tolower_l.texi: Likewise.
6318 * doc/posix-functions/toupper_l.texi: Likewise.
6319 * doc/posix-functions/towctrans_l.texi: Likewise.
6320 * doc/posix-functions/towlower_l.texi: Likewise.
6321 * doc/posix-functions/towupper_l.texi: Likewise.
6322 * doc/posix-functions/wcscoll_l.texi: Likewise.
6323 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6324 * doc/posix-functions/wctrans_l.texi: Likewise.
6325 * doc/posix-functions/wctype_l.texi: Likewise.
6326 * doc/glibc-functions/strptime_l.texi: Likewise.
6327 * doc/glibc-functions/strtod_l.texi: Likewise.
6328 * doc/glibc-functions/strtof_l.texi: Likewise.
6329 * doc/glibc-functions/strtol_l.texi: Likewise.
6330 * doc/glibc-functions/strtold_l.texi: Likewise.
6331 * doc/glibc-functions/strtoll_l.texi: Likewise.
6332 * doc/glibc-functions/strtoul_l.texi: Likewise.
6333 * doc/glibc-functions/strtoull_l.texi: Likewise.
6334 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6335 * doc/glibc-functions/wcstod_l.texi: Likewise.
6336 * doc/glibc-functions/wcstof_l.texi: Likewise.
6337 * doc/glibc-functions/wcstol_l.texi: Likewise.
6338 * doc/glibc-functions/wcstold_l.texi: Likewise.
6339 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6340 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6341 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6343 2009-11-24 Bruno Haible <bruno@clisp.org>
6345 duplocale: Fix logic bug.
6346 * lib/duplocale.c: Don't include <langinfo.h>.
6347 (_NL_LOCALE_NAME): Remove macro.
6348 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6349 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6351 2009-11-23 Jim Meyering <meyering@redhat.com>
6353 test-update-copyright: don't hard-code /usr/bin/perl
6354 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6355 perl to print the current year. Gilles Espinasse reported that
6356 the replaced use of perl was hard-coded as /usr/bin/perl.
6358 2009-11-23 Bruno Haible <bruno@clisp.org>
6360 duplocale: Add support for glibc 2.3.x.
6361 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6363 2009-11-22 Bruno Haible <bruno@clisp.org>
6365 vasnprintf: Tiny optimization.
6366 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6369 2009-11-22 Bruno Haible <bruno@clisp.org>
6371 Tests for module 'duplocale'.
6372 * modules/duplocale-tests: New file.
6373 * tests/test-duplocale.c: New file.
6375 New module 'duplocale'.
6376 * m4/duplocale.m4: New file.
6377 * lib/locale.in.h (duplocale): New declaration.
6378 * lib/duplocale.c: New file.
6379 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6380 gl_LOCALE_H_DEFAULTS): New macros.
6381 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6382 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6383 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6385 * modules/duplocale: New file.
6386 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6388 2009-11-22 Bruno Haible <bruno@clisp.org>
6390 * modules/locale-tests (configure.ac): Test for newlocale function.
6391 * tests/test-locale.c: When the system has extended locale functions,
6392 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6394 locale: Make locale_t available when possible.
6395 * lib/locale.in.h: Include <xlocale.h> when it exists.
6396 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6397 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6398 * modules/locale (Depends-on): Add extensions.
6399 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6400 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6402 2009-11-22 Bruno Haible <bruno@clisp.org>
6405 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6407 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6408 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6409 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6411 2009-11-22 Bruno Haible <bruno@clisp.org>
6413 error: account for the possibility of freopen (stdout).
6414 * lib/error.c: Include <unistd.h>.
6415 (flush_stdout): New function, extracted from error and error_at_line.
6416 Determine stdout's fd dynamically.
6417 (error, error_at_line): Invoke flush_stdout.
6418 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6419 * modules/error (Depends-on): Add unistd.
6421 2009-11-22 Bruno Haible <bruno@clisp.org>
6423 diffseq: Add comment.
6424 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6426 2009-11-22 Jim Meyering <meyering@redhat.com>
6428 c-stack: avoid defining an unused static function
6429 * lib/c-stack.c (find_stack_direction): Do not define this function
6430 when it will not be used.
6432 diffseq: avoid spurious gcc warnings
6433 * lib/diffseq.h (IF_LINT2): Define.
6434 (compareseq): Use it to initialize two members of "part".
6435 This avoids two used-uninitialized warnings.
6437 2009-11-21 Jim Meyering <meyering@redhat.com>
6439 c-stack: avoid "ignoring return value of `write'" warning
6440 * lib/c-stack.c: Include "ignore-value.h".
6441 (die): Explicitly ignore each write return value.
6442 * modules/c-stack (Depends-on): Add ignore-value.
6444 2009-11-21 Bruno Haible <bruno@clisp.org>
6446 diffseq: reduce scope of variable 'best'.
6447 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6448 variable, earlier used for two different purposes.
6450 2009-11-21 Jim Meyering <meyering@redhat.com>
6452 diffseq: remove useless assignment to "best"
6453 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6454 assignment. At that point "best" is already guaranteed to be zero.
6456 2009-11-20 Eric Blake <ebb9@byu.net>
6458 build: mention ftp redirector in release announcements
6459 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6460 values that used to come from cfg.mk; mention FTP redirect URL.
6461 * build-aux/announce-gen: Mention the mirror list.
6462 Suggested by Karl Berry.
6464 nanosleep: improve port to mingw
6465 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6466 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6467 LIB_NANOSLEEP, but only when needed.
6468 * modules/select (Link): Document LIBSOCKET.
6469 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6472 nanosleep: work around cygwin bug
6473 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6474 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6476 (getnow): Delete, not needed.
6477 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6479 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6480 clock-time, gettime.
6481 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6483 * modules/nanosleep-tests: New test.
6484 * tests/test-nanosleep.c: New file.
6486 sleep: work around cygwin bug
6487 * lib/sleep.c (rpl_sleep): Work around the bug.
6488 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6489 (gl_PREREQ_SLEEP): Delete unused macro.
6490 * modules/sleep (Depends-on): Add verify.
6491 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6492 * modules/unistd (Makefile.am): Substitute witness.
6493 * lib/unistd.in.h (sleep): Update prototype.
6494 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6495 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6496 * modules/sleep-tests (Depends-on): Check for alarm.
6498 2009-11-20 Jim Meyering <meyering@redhat.com>
6500 maint.mk: improve sc_prohibit_magic_number_exit
6501 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6502 so it does not match uses like System.exit(1).
6503 Add comments showing how to correct all offenders.
6505 2009-11-19 Eric Blake <ebb9@byu.net>
6507 xalloc-die-tests: add missing library
6508 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6510 test-xvasprintf: silence compiler warnings
6511 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6512 empty string from gcc.
6514 2009-11-19 Jim Meyering <meyering@redhat.com>
6516 xfreopen: new module, from coreutils
6517 * modules/xfreopen: New module.
6518 * lib/xfreopen.c: New file.
6519 * lib/xfreopen.h: New file.
6520 * MODULES.html.sh (File stream based Input/Output"): Add it.
6522 2009-11-19 Eric Blake <ebb9@byu.net>
6524 manywarnings: depend on warnings
6525 * modules/manywarnings (Depends-on): Add warnings.
6527 build: avoid compiler warnings
6528 * lib/select.c (rpl_select): Delete unused variable.
6529 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6531 2009-11-18 Eric Blake <ebb9@byu.net>
6533 tests: avoid false negative with --with-packager
6534 * tests/test-version-etc.sh: Discard packager information.
6535 * tests/test-argp-version-etc-1.sh: Likewise.
6536 Reported by Mike Frysinger.
6538 utimens: fix regression on Solaris
6539 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6540 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6541 can only change fd timestamps via futimesat. Instead, use an
6542 additional witness macro to avoid BSD bug.
6543 Reported by Jim Meyering.
6545 2009-11-17 Eric Blake <ebb9@byu.net>
6547 usleep: use it to simplify tests
6548 * modules/stat-time-tests (Depends-on): Add usleep.
6549 (configure.ac): Drop usleep check.
6550 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6551 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6552 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6553 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6554 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6555 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6556 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6557 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6559 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6560 * tests/test-lchown.h (nap): Likewise.
6561 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6562 * tests/test-stat-time.c (nap): Likewise.
6563 * tests/test-utimens-common.h (nap): Update comments.
6566 * modules/usleep: New file.
6567 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6568 * lib/usleep.c (usleep): Likewise.
6569 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6570 * modules/unistd (Makefile.am): Substitute witnesses.
6571 * lib/unistd.in.h (usleep): Add declaration.
6572 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6573 * MODULES.html.sh (Date and time): Likewise.
6574 * modules/usleep-tests (Depends-on): New test.
6575 * tests/test-usleep.c: New file.
6577 chown: work around OpenBSD bug
6578 * lib/chown.c (rpl_chown): Work around the bug.
6579 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6580 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6581 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6582 * modules/chown (Depends-on): Add stdbool.
6583 * modules/lchown (Depends-on): Likewise.
6584 * doc/posix-functions/chown.texi (chown): Document the bug.
6585 * doc/posix-functions/lchown.texi (lchown): Likewise.
6586 * tests/test-lchown.h (test_chown): Relax test.
6588 mkstemp: avoid conflict with C++ keyword template
6589 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6590 * lib/mkostemp.c (mkostemp): Likewise.
6591 * lib/mkostemps.c (mkostemps): Likewise.
6592 * lib/mkstemp.c (mkstemp): Likewise.
6593 * lib/mkstemps.c (mkstemps): Likewise.
6595 xalloc-die-tests: optimize
6596 * tests/test-xalloc-die.sh: Reduce number of processes.
6598 2009-11-17 Simon Josefsson <simon@josefsson.org>
6600 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6601 patch from ludo@gnu.org (Ludovic Courtès).
6603 2009-11-17 Jim Meyering <meyering@redhat.com>
6605 version-etc: use proper license string
6606 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6607 * modules/version-etc-fsf: Likewise.
6609 2009-11-17 Simon Josefsson <simon@josefsson.org>
6611 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6612 printed to stdout. Deal with EOL differences.
6614 2009-11-17 Eric Blake <ebb9@byu.net>
6616 unsetenv: work around Solaris bug
6617 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6618 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6619 Reported by Jim Meyering.
6621 vasnprintf: avoid compiler warnings
6622 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6624 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6626 2009-11-17 Simon Josefsson <simon@josefsson.org>
6628 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6629 settings since xalloc-die is no longer the self test,
6632 2009-11-17 Jim Meyering <meyering@redhat.com>
6634 test-xalloc-die.sh: make the code agree with the commit log
6635 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6636 at the end, just in case you happen to have a test-xalloc-die
6637 program in some other PATH directory.
6639 test-xalloc-die.sh: fix a portability bug
6640 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6641 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6642 Otherwise, argv[0] (as often seen in diagnostics) would be too
6643 system-dependent, sometimes with, and sometimes without the leading "./".
6645 version-etc-fsf: relax license to LGPLv3+
6646 * modules/version-etc-fsf (License): Relax license.
6648 2009-11-16 Eric Blake <ebb9@byu.net>
6650 xalloc-die-tests: avoid printing null pointer
6651 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6653 * tests/test-xalloc-die.c (program_name): Declare.
6654 * tests/test-xalloc-die.sh (tmpfiles): New file.
6656 setenv, unsetenv: work around various bugs
6657 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6658 (setenv) [HAVE_SETENV]: Work around bugs.
6659 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6660 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6662 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6663 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6664 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6665 * modules/stdlib (Makefile.am): Update substitutions.
6666 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6667 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6668 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6669 * modules/setenv-tests: New test.
6670 * modules/unsetenv-tests: Likewise.
6671 * tests/test-setenv.c: New file.
6672 * tests/test-unsetenv.c: Likewise.
6674 2009-11-16 Jim Meyering <meyering@redhat.com>
6676 version-etc: relax license to LGPLv3+
6677 * modules/version-etc (License): Relax license.
6679 better AC_REQUIRE expanded-before-required-warning avoidance
6680 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6681 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6682 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6683 which is no longer needed.
6685 2009-11-16 Eric Blake <ebb9@byu.net>
6687 test-freading: clean up temporary file
6688 * tests/test-freading.c (main): Remove file on success, and use
6689 ASSERT more liberally.
6690 Reported by Jim Meyering.
6692 2009-11-16 Jim Meyering <meyering@redhat.com>
6694 avoid new AC_REQUIRE expanded-before-required warnings
6695 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6697 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6698 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6700 2009-11-15 Simon Josefsson <simon@josefsson.org>
6702 * tests/test-xalloc-die.c: New file.
6703 * modules/xalloc-die-tests: New file.
6704 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6705 XFAIL_TESTS so it can be appended by modules.
6707 2009-11-15 Simon Josefsson <simon@josefsson.org>
6709 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6710 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6712 2009-11-14 Eric Blake <ebb9@byu.net>
6714 fnmatch: avoid compiler warning
6715 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6716 to silence compiler warning about mismatch signedness in ?:.
6717 Reported by Robert Millan.
6719 intprops: add double-inclusion guard
6720 * lib/intprops.h: Allow idempotent includes.
6721 Suggested by Bruce Korb.
6723 openat: detect Solaris fchownat bug
6724 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6725 penalizing glibc chownat when only lchownat is broken.
6726 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6727 trailing slash bugs.
6728 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6729 * modules/openat-tests (Files): Include more files.
6730 (Depends-on): Add mgetgroups, sleep, stat-time.
6731 (configure.ac): Add additional checks.
6732 (Makefile.am): Build new test.
6733 * tests/test-fchownat.c: New file.
6735 lchown: detect Solaris and FreeBSD bug
6736 * lib/lchown.c (rpl_lchown): Work around bug.
6737 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6738 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6739 * modules/unistd (Makefile.am): Populate it.
6740 * lib/unistd.in.h (lchown): Update declaration.
6741 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6742 * modules/lchown-tests: New file.
6743 * tests/test-lchown.h (test_lchown): Likewise.
6744 * tests/test-lchown.c (main): Likewise.
6746 chown: detect Solaris and FreeBSD bug
6747 * lib/chown.c (rpl_chown): Work around bug.
6748 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6749 (gl_PREREQ_CHOWN): Delete.
6750 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6751 * modules/unistd (Makefile.am): Populate it.
6752 * lib/unistd.in.h (chown): Update declaration.
6753 * lib/lchown.c (chown): Update client.
6754 * modules/lchown (Depends-on): Add lstat.
6755 * doc/posix-functions/chown.texi (chown): Document the bug.
6756 * doc/posix-functions/getgroups.texi (getgroups): Document
6758 * modules/chown-tests: New file.
6759 * tests/test-chown.h (test_chown): Likewise.
6760 * tests/test-chown.c (main): Likewise.
6762 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6764 gnulib-tool: correctly detect absence of m4 directories
6765 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6767 2009-11-14 Jim Meyering <meyering@redhat.com>
6769 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6770 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6772 2009-11-14 John W. Eaton <jwe@gnu.org>
6774 strftime.h: wrap funtion declaration in extern "C" block
6775 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6777 2009-11-13 Eric Blake <ebb9@byu.net>
6779 getgroups: avoid compiler warning
6780 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6782 getgroups: work around FreeBSD bug
6783 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6784 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6785 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6786 * tests/test-getgroups.c (main): Fix buffer overrun.
6788 getgroups: avoid compilation failure
6789 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6790 * modules/getgroups (Depends-on): Add stdint.
6792 2009-11-13 Jim Meyering <meyering@redhat.com>
6794 test-getgroups: avoid compilation failure
6795 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6797 2009-11-13 Eric Blake <ebb9@byu.net>
6799 mgetgroups: new module, taken from coreutils
6800 * modules/mgetgroups: New file.
6801 * lib/mgetgroups.h: Likewise.
6802 * lib/mgetgroups.c (mgetgroups): Likewise.
6803 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6804 * MODULES.html.sh (Users and groups): Mention it.
6806 getgroups: don't expose GETGROUPS_T to user
6807 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6808 an element at a time if GETGROUPS_T is wrong size.
6809 * lib/getugroups.h (getugroups): Change signature.
6810 * lib/unistd.in.h (getgroups): Likewise.
6811 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6812 signature needs fixing.
6813 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6815 * modules/group-member (Depends-on): Add getgroups.
6816 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6817 (group_member): Rely on getgroups replacement.
6818 * lib/getugroups.c (getugroups): Use gid_t.
6819 * tests/test-getgroups.c (main): Likewise.
6820 * NEWS: Mention the signature change.
6821 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6822 problem with signature.
6823 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6824 GETGROUPS_T is still useful for setgroups.
6826 getgroups, getugroups: provide stubs for mingw
6827 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6828 * lib/getugroups.c (getugroups): Likewise.
6829 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6830 function. Modernize replacement scheme.
6831 (gl_PREREQ_GETGROUPS): Delete.
6832 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6833 * modules/getgroups (configure.ac): Declare witness.
6834 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6835 * modules/unistd (Depends-on): Substitute witness.
6836 * lib/unistd.in.h (getgroups): Declare replacement.
6838 getgroups: avoid calling exit
6839 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6841 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6843 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6844 exiting, in the rare case of malloc failure.
6846 getgroups: fix logic error
6847 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6848 has more than 20 groups.
6849 * modules/getgroups-tests: New test.
6850 * tests/test-getgroups.c: New file.
6852 2009-11-13 Simon Josefsson <simon@josefsson.org>
6854 * tests/test-base64.c: Improve.
6856 2009-11-13 Simon Josefsson <simon@josefsson.org>
6858 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6859 Blake <ebb9@byu.net>.
6861 2009-11-13 Simon Josefsson <simon@josefsson.org>
6863 * tests/test-xvasprintf.c: Add %s%s related checks.
6865 2009-11-12 Eric Blake <ebb9@byu.net>
6867 version-etc: match standards.texi style
6868 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6869 and use <> only for URLs.
6871 2009-11-10 Kamil Dudka <kdudka@redhat.com>
6873 fts: do not fail on a submount during traversal
6874 * lib/fts.c (fts_build): Read the stat info again after opening
6875 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6876 Original report at http://bugzilla.redhat.com/501848.
6878 2009-11-12 Jim Meyering <meyering@redhat.com>
6880 bootstrap: sync from coreutils
6881 * build-aux/bootstrap (bootstrap_epilogue): New function.
6882 Use git_modules_config in one more place. This make bootstrap's
6883 --gnulib-srcdir option more useful for testing.
6885 bootstrap: generalize autoheader check
6886 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6889 2009-11-11 Eric Blake <ebb9@byu.net>
6891 mkfifoat: use new modules for Solaris and BSD bugs
6892 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6893 * lib/mkfifoat.c (mknodat): Split...
6894 * lib/mknodat.c (mknodat): ...into new file.
6895 * modules/mkfifoat (Files): Ship new file.
6896 (Depends-on): Add mkfifo, mknod.
6897 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6898 (Depends-on): Add symlink.
6899 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
6900 redundant with test_mkfifo.h.
6901 (do_mkfifoat, do_mknodat): New helpers.
6904 * modules/mknod: New file.
6905 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6906 * lib/mknod.c (mknod): Likewise.
6907 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6909 * modules/sys_stat (Makefile.am): Substitute them.
6910 * lib/sys_stat.in.h (mknod): Declare replacement.
6911 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6913 * doc/posix-functions/mknod.texi (mknod): Likewise.
6914 * modules/mknod-tests: New test.
6915 * tests/test-mknod.c: Likewise.
6918 * modules/mkfifo: New file.
6919 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6920 * lib/mkfifo.c (mkfifo): Likewise.
6921 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6923 * modules/sys_stat (Makefile.am): Substitute them.
6924 * lib/sys_stat.in.h (mkfifo): Declare replacement.
6925 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6927 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6928 * modules/mkfifo-tests: New test.
6929 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6930 from test-mkfifoat.c.
6931 * tests/test-mkfifo.c: New file.
6933 readlink: detect FreeBSD bug
6934 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6936 * doc/posix-functions/readlink.texi (readlink): Document the bug.
6937 * tests/test-readlink.h (test_readlink): Enhance test.
6939 symlink: detect FreeBSD bug
6940 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6942 * doc/posix-functions/symlink.texi (symlink): Document the bug.
6943 * tests/test-symlink.h (test_symlink): Enhance test.
6945 2009-11-10 Eric Blake <ebb9@byu.net>
6947 link: detect FreeBSD bug
6948 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6950 * doc/posix-functions/link.texi (link): Document the bug.
6951 * tests/test-link.h (test_link): Enhance test.
6952 * tests/test-linkat.c (main): Update caller.
6954 unlink, remove: detect FreeBSD bug
6955 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6957 * doc/posix-functions/unlink.texi (unlink): Document the bug.
6958 * doc/posix-functions/remove.texi (remove): Likewise.
6959 * tests/test-unlink.h (test_unlink): Enhance test.
6960 * tests/test-remove.c (main): Likewise.
6962 2009-11-09 Eric Blake <ebb9@byu.net>
6964 rename: detect FreeBSD bug
6965 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6967 * modules/renameat-tests (Depends-on): Add filenamecat.
6968 * tests/test-rename.h (test_rename): Allow one more errno.
6969 * tests/test-renameat.c (main): Likewise.
6970 * doc/posix-functions/rename.texi (rename): Document the bug.
6972 open: detect FreeBSD bug
6973 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6975 * doc/posix-functions/open.texi (open): Document the bug.
6976 * doc/posix-functions/utimes.texi (utimes): Likewise.
6977 * tests/test-open.h (test_open): Add parameters, and test symlink
6979 * tests/test-open.c (main): Adjust caller.
6980 * tests/test-fcntl-safer.c (main): Likewise.
6981 * modules/open-tests (Depends-on): Add stdbool, symlink.
6982 * modules/fcntl-safer-tests (Depends-on): Likewise.
6983 * tests/test-openat.c (main): Add test-open tests.
6985 stat: detect FreeBSD bug
6986 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6988 * doc/posix-functions/stat.texi (stat): Document the bug.
6989 * tests/test-stat.h (test_stat_func): Add argument.
6990 * tests/test-stat.c (main): Adjust caller.
6991 * tests/test-fstatat.c (main): Likewise.
6992 * modules/stat-tests (Depends-on): Add stdbool, symlink.
6993 Reported by Jim Meyering.
6995 2009-11-09 James Youngman <jay@gnu.org>
6997 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6998 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7000 2009-11-08 Jim Meyering <meyering@redhat.com>
7002 utimens: remove invalid futimesat call
7003 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7004 It used the file descriptor of the target file as the DIR_FD
7005 parameter and NULL as the file name. That caused failure with
7006 errno == EFAULT on FreeBSD-8.0-rc2
7008 2009-11-07 Eric Blake <ebb9@byu.net>
7010 fflush, freadseek: use fseeko, not fseek
7011 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7012 (clear_ungetc_buffer): Avoid potential problems on large files.
7013 * lib/freadseek.c (freadseek): Likewise.
7014 * modules/freadseek (Depends-on): Add fseeko.
7015 * modules/fseek (configure.ac): Set a witness.
7016 * tests/test-fflush.c (main): Use fseeko.
7017 * tests/test-fpurge.c (fseek): Disable link warning.
7018 * tests/test-freadable.c (fseek): Likewise.
7019 * tests/test-freading.c (fseek): Likewise.
7020 * tests/test-fseeko.c (fseek): Likewise.
7021 * tests/test-ftell.c (fseek): Likewise.
7022 * tests/test-ftello.c (fseek): Likewise.
7023 * tests/test-fwritable.c (fseek): Likewise.
7024 * tests/test-fwriting.c (fseek): Likewise.
7026 2009-11-06 Simon Josefsson <simon@josefsson.org>
7028 * modules/memchr (Depends-on): Drop getpagesize dependency.
7030 2009-11-06 Simon Josefsson <simon@josefsson.org>
7032 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7033 Reported by Ludovic Courtès.
7034 * build-aux/pmccabe2html: Improve example usage.
7035 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7037 2009-11-06 Jim Meyering <meyering@redhat.com>
7039 do-release-commit-and-tag: New module.
7040 Automate the release-commit and tag process.
7041 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7042 * modules/do-release-commit-and-tag: New file.
7043 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7045 2009-11-06 Simon Josefsson <simon@josefsson.org>
7047 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7048 because test-select.c uses inet_pton.
7050 2009-11-06 Simon Josefsson <simon@josefsson.org>
7052 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7053 GETADDRINFO_LIB. Bump serial number.
7054 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7055 Suggested by Eric Blake <ebb9@byu.net>.
7057 2009-11-05 Eric Blake <ebb9@byu.net>
7059 strtod: detect darwin bug
7060 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7061 Reported by Leo Davis.
7063 freopen-safer: new module
7064 * modules/freopen-safer: New module.
7065 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7066 * lib/freopen-safer.c (freopen_safer): New file.
7067 * lib/stdio-safer.h (freopen_safer): New declaration.
7068 * lib/stdio--.h (freopen): New override.
7069 * MODULES.html.sh (File stream based Input/Output): Mention it.
7070 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7071 freopen-safer module.
7072 * doc/posix-functions/stderr.texi (stderr): Likewise.
7073 * doc/posix-functions/stdin.texi (stdin): Likewise.
7074 * doc/posix-functions/stdout.texi (stdout): Likewise.
7075 * modules/freopen-safer-tests: New test.
7076 * tests/test-reopen-safer.c: New file.
7078 2009-11-05 Jim Meyering <meyering@redhat.com>
7080 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7081 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7083 2009-11-05 Simon Josefsson <simon@josefsson.org>
7085 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7087 2009-11-05 Simon Josefsson <simon@josefsson.org>
7089 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7091 2009-11-05 Simon Josefsson <simon@josefsson.org>
7094 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7095 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7097 2009-11-05 Simon Josefsson <simon@josefsson.org>
7099 * tests/test-func.c: Also test value of __func__.
7101 2009-11-05 Simon Josefsson <simon@josefsson.org>
7103 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7104 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7106 2009-11-05 Bruno Haible <bruno@clisp.org>
7109 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7110 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7111 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7113 2009-11-05 Bruno Haible <bruno@clisp.org>
7115 Tests for module 'inet_pton'.
7116 * modules/inet_pton-tests: New file.
7117 * tests/test-inet_pton.c: New file.
7119 2009-11-05 Bruno Haible <bruno@clisp.org>
7121 Tests for module 'inet_ntop'.
7122 * modules/inet_ntop-tests: New file.
7123 * tests/test-inet_ntop.c: New file.
7125 2009-11-04 Eric Blake <ebb9@byu.net>
7127 stdlib-safer: wrap all mkstemp variants
7128 * modules/mkostemp (configure.ac): Set witness.
7129 * modules/mkostemps (configure.ac): Likewise.
7130 * modules/mkstemps (configure.ac): Likewise.
7131 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7132 (mkstemps_safer): Wrap more functions.
7133 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7135 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7136 (mkstemps_safer): Implement the wrappers.
7138 mkstemps, mkostemps: new modules
7139 * modules/mkostemps: New module.
7140 * modules/mkstemps: Likewise.
7141 * lib/mkostemps.c (mkostemps): New file.
7142 * lib/mkstemps.c (mkstemps): Likewise.
7143 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7144 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7145 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7146 * modules/stdlib (Makefile.am): Substitute them.
7147 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7148 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7149 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7150 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7151 * MODULES.html.sh (File system functions): Mention them.
7153 tempname: resync from glibc
7154 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7155 same values for __GT_FILE as glibc. Abort even when assertions
7157 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7158 match its value otherwise. Allow idempotent inclusion.
7159 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7160 * lib/mkostemp.c (mkostemp): Likewise.
7161 * lib/mkstemp.c (mkstemp): Likewise.
7162 * lib/tmpfile.c (tmpfile): Likewise.
7163 * NEWS: Document this.
7165 utimens: fix use of futimens on older Linux
7166 * lib/utimens.c (fdutimens): Use updated, rather than original,
7167 timespec to avoid bug in older Linux kernel.
7168 Reported by Simon Josefsson.
7170 2009-11-04 Bruno Haible <bruno@clisp.org>
7172 Make num_processors more flexible and consistent.
7173 * lib/nproc.h (enum nproc_query): New type.
7174 (num_processors): Add a 'query' argument.
7175 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7176 (num_processors): Add a 'query' argument. Test the value of the
7177 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7178 mingw, count the number of CPUs available for the current process.
7179 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7180 Check for sched_getaffinity and sched_getaffinity_np.
7181 * modules/nproc (Depends-on): Add c-ctype, extensions.
7182 * NEWS: Mention the change.
7184 2009-11-03 Bruno Haible <bruno@clisp.org>
7186 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7188 2009-11-03 Jim Meyering <meyering@redhat.com>
7190 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7191 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7194 2009-11-02 Eric Blake <ebb9@byu.net>
7196 mktime, timegm: share common declaration
7197 * lib/mktime-internal.h: New file.
7198 * lib/mktime.c: Use it rather than open-coding a declaration.
7199 * lib/timegm.c: Likewise.
7200 * modules/mktime (Files): Ship it.
7201 * modules/timegm (Files): Likewise.
7202 Suggested by Bruno Haible.
7204 test-update-copyright: update test to match script changes
7205 * tests/test-update-copyright.sh: Avoid hard-coding perl
7206 location. Don't update *.bak created by earlier runs.
7208 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7209 Simon Josefsson <simon@josefsson.org>
7210 Bruno Haible <bruno@clisp.org>
7212 Fix link error on Solaris 8.
7213 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7214 also in libnsl. Define also INET_PTON_LIB.
7215 * modules/inet_pton (Link): New section.
7217 2009-11-02 Simon Josefsson <simon@josefsson.org>
7218 Bruno Haible <bruno@clisp.org>
7220 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7221 * modules/inet_ntop (Link): New section.
7222 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7224 2009-11-02 Eric Blake <ebb9@byu.net>
7226 maint: avoid compiler warnings in m4 macros
7227 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7228 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7230 2009-11-02 Simon Josefsson <simon@josefsson.org>
7232 * m4/pmccabe2html.m4: Remove file.
7233 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7234 function. Change maintainer.
7235 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7236 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7239 2009-10-31 Eric Blake <ebb9@byu.net>
7241 fseeko: fix m4 regression
7242 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7243 regression from 2009-10-27.
7244 Reported by Ralf Wildenhues.
7246 2009-10-31 Jim Meyering <meyering@redhat.com>
7248 inttostr: aesthetics and improved (compile-time) safety
7249 Define inttype_is_signed rather than inttype_is_unsigned,
7250 since the sole use is via "#if inttype_is_signed".
7251 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7252 inttype_is_unsigned.
7253 * lib/offtostr.c (inttype_is_signed): Likewise.
7254 * lib/uinttostr.c (inttype_is_signed): Likewise.
7255 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7256 * lib/inttostr.c (inttostr): Use verify to cross-check the
7257 inttype_is_signed value and the signedness of the actual type.
7258 * modules/inttostr (Depends-on): Add verify.
7260 2009-10-30 Eric Blake <ebb9@byu.net>
7262 build: avoid compiler warnings
7263 * lib/fchmodat.c (lchmod): Mark unused variables.
7264 * lib/getopt.c (_getopt_initialize): Likewise.
7265 * lib/mktime.c (__mktime_internal): Provide prototype.
7266 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7267 older gcc that do not understand #pragma GCC diagnostic.
7268 * lib/uinttostr.c (inttype_is_unsigned): Define.
7269 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7271 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7273 stat: fix compilation on AIX
7274 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7275 only see struct stat64.
7277 2009-10-30 Eric Blake <ebb9@byu.net>
7279 exclude: make more robust
7280 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7281 rather than masking a coding bug.
7282 Suggested by Bruno Haible.
7284 2009-10-30 Jim Meyering <meyering@redhat.com>
7286 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7287 Rather than putting #!/usr/bin/perl on the first line,
7288 start with a variant of what's recommended by "man perlrun" that
7289 invokes the first "perl" program from your shell's search path.
7290 * build-aux/gitlog-to-changelog: Replace #!... as above.
7291 Add a "Local Variables" perl mode setting.
7292 Prompted by a patch from Ludovic Courtès.
7293 Improved by Eric Blake.
7294 * build-aux/useless-if-before-free: Likewise.
7295 * build-aux/announce-gen: Likewise.
7296 * build-aux/update-copyright: Likewise.
7298 2009-10-29 Eric Blake <ebb9@byu.net>
7300 filenamecat-lgpl: adjust clients
7301 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7303 * modules/renameat (Depends-on): Likewise.
7305 filenamecat: split into filenamecat-lgpl
7306 * modules/filenamecat-lgpl: New module.
7307 * modules/filenamecat (Files): Move library-safe files into
7309 (Depends-on): Add filenamecat-lgpl.
7310 (configure.ac): Declare witness.
7311 * lib/filenamecat.h (file_name_concat): Only declare when using
7313 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7315 * lib/filenamecat-lgpl.c: ...into new file.
7316 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7317 (gl_FILE_NAME_CONCAT): Use it.
7318 * MODULES.html.sh (File system functions): Mention new module.
7320 argp: avoid memory leak
7321 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7322 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7323 base_name, since the latter malloc()s and can call exit().
7324 Leak introduced 2006-07-03.
7326 dirname-lgpl: adjust clients that don't need full dirname
7327 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7328 * modules/filenamecat (Depends-on): Likewise.
7329 * modules/linkat (Depends-on): Likewise.
7330 * modules/mkancesdirs (Depends-on): Likewise.
7331 * modules/mkdir (Depends-on): Likewise.
7332 * modules/openat (Depends-on): Likewise.
7333 * modules/savewd (Depends-on): Likewise.
7334 * modules/rename (Depends-on): Likewise.
7335 (License): Relax license.
7336 * modules/mkdir-tests (Depends-on): Drop progname.
7337 (Makefile.am): Delete unneeded LDADD.
7338 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7340 dirname: split into dirname-lgpl
7341 * modules/dirname-lgpl: New module.
7342 * modules/dirname (Files): Move library-safe files into
7344 (Depends-on): Add dirname-lgpl.
7345 (configure.ac): Declare witness.
7346 * modules/double-slash-root (License): Relax license.
7347 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7349 * lib/dirname.c (dir_len, mdir_name): Move...
7350 * lib/dirname-lgpl.c: ...into new file.
7351 * lib/basename.c (last_component, base_len): Move...
7352 * lib/basename-lgpl.c: ...into new file.
7353 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7354 (gl_DIRNAME): Use it.
7355 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7357 * modules/dirname-tests (Depends-on): Add progname.
7358 * tests/test-dirname.c (program_name): Delete.
7360 mkdir: make safe for libraries
7361 * modules/mkdir (Depends-on): Drop xalloc.
7362 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7365 tests: avoid some compiler warnings
7366 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7368 * tests/test-memchr.c (main): Avoid type mismatch.
7369 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7370 * tests/test-base64.c (main): Likewise.
7371 * tests/test-getdelim.c (main): Likewise.
7372 * tests/test-gethostname.c (main): Likewise.
7373 * tests/test-getline.c (main): Likewise.
7374 * tests/test-netinet_in.c (main): Likewise.
7375 * tests/test-select.c (open_server_socket, main): Likewise.
7376 * tests/test-select-stdin.c (main): Likewise.
7377 * tests/test-sockets.c (main): Likewise.
7378 * tests/test-strsignal.c (main): Likewise.
7379 * tests/test-sys_select.c (main): Likewise.
7380 * tests/test-sys_socket.c (main): Likewise.
7381 * tests/test-u64.c (main): Likewise.
7382 * tests/test-xfprintf-posix.c (main): Likewise.
7383 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7385 sockets: avoid compiler warning
7386 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7388 maint: detect usage(1) and other suspicious exits
7389 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7391 2009-10-29 Jim Meyering <meyering@redhat.com>
7393 timespec: long-to-int truncation could make timespec_cmp malfunction
7394 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7395 a multiple of 2^32 nanoseconds as no difference.
7397 2009-10-28 Jim Meyering <meyering@redhat.com>
7399 fprintftime: wrap macro code argument in "do {...} while(0)"
7400 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7401 cpy macro must be a statement that can be followed by a semicolon.
7402 Now that the else clause contains a comment and is hence longer
7403 than one line, I require curly braces. That in turn requires
7404 that we wrap this code block in the standard do...while(0).
7406 fprintftime: remove stray semicolon from previous change
7407 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7409 fprintftime: avoid a warning about ignored fwrite return value
7410 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7411 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7413 * modules/fprintftime (Depends-on): Add ignore-value.
7415 exclude: avoid an unwarranted warning
7416 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7418 2009-10-27 Eric Blake <ebb9@byu.net>
7420 fseek: avoid compilation failure when fflush is replaced
7421 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7422 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7424 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7425 module is not in use; since REPLACE_FSEEK worked otherwise.
7426 (GNULIB_FTELLO): Likewise for ftell.
7427 Reported by Ian Beckwith and others.
7429 2009-10-27 Bruno Haible <bruno@clisp.org>
7431 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7432 Reported by Jim Meyering.
7434 2009-10-27 Jim Meyering <jim@meyering.net>
7435 Bruno Haible <bruno@clisp.org>
7437 Avoid warning despite dropping the return value of fwrite.
7438 * lib/unicodeio.c: Include ignore-value.h.
7439 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7440 * modules/unicodeio (Depends-on): Add ignore-value.
7442 2009-10-26 Eric Blake <ebb9@byu.net>
7444 areadlinkat: fix fallback path
7445 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7448 2009-10-22 Pádraig Brady <P@draigBrady.com>
7450 Use a better IO block size for modern systems
7451 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7452 * lib/md2.c: Likewise.
7453 * lib/md4.c: Likewise.
7454 * lib/md5.c: Likewise.
7455 * lib/sha1.c: Likewise.
7456 * lib/sha256.c: Likewise.
7457 * lib/sha512.c: Likewise.
7459 2009-10-22 Eric Blake <ebb9@byu.net>
7461 tests: avoid several compiler warnings
7462 * tests/test-getcwd.c (main): Avoid buffer underflow.
7463 * tests/test-getdate.c (main): String literals are not safe with
7464 putenv, so use setenv. Declare unused argument.
7465 * modules/getdate-tests (Depends-on): Add setenv.
7466 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7467 problems with string literals in char *.
7468 * tests/test-hash.c (main): Avoid shadowing declaration.
7469 (insert_new): Treat string literals as char const *.
7470 * tests/test-getopt.h (test_getopt): Likewise.
7471 (getopt_loop): Alter types to minimize casting elsewhere.
7472 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7473 (test_getopt_long_posix): Likewise.
7474 (do_getopt_long): Add wrapper to minimize casting.
7475 * tests/test-atexit.c (clear_temp_file): Use void.
7476 * tests/test-areadlink-with-size.c (main): Declare unused
7478 * tests/test-areadlink.c (main): Likewise.
7479 * tests/test-areadlinkat-with-size.c (main): Likewise.
7480 * tests/test-areadlinkat.c (main): Likewise.
7481 * tests/test-canonicalize-lgpl.c (main): Likewise.
7482 * tests/test-canonicalize.c (main): Likewise.
7483 * tests/test-dirent-safer.c (main): Likewise.
7484 * tests/test-dirname.c (main): Likewise.
7485 * tests/test-dup2.c (main): Likewise.
7486 * tests/test-fchdir.c (main): Likewise.
7487 * tests/test-fcntl-h.c (main): Likewise.
7488 * tests/test-fcntl-safer.c (main): Likewise.
7489 * tests/test-fdopendir.c (main): Likewise.
7490 * tests/test-fdutimensat.c (main): Likewise.
7491 * tests/test-fflush.c (main): Likewise.
7492 * tests/test-filenamecat.c (main): Likewise.
7493 * tests/test-filevercmp.c (main): Likewise.
7494 * tests/test-fopen-safer.c (main): Likewise.
7495 * tests/test-fopen.c (main): Likewise.
7496 * tests/test-fpending.c (main): Likewise.
7497 * tests/test-fpurge.c (main): Likewise.
7498 * tests/test-freading.c (main): Likewise.
7499 * tests/test-fstatat.c (main): Likewise.
7500 * tests/test-fsync.c (main): Likewise.
7501 * tests/test-futimens.c (main): Likewise.
7502 * tests/test-getndelim2.c (main): Likewise.
7503 * tests/test-gettimeofday.c (main): Likewise.
7504 * tests/test-getopt.c (main): Likewise.
7505 * tests/test-i-ring.c (main): Likewise.
7506 * tests/test-inttypes.c (main): Likewise.
7507 * tests/test-link.c (main): Likewise.
7508 * tests/test-lstat.c (main): Likewise.
7509 * tests/test-math.c (main): Likewise.
7510 * tests/test-md5.c (main): Likewise.
7511 * tests/test-memchr2.c (main): Likewise.
7512 * tests/test-memrchr.c (main): Likewise.
7513 * tests/test-mkdir.c (main): Likewise.
7514 * tests/test-mkdirat.c (main): Likewise.
7515 * tests/test-mkfifoat.c (main): Likewise.
7516 * tests/test-open.c (main): Likewise.
7517 * tests/test-openat-safer.c (main): Likewise.
7518 * tests/test-openat.c (main): Likewise.
7519 * tests/test-quotearg.c (main): Likewise.
7520 * tests/test-rawmemchr.c (main): Likewise.
7521 * tests/test-readlink.c (main): Likewise.
7522 * tests/test-remove.c (main): Likewise.
7523 * tests/test-rename.c (main): Likewise.
7524 * tests/test-renameat.c (main): Likewise.
7525 * tests/test-rmdir.c (main): Likewise.
7526 * tests/test-sha1.c (main): Likewise.
7527 * tests/test-signal.c (main): Likewise.
7528 * tests/test-sigaction.c (main): Likewise.
7529 * tests/test-stat.c (main): Likewise.
7530 * tests/test-stat-time.c (main): Likewise.
7531 * tests/test-stddef.c (main): Likewise.
7532 * tests/test-stdint.c (main): Likewise.
7533 * tests/test-stdio.c (main): Likewise.
7534 * tests/test-stdlib.c (main): Likewise.
7535 * tests/test-strchrnul.c (main): Likewise.
7536 * tests/test-strerror.c (main): Likewise.
7537 * tests/test-string.c (main): Likewise.
7538 * tests/test-strtod.c (main): Likewise.
7539 * tests/test-strverscmp.c (main): Likewise.
7540 * tests/test-symlink.c (main): Likewise.
7541 * tests/test-symlinkat.c (main): Likewise.
7542 * tests/test-sys_stat.c (main): Likewise.
7543 * tests/test-sys_time.c (main): Likewise.
7544 * tests/test-time.c (main): Likewise.
7545 * tests/test-unistd.c (main): Likewise.
7546 * tests/test-unlink.c (main): Likewise.
7547 * tests/test-unlinkat.c (main): Likewise.
7548 * tests/test-utimens.c (main): Likewise.
7549 * tests/test-utimensat.c (main): Likewise.
7550 * tests/test-version-etc.c (main): Likewise.
7551 * tests/test-wchar.c (main): Likewise.
7552 * tests/test-wctype.c (main): Likewise.
7553 * tests/test-xprintf-posix.c (main): Likewise.
7554 * tests/test-posixtm.c (main): Likewise.
7555 (STREQ): Delete unused macro.
7556 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7558 * tests/test-memchr.c (main): Likewise.
7560 2009-10-21 Eric Blake <ebb9@byu.net>
7562 areadlinkat: avoid failure on older glibc
7563 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7564 rather than mis-comparing 0 against FUNC_RESULT of char*.
7566 2009-10-21 Bruno Haible <bruno@clisp.org>
7568 * modules/stpncpy (License): Relicense under LGPLv2+.
7569 Reported by David Lutterkort <lutter@redhat.com>.
7571 2009-10-20 Eric Blake <ebb9@byu.net>
7573 utimensat: work around Solaris 9 bug
7574 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7575 has trailing slash bugs.
7576 * tests/test-lutimens.h (test_lutimens): Enhance test.
7577 * tests/test-utimens.h (test_utimens): Likewise.
7578 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7579 * doc/posix-functions/utimes.texi (utimes): Likewise.
7580 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7581 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7582 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7583 * doc/posix-functions/futimens.texi (futimens): Likewise.
7585 fdutimensat: new module
7586 * modules/fdutimensat: New file.
7587 * lib/fdutimensat.c (fdutimensat): Likewise.
7588 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7589 * MODULES.html.sh (File system functions): Mention module.
7590 * modules/fdutimensat-tests: New test.
7591 * tests/test-fdutimensat.c: Likewise.
7593 doc: regenerate INSTALL
7594 * doc/INSTALL: Reflect recent autoconf update.
7595 * doc/INSTALL.ISO: Likewise.
7596 * doc/INSTALL.UTF-8: Likewise.
7598 2009-10-20 Pádraig Brady <P@draigBrady.com>
7600 acl: warn if ACL support is not detected
7601 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7603 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7605 * lib/nproc.h: Add extern "C" block for C++.
7607 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7608 Bruno Haible <bruno@clisp.org>
7610 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7611 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7612 * doc/posix-functions/isalpha.texi: Likewise.
7613 * doc/posix-functions/isblank.texi: Likewise.
7614 * doc/posix-functions/iscntrl.texi: Likewise.
7615 * doc/posix-functions/isdigit.texi: Likewise.
7616 * doc/posix-functions/isgraph.texi: Likewise.
7617 * doc/posix-functions/islower.texi: Likewise.
7618 * doc/posix-functions/isprint.texi: Likewise.
7619 * doc/posix-functions/ispunct.texi: Likewise.
7620 * doc/posix-functions/isspace.texi: Likewise.
7621 * doc/posix-functions/isupper.texi: Likewise.
7622 * doc/posix-functions/isxdigit.texi: Likewise.
7624 2009-10-18 Bruno Haible <bruno@clisp.org>
7626 Tests for module 'isblank'.
7627 * modules/isblank-tests: New file.
7628 * tests/test-isblank.c: New file.
7630 New module 'isblank'.
7631 * lib/isblank.c: New file.
7632 * m4/isblank.m4: New file.
7633 * modules/isblank: New file.
7634 * doc/posix-functions/isblank.texi: Mention the new module.
7636 2009-10-18 Bruno Haible <bruno@clisp.org>
7639 * lib/ctype.in.h: New file.
7640 * m4/ctype.m4: New file.
7641 * modules/ctype: New file.
7642 * doc/posix-headers/ctype.texi: Mention the new module.
7644 2009-10-18 Jim Meyering <meyering@redhat.com>
7646 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7647 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7648 right after its initialization, rather than farther down.
7649 Keeping these in close proximity makes it easier to ensure
7650 that each such variable is initialized. E.g.,
7653 AC_SUBST([LIB_CLOCK_GETTIME])
7655 This change also increments these serial numbers.
7656 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7657 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7658 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7660 2009-10-18 Bruno Haible <bruno@clisp.org>
7662 Don't let environment variables perturb build.
7663 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7664 (gl_PREREQ_GETHRXTIME): ... not here.
7666 2009-10-18 Bruno Haible <bruno@clisp.org>
7668 Avoid symlink attack in localcharset module.
7669 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7670 (O_NOFOLLOW): Define fallback.
7671 (get_charset_aliases): Don't open the file if it is a symbolic link.
7672 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7674 (gl_FCNTL_H): Require it.
7675 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7676 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7677 Reported by Fergal Glynn <fglynn@veracode.com>.
7679 2009-10-18 Bruno Haible <bruno@clisp.org>
7681 Implement nproc for mingw.
7682 * lib/nproc.c: Include <windows.h>
7683 (num_processors): On native Windows platforms, try GetSystemInfo.
7685 2009-10-18 Bruno Haible <bruno@clisp.org>
7687 Implement nproc for IRIX.
7688 * lib/nproc.c: Include <sys/sysmp.h>.
7689 (num_processors): On IRIX systems, try sysmp.
7690 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7692 2009-10-18 Bruno Haible <bruno@clisp.org>
7694 Implement nproc for HP-UX.
7695 * lib/nproc.c: Include <sys/pstat.h>
7696 (num_processors): On HP-UX systems, try pstat_getdynamic.
7697 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7700 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7701 Bruno Haible <bruno@clisp.org>
7703 Implement nproc for NetBSD, OpenBSD.
7704 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7705 (ARRAY_SIZE): New macro.
7706 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7707 * m4/nproc.m4: New file.
7708 * modules/nproc (Files): Add m4/nproc.m4.
7709 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7710 (Makefile.am): Instead, augment lib_SOURCES.
7712 2009-10-18 Bruno Haible <bruno@clisp.org>
7714 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7715 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7718 2009-10-16 Eric Blake <ebb9@byu.net>
7720 utimensat: new module
7721 * modules/utimensat: New file.
7722 * lib/utimensat.c (utimensat): Likewise.
7723 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7724 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7725 so we can work around Linux bugs.
7726 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7727 * modules/sys_stat (Makefile.am): Substitute them.
7728 * lib/sys_stat.in.h (utimensat): Declare it.
7729 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7730 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7731 * modules/utimensat-tests: New test.
7732 * tests/test-utimensat.c: Likewise.
7734 utimens: let lutimens work on non-symlinks
7735 * lib/utimens.c (lutimens): Fall back to utimens rather than
7736 failing with ENOSYS, when file is not a symlink.
7737 (utimens): Reduce redirection.
7738 * tests/test-lutimens.h (test_lutimens): Update test to cover
7740 * tests/test-utimens.h (test_utimens): Update test to cover
7742 * tests/test-utimens.c (main): Update caller.
7744 utimens: cache whether utimensat syscall works
7745 * lib/utimens.c (utimensat_works_really): New cache variable.
7746 (fdutimens, lutimens): Use it to avoid failing syscall.
7748 test-stat-time, test-utimens: improve portability
7749 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7750 ext4 on alpha, and for cygwin.
7751 * tests/test-utimens-common.h: New file.
7752 (nap): Factor delays into single function.
7753 * tests/test-lutimens.h (test_lutimens): Use new header.
7754 * tests/test-futimens.h (test_futimens): Likewise.
7755 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7756 timestamps to occur from same machine, as was done previously for
7758 * modules/utimens-tests (Files): Ship new file.
7759 * modules/futimens-tests (Files): Likewise.
7760 Reported in part by Jim Meyering.
7762 sys_stat: sort replacement declarations
7763 * lib/sys_stat.in.h: Sort declarations.
7764 * lib/futimens.c (futimens): Fix typo.
7766 2009-10-15 Jim Meyering <meyering@redhat.com>
7768 don't let environment settings perturb build
7769 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7770 could cause a configure-time and/or build-time malfunction.
7771 Typically, a configure-time function-in-library test is performed
7776 prefix_saved_LIBS=$LIBS
7777 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7778 [test "$ac_cv_search_FUNC" = "none required" ||
7779 LIB_VAR=$ac_cv_search_FUNC])
7780 LIBS=$prefix_saved_LIBS
7782 However, in each of the files affected by this change, the LIB_VAR=
7783 initialization was omitted. Thus, when set in the environment, its
7784 value would propagate into generated Makefiles when FUNC is not found
7786 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7787 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7788 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7790 2009-10-14 Eric Blake <ebb9@byu.net>
7792 fchdir: avoid infinite recursion in mingw
7793 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7796 test-stat-time: port to mingw
7797 * tests/test-stat-time.c (force_unlink): Return a value.
7798 (test_ctime) [W32]: Fix compilation error.
7799 (nap): Don't call usleep with too large an argument. Use
7801 * doc/pastposix-functions/usleep.texi (usleep): Document the
7804 2009-10-13 Jim Meyering <meyering@redhat.com>
7806 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7807 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7808 * modules/pipe-filter-ii: Likewise.
7809 * modules/sys_socket-tests: Likewise.
7810 * modules/tsearch-tests: Likewise.
7811 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7812 (check): Depend on it.
7814 2009-10-12 Eric Blake <ebb9@byu.net>
7816 utimens-tests: port to NFS file systems
7817 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7818 comparisons to avoid spurious failures from timestamp drift
7819 between NFS machines.
7821 2009-10-12 Eric Blake <ebb9@byu.net>
7823 stat-time-tests: minor cleanups
7824 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7825 * tests/test-stat-time.c (nap): Separate assignment from call.
7826 Suggested by Paolo Bonzini and Bruno Haible.
7828 sys_stat: guarantee struct timespec
7829 * lib/sys_stat.in.h (includes): Always include <time.h>
7830 * modules/sys_stat (Depends-on): Add time.
7831 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7832 mode_t permission values.
7833 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7834 get at subsecond timestamps.
7836 2009-10-10 Eric Blake <ebb9@byu.net>
7838 futimens: new module
7839 * modules/futimens: New file.
7840 * lib/futimens.c (futimens): Likewise.
7841 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7842 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7843 we can work around Linux bugs.
7844 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7845 * modules/sys_stat (Makefile.am): Substitute them.
7846 * lib/sys_stat.in.h (futimens): Declare it.
7847 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7848 * doc/posix-functions/futimens.texi (futimens): Likewise.
7849 * modules/futimens-tests: New test.
7850 * tests/test-futimens.c: Likewise.
7852 utimens: introduce fdutimens
7853 * lib/utimens.h (fdutimens): New prototype.
7854 * lib/utimens.c (gl_futimens): Move guts...
7855 (fdutimens): ...to new interface.
7856 * tests/test-utimens.c (do_fdutimens): Use it.
7858 utimens: add UTIME_NOW and UTIME_OMIT support
7859 * lib/utimens.c (validate_timespec, update_timespec): New helper
7861 (gl_futimens, lutimens): Use them.
7862 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7864 (Link): Mention resulting library dependency.
7865 * modules/utimecmp (Link): Likewise.
7866 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7867 (Makefile.am): Pick up library dependency.
7868 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7870 * tests/test-sys_stat.c: Test the definitions.
7871 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7872 * NEWS: Document library dependency.
7874 utimecmp: support symlink timestamps
7875 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
7876 hashing when possible. Use pathconf when available.
7877 (SYSCALL_RESOLUTION): Recognize tighter resolution.
7878 * modules/utimecmp (Depends-on): Add lstat.
7880 utimens: add lutimens interface
7881 * lib/utimens.c (lutimens): New function.
7882 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7883 * lib/utimens.h (lutimens): Declare new interface.
7884 * tests/test-utimens.c (main): Enhance test.
7885 * tests/test-lutimens.h (test_lutimens): New file.
7886 * modules/utimens-tests (Files): Distribute it.
7887 (Depends-on): Add symlink.
7888 (configure.ac): Check for usleep.
7890 utimens: validate futimens usage
7891 * lib/utimens.c (gl_futimens): Require valid fd up front, using
7892 fewer syscalls on failure later on. Avoid compiler warning on
7894 * modules/utimens (Depends-on): Add dup2.
7897 * modules/utimens-tests: New test.
7898 * tests/test-utimens.h: New file.
7899 * tests/test-futimens.h: Likewise.
7900 * tests/test-utimens.c: Likewise.
7902 doc: mention timestamp portability issues
7903 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7905 * doc/posix-functions/utime.texi (utime): Likewise.
7906 * doc/posix-functions/utimes.texi (utimes): Likewise.
7907 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7909 * doc/posix-functions/futimens.texi (futimens): Mention utimens
7911 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7912 Mention weakness with symlink timestamps.
7913 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7914 to utimensat/futimens instead.
7915 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7917 test-dup2: enhance test
7918 * tests/test-dup2.c (main): Also check AT_FDCWD.
7920 test-stat-time: avoid more spurious failures
7921 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7922 xfs; and avoid race if the two timestamps cross quantization edge.
7924 relocatable: prefer 'file system' over 'filesystem'
7925 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7926 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7927 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7928 * doc/relocatable.texi (Enabling Relocatability): Likewise.
7929 * lib/relocatable.c (compute_curr_prefix): Likewise.
7931 2009-10-10 Jim Meyering <meyering@redhat.com>
7933 stat-time-tests: check for the usleep function
7934 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7936 2009-10-10 Bruno Haible <bruno@clisp.org>
7938 * modules/xnanosleep: Put the Link section after the Include section.
7940 2009-10-09 Eric Blake <ebb9@byu.net>
7942 dup2: work around FreeBSD 6.1 bug
7943 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7944 * doc/posix-functions/dup2.texi (dup2): Document it.
7945 Reported by Nelson H. F. Beebe and Jim Meyering.
7947 test-stat-time: port to buggy NFS clients
7948 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7949 (test_ctime): Also skip test if mtime and ctime are skewed.
7951 maint: prefer 'file system' over 'filesystem'
7952 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7953 * doc/posix-functions/lstat.texi (lstat): Likewise.
7954 * lib/file-has-acl.c (file_has_acl): Likewise.
7955 * lib/fwriteerror.c [TEST]: Likewise.
7956 * tests/test-areadlink.h (test_areadlink): Likewise.
7957 * tests/test-areadlinkat-with-size.c (main): Likewise.
7958 * tests/test-areadlinkat.c (main): Likewise.
7959 * tests/test-canonicalize-lgpl.c (main): Likewise.
7960 * tests/test-canonicalize.c (main): Likewise.
7961 * tests/test-fstatat.c (main): Likewise.
7962 * tests/test-linkat.c (main): Likewise.
7963 * tests/test-lstat.h (test_lstat_func): Likewise.
7964 * tests/test-mkdir.h (test_mkdir): Likewise.
7965 * tests/test-readlink.h (test_readlink): Likewise.
7966 * tests/test-remove.c (main): Likewise.
7967 * tests/test-rename.h (test_rename): Likewise.
7968 * tests/test-renameat.c (main): Likewise.
7969 * tests/test-rmdir.h (test_rmdir_func): Likewise.
7970 * tests/test-symlink.h (test_symlink): Likewise.
7971 * tests/test-symlinkat.c (main): Likewise.
7972 * tests/test-unlink.h (test_unlink_func): Likewise.
7973 * tests/test-unlinkat.c (main): Likewise.
7975 maint: make realtime library usage explicit
7976 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7977 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7978 * modules/settime (Link): Likewise.
7979 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7981 test-stat-time: speed up execution
7982 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7984 (nap): New helper function.
7985 (prepare_test): Use it to reduce sleep time.
7986 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7988 * modules/stat-time-tests (configure.ac): Check for usleep.
7990 2009-10-09 Jim Meyering <meyering@redhat.com>
7992 selinux-h: always use getfilecon wrappers
7993 * lib/getfilecon.c: New file.
7994 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7995 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7996 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7997 (fgetfilecon): Provide a stub.
7998 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7999 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8000 file unconditionally.
8001 When <selinux/selinux.h> is found, arrange to use wrappers.
8002 * modules/selinux-h (Files): Add getfilecon.c.
8003 (Makefile.am): Substitute include-next-related bits
8004 into the now-always-generated selinux/selinux.h file.
8005 * doc/glibc-functions/lgetfilecon.texi: New file.
8006 * doc/glibc-functions/fgetfilecon.texi: New file.
8007 * doc/glibc-functions/getfilecon.texi: New file.
8008 * doc/glibc-functions/getfilecon-desc.texi: New file.
8009 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8010 which to pull in the new files.
8011 * MODULES.html.sh (Misc): Add selinux-h.
8013 2009-10-08 Jim Meyering <meyering@redhat.com>
8015 unistd: fix comment typo
8016 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8018 2009-10-08 Eric Blake <ebb9@byu.net>
8020 areadlink: use SIZE_MAX consistently
8021 * modules/areadlink (Depends-on): Add stdint.
8022 * modules/areadlink-with-size (Depends-on): Likewise.
8023 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8024 gives NULL; drop sys/types, since unistd gives size_t; and add
8025 stdint for SIZE_MAX.
8026 (SIZE_MAX): Rely on headers.
8027 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8029 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8030 (SIZE_MAX): Likewise.
8031 (INITIAL_BUF_SIZE): Turn into enum.
8032 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8034 2009-10-08 Jim Meyering <meyering@redhat.com>
8036 areadlinkat: avoid compilation failure
8037 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8038 Fix typo in comment.
8040 2009-10-07 Eric Blake <ebb9@byu.net>
8042 areadlinkat-with-size: new module
8043 * modules/areadlinkat-with-size: New module.
8044 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8045 * lib/areadlink.h (areadlinkat): Declare it.
8046 * MODULES.html.sh (File system functions): Mention it.
8047 * modules/areadlinkat-with-size-tests: New test.
8048 * tests/test-areadlinkat-with-size.c: New file.
8050 xreadlinkat: new module
8051 * modules/xreadlinkat: New module.
8052 * lib/xreadlinkat.c (xreadlinkat): New file.
8053 * lib/xreadlink.h (xreadlinkat): Declare it.
8054 * MODULES.html.sh (File system functions): Mention it.
8056 areadlinkat: new module
8057 * lib/at-func.c (FUNC_FAIL): New define.
8058 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8059 * modules/areadlinkat: New module.
8060 * lib/linkat.c (areadlinkat): Move...
8061 * lib/areadlinkat.c (areadlinkat): ...to new file.
8062 * lib/areadlink.h (areadlinkat): Declare it.
8063 * modules/linkat (Depends-on): Add areadlinkat.
8064 * MODULES.html.sh (File system functions): Mention it.
8065 * modules/areadlinkat-tests: New test.
8066 * tests/test-areadlinkat.c: New file.
8068 areadlink, areadlink-with-size: add tests
8069 * modules/areadlink-tests: New test.
8070 * modules/areadlink-with-size-tests: Likewise.
8071 * tests/test-areadlink.h: New file.
8072 * tests/test-areadlink.c: Likewise.
8073 * tests/test-areadlink-with-size.c: Likewise.
8075 maint: minor cleanups
8076 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8077 _UNUSED_PARAMETER_ instead.
8078 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8079 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8080 * modules/linkat-tests (Files): Distribute test-link.h.
8082 openat, utimens: whitespace cleanup
8083 * lib/openat.c: Prefer space throughout, rather than mix of 8
8085 * lib/at-func.c: Likewise.
8086 * lib/utimens.c: Likewise.
8088 openat: avoid using wrong fd
8089 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8090 working directory chooses same fd.
8091 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8093 mkdir, mkdirat: fix cygwin 1.5.x bug
8094 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8095 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8096 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8098 (gl_PREREQ_MKDIR): Delete unused macro.
8099 * modules/mkdir (Files): Track file rename.
8100 (configure.ac): Update macro name.
8101 * modules/openat (Depends-on): Add mkdir.
8102 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8104 mkdir, mkdirat: add tests
8105 * modules/mkdir-tests: New test.
8106 * tests/test-mkdir.h: New file.
8107 * tests/test-mkdir.c: Likewise.
8108 * tests/test-mkdirat.c: Likewise.
8109 * modules/openat-tests (Files): Add new files.
8110 (Makefile.am): Run new test.
8112 2009-10-06 Eric Blake <ebb9@byu.net>
8114 doc: tweak *at function documentation
8115 * doc/posix-functions/faccessat.texi (faccessat): Mention
8116 known issue with replacement.
8117 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8118 * doc/posix-functions/linkat.texi (linkat): Likewise.
8119 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8120 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8121 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8122 * doc/posix-functions/renameat.texi (renameat): Likewise.
8123 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8125 openat: fix GNU/Hurd bug in unlinkat
8126 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8128 * doc/posix-functions/unlink.texi (unlink): Document this.
8129 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8131 fdopendir: fix GNU/Hurd bug
8132 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8133 allowing non-directory fds.
8134 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8135 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8136 * modules/dirent (Makefile.am): Substitute it.
8137 * lib/dirent.in.h (fdopendir): Declare replacement.
8138 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8139 * tests/test-fdopendir.c (main): Test something other than
8140 /dev/null, since on Hurd that behaves like a directory.
8142 test-symlink: port to GNU/Hurd
8143 * tests/test-symlink.h (test_symlink): Relax expected errno.
8145 doc: tweak more cygwin information
8146 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8147 now compatible with glibc.
8148 * doc/posix-functions/getopt.texi (getopt): Likewise.
8150 getopt-gnu: add another test
8151 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8152 guarantee behavior relied on by m4.
8153 * tests/test-getopt.c (main): Use it.
8154 * modules/getopt-posix-tests (Depends-on): Add setenv.
8155 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8157 getopt: fix compilation on darwin
8158 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8160 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8161 Reported by Ludovic Courtès.
8163 2009-10-06 Bruno Haible <bruno@clisp.org>
8165 * modules/size_max (Description): Discourage its use.
8166 Reported by Simon Josefsson.
8168 2009-10-06 Jim Meyering <meyering@redhat.com>
8170 linkat: avoid compilation failure
8171 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8173 2009-10-05 Eric Blake <ebb9@byu.net>
8175 linkat: support Linux 2.6.17
8176 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8177 linkat on Linux, but allow cache variable override.
8178 * lib/linkat.c (rpl_linkat): Define override.
8179 * modules/linkat (Depends-on): Add symlinkat.
8180 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8181 * modules/unistd (Makefile.am): Substitute it.
8182 * lib/unistd.in.h (linkat): Declare replacement.
8183 Reported by Pádraig Brady.
8185 quotearg: port test to systems with C.UTF-8 locale
8186 * tests/test-quotearg.c (struct result_strings): Add another
8187 member, differentiating between C.ASCII and C.UTF-8 handling.
8188 (compare_strings): Add parameter.
8189 (main): Adjust all callers.
8191 getopt: avoid clash with FreeBSD _getopt_internal
8192 * lib/getopt.in.h (_getopt_internal): Override the name.
8193 * lib/getopt_int.h (includes): Pick up any overrides.
8194 Reported by Reuben Thomas.
8196 hash: allow C89 compilation
8197 * lib/hash.c (check_tuning): Move declaration before statement.
8198 Reported by Reuben Thomas.
8200 2009-10-05 Karl Berry <karl@gnu.org>
8202 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8204 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8205 Bruno Haible <bruno@clisp.org>
8207 * lib/uname.c (uname): Use a table-driven algorithm to compute
8208 Windows NT versions.
8210 2009-10-04 Bruno Haible <bruno@clisp.org>
8212 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8213 program_invocation_short_name.
8214 * modules/progname (configure.ac): Test for presence of
8215 program_invocation_short_name.
8216 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8218 2009-10-04 Bruno Haible <bruno@clisp.org>
8220 * lib/progname.c (set_program_name): Fix comment.
8221 Reported by Jim Meyering.
8223 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8224 Bruno Haible <bruno@clisp.org>
8226 * lib/uname.c: Include <string.h>.
8227 (uname): Do only one call to GetVersionEx in the common case.
8229 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8230 Bruno Haible <bruno@clisp.org>
8232 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8233 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8234 (uname): Add support for Windows CE and various non-x86 CPU types.
8236 2009-10-03 Bruno Haible <bruno@clisp.org>
8238 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8239 invocation to tests/configure.ac.
8240 Reported by Ian Beckwith <ianb@erislabs.net>.
8242 2009-10-02 Eric Blake <ebb9@byu.net>
8244 fchdir: avoid compiler warning
8245 * lib/fchdir.c (canonicalize_file_name)
8246 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8248 test-open: support mingw errno values
8249 * tests/test-open.h (test_open): Relax test.
8250 * tests/test-fopen.h (test_fopen): Likewise.
8251 * tests/test-openat-safer.c (main): Likewise.
8253 open: fix opening directory on mingw
8254 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8256 test-open: on GNU/Hurd, /dev/null is a directory
8257 * tests/test-fopen.h (main): Rename...
8258 (test_fopen): ...to this. Use a guaranteed non-directory when
8259 confirming open behavior on trailing slash.
8260 * tests/test-openat-safer.c (main): Likewise.
8261 * tests/test-open.h (main): Likewise....
8262 (test_open): ...to this.
8263 * tests/test-fopen.c (main): Adjust caller.
8264 * tests/test-fopen-safer.c (main): Likewise.
8265 * tests/test-open.c (main): Likewise.
8266 * tests/test-fcntl-safer.c (main): Likewise.
8267 Reported by Samuel Thibault.
8269 rename, fchdir: don't ignore chdir failure
8270 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8271 * lib/rename.c (rpl_rename) [W32]: Likewise.
8272 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8273 an empty destination directory if source cannot be renamed,
8274 although there is still possibility for failure.
8275 * doc/posix-functions/rename.texi (rename): Document the race.
8276 Reported by Jim Meyering.
8278 maint: cleanup whitespace in recent commits
8279 * lib/rename.c (rpl_rename): Remove tabs.
8280 * tests/test-link.h (test_link): Likewise.
8281 * lib/fchdir.c (get_name): Likewise.
8282 Reported by Jim Meyering.
8284 2009-10-02 Ben Pfaff <blp@gnu.org>
8286 relocatable-prog-wrapper: Add missing dependency on
8288 * modules/relocatable-prog-wrapper: Add dependency.
8289 Reported by Ian Beckwith <ianb@erislabs.net>.
8291 2009-10-02 Eric Blake <ebb9@byu.net>
8293 renameat: fix Solaris bugs
8294 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8296 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8297 * modules/stdio (Makefile.am): Substitute it.
8298 * lib/stdio.in.h (renameat): Declare replacement.
8299 * lib/renameat.c (rpl_renameat): Implement fix.
8301 renameat: new module
8302 * modules/renameat: New file.
8303 * lib/renameat.c (renameat): Likewise.
8304 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8305 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8306 * modules/stdio (Makefile.am): Substitute them.
8307 * lib/stdio.in.h (renameat): Declare it.
8308 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8309 * doc/posix-functions/renameat.texi (renameat): Likewise.
8310 * modules/renameat-tests: New test.
8311 * tests/test-renameat.c: Likewise.
8313 rename: fix mingw bugs
8314 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8315 directory overwrite bugs.
8317 rename: fix another cygwin 1.5 bug
8318 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8320 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8321 unnecessary cygwin workarounds. Also work around bug with moving
8322 full directory onto an empty one.
8323 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8325 rename-dest-slash: merge into rename module
8326 * modules/rename-dest-slash (Status): Mark obsolete.
8327 (Depends-on): Add rename.
8328 (Files): Let rename do it all.
8329 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8330 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8331 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8332 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8333 * lib/rename.c (rpl_rename): Update comments.
8335 rename: fix cygwin 1.5.x bugs
8336 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8337 * lib/rename.c (rpl_rename): Work around them.
8338 * modules/rename (Depends-on): Add same-inode.
8340 rename: fix Solaris 10 bug
8341 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8342 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8345 rename: fix Solaris 9 bug
8346 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8347 on non-directory. Avoid calling exit.
8348 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8350 * modules/rename-tests (Depends-on): Drop lstat.
8351 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8352 (gl_PREREQ_RENAME): Delete unused macro.
8354 rename-dest-slash: fix NetBSD bug
8355 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8357 * modules/rename-dest-slash (Depends-on): Add same-inode.
8359 rename-tests: new test, exposes several platform bugs
8360 * modules/rename-tests: New file.
8361 * tests/test-rename.h: Likewise.
8362 * tests/test-rename.c: Likewise.
8363 * doc/posix-functions/rename.texi (rename): Improve documentation,
8364 including bugs that will eventually be fixed in gnulib.
8366 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8368 * lib/uname.c: Include <stdlib.h>
8369 (uname): Assume version info is available.
8371 2009-10-02 Jim Meyering <meyering@redhat.com>
8373 gnu-web-doc-update: correct --help output
8374 * build-aux/gnu-web-doc-update: Make --help output relevant.
8376 gnu-web-doc-update: add standard options
8377 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8379 gnu-web-doc-update: New module.
8380 Use this script to automatically update the on-line web documentation
8381 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8382 * modules/gnu-web-doc-update: New file, from coreutils.
8383 * build-aux/gnu-web-doc-update: New script.
8385 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8387 link: LoadLibrary is not needed.
8388 * lib/link.c: Use GetModuleHandle.
8390 2009-10-01 Eric Blake <ebb9@byu.net>
8392 getopt: bump serial number
8393 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8396 tests: tighten link, rmdir, and remove tests
8397 * tests/test-link.h (includes): No need to use <config.h> here.
8398 Clean up if directory hard link was created, otherwise test for
8400 * tests/test-linkat.c (main): Simplify.
8401 * tests/test-remove.c (main): Enhance test for trailing '.'.
8402 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8404 2009-10-01 Jim Meyering <meyering@redhat.com>
8406 maint.mk: requiring "make major" was annoying, for a "minor" release.
8407 What is intended is "stable", to contrast with alpha and beta,
8408 so require "make stable", not "make major".
8409 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8410 (get_tool_versions): Likewise.
8411 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8413 2009-09-30 Ben Pfaff <blp@gnu.org>
8415 Fix broken build of replacement for Windows tmpfile().
8416 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8417 flags argument added along with the 'mkostemp' module.
8419 2009-09-28 Bruno Haible <bruno@clisp.org>
8421 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8422 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8424 (gl_list_remove): Update.
8425 * lib/gl_list.c (gl_list_remove): Update.
8426 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8428 (gl_oset_remove): Update.
8429 * lib/gl_list.c (gl_oset_remove): Update.
8430 Reported by Eric Blake.
8432 2009-09-28 Eric Blake <ebb9@byu.net>
8434 doc: mention yet more cygwin 1.7 status
8435 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8437 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8438 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8440 argp: fix test failure
8441 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8442 that are not upper-case. Pass correct range to tolower.
8444 2009-09-27 Jim Meyering <meyering@redhat.com>
8446 test-yesno: work around sparc-dash here-document infelicity
8447 Without this change, the literal \177 byte in a here document
8448 would make dash 0.5.5.1-3 access uninitialized memory.
8449 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8450 Instead, use a marker, "@", and filter through tr to create the desired
8451 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8453 2009-09-27 Bruno Haible <bruno@clisp.org>
8455 Disable untested support for new flavours of ACLs on AIX.
8456 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8458 * lib/set-mode-acl.c (qset_acl): Likewise.
8460 2008-12-07 Bruno Haible <bruno@clisp.org>
8462 Add support for new flavours of ACLs on AIX. (Untested.)
8463 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8464 (file_has_acl): Add support for newer AIX.
8465 * lib/set-mode-acl.c (qset_acl): Likewise.
8466 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8467 Rainer Tammer <tammer@tammer.net>.
8469 2009-09-26 Eric Blake <ebb9@byu.net>
8471 argp: fix compilation of getopt
8472 * lib/getopt.in.h (includes): Use different guard than glibc.
8473 Reported by Sergey Poznyakoff.
8475 doc: mention more cygwin 1.7 status
8476 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8478 * doc/posix-functions/execl.texi (execl): Likewise.
8479 * doc/posix-functions/execle.texi (execle): Likewise.
8480 * doc/posix-functions/execlp.texi (execlp): Likewise.
8481 * doc/posix-functions/execv.texi (execv): Likewise.
8482 * doc/posix-functions/execve.texi (execve): Likewise.
8483 * doc/posix-functions/execvp.texi (execvp): Likewise.
8484 * doc/glibc-functions/canonicalize_file_name.texi
8485 (canonicalize_file_name): Cygwin 1.7 now provides this.
8486 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8487 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8488 on AT_SYMLINK_NOFOLLOW.
8490 2009-09-24 Eric Blake <ebb9@byu.net>
8492 test-linkat: make test more robust
8493 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8495 getopt: fix inclusion guards for cygwin
8496 * modules/getopt-posix (Depends-on): Add include-next.
8497 (Makefile.am): Substitute more items in replacement header.
8498 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8500 * lib/getopt.in.h (includes): Use split inclusion guard, and
8501 prefer <getopt.h> over include <unistd.h> when one is present.
8502 (option): Also override name of 'struct option'.
8504 same-inode: revert prior change; it is not yet ready
8505 * NEWS: Undo mention of this change.
8506 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8507 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8508 * lib/cycle-check.c (cycle_check): Likewise.
8509 * lib/same.c (same_name): Likewise.
8510 * lib/at-func2.c (at_func2): Likewise.
8512 2009-09-23 Eric Blake <ebb9@byu.net>
8515 * modules/linkat: New file.
8516 * lib/at-func2.c (at_func2): Likewise.
8517 * lib/linkat.c (linkat): Likewise.
8518 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8519 * lib/openat-priv.h (at_func2): Add declaration.
8520 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8521 * modules/unistd (Makefile.am): Substitute them.
8522 * lib/unistd.in.h (linkat): Declare it.
8523 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8524 * doc/posix-functions/linkat.texi (linkat): Likewise.
8525 * doc/posix-functions/link.texi (link): Tweak wording.
8526 * tests/test-link.c (main): Move guts...
8527 * tests/test-link.h (test_link): ...into new file.
8528 * modules/linkat-tests: New test.
8529 * tests/test-linkat.c: Likewise.
8530 * modules/link-tests (Files): Ship new file.
8531 (Depends-on): Add stdbool.
8533 dirname: add library-safe mdir_name
8534 * lib/dirname.h (mdir_name): New prototype.
8535 * lib/dirname.c (dir_name): Move guts...
8536 (mdir_name): ...to new function that avoids xalloc_die.
8538 fchdir: another mingw fix
8539 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8540 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8541 on mingw (where it has not yet been ported), and make it optional
8543 (_gl_register_fd): Use it.
8545 same-inode: make SAME_INODE tri-state, to port to mingw
8546 * NEWS: Mention this change.
8547 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8548 st_ino always being 0.
8549 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8550 * lib/cycle-check.c (cycle_check): Likewise.
8551 * lib/same.c (same_name): Likewise.
8553 lstat: avoid mingw compilation error
8554 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8555 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8557 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8559 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8560 the checks for lstat.
8561 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8563 link: fix test failure on Solaris 9
8564 * lib/link.c (rpl_link): Don't assume link will catch bogus
8565 trailing slash on source.
8567 test-symlinkat: enhance test
8568 * tests/test-readlink.c (main): Move guts...
8569 * tests/test-readlink.h (test_readlink): ...into new file.
8570 * tests/test-symlink.c (main): Move guts...
8571 * tests/test-symlink.h (test_symlink): ...into new file.
8572 * tests/test-symlinkat.c (main): Use new files for further
8574 (do_symlink, do_readlink): New helper functions.
8575 * modules/symlink-tests (Files): Ship new file.
8576 (Depends-on): Add stdbool.
8577 * modules/readlink-tests (Files): Ship new file.
8578 (Depends-on): Add stdbool.
8579 * modules/symlinkat-tests (Files): Use new files.
8581 2009-09-23 Eric Blake <ebb9@byu.net>
8583 readlink: document portability issue with symlink length
8584 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8585 systems have bogus st_size on symlinks, and mention the
8586 areadlink-with-size module.
8587 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8588 * doc/posix-functions/readlink.texi (readlink): Mention the
8589 areadlink module, and ERANGE failure.
8590 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8591 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8593 readlink: fix Solaris 9 bug with trailing slash
8594 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8595 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8596 * doc/posix-functions/readlink.texi (readlink): Document this.
8597 * modules/readlink-tests: New test.
8598 * tests/test-readlink.c: Likewise.
8600 readlink: fix cygwin 1.5.x bug with return type
8601 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8602 * lib/unistd.in.h (readlink): Use ssize_t.
8603 * lib/readlink.c (readlink): Likewise.
8604 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8605 * modules/unistd (Makefile.am): Substitute it.
8606 * lib/unistd.in.h (readlink): Declare replacement.
8607 * doc/posix-functions/readlink.texi (readlink): Document this.
8609 symlink: use throughout gnulib
8610 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8611 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8612 symlink is not used.
8613 * modules/symlinkat (Depends-on): Add symlink.
8614 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8615 * modules/canonicalize-tests (Depends-on): Likewise.
8616 * modules/lstat-tests (Depends-on): Likewise.
8617 * modules/openat-tests (Depends-on): Likewise.
8618 * modules/remove-tests (Depends-on): Likewise.
8619 * modules/rmdir-tests (Depends-on): Likewise.
8620 * modules/unlink-tests (Depends-on): Likewise.
8621 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8622 * tests/test-canonicalize.c (symlink): Likewise.
8623 * tests/test-fstatat.c (symlink): Likewise.
8624 * tests/test-lstat.c (symlink): Likewise.
8625 * tests/test-remove.c (symlink): Likewise.
8626 * tests/test-rmdir.c (symlink): Likewise.
8627 * tests/test-unlink.c (symlink): Likewise.
8628 * tests/test-unlinkat.c (symlink): Likewise.
8630 symlink: new module, for Solaris 9 bug
8631 * modules/symlink: New file.
8632 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8633 * lib/symlink.c: Likewise.
8634 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8635 * modules/unistd (Makefile.am): Substitute them.
8636 * lib/unistd.in.h (symlink): Declare replacement.
8637 * MODULES.html.sh (File system functions): Mention it.
8638 * doc/posix-functions/symlink.texi (symlink): Likewise.
8639 * modules/symlink-tests: New test.
8640 * tests/test-symlink.c: Likewise.
8642 2009-09-23 Bruno Haible <bruno@clisp.org>
8644 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8646 Test case: gnulib-tool --import --with-tests atexit inttypes.
8647 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8649 2009-09-23 Bruno Haible <bruno@clisp.org>
8651 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8652 subcommand, not in a subshell.
8654 2009-09-22 Eric Blake <ebb9@byu.net>
8656 unistd: sort replacement declarations
8657 * lib/unistd.in.h: Sort declarations.
8659 open, openat: minor optimization
8660 * lib/open.c (open): If open succeeded, len is non-zero.
8661 * lib/openat.c (rpl_openat): Likewise.
8663 link-follow: ensure correct result
8664 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8665 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8666 distinguish between possible failures.
8668 2009-09-21 Eric Blake <ebb9@byu.net>
8670 fts: avoid compiler warning
8671 * lib/fts.c (dirent_inode_sort_may_be_useful)
8672 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8674 2009-09-19 Bruno Haible <bruno@clisp.org>
8676 * lib/progreloc.c (canonicalize_file_name): New declaration.
8678 2009-09-19 Eric Blake <ebb9@byu.net>
8681 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8683 openat: fix openat bugs on Solaris 9
8684 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8685 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8686 * modules/openat (Depends-on): Add open.
8687 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8688 * modules/fcntl-h (Makefile.am): Substitute it.
8689 * lib/fcntl.in.h (openat): Declare replacement.
8690 * doc/posix-functions/openat.texi (openat): Document this.
8692 openat: move fstatat and unlinkat into correct files
8693 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8695 * lib/openat.c (fstatat, unlinkat): Move...
8696 * lib/fstatat.c (fstatat): ...into correct files.
8697 * lib/unlinkat.c (unlinkat): Likewise.
8699 openat: fix unlinkat bugs on Solaris 9
8700 * lib/unlinkat.c (unlinkat): New file.
8701 * modules/openat (Depends-on): Add unlink.
8702 (Files): Distribute it.
8703 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8704 trailing slash behavior is broken.
8705 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8706 * modules/unistd (Makefile.am): Substitute it.
8707 * lib/unistd.in.h (unlinkat): Declare replacement.
8708 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8710 openat: fix fstatat bugs on Solaris 9
8711 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8713 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8715 test-unlinkat: enhance test, to expose Solaris 9 bug
8716 * tests/test-unlink.c (main): Factor guts...
8717 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8718 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8719 * tests/test-rmdir.c (main): Adjust caller.
8720 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8721 (unlinker): New helper function.
8722 (rmdirat): Enhance check.
8723 * modules/rmdir-tests (Depends-on): Add stdbool.
8724 * modules/unlink-tests (Depends-on): Likewise.
8725 (Files): Add test-unlink.h.
8726 * modules/openat-tests (Files): Likewise.
8727 (Depends-on): Add unlinkdir.
8729 test-fstatat: new test, to expose Solaris 9 bugs
8730 * tests/test-stat.c (main): Factor guts...
8731 * tests/test-stat.h (test_stat_func): ...into new file.
8732 * tests/test-lstat.c (main): Factor guts...
8733 * tests/test-lstat.h (test_lstat_func): ...into new file.
8734 * tests/test-fstatat.c: New file.
8735 * modules/stat-tests (Files): Add test-stat.h.
8736 * modules/lstat-tests (Files): Add test-lstat.h.
8737 (Depends-on): Add stdbool.
8738 * modules/openat-tests (Depends-on): Add pathmax.
8739 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8740 (Makefile.am): Run new test.
8742 remove: new module, for mingw and Solaris 9 bugs
8743 * modules/remove: New file.
8744 * lib/remove.c: Likewise.
8745 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8746 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8747 * modules/stdio (Makefile.am): Use them.
8748 * lib/stdio.in.h (remove): Declare replacement.
8749 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8750 * doc/posix-functions/remove.texi (remove): Likewise.
8751 * modules/remove-tests: New test.
8752 * tests/test-remove.c: Likewise.
8754 unlink: new module, for Solaris 9 bug
8755 * modules/unlink: New file.
8756 * lib/unlink.c: Likewise.
8757 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8758 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8759 * modules/unistd (Makefile.am): Use them.
8760 * lib/unistd.in.h (stat): Declare replacement.
8761 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8762 * doc/posix-functions/unlink.texi (unlink): Likewise.
8763 * modules/unlink-tests: New test.
8764 * tests/test-unlink.c: Likewise.
8766 lstat: fix Solaris 9 bug
8767 * lib/lstat.c (lstat): Also check for trailing slash on
8768 non-symlink, non-directories. Use stat module to simplify logic.
8769 * doc/posix-functions/lstat.texi (lstat): Document it.
8770 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8771 (configure.ac): Check for symlink.
8772 * tests/test-lstat.c (main): Add more tests.
8774 stat: add as dependency to other modules
8775 * modules/chown (Depends-on): Add stat.
8776 * modules/euidaccess (Depends-on): Likewise.
8777 * modules/fchdir (Depends-on): Likewise.
8778 * modules/isdir (Depends-on): Likewise.
8779 * modules/link (Depends-on): Likewise.
8780 * modules/lstat (Depends-on): Likewise.
8781 * modules/mkdir-p (Depends-on): Likewise.
8782 * modules/modechange (Depends-on): Likewise.
8783 * modules/open (Depends-on): Likewise.
8784 * modules/readlink (Depends-on): Likewise.
8785 * modules/same (Depends-on): Likewise.
8787 stat: fix Solaris 9 bug
8788 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8790 * lib/stat.c (rpl_stat): Work around it.
8791 * doc/posix-functions/stat.texi (stat): Update documentation.
8793 stat: new module, for mingw bug
8794 * modules/stat: New file.
8795 * lib/stat.c: Likewise.
8796 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8797 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8798 * modules/sys_stat (Makefile.am): Use them.
8799 * lib/sys_stat.in.h (stat): Declare replacement.
8800 * lib/openat.c (fstatat): Deal with lstat and stat being function
8802 * modules/openat (Depends-on): Add inline.
8803 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8804 * doc/posix-functions/stat.texi (stat): Likewise.
8805 * modules/stat-tests: New test.
8806 * tests/test-stat.c: Likewise.
8808 2009-09-19 Jim Meyering <meyering@redhat.com>
8810 syntax-check: detect unnecessary inclusion of canonicalize.h
8811 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8813 2009-09-19 Eric Blake <ebb9@byu.net>
8815 canonicalize-lgpl: adjust clients to use correct header
8816 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8817 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8818 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8819 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8820 * lib/progreloc.c (includes): Likewise.
8822 2009-09-19 Jim Meyering <meyering@redhat.com>
8824 test-posixtm.c: correct a comment
8825 * tests/test-posixtm.c: Correct first-line comment.
8826 Spotted by Eric Blake.
8828 2009-09-16 Jim Meyering <meyering@redhat.com>
8830 posixtm-tests: make T const-correct; add a test case
8831 * tests/test-posixtm.c (T): Declare const.
8832 Add a test for -(2^31+1).
8833 Remove useless can-succeed-only-in-2002 test.
8835 posixtm-tests: adjust the sole failing test
8836 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8837 expected output matches what mktime now produces. Cross-checked via
8838 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8840 posixtm: move #ifdef'd tests into a new module
8841 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
8842 * tests/test-posixtm.c: ... this new file.
8843 * modules/posixtm-tests: New module.
8845 2009-09-19 Eric Blake <ebb9@byu.net>
8847 openat: simplify use of at-func.c
8848 * lib/at-func.c (includes): Include prerequisites here, to
8849 simplify requirements on client files.
8850 * lib/openat-priv.h: Add double-inclusion guard.
8851 * lib/faccessat.c (includes): Simplify.
8852 * lib/fchmodat.c (includes): Likewise.
8853 * lib/fchownat.c (includes): Likewise.
8854 * lib/mkdirat.c (includes): Likewise.
8855 * lib/mkfifoat.c (includes): Likewise.
8856 * lib/symlinkat.c (includes): Likewise.
8858 openat: allow return of fd 0
8859 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8860 * modules/save-cwd (Depends-on): Replace fcntl-safer with
8862 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8863 <fcntl.h>; this module does not leak fds.
8864 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8865 must be allowed to return 0, leaving openat_safer to add the
8867 (openat_permissive): Avoid writing to just-opened fd 2 if
8868 restoring the current directory fails.
8869 * lib/openat-die.c (openat_restore_fail): Add comment.
8870 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8871 (save_cwd): Guarantee safe fd, but without use of open_safer.
8872 * tests/test-openat.c: New test.
8873 * modules/openat-tests (Files, Makefile.am): Distribute and build
8876 relocatable-prog-wrapper: fix build
8877 * modules/relocatable-prog-wrapper (Files): Update name of
8878 canonicalize m4 file, broken on 2009-09-17.
8879 Reported by emad hajjar <aleppos@hotmail.com>.
8881 2009-09-19 Bruno Haible <bruno@clisp.org>
8883 * lib/safe-alloc.h: Use the standard header with GPL copyright.
8884 * lib/safe-alloc.c: Likewise.
8885 Reported by Ian Beckwith <ianb@erislabs.net>.
8887 2009-09-18 Bruno Haible <bruno@clisp.org>
8889 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8890 Reported by <erobles@sensacd.com.mx>.
8892 2009-09-17 Eric Blake <ebb9@byu.net>
8894 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8895 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8896 slashes when checking if last component is missing.
8897 * tests/test-canonicalize.c (main): Test this.
8899 canonicalize, canonicalize-lgpl: honor // if distinct from /
8900 * modules/canonicalize (Files): Add double-slash-root.m4.
8901 * modules/canonicalize-lgpl (Files): Likewise.
8902 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8903 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8904 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8905 fallback definition.
8906 (canonicalize_filename_mode): Use it to protect //.
8907 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8908 (__realpath): Likewise.
8909 * tests/test-canonicalize.c (main): Test this.
8910 * tests/test-canonicalize-lgpl.c (main): Likewise.
8911 * modules/canonicalize-tests (Depends-on): Add same-inode.
8912 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8914 canonicalize-lgpl: fix glibc bug with trailing slash
8915 * m4/canonicalize-lgpl.m4: Move contents...
8916 * m4/canonicalize.m4: ...here.
8917 (gl_CANONICALIZE_LGPL): Factor realpath check...
8918 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
8919 glibc 2.3.5 bug, fixed 2005-04-27.
8920 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8921 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8922 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8923 * modules/canonicalize-lgpl (Files): Manage file rename.
8924 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8925 * modules/stdlib (Makefile.am): Substitute witness.
8926 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8928 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8929 replacement is required.
8930 * lib/canonicalize.c (canonicalize_file_name): Likewise.
8931 * doc/glibc-functions/canonicalize_file_name.texi
8932 (canonicalize_file_name): Document this.
8933 * doc/posix-functions/realpath.texi (realpath): Likewise.
8935 canonicalize-lgpl: reject non-directory with trailing slash
8936 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8937 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
8938 catches failures in glibc 2.3.5.
8939 * tests/test-canonicalize.c (main): Likewise.
8941 canonicalize-lgpl: use native realpath if it works
8942 * lib/canonicalize-lgpl.c (realpath): Guard with
8943 FUNC_REALPATH_WORKS.
8944 * lib/stdlib.in.h (realpath): Make declaration optional based on
8946 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8947 native realpath works.
8948 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8949 * modules/stdlib (Makefile.am): Substitute witness.
8951 canonicalize, canonicalize-lgpl: use <stdlib.h>
8952 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8953 (Include): Mention <stdlib.h>.
8954 (configure.ac): Mention functions we provide.
8955 * modules/canonicalize (configure.ac): Likewise.
8956 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8957 realpath if canonicalize_file_name is missing.
8958 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8959 * modules/stdlib (Makefile.am): Substitute witnesses.
8960 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8961 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8962 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8963 * NEWS: Document this.
8964 * doc/glibc-functions/canonicalize_file_name.texi
8965 (canonicalize_file_name): Likewise.
8966 * doc/posix-functions/realpath.texi (realpath): Likewise.
8967 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8969 test-canonicalize: consolidate into single C program
8970 * tests/test-canonicalize.sh: Delete; move setup into...
8971 * tests/test-canonicalize.c (main): ...the program, making it
8972 easier to run in debugger. Add some tests.
8973 * modules/canonicalize-tests (Files): Remove unused file.
8974 (Depends-on): Add progname.
8975 (configure.ac, Makefile.am): Simplify.
8977 test-canonicalize-lgpl: consolidate into single C program
8978 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8979 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8980 easier to run in debugger. Add some tests.
8981 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8982 (configure.ac, Makefile.am): Simplify.
8984 canonicalize: avoid resolvepath
8985 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8987 * lib/canonicalize.c (includes): Simplify.
8988 (canonicalize_file_name): Drop resolvepath implementation.
8989 * modules/canonicalize (Depends-on): Drop filenamecat.
8991 canonicalize: don't lose errno
8992 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8995 canonicalize: simplify errno handling
8996 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8999 canonicalize, canonicalize-lgpl: update module dependencies
9000 * modules/canonicalize (Depends-on): Add extensions, lstat,
9002 (Files): Drop pathmax.h.
9003 (configure.ac): Adjust macro name.
9004 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9005 lstat, stdlib, sys_stat.
9006 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9007 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9009 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9010 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9011 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9012 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9013 declaration, if available.
9014 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9015 we can rely on the readlink module.
9016 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9017 (includes): Use <unistd.h> unconditionally.
9019 2009-09-17 Eric Blake <ebb9@byu.net>
9021 maint: make Include sections of modules consistent
9022 * modules/alloca: Use only header name; no need to list #include.
9023 * modules/alloca-opt: Likewise.
9024 * modules/arpa_inet: Likewise.
9025 * modules/canon-host: Likewise.
9026 * modules/configmake: Likewise.
9027 * modules/dirent: Likewise.
9028 * modules/eealloc: Likewise.
9029 * modules/environ: Likewise.
9030 * modules/fchdir: Likewise.
9031 * modules/fcntl: Likewise.
9032 * modules/fcntl-h: Likewise.
9033 * modules/gethrxtime: Likewise.
9034 * modules/gettime: Likewise.
9035 * modules/ignore-value: Likewise.
9036 * modules/inet_ntop: Likewise.
9037 * modules/inet_pton: Likewise.
9038 * modules/inttypes: Likewise.
9039 * modules/isnand-nolibm: Likewise.
9040 * modules/isnanf-nolibm: Likewise.
9041 * modules/mbchar: Likewise.
9042 * modules/mbfile: Likewise.
9043 * modules/mbiter: Likewise.
9044 * modules/mbuiter: Likewise.
9045 * modules/netdb: Likewise.
9046 * modules/netinet_in: Likewise.
9047 * modules/nproc: Likewise.
9048 * modules/pagealign_alloc: Likewise.
9049 * modules/poll: Likewise.
9050 * modules/printf-frexp: Likewise.
9051 * modules/pthread: Likewise.
9052 * modules/putenv: Likewise.
9053 * modules/random_r: Likewise.
9054 * modules/relocatable-prog: Likewise.
9055 * modules/search: Likewise.
9056 * modules/select: Likewise.
9057 * modules/selinux-h: Likewise.
9058 * modules/settime: Likewise.
9059 * modules/signal: Likewise.
9060 * modules/size_max: Likewise.
9061 * modules/socklen: Likewise.
9062 * modules/ssize_t: Likewise.
9063 * modules/stdarg: Likewise.
9064 * modules/stdbool: Likewise.
9065 * modules/stddef: Likewise.
9066 * modules/stdint: Likewise.
9067 * modules/stdio: Likewise.
9068 * modules/stdlib: Likewise.
9069 * modules/string: Likewise.
9070 * modules/strings: Likewise.
9071 * modules/sys_file: Likewise.
9072 * modules/sys_ioctl: Likewise.
9073 * modules/sys_select: Likewise.
9074 * modules/sys_socket: Likewise.
9075 * modules/sys_stat: Likewise.
9076 * modules/sys_time: Likewise.
9077 * modules/sys_times: Likewise.
9078 * modules/sys_utsname: Likewise.
9079 * modules/sys_wait: Likewise.
9080 * modules/sysexits: Likewise.
9081 * modules/time: Likewise.
9082 * modules/times: Likewise.
9083 * modules/tmpfile: Likewise.
9084 * modules/trim: Likewise.
9085 * modules/unistd: Likewise.
9086 * modules/wchar: Likewise.
9087 * modules/wctype: Likewise.
9089 2009-09-17 Bruno Haible <bruno@clisp.org>
9091 Make getdate.y compile on QNX and NetBSD 5 / i386.
9092 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9093 TIME_T_FITS_IN_LONG_INT.
9094 * lib/getdate.y (long_time_t): New type.
9095 (relative_time): Change type of 'seconds' field to long_time_t.
9096 (get_date): Update types of local variables. Check against overflow
9097 during conversion from long_time_t to time_t.
9098 Reported by Matt Kraai <kraai@ftbfs.org>
9099 and Hasso Tepper <hasso@netbsd.org>.
9101 2009-09-17 Bruno Haible <bruno@clisp.org>
9103 * modules/COPYING: Update copyright years.
9104 * modules/README: Likeiwse.
9105 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9106 Reported by Ian Beckwith <ianb@erislabs.net>.
9108 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9110 * users.txt: Update references for gnuit package.
9112 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9114 * m4/getdelim.m4: Fix typo in copyright line.
9116 2009-09-17 Bruno Haible <bruno@clisp.org>
9118 * lib/atoll.c: Use the standard header with GPL copyright.
9119 * lib/argz.in.h: Likewise.
9120 * lib/glob.c: Likewise.
9121 * lib/glob-libc.h: Likewise.
9122 * lib/random_r.c: Likewise.
9123 * lib/siglist.h: Likewise.
9124 * lib/strsignal.c: Likewise.
9125 Reported by Ian Beckwith <ianb@erislabs.net>.
9127 2009-09-17 Eric Blake <ebb9@byu.net>
9129 rmdir: ensure correct dependency order
9130 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9132 2009-09-17 Bruno Haible <bruno@clisp.org>
9134 Disable assertion that fails on NetBSD 5 / i386.
9135 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9136 Reported by Sam Steingold <sds@gnu.org>
9137 and Hasso Tepper <hasso@netbsd.org>.
9139 2009-09-16 Eric Blake <ebb9@byu.net>
9141 unlinkdir: port to mingw
9142 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9143 on which no one can unlink a directory.
9145 stdlib: sort witness names
9146 * modules/stdlib (Makefile.am): Sort replacements.
9147 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9148 * lib/stdlib.in.h: Likewise.
9150 parse-duration-tests: avoid link failure
9151 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9153 Reported by Tom G. Christensen.
9155 openat-tests: ensure unlinkat behaves like rmdir
9156 * tests/test-rmdir.c (main): Factor guts...
9157 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9158 * modules/rmdir-tests (Files): Ship new file.
9159 * modules/openat-tests: New test.
9160 * tests/test-unlinkat.c: Likewise.
9162 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9163 * modules/rmdir-errno (Status, Notice): Now obsolete.
9165 rmdir: work around cygwin 1.5.x and mingw bugs
9166 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9167 * lib/rmdir.c (rmdir): Work around it.
9168 * modules/rmdir (Status, Notice): No longer obsolete.
9169 (Files): Add dos.m4.
9170 (Depends-on): Add unistd.
9171 (configure.ac): Set witnesses.
9172 (License): Relax to LGPLv2+.
9173 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9174 * modules/unistd (Makefile.am): Substitute witnesses.
9175 * lib/unistd.in.h (rmdir): Declare replacement.
9176 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9177 * modules/rmdir-tests: New tests.
9178 * tests/test-rmdir.c: Likewise.
9180 2009-09-15 Eric Blake <ebb9@byu.net>
9182 fchdir: improve use of replacement functions
9183 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9184 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9185 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9187 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9188 * modules/sys_stat (Makefile.am): Substitute correct witness.
9189 * modules/dirent (Makefile.am): Likewise.
9190 * modules/unistd (Makefile.am): Likewise.
9191 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9192 * lib/unistd.in.h (dup): Likewise.
9193 * lib/sys_stat.in.h (fstat): Likewise.
9195 maint: ignore gnulib-tool temp files
9196 * .gitignore: Ignore files created during gnulib-tool --test.
9198 2009-09-13 Jim Meyering <meyering@redhat.com>
9200 posixtm: don't reject a time that specify "60" as the number of seconds
9201 * lib/posixtm.c (posixtime): The code to reject invalid dates
9202 would also reject a time specified with the .60 suffix.
9203 But POSIX allows that, in order to accommodate leap seconds.
9205 (main): Adjust tests accordingly.
9206 * modules/posixtm (Depends-on): Add stpcpy.
9208 2009-09-11 Jim Meyering <meyering@redhat.com>
9210 announce-gen: include [$release_type] in emitted Subject:
9211 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9212 e.g., [stable] in the emitted Subject: line.
9214 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9216 Remove obsolete macros from several modules.
9217 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9218 obsolete Autoconf macros with their modern counterparts.
9219 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9220 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9221 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9222 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9223 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9224 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9225 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9226 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9227 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9228 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9229 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9230 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9231 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9232 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9233 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9234 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9235 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9236 * m4/time_r.m4 (gl_TIME_R): Likewise.
9237 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9238 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9239 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9241 Fix copyright header in build-aux scripts.
9242 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9244 * build-aux/ncftpput-ftp: Likewise.
9245 * build-aux/update-copyright: Likewise.
9247 2009-09-09 Eric Blake <ebb9@byu.net>
9249 test-link: allow Linux choice of errno
9250 * tests/test-link.c (main): Relax test for alternate error.
9252 strndup: fix improper m4 caching
9253 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9254 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9255 (gl_PREREQ_STRNDUP): Delete.
9256 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9257 * modules/string (Makefile.am): Substitute it.
9258 * lib/string.in.h (strndup): Modernize prototype.
9260 getcwd: port to mingw
9261 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9262 different from the POSIX assumptions made throughout the getcwd
9263 module; fortunately, the mingw getcwd does not need replacement.
9264 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9265 * modules/getcwd-tests: New test.
9266 * tests/test-getcwd.c: Likewise.
9268 link: fix platform bugs
9269 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9270 * lib/link.c (link): Work around them. Fix related mingw bug.
9271 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9272 * modules/unistd (Makefile.am): Substitute it.
9273 * lib/unistd.in.h (link): Declare replacement.
9274 * doc/posix-functions/link.texi (link): Document this.
9275 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9277 test-link: consolidate into single C program, test more cases
9278 * tests/test-link.sh: Delete.
9279 * tests/test-link.c: Test more error conditions. Exposes bugs on
9280 at least Cygwin and Solaris.
9281 * modules/link-tests (Files): Remove unused file.
9282 (Depends-on): Add errno, sys_stat.
9283 (Makefile.am): Simplify.
9285 2009-09-08 Bruno Haible <bruno@clisp.org>
9287 Work around towlower, towupper bug on mingw.
9288 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9289 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9290 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9291 * doc/posix-functions/towupper.texi: Likewise.
9292 Reported by Eric Blake.
9294 2009-09-08 Jim Meyering <meyering@redhat.com>
9296 build: don't try to run autoheader if we don't use it
9297 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9298 is not used in configure.ac.
9300 2009-09-08 Eric Blake <ebb9@byu.net>
9302 euidaccess: fix compilation error
9303 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9305 rawmemchr: relax license
9306 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9308 Reported by Jim Meyering.
9310 mkfifoat: new module
9311 * modules/mkfifoat: New file.
9312 * lib/mkfifoat.c: Likewise.
9313 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9314 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9315 * modules/sys_stat (Makefile.am): Use them.
9316 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9317 * MODULES.html.sh (File system functions): Mention module.
9318 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9319 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9320 * modules/mkfifoat-tests: New test.
9321 * tests/test-mkfifoat.c: Likewise.
9323 strchrnul: relax license
9324 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9326 Reported by Jim Meyering.
9328 2009-09-08 Eric Blake <ebb9@byu.net>
9330 fstatat: fix compilation on Solaris
9331 * lib/fstatat.c (includes): Add fcntl.h.
9332 Reported by Pádraig Brady.
9334 2009-09-07 Eric Blake <ebb9@byu.net>
9336 rename: modernize replacement
9337 * modules/rename (Depends-on): Add stdio.
9338 (configure.ac): Declare witness.
9339 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9340 stdio take care of replacement.
9341 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9342 * modules/stdio (Makefile.am): Substitute them.
9343 * lib/stdio.in.h (rename): Declare replacement.
9344 * lib/rename.c (includes): Allow cross-compilation to non-windows
9346 * doc/posix-functions/rename.texi (rename): Improve
9349 stdio: sort witness names
9350 * modules/stdio (Makefile.am): Sort replacements.
9351 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9352 * lib/stdio.in.h: Likewise.
9354 getcwd: minor cleanups
9355 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9356 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9358 openat: provide more convenience names
9359 * modules/faccessat (configure.ac): Add C witness.
9360 * lib/unistd.in.h (readlinkat): Fix typo.
9361 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9362 convenience wrappers.
9363 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9364 wrappers in syntax checks.
9366 2009-09-06 Eric Blake <ebb9@byu.net>
9368 doc: fix comments in recent patches
9369 * lib/faccessat.c: Mention correct function.
9370 * lib/fchmodat.c: Likewise.
9371 * lib/fchownat.c: Likewise.
9372 * lib/symlinkat.c: Likewise.
9373 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9376 faccessat, symlinkat: continue cleanup of previous patch
9377 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9378 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9379 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9380 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9381 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9382 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9385 2009-09-06 Bruno Haible <bruno@clisp.org>
9387 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9388 (fstatat): Declare if GNULIB_FSTATAT is set.
9389 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9390 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9391 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9392 * modules/fcntl-h (Files): Remove m4/openat.m4.
9393 * modules/sys_stat (Files): Remove m4/openat.m4.
9394 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9395 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9396 * modules/unistd (Files): Remove m4/openat.m4.
9397 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9399 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9400 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9401 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9402 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9403 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9405 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9406 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9407 Don't require gl_OPENAT_DEFAULTS.
9408 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9409 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9410 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9411 (gl_OPENAT_DEFAULTS): Remove macro.
9413 2009-09-06 Bruno Haible <bruno@clisp.org>
9415 * modules/openat (configure.ac): Remove unneeded witness.
9417 2009-09-06 Bruno Haible <bruno@clisp.org>
9419 Set errno to ENOSYS when a function is entirely unsupported.
9420 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9422 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9423 * modules/chown (Depends-on): Remove errno.
9425 2009-09-06 Bruno Haible <bruno@clisp.org>
9427 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9429 2009-09-06 Bruno Haible <bruno@clisp.org>
9431 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9433 2009-09-06 Ben Pfaff <blp@gnu.org>
9434 Bruno Haible <bruno@clisp.org>
9436 Work around a glibc bug in strtok_r.
9437 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9438 Undefine if UNDEFINE_STRTOK_R is set.
9439 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9440 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9441 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9442 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9443 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9445 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9447 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9450 * lib/exclude.c: Include wctype.h
9452 2009-09-06 Akim Demaille <demaille@gostai.com>
9454 bootstrap: improve error message
9455 * build-aux/bootstrap (find_tool): Upon failure, report the list
9457 Honor the initial value of the envvar.
9459 2009-09-05 Eric Blake <ebb9@byu.net>
9461 symlinkat: new module
9462 * modules/symlinkat: New file.
9463 * lib/symlinkat.c: Likewise.
9464 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9465 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9466 * modules/unistd (Makefile.am): Use them.
9467 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9468 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9469 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9470 * MODULES.html.sh (File system functions): Mention module.
9471 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9472 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9473 * modules/symlinkat-tests: New test.
9474 * tests/test-symlinkat.c: Likewise.
9476 test-openat-safer: add more checks
9477 * tests/test-openat-safer.c (main): Check more code paths.
9479 2009-09-05 Jim Meyering <meyering@redhat.com>
9481 syntax-check: detect unnecessary inclusion of openat.h
9482 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9484 2009-09-05 Bruno Haible <bruno@clisp.org>
9486 Support towlower, towupper.
9487 * doc/posix-functions/towlower.texi: Mention module wctype.
9488 * doc/posix-functions/towupper.texi: Likewise.
9489 * lib/wctype.in.h (towlower, towupper): New functions.
9490 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9491 (ASSERT): New macro.
9493 (main): Test also towlower, towupper. Test WEOF argument.
9494 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9496 2009-09-05 Bruno Haible <bruno@clisp.org>
9498 Fix conversion behaviour when the input is invalid.
9499 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9500 mark occurring in first pass of indirect conversion.
9501 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9503 Found by clang's static analyzer.
9505 2009-09-05 Bruno Haible <bruno@clisp.org>
9507 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9508 where direct conversion is possible.
9510 2009-09-04 Eric Blake <ebb9@byu.net>
9512 openat: fail with ENOENT on empty name
9513 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9516 link-follow: fix logic bug in prior patch
9517 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9518 reversed sense of yes and no in prior patch. Avoid confusing
9519 compilation failure with desired semantics.
9521 link-follow: accomodate mingw and cross-compilation
9522 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9523 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9524 cross-compilation results to -1, to make linkat easier to
9525 implement when cross-compiling. Trivially support mingw.
9526 * modules/link-follow (configure.ac): Call new name.
9527 * NEWS: Mention this.
9529 2009-09-03 Eric Blake <ebb9@byu.net>
9531 faccessat: compile replacement
9532 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9535 fts: fix compilation error
9536 * lib/fts.c (includes): Re-add "openat.h", for
9537 openat_needs_fchdir.
9539 faccessat: new module
9540 * modules/faccessat: New file.
9541 * lib/faccessat.c: Likewise.
9542 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9543 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9544 * modules/unistd (Makefile.am): Use it.
9545 * lib/unistd.in.h (faccessat): Declare it.
9546 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9547 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9548 * MODULES.html.sh (File system functions): Mention it.
9549 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9550 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9552 euidaccess: prefer POSIX over non-standard implementation
9553 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9554 * lib/euidaccess.c (euidaccess): Use it if available.
9556 openat: make template easier to use
9557 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9558 AT_FUNC_F2 to be undefined.
9559 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9560 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9561 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9562 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9563 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9565 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9566 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9567 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9570 openat: declare in POSIX headers
9571 * NEWS: Mention this.
9572 * modules/openat (configure.ac): Declare witnesses.
9573 (Depends-on): Add fcntl-h, sys_stat, unistd.
9574 (Include): Mention correct headers.
9575 * modules/fcntl-h (Depends-on): Add link-warning.
9576 (Files): Add openat.m4.
9577 (Makefile.am): Substitute witnesses.
9578 * modules/sys_stat (Files, Makefile.am): Likewise.
9579 * modules/unistd (Files, Makefile.am): Likewise.
9580 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9581 (gl_OPENAT_DEFAULTS): New macro.
9582 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9583 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9584 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9585 (SYS_STAT_H): Remove unused variable.
9586 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9587 * lib/fcntl--.h (includes): Remove unneeded header.
9588 * lib/openat-safer.c (includes): Likewise.
9589 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9590 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9591 appropriate headers.
9592 (__OPENAT_PREFIX): Delete.
9593 * lib/fcntl.in.h (openat): Provide declaration.
9594 (AT_FDCWD): Fix Solaris bug.
9595 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9596 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9597 * lib/fchmodat.c (includes): Adjust to find declaration.
9598 * lib/fchownat.c (includes): Likewise.
9599 * lib/mkdirat.c (includes): Likewise.
9600 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9603 2009-09-02 Eric Blake <ebb9@byu.net>
9605 errno: use consistently
9606 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9607 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9608 * lib/canonicalize.c (ELOOP): Likewise.
9609 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9610 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9611 * lib/lchown.c (EOPNOTSUPP): Likewise.
9612 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9613 * lib/savewd.c (ESTALE): Likewise.
9614 * lib/settime.c (ENOSYS): Likewise.
9615 * lib/utimens.c (ENOSYS): Likewise.
9616 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9617 * lib/chdir-safer.c (ELOOP): Likewise.
9618 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9619 * modules/c-stack (Depends-on): Add errno.
9620 * modules/canonicalize (Depends-on): Likewise.
9621 * modules/chdir-safer (Depends-on): Likewise.
9622 * modules/fdopendir (Depends-on): Likewise.
9623 * modules/inet_ntop (Depends-on): Likewise.
9624 * modules/inet_pton (Depends-on): Likewise.
9625 * modules/lchown (Depends-on): Likewise.
9626 * modules/openat (Depends-on): Likewise.
9627 * modules/savewd (Depends-on): Likewise.
9628 * modules/settime (Depends-on): Likewise.
9629 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9631 fts: avoid leaking fds
9632 * modules/fts (Depends-on): Add cloexec.
9633 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9636 fts: make directory fds more robust
9637 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9638 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9640 backupfile, chdir-long, fts, savedir: make safer
9641 * lib/backupfile.c (includes): Use "dirent--.h", since
9642 numbered_backup can write to stderr during readdir.
9643 * lib/savedir.c (includes): Likewise.
9644 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9645 emulation can write to stderr on failure.
9646 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9647 * lib/getcwd.c: Document why opendir_safer is unused.
9648 * lib/glob.c: Likewise.
9649 * lib/scandir.c: Likewise.
9650 * lib/openat-proc.c: Likewise, for open_safer.
9651 * modules/backupfile (Depends-on): Add dirent-safer.
9652 * modules/savedir (Depends-on): Likewise.
9653 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9654 * modules/chdir-long (Depends-on): Add openat-safer.
9656 openat-safer: new module
9657 * modules/openat-safer: New file.
9658 * lib/openat-safer.c: Likewise.
9659 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9660 * lib/fcntl-safer.h (openat_safer): Declare.
9661 * lib/fcntl--.h (openat): Override.
9662 * MODULES.html.sh (File descriptor based I/O): Mention it.
9663 * lib/openat.h: Add double-inclusion guards.
9664 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9665 "fcntl--.h", so we can implement openat.
9666 * modules/openat-safer-tests: New test.
9667 * tests/test-openat-safer.c: New file.
9669 dirent-safer: new module
9670 * modules/dirent-safer: New file.
9671 * lib/dirent--.h: Likewise.
9672 * lib/dirent-safer.h: Likewise.
9673 * lib/opendir-safer.c: Likewise.
9674 * m4/dirent-safer.m4: Likewise.
9675 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9676 * modules/dirent-safer-tests: New test.
9677 * tests/test-dirent-safer.c: New file.
9678 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9680 fdopendir: optimize on mingw
9681 * lib/unistd.in.h (_gl_directory_name): New prototype.
9682 * lib/fchdir.c (_gl_directory_name): Implement it.
9683 (fchdir): Use it to simplify implementation.
9684 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9685 fchdir, when available, to avoid calling [f]chdir().
9687 fdopendir: split into its own module
9688 * lib/openat.c (fdopendir): Move...
9689 * lib/fdopendir.c: ...into new file.
9690 * modules/fdopendir: New module.
9691 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9692 * modules/openat (Depends-on): Add fdopendir.
9693 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9695 * modules/savedir (Depends-on): Only need fdopendir, not full
9697 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9698 * lib/openat.h (fdopendir): Drop prototype.
9699 * lib/dirent.in.h (fdopendir): Provide prototype.
9700 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9701 * modules/dirent (Makefile.am): Substitute them.
9702 * MODULES.html.sh (File system functions): Mention it.
9703 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9704 * modules/fdopendir-tests: New file.
9705 * tests/test-fdopendir.c: Likewise.
9707 fchdir: use more consistent macro convention
9708 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9709 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9710 REPLACE_FCHDIR, rather than relying on config.h macros.
9711 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9712 inside a single make-time REPLACE_FCHDIR block, rather than using
9713 the config.h FCHDIR_REPLACEMENT.
9714 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9715 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9716 Manage fstat replacement.
9717 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9719 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9720 (Makefile.am): Substitute REPLACE_FCHDIR.
9721 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9723 * lib/dup-safer.c (dup_safer): Likewise.
9724 * lib/dup2.c (rpl_dup2): Likewise.
9725 * lib/dup3.c (rpl_dup3): Likewise.
9726 * lib/open.c (rpl_open): Likewise.
9728 fchdir: simplify error handling, and support dup3
9729 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9730 stdbool, malloc-posix, realloc-posix.
9731 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9732 (ensure_dirs_slot): Return false on allocation failure.
9734 (_gl_register_dup): New function.
9735 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9736 (_gl_register_fd): Close fd on allocation failure.
9737 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9738 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9740 (rpl_dup2_fchdir): Delete prototype.
9741 * lib/open.c (open): Update caller.
9742 * lib/dup2.c (dup2): Track fchdir metadata.
9743 * lib/dup3.c (dup3): Likewise.
9744 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9745 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9747 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9749 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9750 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9751 don't pass arguments to AC_OUTPUT.
9753 2009-09-02 Bruno Haible <bruno@clisp.org>
9755 * modules/mkdtemp (License): Relicense under LGPLv2+.
9756 Reported by Paolo Bonzini.
9758 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9760 Replace uses of obsolete autoconf macros in Jim's modules.
9761 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9762 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9763 can evoke a warning from autoconf when run with -Wobsolete
9764 enabled. They were declared obsolete for good reasons (see
9765 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9766 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9767 should not continue using the deprecated macros.
9768 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9769 obsolete Autoconf macros with modern counterparts.
9770 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9771 * m4/dos.m4 (gl_AC_DOS): Likewise.
9772 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9773 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9774 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9775 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9776 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9777 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9778 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9779 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9780 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9782 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9783 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9784 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9785 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9786 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9787 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9789 2009-09-01 Eric Blake <ebb9@byu.net>
9791 fchdir: fix off-by-one bug in previous patch
9792 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9793 (_gl_unregister_fd): Delete useless if.
9795 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9797 maint.mk: sort the list of syntax-check rules
9798 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9799 easier to get a sense of progress when the rules are run sequentially
9800 and take a long time.
9802 2009-09-01 Simon Josefsson <simon@josefsson.org>
9804 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9805 * modules/netinet_in: Likewise.
9806 * modules/sys_file: Likewise.
9807 * modules/sys_ioctl: Likewise.
9808 * modules/sys_select: Likewise.
9809 * modules/sys_socket: Likewise.
9810 * modules/sys_stat: Likewise.
9811 * modules/sys_time: Likewise.
9812 * modules/sys_times: Likewise.
9813 * modules/sys_utsname: Likewise.
9814 * modules/sys_wait: Likewise.
9816 2009-09-01 Jim Meyering <meyering@redhat.com>
9818 fts: help ensure that return values are not ignored
9819 * lib/fts_.h (__GNUC_PREREQ): Define.
9820 (__attribute_warn_unused_result__): Define.
9821 (fts_children, fts_close, fts_open, fts_read): Declare with
9822 __attribute_warn_unused_result__.
9824 fts: fts_close now fails also when closing a dir file descriptor fails
9825 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9826 and propagate to caller, along with errno.
9828 announce-gen: correct formatting in --help output
9829 * build-aux/announce-gen (usage): Move the one-line description in
9830 --help output "up", to where it belongs, just after Usage:.
9832 2009-08-31 Eric Blake <ebb9@byu.net>
9834 fchdir: port to mingw
9835 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9836 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9837 opened, then use a substitute.
9838 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9840 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9841 (_gl_register_fd): No need to check stat if open already filters
9843 (fchdir): Fix error condition to match POSIX.
9844 * modules/fchdir (Depends-on): Add sys_stat.
9845 * doc/posix-functions/open.texi (open): Document the limitation.
9846 * modules/fchdir-tests: New file.
9847 * tests/test-fchdir.c: Likewise.
9849 canonicalize: allow cross-testing from cygwin to mingw
9850 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9851 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9852 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9854 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9855 target does not support symlinks.
9856 * tests/test-canonicalize-lgpl.sh: Likewise.
9858 chown: avoid compilation warning on mingw
9859 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9860 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9862 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9863 * modules/chown (Depends-on): Add errno.
9865 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
9867 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9870 2009-08-31 Jim Meyering <meyering@redhat.com>
9872 canonicalize: remove useless initialization
9873 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9874 initialization of local, "end".
9876 2009-08-30 Bruno Haible <bruno@clisp.org>
9878 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9879 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9882 2009-08-30 Bruno Haible <bruno@clisp.org>
9884 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9885 /usr/xpg4/bin/tr when it exists.
9886 * tests/test-pipe-filter-gi1.sh: Likewise.
9888 2009-08-30 Bruno Haible <bruno@clisp.org>
9890 Work around deficient /usr/bin/id program on Solaris.
9891 * tests/test-file-has-acl.sh (ID): New variable.
9892 * tests/test-set-mode-acl.sh (ID): Likewise.
9893 * tests/test-copy-acl.sh (ID): Likewise.
9894 * tests/test-copy-file.sh (ID): Likewise.
9896 2009-08-30 Bruno Haible <bruno@clisp.org>
9898 New module 'xstriconveh'.
9899 * lib/xstriconveh.h: New file.
9900 * lib/xstriconveh.c: New file.
9901 * modules/xstriconveh: New file.
9903 2009-08-30 Bruno Haible <bruno@clisp.org>
9905 Make it easier to use mem_cd_iconveh.
9906 * lib/striconveh.h (iconveh_t): New type.
9907 (iconveh_open, iconveh_close): New declarations.
9908 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9909 with a single 'const iconveh_t *' argument.
9910 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9911 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9912 with a single 'const iconveh_t *' argument.
9913 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9914 * tests/test-striconveh.c (main): Update.
9915 * NEWS: Mention the change.
9917 2009-08-30 Bruno Haible <bruno@clisp.org>
9919 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9922 2009-08-30 Bruno Haible <bruno@clisp.org>
9924 Work around iconv_open problem on Solaris.
9925 * lib/iconv_open-solaris.gperf: New file.
9926 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9927 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9928 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9929 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9930 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9931 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9933 2009-08-29 Jim Meyering <meyering@redhat.com>
9935 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9936 * top/maint.mk (cvs-check): Remove target; it was just an alias
9937 to the better-named vc-diff-check.
9938 (maintainer-distcheck): Remove rule. It was used only from
9939 the (alpha/beta/major) target, and all of its commands but one
9940 were coreutils-specific.
9941 (vc-dist): Remove rule.
9942 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9943 Run vc-diff-check, not vc-dist.
9944 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
9946 2009-08-27 Bruno Haible <bruno@clisp.org>
9948 * tests/test-bitrotate.c (main): Remove test that uses a shift count
9951 2009-08-27 Bruno Haible <bruno@clisp.org>
9953 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9955 * doc/func.texi: Document the SunPRO C bug.
9957 2009-08-27 Bruno Haible <bruno@clisp.org>
9959 Fix link error on Solaris.
9960 * tests/test-parse-duration.c (xstrdup): Remove function.
9962 2009-08-26 Pádraig Brady <P@draigbrady.com>
9964 ignore-value: handle pointer types, too
9965 * lib/ignore-value.h (__attribute__): Remove definition.
9966 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9967 of a more concise and more-often effective "(void) i" statement.
9968 (ignore_ptr): New function to suppress warnings from functions that
9969 return pointers, and to make it explicit that one function doesn't
9972 2009-08-25 Bruno Haible <bruno@clisp.org>
9974 dup2: work around a Linux bug.
9975 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9976 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9977 * doc/posix-functions/dup2.texi: Mention the Linux bug.
9978 Reported by Simon Josefsson.
9980 2009-08-25 Jim Meyering <meyering@redhat.com>
9982 libguestfs uses gnulib
9983 * users.txt: Add libguestfs.
9985 2009-08-24 Eric Blake <ebb9@byu.net>
9987 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9988 * lib/pipe2.c (includes): Add binary-io.h.
9989 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9991 2009-08-24 Bruno Haible <bruno@clisp.org>
9993 Tolerate declared but missing accept4 syscall.
9994 * lib/accept4.c (accept4): Invoke original accept4 function first, if
9996 * lib/sys_socket.in.h (accept4): If the function is already present,
9998 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9999 * modules/accept4 (Makefile.am): Compile accept4.c always.
10000 Reported by Paolo Bonzini and Eric Blake.
10002 2009-08-23 Bruno Haible <bruno@clisp.org>
10004 New module 'accept4'.
10005 * lib/sys_socket.in.h (accept4): New declaration.
10006 * lib/accept4.c: New file.
10007 * m4/accept4.m4: New file.
10008 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10009 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10010 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10012 * modules/accept4: New file.
10013 * doc/glibc-functions/accept4.texi: Mention the new module.
10015 2009-08-24 Jim Meyering <meyering@redhat.com>
10017 progname: also set global program_invocation_name, when possible
10018 Before this change, a libtool-enabled program that calls glibc's
10019 error function would report the program name as
10020 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10021 * modules/progname (configure.ac): Check for a declaration of
10022 program_invocation_name.
10023 * lib/progname.c: Include <errno.h>.
10024 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10025 Set program_invocation_name.
10027 2009-08-23 Bruno Haible <bruno@clisp.org>
10029 * lib/dup3.c: Include <string.h>.
10031 2009-08-23 Bruno Haible <bruno@clisp.org>
10033 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10034 * lib/pipe2.c (pipe2): Likewise.
10035 Suggested by Eric Blake.
10037 2009-08-23 Bruno Haible <bruno@clisp.org>
10039 Tolerate declared but missing dup3 syscall.
10040 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10041 * lib/unistd.in.h (dup3): If the function is already present,
10043 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10044 * modules/dup3 (Makefile.am): Compile dup3.c always.
10045 Reported by Paolo Bonzini.
10047 2009-08-23 Bruno Haible <bruno@clisp.org>
10049 Tolerate declared but missing pipe2 syscall.
10050 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10052 * lib/unistd.in.h (pipe2): If the function is already present,
10054 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10055 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10056 Reported by Paolo Bonzini.
10058 2009-08-23 Bruno Haible <bruno@clisp.org>
10060 * lib/pipe2.c (pipe2): Move #ifs inside function.
10062 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10064 quotearg: document limitations of quote_these_too
10065 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10066 those limitations are created.
10067 * lib/quotearg.h (set_char_quoting): Document that digits and
10068 letters that are special after backslash are not permitted.
10069 (quotearg_char): Cross-reference set_char_quoting documentation.
10071 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10073 quotearg: implement custom_quoting_style
10074 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10075 right_quote fields.
10076 (set_custom_quoting): New public function.
10077 (quotearg_buffer_restyled): Add left_quote and right_quote
10078 arguments, handle them very much like locale quoting, and update
10080 (quotearg_n_custom): New public function.
10081 (quotearg_n_custom_mem): New public function.
10082 (quotearg_custom): New public function.
10083 (quotearg_custom_mem): New public function.
10084 * lib/quotearg.h: Prototype and document new public functions.
10085 (enum quoting_style): For escape_quoting_style and
10086 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10087 ignored even though they're otherwise like c_quoting_style.
10088 Add custom_quoting_style member and document with comparison to
10089 clocale_quoting_style.
10090 * tests/test-quotearg.c (custom_quotes): New array.
10091 (custom_results): New array.
10092 (main): Extend to test custom quoting.
10094 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10096 quotearg: fix right quote escaping when it's in quote_these_too
10097 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10098 quote, be sure to prepend only one backslash.
10099 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10102 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10104 quotearg-tests: test escaping of embedded locale quotes
10105 * tests/test-quotearg.c (struct result_strings): Add member for
10107 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10108 (inputs): Add new input.
10109 (results_g): Add expected results.
10110 (flag_results): Likewise.
10111 (locale_results): Likewise.
10112 (compare_strings): Check those.
10114 2009-08-23 Bruno Haible <bruno@clisp.org>
10116 Tests for module 'dup3'.
10117 * modules/dup3-tests: New file.
10118 * tests/test-dup3.c: New file.
10121 * lib/unistd.in.h (dup3): New declaration.
10122 * lib/dup3.c: New file.
10123 * m4/dup3.m4: New file.
10124 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10126 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10127 * modules/dup3: New file.
10128 * doc/glibc-functions/dup3.texi: Mention the new module.
10130 2009-08-23 Bruno Haible <bruno@clisp.org>
10132 Tweak the dup2 test.
10133 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10134 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10135 the test file is still empty. Fix argument order of lseek.
10137 2009-08-23 Bruno Haible <bruno@clisp.org>
10139 Avoid test link errors when the modules getopt-gnu, gettext are used.
10140 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10141 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10143 2009-08-23 Bruno Haible <bruno@clisp.org>
10145 Fix getdtablesize() on mingw.
10146 * lib/getdtablesize.c (getdtablesize): Implement differently.
10147 * lib/unistd.in.h (getdtablesize): Improve comment.
10149 2009-08-23 Bruno Haible <bruno@clisp.org>
10151 New module 'mkostemp'.
10152 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10153 * lib/stdlib.in.h (mksotemp): New declaration.
10154 * lib/mkostemp.c: New file, from glibc with modifications.
10155 * lib/tempname.h (GT_FILE): Remove outdated comment.
10156 (gen_tempname): Add flags argument.
10157 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10158 (__GT_FILE): Map to 1.
10159 (small_open, large_open): Remove macros.
10160 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10161 * lib/mkstemp.c (mkstemp): Update.
10162 * lib/mkdtemp.c (mkdtemp): Likewise.
10163 * m4/mkostemp.m4: New file.
10164 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10166 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10168 * modules/mkostemp: New file, based on modules/mkstemp.
10169 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10170 * NEWS: Mention the change.
10172 2009-08-23 Bruno Haible <bruno@clisp.org>
10174 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10175 Reported by Eric Blake.
10177 2009-08-23 Bruno Haible <bruno@clisp.org>
10179 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10180 Reported by Eric Blake.
10182 2009-08-23 Bruno Haible <bruno@clisp.org>
10184 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10185 * modules/pipe2 (Depends-on): Likewise.
10187 2009-08-23 Eric Blake <ebb9@byu.net>
10189 fcntl-h: add O_TTY_INIT support
10190 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10191 * tests/test-fcntl-h.c (o): Test it.
10192 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10194 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10195 * modules/fcntl: Move <fcntl.h> header replacement...
10196 * modules/fcntl-h: ...to new name, so as not to collide with
10197 like-named function.
10198 * tests/test-fcntl.c: Rename...
10199 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10200 * modules/fcntl-tests: Rename...
10201 * modules/fcntl-h-tests: ...to this. Update test file name.
10202 * modules/chdir-long (Depends-on): Update clients.
10203 * modules/chdir-safer (Depends-on): Likewise.
10204 * modules/fcntl-safer (Depends-on): Likewise.
10205 * modules/fts (Depends-on): Likewise.
10206 * modules/mkancesdirs (Depends-on): Likewise.
10207 * modules/mkdir-p (Depends-on): Likewise.
10208 * modules/open (Depends-on): Likewise.
10209 * modules/savewd (Depends-on): Likewise.
10210 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10211 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10213 2009-08-22 Bruno Haible <bruno@clisp.org>
10215 * modules/binary-io (License): Relicense under LGPL.
10216 * modules/pipe2 (License): Likewise.
10218 2009-08-22 Bruno Haible <bruno@clisp.org>
10220 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10222 * lib/pipe-filter-gi.c (filter_init): Likewise.
10223 Reported by Eric Blake.
10225 2009-08-22 Bruno Haible <bruno@clisp.org>
10227 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10228 * modules/pipe (Depends-on): Add pipe2.
10230 2009-08-22 Bruno Haible <bruno@clisp.org>
10232 Tests for module 'pipe2'.
10233 * modules/pipe2-tests: New file.
10234 * tests/test-pipe2.c: New file.
10236 New module 'pipe2'.
10237 * lib/unistd.in.h (pipe2): New declaration.
10238 * lib/pipe2.c: New file.
10239 * m4/pipe2.m4: New file.
10240 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10242 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10243 * modules/pipe2: New file.
10244 * doc/glibc-functions/pipe2.texi: Mention the new module.
10246 2009-08-22 Bruno Haible <bruno@clisp.org>
10248 Reference some new glibc functions.
10249 * doc/glibc-functions/accept4.texi: New file.
10250 * doc/glibc-functions/dup3.texi: New file.
10251 * doc/glibc-functions/mkostemp.texi: New file.
10252 * doc/glibc-functions/pipe2.texi: New file.
10253 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10254 (Glibc sys/socket.h): Refer to accept4.
10255 (Glibc unistd.h): Refer to dup3, pipe2.
10256 Reported by Eric Blake.
10258 2009-08-22 Jim Meyering <meyering@redhat.com>
10259 Bruno Haible <bruno@clisp.org>
10261 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10262 This makes it so packages using automake-1.11's silent-rules option
10263 can print e.g., a single "GEN configmake.h" line, rather than
10264 the 30+ statements that perform the job. If you want to see the
10265 actual commands, you can still run "make V=1".
10266 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10267 so that make output is abbreviated when those variables are defined
10269 * modules/argz: Likewise.
10270 * modules/arpa_inet: Likewise.
10271 * modules/byteswap: Likewise.
10272 * modules/configmake: Likewise.
10273 * modules/dirent: Likewise.
10274 * modules/errno: Likewise.
10275 * modules/fcntl: Likewise.
10276 * modules/float: Likewise.
10277 * modules/fnmatch: Likewise.
10278 * modules/getopt-posix: Likewise.
10279 * modules/glob: Likewise.
10280 * modules/iconv_open: Likewise.
10281 * modules/inttypes: Likewise.
10282 * modules/localcharset: Likewise.
10283 * modules/locale: Likewise.
10284 * modules/math: Likewise.
10285 * modules/netdb: Likewise.
10286 * modules/netinet_in: Likewise.
10287 * modules/poll: Likewise.
10288 * modules/posix_spawnp-tests: Likewise.
10289 * modules/sched: Likewise.
10290 * modules/search: Likewise.
10291 * modules/selinux-h: Likewise.
10292 * modules/signal: Likewise.
10293 * modules/spawn: Likewise.
10294 * modules/stdarg: Likewise.
10295 * modules/stdbool: Likewise.
10296 * modules/stddef: Likewise.
10297 * modules/stdint: Likewise.
10298 * modules/stdio: Likewise.
10299 * modules/stdlib: Likewise.
10300 * modules/string: Likewise.
10301 * modules/strings: Likewise.
10302 * modules/sys_file: Likewise.
10303 * modules/sys_ioctl: Likewise.
10304 * modules/sys_select: Likewise.
10305 * modules/sys_socket: Likewise.
10306 * modules/sys_stat: Likewise.
10307 * modules/sys_time: Likewise.
10308 * modules/sys_times: Likewise.
10309 * modules/sys_utsname: Likewise.
10310 * modules/sys_wait: Likewise.
10311 * modules/sysexits: Likewise.
10312 * modules/time: Likewise.
10313 * modules/unistd: Likewise.
10314 * modules/wchar: Likewise.
10315 * modules/wctype: Likewise.
10317 2009-08-22 Jim Meyering <meyering@redhat.com>
10319 announce-gen: detect write failure
10320 * build-aux/announce-gen: Add Coda at end.
10321 Remove equivalent-but-more-verbose block at top.
10323 2009-08-19 Akim Demaille <demaille@gostai.com>
10325 bootstrap: --help to stdout.
10326 * bootstrap (usage): Don't send --help to stderr.
10327 Use a here doc instead of a long string.
10329 2009-08-21 Eric Blake <ebb9@byu.net>
10331 test-popen-safer: split from test-popen
10332 * tests/test-popen.c (main): Move...
10333 * tests/test-popen.h: ...into new file.
10334 * tests/test-popen-safer2.c: New file.
10335 * modules/popen-tests (Files): Add test-popen.h.
10336 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10337 Suggested by Bruno Haible.
10339 test-fcntl-safer: split from test-open
10340 * tests/test-open.c (main): Move...
10341 * tests/test-open.h: ...into new file.
10342 * tests/test-fcntl-safer.c: New file.
10343 * modules/open-tests (Files): Add test-open.h.
10344 * modules/fcntl-safer-tests: New file.
10345 Suggested by Bruno Haible.
10347 test-fopen-safer: split from test-fopen
10348 * tests/test-fopen.c (main): Move...
10349 * tests/test-fopen.h: ...into new file.
10350 * tests/test-fopen-safer.c: New file.
10351 * modules/fopen-tests (Files): Add test-fopen.h.
10352 * modules/fopen-safer-tests: New file.
10353 Suggested by Bruno Haible.
10355 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10357 popen-safer: test O_CLOEXEC at run-time.
10358 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10360 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10362 fcntl: move more flags to the header
10363 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10364 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10365 * lib/fcntl.in.h: Do both things here.
10367 2009-08-21 Jim Meyering <meyering@redhat.com>
10369 consistently remove $@-t before redirecting to it
10370 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10371 * modules/alloca-opt: Likewise.
10372 * modules/byteswap: Likewise.
10373 * modules/fnmatch: Likewise.
10374 * modules/getopt-posix: Likewise.
10375 * modules/glob: Likewise.
10376 * modules/poll: Likewise.
10377 * modules/posix_spawnp-tests: Likewise.
10378 * modules/sys_socket: Likewise.
10379 * modules/sysexits: Likewise.
10381 2009-08-21 Eric Blake <ebb9@byu.net>
10383 popen: simplify access to original popen
10384 * lib/popen.c (rpl_popen): No need to worry about popen being a
10386 Reported by Bruno Haible.
10388 2009-08-20 Eric Blake <ebb9@byu.net>
10390 build: avoid some compiler warnings
10391 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10392 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10394 (new_exclude_segment, excluded_file_pattern_p)
10395 (excluded_file_name_p): Reduce scope.
10396 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10397 old-style declaration.
10399 2009-08-20 Simon Josefsson <simon@josefsson.org>
10401 * tests/test-exclude1.sh: Handle Windows EOL.
10402 * tests/test-exclude2.sh: Likewise.
10403 * tests/test-exclude3.sh: Likewise.
10404 * tests/test-exclude4.sh: Likewise.
10405 * tests/test-exclude5.sh: Likewise.
10406 * tests/test-exclude6.sh: Likewise.
10407 * tests/test-exclude7.sh: Likewise.
10409 2009-08-19 Akim Demaille <demaille@gostai.com>
10411 bootstrap: find sha1sum when named gsha1sum.
10412 * bootstrap (find_tool): New.
10416 2009-08-20 Jim Meyering <meyering@redhat.com>
10418 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10419 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10420 expression that converts "." in a file name to "\." in the resulting
10421 regexp. Start with a dummy statement, so that prior shell variable
10422 definitions are expanded portably. Reported by Simon Josefsson.
10424 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10426 Fix polling for writeability of a screen buffer.
10427 * lib/poll.c: Distinguish input and screen buffers for the
10428 Win32 implementation.
10429 * lib/select.c: Likewise.
10431 2009-08-19 Eric Blake <ebb9@byu.net>
10433 popen-safer: prevent popen from clobbering std descriptors
10434 * modules/popen-safer: New file.
10435 * lib/popen-safer.c: Likewise.
10436 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10437 * lib/stdio--.h (popen): Provide override.
10438 * lib/stdio-safer.h (popen_safer): Provide declaration.
10439 * tests/test-popen.c (includes): Partially test this.
10440 * modules/popen-safer-tests: New file, for more tests.
10441 * tests/test-popen-safer.c: Likewise.
10442 * MODULES.html.sh (file stream based Input/Output): Mention it.
10444 tests: test some of the *-safer modules
10445 * modules/fopen-safer (Depends-on): Add fopen.
10446 * modules/fcntl-safer (Depends-on): Add fcntl.
10447 * modules/stdlib-safer (Depends-on): Add stdlib.
10448 (configure.ac): Set indicator.
10449 * modules/unistd-safer (configure.ac): Likewise.
10450 * modules/tmpfile-safer (configure.ac): Likewise.
10451 (Depends-on): Add tmpfile.
10452 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10454 * tests/test-fopen.c (includes): Test safer versions when they are
10456 * tests/test-open.c (includes): Likewise.
10458 popen: fix cygwin 1.5 bug when stdin closed
10459 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10460 * modules/popen: New file.
10461 * modules/popen-tests: Likewise.
10462 * tests/test-popen.c: Likewise.
10463 * m4/popen.m4: Likewise.
10464 * lib/popen.c: Likewise.
10465 * lib/stdio.in.h (popen): New declaration.
10466 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10467 * modules/stdio (Makefile.am): Likewise.
10468 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10470 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10472 maint.mk: give full control over update-copyright exclusions
10473 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10474 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10475 (update-copyright): Don't force inclusion of top-level
10476 ChangeLog. Don't force exclusion of all COPYING files, but make
10477 them the default exclusion instead.
10479 2009-08-16 Bruno Haible <bruno@clisp.org>
10481 Fix test failures on Solaris 10.
10482 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10483 tests when Solaris iconv() is used.
10484 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10485 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10486 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10487 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10488 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10490 2009-08-16 Bruno Haible <bruno@clisp.org>
10492 Fix test failures on Solaris 10.
10493 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10494 'tr' program and pass it as first argument.
10495 * tests/test-pipe-filter-gi1.sh: Likewise.
10496 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10497 program as first argument.
10498 * tests/test-pipe-filter-gi1.c (main): Likewise.
10500 2009-08-16 Eric Blake <ebb9@byu.net>
10502 fpurge: fix previous commits
10503 * modules/fpurge (Makefile.am): Make replacement conditional,
10504 partially reverting 2007-04-29 change; missed in previous
10506 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10509 2009-08-16 Bruno Haible <bruno@clisp.org>
10511 Clarify fpurge's effect on the file position.
10512 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10513 * tests/test-fpurge.c (main): Make a second pass for checking the file
10516 2009-08-16 Bruno Haible <bruno@clisp.org>
10518 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10519 declaration of fpurge is missing.
10520 * tests/test-fpurge.c (main): Check that the file has not more contents
10521 than expected. Close the file before removing it.
10523 2009-08-15 Eric Blake <ebb9@byu.net>
10525 fpurge: don't wrap working cygwin implementation
10526 * lib/fpurge.c (fpurge): Fix comment typo.
10527 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10528 1.7 to avoid replacement.
10529 * tests/test-fpurge.c (main): Enhance test.
10531 2009-08-15 Eric Blake <ebb9@byu.net>
10532 and Jim Meyering <meyering@redhat.com>
10534 test-update-copyright: skip if perl is insufficient
10535 * tests/test-update-copyright.sh: Failure to run maintainer tool
10536 should not cause testsuite failure on cygwin 1.5.
10538 2009-08-14 Eric Blake <ebb9@byu.net>
10540 doc: mention more functions added in cygwin 1.7.0
10541 * doc/posix-headers/limits.texi (limits.h): Update for recent
10543 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10544 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10545 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10546 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10547 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10549 2009-08-14 Eric Blake <ebb9@byu.net>
10551 maint.mk: simplify update-copyright rule
10552 * top/maint.mk (update-copyright-local): Delete, and document how
10553 to do it in cfg.mk instead.
10554 (update-copyright-exclude-regexp): Delete, and document how to do
10555 it in .x-update-copyright instead.
10556 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10559 2009-08-14 Bruno Haible <bruno@clisp.org>
10561 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10563 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10565 maint.mk: support update-copyright-env
10566 * top/maint.mk (update-copyright-env): Define place-holder.
10567 (update-copyright): Expand $(update-copyright-env) before
10568 invoking update-copyright.
10570 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10572 update-copyright: implement forced reformatting
10573 * build-aux/update-copyright: Implement and document
10574 UPDATE_COPYRIGHT_FORCE.
10575 * tests/test-update-copyright.sh: Test it.
10577 2009-08-14 Eric Blake <ebb9@byu.net>
10578 and Bruno Haible <bruno@clisp.org>
10580 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10581 * tests/test-locale.c: Revert previous patch related to NULL.
10582 * tests/test-stdio.c: Likewise.
10583 * tests/test-stdlib.c: Likewise.
10584 * tests/test-string.c: Likewise.
10585 * tests/test-unistd.c: Likewise.
10586 * modules/time-tests (Depends-on): Add verify.
10587 * modules/wchar-tests (Depends-on): Likewise.
10588 * tests/test-time.c: Test for NULL compliance.
10589 * tests/test-wchar.c: Likewise.
10590 * modules/locale (Depends-on): Add stddef.
10591 * modules/stdio (Depends-on): Likewise.
10592 * modules/stdlib (Depends-on): Likewise.
10593 * modules/string (Depends-on): Likewise.
10594 * modules/time (Depends-on): Likewise.
10595 * modules/unistd (Depends-on): Likewise.
10596 * modules/wchar (Depends-on): Likewise.
10597 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10598 * lib/stdlib.in.h (includes): Likewise.
10599 * lib/string.in.h (includes): Likewise.
10600 * lib/time.in.h (includes): Likewise.
10601 * lib/unistd.in.h (includes): Likewise.
10602 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10604 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10605 * m4/stddef_h.m4: New file.
10606 * modules/stddef: Likewise.
10607 * lib/stddef.in.h: Likewise.
10608 * modules/stddef-tests: Likewise.
10609 * tests/test-stddef.c: Likewise.
10610 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10611 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10612 * doc/posix-headers/locale.texi (locale.h): Likewise.
10613 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10614 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10615 * doc/posix-headers/string.texi (string.h): Likewise.
10616 * doc/posix-headers/time.texi (time.h): Likewise.
10617 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10618 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10620 2009-08-14 Eric Blake <ebb9@byu.net>
10622 doc: improve git diff of texinfo files
10623 * .gitattributes: Add rule for *.texi files, with hint on how to
10625 Copied from m4, and based on a report by Bruno Haible.
10627 2009-08-14 Bruno Haible <bruno@clisp.org>
10629 Disable multithread support by default on Cygwin 1.5.x for real.
10630 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10632 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10634 update-copyright: much ado about intervals
10635 * build-aux/update-copyright: Implement and document
10636 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10637 of copyright year intervals.
10638 Also, document UPDATE_COPYRIGHT_YEAR.
10639 * tests/test-update-copyright.sh: Test it.
10641 update-copyright: convert 2-digit to 4-digit years
10642 * build-aux/update-copyright: Implement and document.
10643 * tests/test-update-copyright.sh: Update.
10645 2009-08-14 Jim Meyering <meyering@redhat.com>
10647 test-exclude: avoid coreutils "make check" failure
10648 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10649 just as in test-argmatch.c.
10651 2009-08-13 Eric Blake <ebb9@byu.net>
10653 test-dup2: fix bad assumption
10654 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10655 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10657 test-version-etc: fix CRLF portability issue
10658 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10660 * tests/test-argp-version-etc-1.sh: Likewise.
10662 getopt: update client modules
10663 * modules/argp (Depends-on): Use getopt-gnu.
10664 * modules/git-merge-changelog (Depends-on): Likewise.
10665 * modules/long-options (Depends-on): Likewise.
10666 * modules/xstrtol (Depends-on): Likewise.
10668 2009-08-13 Simon Josefsson <simon@josefsson.org>
10670 * tests/test-version-etc.sh: Don't fail on different
10671 project/version. Don't fail on CRLF differences. Rewrite to use
10672 multiple -e instead of multiple sed forks, suggested by Eric Blake
10674 * tests/test-argp-version-etc-1.sh: Likewise.
10676 2009-08-13 Simon Josefsson <simon@josefsson.org>
10678 * tests/test-version-etc.sh: Don't fail on different
10681 2009-08-12 Bruno Haible <bruno@clisp.org>
10683 Tests for modules 'getopt-posix', 'getopt-gnu'.
10684 * modules/getopt-posix-tests: New file.
10685 * tests/test-getopt.c: New file.
10686 * tests/test-getopt.h: New file.
10687 * tests/test-getopt_long.h: New file.
10689 New modules 'getopt-posix', 'getopt-gnu'.
10690 * modules/getopt-gnu: New file, renamed from modules/getopt.
10691 * modules/getopt-posix: New file.
10692 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10693 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10694 (gl_GETOPT): Remove macro.
10695 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10696 Disable the test against BSD systems that declare optreset. Test
10697 against mingw bug. Test against lack of support of optional arguments
10699 * doc/glibc-headers/getopt.texi: Update module name and list of
10700 relevant platforms.
10701 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10702 'getopt-gnu' and more portability problems.
10703 * NEWS: Mention the changes.
10705 2009-08-12 Bruno Haible <bruno@clisp.org>
10707 Ensure that optarg etc. get declared by <unistd.h>.
10708 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10709 AC_USE_SYSTEM_EXTENSIONS.
10710 * modules/getopt (Depends-on): Add 'extensions'.
10712 2009-08-12 Bruno Haible <bruno@clisp.org>
10714 Avoid test link errors.
10715 * modules/pipe-filter-ii-tests (Makefile.am): Define
10716 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10717 * modules/pipe-filter-gi-tests (Makefile.am): Define
10718 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10719 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10721 2009-08-12 Bruno Haible <bruno@clisp.org>
10723 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10724 gl_GETOPT_SUBSTITUTE before.
10725 (gl_GETOPT): Use it.
10726 * m4/argp.m4 (gl_ARGP): Update.
10727 Reported by Sergey Poznyakoff.
10729 * m4/getopt.m4: Reorder macros.
10730 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10731 (gl_GETOPT_SUBSTITUTE): Remove macro.
10733 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10735 Minor improvement in gitlog-to-changelog
10737 * build-aux/gitlog-to-changelog: New option `--format' makes
10738 output format string configurable.
10740 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10742 Optimize exclude: use hash tables for non-wildcard patterns.
10744 * lib/exclude.c: Include hash.h and mbuiter.h
10745 (struct exclude_pattern, exclude_segment): New data types.
10746 (struct exclude): Rewrite.
10747 (fnmatch_pattern_has_wildcards): New function.
10748 (new_exclude_segment, free_exclude_segment): New functions.
10749 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10750 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10751 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10752 * modules/exclude: Depend on hash and mbuiter.
10754 * modules/exclude-tests: New file.
10755 * tests/test-exclude.c: New file.
10756 * tests/test-exclude1.sh: New file.
10757 * tests/test-exclude2.sh: New file.
10758 * tests/test-exclude3.sh: New file.
10759 * tests/test-exclude4.sh: New file.
10760 * tests/test-exclude5.sh: New file.
10761 * tests/test-exclude6.sh: New file.
10762 * tests/test-exclude7.sh: New file.
10764 2009-08-12 Bruno Haible <bruno@clisp.org>
10766 Ensure that getopt() gets declared by <unistd.h>.
10767 * lib/unistd.in.h: Conditionally include getopt.h.
10768 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10769 Set GNULIB_UNISTD_H_GETOPT.
10770 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10771 GNULIB_UNISTD_H_GETOPT.
10772 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10774 2009-08-12 Bruno Haible <bruno@clisp.org>
10777 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10778 gl_replace_getopt instead of GETOPT_H.
10780 2009-08-12 Bruno Haible <bruno@clisp.org>
10782 * m4/getopt.m4: Add comments.
10784 2009-08-12 Bruno Haible <bruno@clisp.org>
10786 Disable multithread support by default on Cygwin 1.5.x.
10787 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10788 set gl_use_threads=no if not specified otherwise.
10790 2009-08-11 Bruno Haible <bruno@clisp.org>
10792 Avoid compilation error on NetBSD 5.0.
10793 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10794 * tests/test-stdio.c: Likewise.
10795 * tests/test-stdlib.c: Likewise.
10796 * tests/test-string.c: Likewise.
10797 * tests/test-unistd.c: Likewise.
10798 Reported by Greg Troxel <gdt@ir.bbn.com>
10799 at <https://savannah.gnu.org/support/?106973>.
10801 2009-08-11 Bruno Haible <bruno@clisp.org>
10803 * modules/dup2-tests (Depends-on): Remove close.
10805 Undo 2009-07-19 commit.
10806 * modules/acl-tests (Depends-on): Remove close.
10807 * modules/binary-io-tests (Depends-on): Likewise.
10808 * modules/closein-tests (Depends-on): Likewise.
10809 * modules/flock-tests (Depends-on): Likewise.
10810 * modules/fsync-tests (Depends-on): Likewise.
10811 * modules/lseek-tests (Depends-on): Likewise.
10812 * modules/pipe-tests (Depends-on): Likewise.
10813 * modules/posix_spawn-tests (Depends-on): Likewise.
10814 * modules/posix_spawnp-tests (Depends-on): Likewise.
10815 * modules/stat-time-tests (Depends-on): Likewise.
10816 * modules/yesno-tests (Depends-on): Likewise.
10818 2009-08-10 Bruno Haible <bruno@clisp.org>
10820 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10822 2009-08-10 Bruno Haible <bruno@clisp.org>
10825 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10827 2009-08-10 Bruno Haible <bruno@clisp.org>
10829 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10830 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10831 not only the first time.
10832 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10833 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10834 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10835 is 1, not only the the first time.
10837 2009-08-10 Bruno Haible <bruno@clisp.org>
10839 Make it possible to use module 'gethostname' without module 'close'.
10840 * lib/unistd.in.h (close): Evoke a link error only if
10841 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10842 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10843 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10844 * modules/unistd (Makefile.am): Substitute
10845 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10846 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10847 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10848 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10849 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10850 * modules/sys_ioctl (Makefile.am): Substitute
10851 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10852 * modules/socket (configure.ac): On native Windows, set
10853 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10854 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10855 Reported by Sam Steingold <sds@gnu.org>.
10857 2009-08-10 Bruno Haible <bruno@clisp.org>
10859 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10860 * modules/ioctl (configure.ac): Likewise.
10862 2009-08-10 Bruno Haible <bruno@clisp.org>
10864 Avoid collision between gnulib wrapper and libintl wrapper.
10865 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10866 already defined in intl/printf.c.
10867 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10868 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10870 2009-08-09 Bruno Haible <bruno@clisp.org>
10872 Make <sys/select.h> really self-contained, also on Solaris 10.
10873 * lib/sys_select.in.h: Include <string.h>.
10874 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10875 Solaris 10 problem.
10876 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10877 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10878 Reported by Jim Meyering.
10880 2009-08-09 Bruno Haible <bruno@clisp.org>
10882 Avoid warnings from 'aclocal' that are due to a use of macro name
10883 AM_XGETTEXT_OPTION that is not defined in automake.
10884 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10886 * modules/error (configure.ac): Likewise.
10887 * modules/propername (configure.ac): Likewise.
10888 * modules/vasprintf (configure.ac): Likewise.
10889 * modules/verror (configure.ac): Likewise.
10890 * modules/xprintf (configure.ac): Likewise.
10891 * modules/xvasprintf (configure.ac): Likewise.
10893 2009-08-08 Bruno Haible <bruno@clisp.org>
10895 Avoid compilation error in C++ mode.
10896 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10897 Reported by Sam Steingold <sds@gnu.org>.
10899 2009-08-08 Bruno Haible <bruno@clisp.org>
10901 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10902 for the various Unix platforms.
10903 * doc/posix-headers/limits.texi: Update platforms list regarding
10905 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10907 2009-08-07 Jim Meyering <meyering@redhat.com>
10909 selinux-at: fix typo in a comment
10910 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10911 Spotted by Paolo Bonzini.
10913 selinux-at: remove redundant m4 code, add documentation
10914 * modules/selinux-at (configure.ac): Remove redundant code.
10915 LIB_SELINUX is already set via the dependent module, selinux-h.
10916 (Include): Add quotes around selinux-at.h.
10917 * lib/selinux-at.h: Add documentation.
10918 Reported by Bruno Haible in
10919 http://marc.info/?l=gnulib-bug&m=124958988300749
10921 2009-08-07 Bruno Haible <bruno@clisp.org>
10923 Avoid link error on MacOS X 10.3 and 10.4.
10924 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10925 on non-ELF systems.
10926 * lib/argp-pv.c (argp_program_version): Likewise.
10927 Reported by Simon Josefsson.
10929 2009-08-07 Simon Josefsson <simon@josefsson.org>
10931 * tests/test-version-etc.sh: Use $EXEEXT.
10933 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
10935 update-copyright: update documentation to point to maint.mk
10936 * build-aux/update-copyright: Here.
10938 2009-08-06 Jim Meyering <meyering@redhat.com>
10940 maint.mk: support update-copyright-local
10941 * top/maint.mk (update-copyright-local): Define place-holder.
10942 (update-copyright): Depend on $(update-copyright-local).
10944 2009-08-06 Jim Meyering <meyering@redhat.com>
10946 selinux-at: new module
10947 Initially written for coreutils, this module will soon be
10948 used by findutils, too.
10949 * MODULES.html.sh [Misc]: Add selinux-at.
10950 * lib/selinux-at.h: New file, from coreutils.
10951 * lib/selinux-at.c: Likewise.
10952 * modules/selinux-at: Likewise.
10953 (License): Change from LGPL to GPL, since it depends
10954 on the GPL'd openat module.
10957 * README: Remove references to cogito.
10958 Remove cvs-repo-updating instructions from 2007.
10959 Don't imply that CVS is better if you have limited disk space.
10961 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10963 update-copyright: support C-style comments
10964 * build-aux/update-copyright: Implement and document.
10965 * tests/test-update-copyright.sh: Test.
10967 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10969 update-copyright: support omitted "(C)"
10970 * build-aux/update-copyright: Implement and document. Also,
10971 allow variable whitespace before "(C)".
10972 * tests/test-update-copyright.sh: Test.
10974 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10976 update-copyright: don't trip on non-FSF copyright statements
10977 * build-aux/update-copyright: Fix so that the first correctly
10978 formatted FSF copyright statement is recognized no matter what
10979 appears before it. Update documentation.
10980 * tests/test-update-copyright.sh: Test that.
10982 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10984 update-copyright: clean up code a little
10985 * build-aux/update-copyright: Append "_re" to the name of any
10986 variable holding a regular expression.
10987 Replace "old" and "new" with "stmt" in variable names.
10988 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10990 Format code more consistently.
10992 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10994 update-copyright-tests: improve portability
10995 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10996 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
10998 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11000 update-copyright: support @copyright{} and ©
11001 * build-aux/update-copyright: Implement and document.
11002 * tests/test-update-copyright.sh: Test.
11004 2009-08-04 Jim Meyering <meyering@redhat.com>
11006 update-copyright-tests: correctly test EOL=\r\n handling
11007 * tests/test-update-copyright.sh: Put \r at the end of some lines
11008 for the dos-eol tests. Based on a patch by Joel E. Denny.
11010 maint.mk: make update-copyright exclusion list more configurable
11011 * top/maint.mk (update-copyright): Default to excluding COPYING,
11012 but allow an override, in case someone does want to update that file.
11014 maint.mk: don't update copyright date in COPYING
11015 * top/maint.mk (update-copyright): Exclude COPYING.
11017 maint.mk: add a copyright-updating rule
11018 * top/maint.mk (update-copyright): New rule.
11019 Derived from coreutils/Makefile.am.
11021 update-copyright: rename some variables
11022 * build-aux/update-copyright: Rename a few variables for clarity.
11023 Tweak syntax. List Joel E. Denny as coauthor.
11025 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11027 update-copyright: fix bug for 2-digit last year and add tests
11028 * build-aux/update-copyright: Fix bug.
11029 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11031 * modules/update-copyright-tests: New
11032 * tests/test-update-copyright.sh: New.
11034 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11036 update-copyright: handle leading tabs in line prefix
11037 * build-aux/update-copyright: Count leading tabs as 8 spaces
11038 when computing margin. This helps with the formatting of
11039 ChangeLogs, for example.
11040 Fix documentation a little.
11042 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11044 update-copyright: support EOL=\r\n
11045 * build-aux/update-copyright: Implement that.
11047 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11049 update-copyright: automatically format copyright statements
11050 * build-aux/update-copyright: Implement that.
11051 Also, be a little more predictable and safer by always failing
11052 when the full copyright format is not perfectly recognized as an
11053 unbroken whole. Discussed at
11054 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11055 Rewrite documentation.
11057 2009-08-03 Bruno Haible <bruno@clisp.org>
11059 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11061 2009-08-02 Bruno Haible <bruno@clisp.org>
11063 Tests for module 'uname'.
11064 * modules/uname-tests: New file.
11065 * tests/test-uname.c: New file.
11067 New module 'uname'.
11068 * lib/uname.c: New file.
11069 * m4/uname.m4: New file.
11070 * modules/uname: New file.
11071 * doc/posix-functions/uname.texi: Mention the new module.
11073 2009-08-02 Bruno Haible <bruno@clisp.org>
11075 Tests for module 'sys_utsname'.
11076 * modules/sys_utsname-tests: New file.
11077 * tests/test-sys_utsname.c: New file.
11079 New module 'sys_utsname'.
11080 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11081 * m4/sys_utsname_h.m4: New file.
11082 * modules/sys_utsname: New file.
11083 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11085 2009-08-02 Bruno Haible <bruno@clisp.org>
11087 Implicitly initialize the sockets library.
11088 * lib/gethostname.c: Include sockets.h.
11089 (rpl_gethostname): Invoke gl_sockets_startup.
11090 * lib/socket.c: Include sockets.h.
11091 (rpl_socket): Invoke gl_sockets_startup.
11092 * modules/gethostname (Depends-on): Add sockets.
11093 * modules/socket (Depends-on): Likewise.
11094 * tests/test-poll.c: Don't include sockets.h.
11095 (main): Don't invoke gl_sockets_startup.
11096 * tests/test-select.c: Don't include sockets.h.
11097 (main): Don't invoke gl_sockets_startup.
11099 2009-08-02 Bruno Haible <bruno@clisp.org>
11101 Allow multiple calls to gl_sockets_startup.
11102 * lib/sockets.c (initialized_sockets_version): New variable.
11103 (gl_sockets_startup): Do nothing if already called for this or a higher
11105 (gl_sockets_cleanup): Reset initialized_sockets_version.
11107 2009-08-03 Simon Josefsson <simon@josefsson.org>
11109 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11110 different project/version.
11112 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11113 Bruno Haible <bruno@clisp.org>
11115 Tests for module 'pipe-filter-gi'.
11116 * modules/pipe-filter-gi-tests: New file.
11117 * tests/test-pipe-filter-gi1.sh: New file.
11118 * tests/test-pipe-filter-gi1.c: New file.
11119 * tests/test-pipe-filter-gi2.sh: New file.
11120 * tests/test-pipe-filter-gi2-main.c: New file.
11121 * tests/test-pipe-filter-gi2-child.c: New file.
11123 New module 'pipe-filter-gi'.
11124 * lib/pipe-filter-gi.c: New file.
11125 * modules/pipe-filter-gi: New file.
11127 2009-08-02 Bruno Haible <bruno@clisp.org>
11128 Paolo Bonzini <bonzini@gnu.org>
11130 Tests for module 'pipe-filter-ii'.
11131 * modules/pipe-filter-ii-tests: New file.
11132 * tests/test-pipe-filter-ii1.sh: New file.
11133 * tests/test-pipe-filter-ii1.c: New file.
11134 * tests/test-pipe-filter-ii2.sh: New file.
11135 * tests/test-pipe-filter-ii2-main.c: New file.
11136 * tests/test-pipe-filter-ii2-child.c: New file.
11138 New module 'pipe-filter-ii'.
11139 * lib/pipe-filter.h: New file.
11140 * lib/pipe-filter-ii.c: New file.
11141 * lib/pipe-filter-aux.h: New file.
11142 * modules/pipe-filter-ii: New file.
11144 2009-08-02 Simon Josefsson <simon@josefsson.org>
11146 * lib/gc-libgcrypt.c: Change copyright to FSF.
11147 * lib/gc-gnulib.c: Likewise.
11149 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11151 * lib/gethostname.c: Include limits.h.
11153 2009-08-02 Simon Josefsson <simon@josefsson.org>
11154 Bruno Haible <bruno@clisp.org>
11156 Ensure HOST_NAME_MAX as part of the gethostname module.
11157 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11158 define also HOST_NAME_MAX.
11159 * tests/test-gethostname.c: Include <limits.h>.
11160 (main): Check also HOST_NAME_MAX.
11161 * doc/posix-headers/limits.texi: Document the mingw problem.
11163 2009-08-02 Bruno Haible <bruno@clisp.org>
11165 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11168 2009-03-31 Simon Josefsson <simon@josefsson.org>
11170 * lib/gethostname.c: Add Windows wrapper.
11171 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11172 * modules/gethostname: Depend on sys_socket & errno, for also
11173 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11174 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11176 2009-07-31 Jim Meyering <meyering@redhat.com>
11178 getloadavg: fix symbol name in comment
11179 * lib/getloadavg.c: Correct a typo I introduced when adding
11180 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11181 Matt Kraai spotted the problem.
11183 2009-07-29 Matt Kraai <mkraai@beckman.com>
11185 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11186 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11187 code also if ! defined N_NAME_POINTER.
11188 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11189 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11190 but the n_name member is a 12-byte array.
11192 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11194 update-copyright: generalize comment handling
11195 * build-aux/update-copyright: Handle copyright statements
11196 within more comment styles.
11198 Report any file with an external copyright holder or parse failure.
11200 2009-07-29 Jim Meyering <meyering@redhat.com>
11202 mktime: correct setting of REPLACE_MKTIME
11203 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11205 update-copyright: new module
11206 * modules/update-copyright: New file.
11207 * build-aux/update-copyright: New file.
11208 * MODULES.html.sh (maint+release support): Add update-copyright.
11210 2009-07-27 Bruno Haible <bruno@clisp.org>
11212 Fix compilation error when <ctime> is used and mktime is replaced.
11213 * lib/time.in.h (mktime): New declaration.
11214 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11215 REPLACE_MKTIME instead of defining mktime in config.h.
11216 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11217 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11218 Reported by Ross McFarland <rwmcfa1@neces.com>.
11220 2009-07-27 Bruno Haible <bruno@clisp.org>
11222 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11223 Reported by Matt Kraai <mkraai@beckman.com>.
11225 2009-07-25 Jim Meyering <meyering@redhat.com>
11227 maint.mk: avoid warnings about missing files
11228 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11229 diagnostic when .prev-version does not exist.
11230 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11231 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11232 nonexistent cfg.mk.
11233 Suggestions from Simon Josefsson.
11235 2009-07-25 Bruno Haible <bruno@clisp.org>
11237 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11238 defined as macros. Needed on QNX 6.4.1.
11239 Reported by Matt Kraai <mkraai@beckman.com>.
11241 2009-07-23 Jim Meyering <meyering@redhat.com>
11243 maint.mk: invoke "make dist" with a working value of XZ_OPT
11244 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11246 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11248 Make fseeko.c compile on QNX.
11249 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11251 2009-07-22 Peter Simons <simons@cryp.to>
11253 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11254 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11255 * lib/md4.h: Likewise.
11256 * lib/md5.h: Likewise.
11257 * lib/sha1.h: Likewise.
11258 * lib/sha256.h: Likewise.
11259 * lib/sha512.h: Likewise.
11261 tests-sha1: don't assign literal string to 'char *' variable
11262 * tests/test-sha1.c (main): Declare locals with "const" to match
11263 attributes of the right hand side.
11265 2009-07-21 Eric Blake <ebb9@byu.net>
11267 dup2: fix more mingw problems
11268 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11270 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11271 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11272 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11273 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11274 care of mingw bugs.
11276 2009-07-21 Jim Meyering <meyering@redhat.com>
11278 vc-list-files: avoid failure when /bin/sh is dash
11279 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11280 On some Debian based systems, /bin/sh is a symlink to dash, and running
11281 this command would omit the "/" following each 'tests' prefix:
11282 dash -x build-aux/vc-list-files -C . tests
11283 That is because bash and dash work differently:
11284 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11288 2009-07-21 Eric Blake <ebb9@byu.net>
11290 dup2-tests: test previous patch
11291 * modules/dup2-tests: New file.
11292 * tests/test-dup2.c: Likewise.
11293 * tests/test-open.c (main): Avoid unspecified behavior.
11294 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11297 dup2: work around mingw and cygwin 1.5 bug
11298 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11299 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11300 * modules/unistd (Makefile.am): Substitute it.
11301 * lib/unistd.in.h (dup2): Declare the replacement.
11302 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11303 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11304 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11305 * modules/execute (Depends-on): Add dup2.
11306 * modules/fseterr (Depends-on): Likewise.
11307 * modules/pipe (Depends-on): Likewise.
11308 * modules/posix_spawn-internal (Depends-on): Likewise.
11310 2009-07-21 Bruno Haible <bruno@clisp.org>
11312 * modules/.gitattributes: New file.
11314 2009-07-20 Bruno Haible <bruno@clisp.org>
11316 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11319 2009-07-20 Eric Blake <ebb9@byu.net>
11321 test-pipe: make a bit more robust.
11322 * tests/test-pipe.c (myerr): Allow error messages regardless of
11323 what we do to stderr.
11324 (test_pipe): Rearrange to avoid deadlock.
11325 (child_main): Try a larger read, to ensure we avoided deadlock.
11326 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11327 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11330 2009-07-19 Jim Meyering <meyering@redhat.com>
11332 fts: avoid false-positive cycle-detection
11333 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11334 for each new command line argument.
11336 2009-07-19 Bruno Haible <bruno@clisp.org>
11338 Fix build error on mingw with the modules sys_select and unistd.
11339 * modules/acl-tests (Depends-on): Add close.
11340 * modules/binary-io-tests (Depends-on): Likewise.
11341 * modules/closein-tests (Depends-on): Likewise.
11342 * modules/flock-tests (Depends-on): Likewise.
11343 * modules/fsync-tests (Depends-on): Likewise.
11344 * modules/lseek-tests (Depends-on): Likewise.
11345 * modules/pipe-tests (Depends-on): Likewise.
11346 * modules/posix_spawn-tests (Depends-on): Likewise.
11347 * modules/posix_spawnp-tests (Depends-on): Likewise.
11348 * modules/stat-time-tests (Depends-on): Likewise.
11349 * modules/yesno-tests (Depends-on): Likewise.
11351 2009-07-19 Bruno Haible <bruno@clisp.org>
11353 Unify conditionals.
11354 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11355 macros, not at the compiler macros.
11356 * lib/pipe.c: Likewise.
11357 * lib/execute.c: Likewise.
11358 * lib/spawni.c: Likewise.
11360 2009-07-19 Bruno Haible <bruno@clisp.org>
11362 Fix handling of closed stdin/stdout/stderr on mingw.
11363 * lib/w32spawn.h: Include unistd.h.
11364 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11365 file descriptor with O_NOINHERIT flag.
11366 (fd_safer_noinherit): New function, based on fd-safer.c.
11367 (dup_safer_noinherit): New function, based on dup-safer.c.
11368 (undup_safer_noinherit): New function.
11369 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11370 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11371 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11372 instead of fd_safer.
11373 * tests/test-pipe.c: Include <windows.h>.
11374 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11376 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11378 (test_pipe): Pass an extra argument for disambiguation.
11379 (main): Invoke parent_main or child_main.
11381 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11384 2009-07-18 Eric Blake <ebb9@byu.net>
11386 test-pipe: fix mingw build
11387 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11389 2009-07-18 Bruno Haible <bruno@clisp.org>
11391 * modules/pipe-tests (Makefile.am): Fix typo.
11393 2009-07-18 Eric Blake <ebb9@byu.net>
11395 error: fix mingw build
11396 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11397 Reported by Bruno Haible.
11399 error: avoid undefined use of stdout
11400 * lib/error.c (error, error_at_line): Check that fd 1 is open
11401 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11402 is handling faults and the close_stdout module wants to report the
11403 detection of closed stdout as an error.
11405 2009-07-17 Eric Blake <ebb9@byu.net>
11407 pipe: be robust in face of closed fds
11408 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11409 should cause child to misbehave.
11410 * modules/pipe-tests: New module.
11411 * tests/test-pipe.c: New file.
11412 * tests/test-pipe.sh: New file.
11413 Reported by Akim Demaille.
11415 2009-07-14 Bruno Haible <bruno@clisp.org>
11417 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11418 Reported by anonymous kc.
11420 2009-07-07 Jim Meyering <meyering@redhat.com>
11422 maint.mk: don't look for translatable strings in *.m4 or *.mk
11423 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11424 when searching for translatable strings.
11426 2009-07-05 Jim Meyering <meyering@redhat.com>
11428 remove superfluous parentheses in STREQ definition
11429 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11430 * lib/getugroups.c (STREQ): Likewise.
11431 * lib/fnmatch.c (STREQ): Likewise.
11432 Spotted by Bruno Haible.
11434 2009-07-04 Jim Meyering <meyering@redhat.com>
11436 argv-iter: new module
11437 * MODULES.html.sh: Add argv-iter.
11438 * lib/argv-iter.c, lib/argv-iter.h: New files.
11439 * modules/argv-iter: New file.
11440 * modules/argv-iter-tests: New file.
11441 * tests/test-argv-iter.c: Test it.
11443 2009-07-04 Bruno Haible <bruno@clisp.org>
11446 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11447 contains more exact copies of a given entry than file2, leave the extra
11448 copies unpaired rather than aborting.
11449 Reported by Eric Blake.
11451 2009-07-02 Bruno Haible <bruno@clisp.org>
11453 Speedup git-merge-changelog for git cherry-pick.
11454 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11455 (entries_mapping_get): New function, extracted from compute_mapping.
11456 (entries_mapping_reverse_get): New function.
11457 (compute_mapping): Add a 'full' argument. Return the result in a
11458 'struct entries_mapping'.
11459 (main): Update. Access the mappings through entries_mapping_get.
11460 Reported by Eric Blake.
11462 2009-07-02 Bruno Haible <bruno@clisp.org>
11464 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11467 2009-07-02 Bruno Haible <bruno@clisp.org>
11469 Speed up approximate search for matching ChangeLog entries.
11470 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11471 argument. Call fstrcmp_bounded instead of fstrcmp.
11472 (compute_mapping, try_split_merged_entry, main): Update callers.
11474 2009-07-02 Bruno Haible <bruno@clisp.org>
11476 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11478 2009-06-30 Bruno Haible <bruno@clisp.org>
11480 Reduce the number of uc_is_cased calls.
11481 * lib/unicase.h (casing_suffix_context_t): Add
11482 'first_char_except_ignorable' field.
11483 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11484 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11485 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11486 Update initializer.
11487 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11488 case-ignorable characters.
11489 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11490 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11491 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11492 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11493 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11495 2009-06-30 Bruno Haible <bruno@clisp.org>
11497 Tests for module 'unicase/ignorable'.
11498 * modules/unicase/ignorable-tests: New file.
11499 * tests/unicase/test-ignorable.c: New file, generated by
11502 Tests for module 'unicase/cased'.
11503 * modules/unicase/cased-tests: New file.
11504 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11505 * tests/unicase/test-predicate-part1.h: New file, derived from
11506 tests/unictype/test-predicate-part1.h.
11507 * tests/unicase/test-predicate-part2.h: New file, same as
11508 tests/unictype/test-predicate-part2.h.
11510 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11511 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11512 (output_casing_properties): New function.
11514 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11515 * lib/unicase/cased.c: Include unictype/bitmap.h.
11516 (uc_is_cased): Define through a bitmap lookup.
11517 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11518 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11519 (uc_is_case_ignorable): Define through a bitmap lookup.
11520 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11521 lib/unictype/bitmap.h.
11522 (Depends-on): Add inline. Clean up.
11523 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11524 lib/unictype/bitmap.h.
11525 (Depends-on): Add inline. Clean up.
11526 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11528 * tests/unicase/test-u16-tolower.c (main): Likewise.
11529 * tests/unicase/test-u32-tolower.c (main): Likewise.
11531 2009-06-30 Bruno Haible <bruno@clisp.org>
11533 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11534 * lib/unicase/u16-casemap.c: Likewise.
11535 * lib/unicase/u32-casemap.c: Likewise.
11537 2009-06-29 Bruno Haible <bruno@clisp.org>
11539 Define u32_casefold as a wrapper around u32_ct_casefold.
11540 * lib/unicase/u32-casefold.c: Update.
11541 * modules/unicase/u32-casefold (Depends-on): Add
11542 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11543 unicase/empty-suffix-context. Clean up.
11545 Define u16_casefold as a wrapper around u16_ct_casefold.
11546 * lib/unicase/u16-casefold.c: Update.
11547 * modules/unicase/u16-casefold (Depends-on): Add
11548 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11549 unicase/empty-suffix-context. Clean up.
11551 Define u8_casefold as a wrapper around u8_ct_casefold.
11552 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11553 * lib/unicase/u8-casefold.c: Update.
11554 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11555 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11557 Define u32_totitle as a wrapper around u32_ct_totitle.
11558 * lib/unicase/u32-totitle.c: Update.
11559 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11560 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11562 Define u16_totitle as a wrapper around u16_ct_totitle.
11563 * lib/unicase/u16-totitle.c: Update.
11564 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11565 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11567 Define u8_totitle as a wrapper around u8_ct_totitle.
11568 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11570 (FUNC): Delegate to U_CT_TOTITLE.
11571 * lib/unicase/u8-totitle.c: Update.
11572 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11573 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11575 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11577 * modules/unicase/u32-tolower (Depends-on): Add
11578 unicase/empty-prefix-context, unicase/empty-suffix-context.
11580 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11582 * modules/unicase/u16-tolower (Depends-on): Add
11583 unicase/empty-prefix-context, unicase/empty-suffix-context.
11585 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11586 * modules/unicase/u8-tolower (Depends-on): Add
11587 unicase/empty-prefix-context, unicase/empty-suffix-context.
11589 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11591 * modules/unicase/u32-toupper (Depends-on): Add
11592 unicase/empty-prefix-context, unicase/empty-suffix-context.
11594 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11596 * modules/unicase/u16-toupper (Depends-on): Add
11597 unicase/empty-prefix-context, unicase/empty-suffix-context.
11599 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11600 * modules/unicase/u8-toupper (Depends-on): Add
11601 unicase/empty-prefix-context, unicase/empty-suffix-context.
11603 New module 'unicase/u32-ct-casefold'.
11604 * lib/unicase/u32-ct-casefold.c: New file.
11605 * modules/unicase/u32-ct-casefold: New file.
11607 New module 'unicase/u16-ct-casefold'.
11608 * lib/unicase/u16-ct-casefold.c: New file.
11609 * modules/unicase/u16-ct-casefold: New file.
11611 New module 'unicase/u8-ct-casefold'.
11612 * lib/unicase/u8-ct-casefold.c: New file.
11613 * lib/unicase/u-ct-casefold.h: New file, derived from
11614 lib/unicase/u-casefold.h.
11615 * modules/unicase/u8-ct-casefold: New file.
11617 New module 'unicase/u32-ct-totitle'.
11618 * lib/unicase/u32-ct-totitle.c: New file.
11619 * modules/unicase/u32-ct-totitle: New file.
11621 New module 'unicase/u16-ct-totitle'.
11622 * lib/unicase/u16-ct-totitle.c: New file.
11623 * modules/unicase/u16-ct-totitle: New file.
11625 New module 'unicase/u8-ct-totitle'.
11626 * lib/unicase/u8-ct-totitle.c: New file.
11627 * lib/unicase/u-ct-totitle.h: New file, derived from
11628 lib/unicase/u-totitle.h.
11629 * modules/unicase/u8-ct-totitle: New file.
11631 New module 'unicase/u32-ct-tolower'.
11632 * lib/unicase/u32-ct-tolower.c: New file.
11633 * modules/unicase/u32-ct-tolower: New file.
11635 New module 'unicase/u16-ct-tolower'.
11636 * lib/unicase/u16-ct-tolower.c: New file.
11637 * modules/unicase/u16-ct-tolower: New file.
11639 New module 'unicase/u8-ct-tolower'.
11640 * lib/unicase/u8-ct-tolower.c: New file.
11641 * modules/unicase/u8-ct-tolower: New file.
11643 New module 'unicase/u32-ct-toupper'.
11644 * lib/unicase/u32-ct-toupper.c: New file.
11645 * modules/unicase/u32-ct-toupper: New file.
11647 New module 'unicase/u16-ct-toupper'.
11648 * lib/unicase/u16-ct-toupper.c: New file.
11649 * modules/unicase/u16-ct-toupper: New file.
11651 New module 'unicase/u8-ct-toupper'.
11652 * lib/unicase/u8-ct-toupper.c: New file.
11653 * modules/unicase/u8-ct-toupper: New file.
11655 Add context arguments to u*_casemap functions.
11656 * lib/unicase/unicasemap.h: Include unicase.h.
11657 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11658 suffix_context arguments.
11659 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11661 (FUNC): Add prefix_context and suffix_context arguments. Use
11662 uc_is_cased and uc_is_case_ignorable.
11663 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11664 * lib/unicase/u16-casemap.c: Likewise.
11665 * lib/unicase/u32-casemap.c: Likewise.
11666 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11667 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11668 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11669 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11670 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11671 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11673 New module 'unicase/u32-suffix-context'.
11674 * lib/unicase/u32-suffix-context.c: New file.
11675 * modules/unicase/u32-suffix-context: New file.
11677 New module 'unicase/u16-suffix-context'.
11678 * lib/unicase/u16-suffix-context.c: New file.
11679 * modules/unicase/u16-suffix-context: New file.
11681 New module 'unicase/u8-suffix-context'.
11682 * lib/unicase/u8-suffix-context.c: New file.
11683 * lib/unicase/u-suffix-context.h: New file.
11684 * modules/unicase/u8-suffix-context: New file.
11686 New module 'unicase/empty-suffix-context'.
11687 * lib/unicase/empty-suffix-context.c: New file.
11688 * modules/unicase/empty-suffix-context: New file.
11690 New module 'unicase/u32-prefix-context'.
11691 * lib/unicase/u32-prefix-context.c: New file.
11692 * modules/unicase/u32-prefix-context: New file.
11694 New module 'unicase/u16-prefix-context'.
11695 * lib/unicase/u16-prefix-context.c: New file.
11696 * modules/unicase/u16-prefix-context: New file.
11698 New module 'unicase/u8-prefix-context'.
11699 * lib/unicase/u8-prefix-context.c: New file.
11700 * lib/unicase/u-prefix-context.h: New file.
11701 * lib/unicase/context.h: New file.
11702 * modules/unicase/u8-prefix-context: New file.
11704 New module 'unicase/empty-prefix-context'.
11705 * lib/unicase/empty-prefix-context.c: New file.
11706 * modules/unicase/empty-prefix-context: New file.
11708 New module 'unicase/ignorable'.
11709 * lib/unicase/ignorable.c: New file.
11710 * modules/unicase/ignorable: New file.
11712 New module 'unicase/cased'.
11713 * lib/unicase/caseprop.h: New file.
11714 * lib/unicase/cased.c: New file.
11715 * modules/unicase/cased: New file.
11717 New functions for case mapping of substrings.
11718 * lib/unicase.h (casing_prefix_context_t): New type.
11719 (unicase_empty_prefix_context): New variable.
11720 (u8_casing_prefix_context, u16_casing_prefix_context,
11721 u32_casing_prefix_context, u8_casing_prefixes_context,
11722 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11724 (casing_suffix_context_t): New type.
11725 (unicase_empty_suffix_context): New variable.
11726 (u8_casing_suffix_context, u16_casing_suffix_context,
11727 u32_casing_suffix_context, u8_casing_suffixes_context,
11728 u16_casing_suffixes_context, u32_casing_suffixes_context,
11729 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11730 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11731 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11734 2009-06-28 Jim Meyering <meyering@redhat.com>
11736 boostrap: indent only with spaces
11737 * build-aux/bootstrap: Indent only with spaces, never TABs.
11739 bootstrap: split long lines
11740 * build-aux/bootstrap: Keep line length < 80.
11742 bootstrap: sync from coreutils
11743 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11744 just as autoreconf does. Verify a list of prerequisite
11745 package-name,version-number pairs if defined in bootstrap.conf.
11746 Refer to README-prereq, if prerequisites are not satisfied.
11748 2009-06-27 Eric Blake <ebb9@byu.net>
11750 tests: add test for bogus NULL definition
11751 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11752 * tests/test-stdlib.c: Likewise.
11753 * tests/test-string.c: Likewise.
11754 * tests/test-locale.c: Likewise.
11755 * tests/test-unistd.c: Likewise.
11756 * modules/stdio-tests (Depends-on): Add verify.
11757 * modules/stdlib-tests (Depends-on): Likewise.
11758 * modules/string-tests (Depends-on): Likewise.
11759 * modules/locale-tests (Depends-on): Likewise.
11760 * modules/unistd-tests (Depends-on): Likewise.
11762 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11764 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11765 self-explaining comment.
11766 * m4/selinux-selinux-h: Update serial.
11767 (gl_LIBSELINUX): New macro, adding a warning for missing development
11768 packages to code extracted from...
11769 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11770 Add warning for missing development packages here, too.
11772 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11774 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11776 2009-06-25 Eric Blake <ebb9@byu.net>
11778 version-etc: fix regression
11779 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11781 (version_etc): Use it, to catch bugs with trailing NULL.
11782 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11783 (version_etc_va): Fix logic bug.
11784 * modules/version-etc-tests: Add test.
11785 * tests/test-version-etc.c: New file.
11786 * tests/test-version-etc.sh: Likewise.
11788 2009-06-25 Sam Steingold <sds@gnu.org>
11790 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11791 mbtowc declaration.
11793 2009-06-25 Eric Blake <ebb9@byu.net>
11795 fpurge: migrate into <stdio.h>
11796 * lib/fpurge.h: Delete...
11797 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11798 * lib/fpurge.c (fpurge): Change declaring header.
11799 * modules/fpurge (Files): Drop deleted file.
11800 (Depends-on): Add stdio.
11801 (configure.ac): Set witness.
11802 * modules/stdio (Makefile.am): Support fpurge macros.
11803 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11804 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11805 * lib/fflush.c: Update client.
11806 * tests/test-fpurge.c: Likewise.
11807 * NEWS: Mention the change.
11809 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11811 * lib/argp-version-etc.c (program_authors): Add const
11813 * lib/version-etc.c: Fix typos in the comments.
11814 * modules/argp-version-etc: Depends on version-etc.
11816 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11818 argp-version-etc: new module.
11820 * lib/argp-version-etc.c: New file.
11821 * lib/argp-version-etc.h: New file.
11822 * modules/argp-version-etc: New file.
11823 * modules/argp-version-etc-tests: New file.
11824 * tests/test-argp-version-etc.c: New test.
11825 * tests/test-argp-version-etc-1.sh: New test.
11827 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11829 Provide additional interfaces and documentation for version-etc
11832 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11834 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11837 2009-06-24 Bruno Haible <bruno@clisp.org>
11839 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11840 HAVE_LIB${NAME} macro.
11841 Reported by Sam Steingold <sds@gnu.org>.
11843 2009-06-23 Simon Josefsson <simon@josefsson.org>
11845 * modules/hash-tests (test_hash_LDADD): Link to libintl when
11848 2009-06-21 Bruno Haible <bruno@clisp.org>
11850 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11852 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11853 together with LIB${NAME}, LTLIB${NAME}.
11854 Reported by Sam Steingold <sds@gnu.org>.
11856 2009-06-20 Jim Meyering <meyering@redhat.com>
11858 tests: make sc_require_test_exit_idiom more generic
11859 * top/maint.mk (Exit_witness_file): New overridable variable.
11860 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11861 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11863 2009-06-19 Jim Meyering <meyering@redhat.com>
11865 hash: reverse order of src/dst parameters in an internal interface
11866 * lib/hash.c (transfer_entries): Reverse order of parameters to
11867 put DST before SRC. Adjust callers.
11869 tests: test-hash: avoid wholesale duplication
11870 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11871 Instead, use a loop and add a single conditional.
11873 tests: test-hash: allow seed selection via a command line argument
11874 * tests/test-hash.c (get_seed): New function.
11877 2009-06-19 Eric Blake <ebb9@byu.net>
11879 hash: avoid memory leak on allocation failure
11880 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11881 failure. Factor repeated algorithm...
11882 (transfer_entries): ...into new helper routine.
11883 (hash_delete): React to hash_rehash return value.
11885 hash: reduce memory pressure in hash_rehash no-op case
11886 * lib/hash.c (next_prime): Avoid overflow.
11887 (hash_initialize): Factor bucket size computation...
11888 (compute_bucket_size): ...into new helper function.
11889 (hash_rehash): Use new function and open coding to reduce memory
11890 pressure, and avoid a memory leak in USE_OBSTACK code.
11891 Reported by Jim Meyering.
11893 2009-06-18 Eric Blake <ebb9@byu.net>
11895 hash: make rotation more obvious
11896 * modules/hash (Depends-on): Add bitrotate and stdint.
11897 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11898 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
11899 (SIZE_MAX): Rely on headers for definition.
11900 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11901 (raw_hasher): Use rotr_sz.
11902 Suggested by Jim Meyering.
11904 hash: fix memory leak in last patch
11905 * lib/hash.c (hash_rehash): Avoid memory leak.
11907 hash: avoid no-op rehashing
11908 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11910 hash: provide default callback functions
11911 * lib/hash.c (raw_hasher, raw_comparator): New functions.
11912 (hash_initialize): Use them as defaults.
11913 * tests/test-hash.c (main): Test this.
11915 hash: minor optimization
11916 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11918 (hash_initialize): Document this promise.
11919 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11920 * tests/test-hash.c (hash_compare_strings): Test this.
11922 2009-06-18 Bruno Haible <bruno@clisp.org>
11924 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11925 going to be replaced anyway.
11927 2009-06-18 Bruno Haible <bruno@clisp.org>
11929 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11931 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11932 be replaced anyway.
11934 2009-06-18 Eric Blake <ebb9@byu.net>
11936 hash: check for resize before insertion
11937 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11938 threshold before insertion, so that a pathological hash_rehash
11939 that fills every bucket can still trigger another rehash.
11941 2009-06-18 Jim Meyering <meyering@redhat.com>
11943 hash-tests: add a loop around the small tests
11944 * tests/test-hash.c (main): Repeat small tests with selected
11945 small initial table sizes.
11947 2009-06-17 Eric Blake <ebb9@byu.net>
11949 hash: minor cleanups
11950 * lib/hash.h (hash_entry): Make opaque, by moving...
11951 * lib/hash.c (hash_entry): ...here.
11952 (hash_insert): Clarify restrictions on what can be inserted.
11953 (hash_get_next): Clarify when it is safe to remove an element
11955 (check_tuning): Skip verification when tuning is known safe.
11956 (hash_initialize): Clarify restrictions on tuning.
11958 2009-06-17 Jim Meyering <jim@meyering.net>
11959 and Eric Blake <ebb9@byu.net>
11961 hash-tests: new module
11962 * modules/hash-tests: New file.
11963 * tests/test-hash.c: New file.
11965 2009-06-17 Eric Blake <ebb9@byu.net>
11967 strstr-simple: document new module
11968 * MODULES.html.sh: Document new module.
11970 strstr, strcasestr: replace on platforms with broken memchr
11971 * modules/strstr: Split into...
11972 * modules/strstr-simple: ...new module that does not care about
11973 performance, but does care about glibc bug.
11974 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11975 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11976 if platform memchr is broken, per Debian bug 521737.
11977 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11979 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11980 * doc/posix-functions/strstr.texi (strstr): Document the fix.
11981 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11982 * modules/mountlist (Depends-on): Add strstr-simple.
11983 * modules/gen-uni-tables (Depends-on): Likewise.
11984 * modules/argz (Depends-on): Add strstr.
11986 2009-06-17 Bruno Haible <bruno@clisp.org>
11988 * modules/posix_spawn-internal (Depends-on): Add errno.
11990 2009-06-17 Bruno Haible <bruno@clisp.org>
11992 Define missing ESTALE on Interix 3.5.
11993 * lib/errno.in.h (ESTALE): Assign a value if missing.
11994 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11995 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11997 * doc/posix-headers/errno.texi: Mention the Interix bug.
11998 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12000 2009-06-15 Eric Blake <ebb9@byu.net>
12002 memchr, memchr2: add valgrind exception
12003 * lib/memchr.valgrind: New file.
12004 * lib/memchr2.valgrind: New file.
12005 * modules/memchr (Files): Distribute valgrind file.
12006 * modules/memchr2 (Files): Likewise.
12008 docs: memchr is no longer obsolete
12009 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12010 * lib/string.in.h (memchr): Simplify logic.
12012 2009-06-14 Jim Meyering <meyering@redhat.com>
12014 link-follow: fix the "checking..." message to not mention trailing slash
12015 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12016 never considered trailing slashes.
12018 2009-06-14 Bruno Haible <bruno@clisp.org>
12020 * m4/memchr.m4: Mention also the bug on IA-64.
12021 * doc/posix-functions/memchr.texi: Likewise.
12023 2009-06-12 Eric Blake <ebb9@byu.net>
12025 memchr: detect broken x86_64 and alpha implementations
12026 * modules/memchr-tests (Depends-on): Move mmap detection...
12027 * modules/memchr (Depends-on): ...here.
12028 (configure.ac): Set indicator.
12029 * lib/string.in.h (memchr): Declare replacement.
12030 * modules/string (Makefile.am): Trigger replacement.
12031 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12032 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12034 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12035 * modules/getpagesize (License): Relax license.
12037 2009-06-11 Bruno Haible <bruno@clisp.org>
12039 * lib/idpriv.h: Add more references.
12041 2009-06-08 Bruno Haible <bruno@clisp.org>
12043 Tests for module 'idpriv-droptemp'.
12044 * modules/idpriv-droptemp-tests: New file.
12045 * tests/test-idpriv-droptemp.sh: New file.
12046 * tests/test-idpriv-droptemp.su.sh: New file.
12047 * tests/test-idpriv-droptemp.c: New file.
12049 New module 'idpriv-droptemp'.
12050 * lib/idpriv-droptemp.c: New file.
12051 * modules/idpriv-droptemp: New file.
12053 2009-06-08 Bruno Haible <bruno@clisp.org>
12055 Tests for module 'idpriv-drop'.
12056 * modules/idpriv-drop-tests: New file.
12057 * tests/test-idpriv-drop.sh: New file.
12058 * tests/test-idpriv-drop.su.sh: New file.
12059 * tests/test-idpriv-drop.c: New file.
12061 New module 'idpriv-drop'.
12062 * lib/idpriv.h: New file.
12063 * lib-idpriv-drop.c: New file.
12064 * m4/idpriv.m4: New file.
12065 * modules/idpriv-drop: New file.
12067 2009-06-08 Bruno Haible <bruno@clisp.org>
12069 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12070 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12071 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12072 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12073 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12074 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12075 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12077 2009-06-08 Eric Blake <ebb9@byu.net>
12079 test-strstr: use memory fence, when possible
12080 * tests/test-strstr.c (main): Use memory fence, in order to be
12081 more likely to trigger Debian bug 521737.
12082 * modules/strstr-tests (Files): Pull in additional files.
12084 memchr: no longer obsolete, for wider field testing
12085 * modules/memchr (Status, Notice): Delete, this module is no
12087 * modules/vasnprintf (Depends-on): Add memchr.
12089 2009-06-07 Jim Meyering <meyering@redhat.com>
12091 hash: declare some functions with the warn_unused_result attribute
12092 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12094 2009-06-07 Bruno Haible <bruno@clisp.org>
12096 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12097 Reported by Eric Blake.
12099 2009-06-06 Eric Blake <ebb9@byu.net>
12101 test-alignof: fix typo with long double
12102 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12105 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12107 Escape non-texinfo { and }s.
12108 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12111 2009-06-04 Jim Meyering <meyering@redhat.com>
12113 gitlog-to-changelog: don't infloop on an empty commit log
12114 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12115 Reported by Boris Petersen <transacid@centerim.org>.
12117 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12119 version-etc: extend for packagers
12120 Add three new configure options, intended for packagers:
12121 --with-packager="packager name"
12122 --with-packager-version="packager-specific version"
12123 --with-packager-bug-reports="packager bug reporting"
12124 An example with coreutils:
12126 --with-packager=Gentoo \
12127 --with-packager-bug-report=http://bugs.gentoo.org/ \
12128 --with-packager-version="patchset 1.6"
12129 $ ./src/ls --version | head -n2
12130 ls (GNU coreutils) 7.1-dirty
12131 Packaged by Gentoo (patchset 1.6)
12132 Note that the bug reporting info via --help doesn't show up because
12133 coreutils uses its own custom emit_bug_reporting_address() implementation
12134 in src/system.h. If it didn't, it'd look like:
12135 $ ./src/ls --help | tail -n4
12136 Report bugs to <bug-coreutils@gnu.org>.
12137 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12138 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12139 General help using GNU software: <http://www.gnu.org/gethelp/>.
12140 * lib/version-etc.c: Print new information, if provided.
12141 * m4/version-etc.m4: New file.
12142 * modules/version-etc (Files): Add m4/version-etc.m4.
12143 (configure.ac): Add gl_VERSION_ETC.
12145 2009-05-31 Bruno Haible <bruno@clisp.org>
12147 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12149 * modules/alignof-tests (Dependencies): Add stdint.
12150 Reported by Eric Blake.
12152 2009-05-31 Bruno Haible <bruno@clisp.org>
12154 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12155 restriction due to compiler bugs.
12156 Reported by Eric Blake.
12158 2009-05-31 Simon Josefsson <simon@josefsson.org>
12159 Bruno Haible <bruno@clisp.org>
12161 Fix test-alignof failure.
12162 * lib/alignof.h (alignof_slot): New macro.
12163 (alignof_type): New macro, with the same semantics as the previous
12165 (alignof): Alias to alignof_slot.
12166 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12167 check that the results are usable as constant expressions.
12169 2009-05-31 Bruno Haible <bruno@clisp.org>
12171 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12172 * tests/test-memchr.c (main): Check that memchr does not read past the
12173 first occurrence of the byte.
12174 * tests/test-strstr.c (main): Update comment.
12175 Suggested by Eric Blake.
12177 2009-05-30 Bruno Haible <bruno@clisp.org>
12179 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12180 detail how to use dumpbin.
12181 Reported by David Byron <dbyron@dbyron.com>.
12183 2009-06-02 Simon Josefsson <simon@josefsson.org>
12185 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12187 2009-06-02 Simon Josefsson <simon@josefsson.org>
12189 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12191 2009-05-28 Bruno Haible <bruno@clisp.org>
12193 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12196 2009-05-28 Simon Josefsson <simon@josefsson.org>
12198 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12200 2009-05-27 Simon Josefsson <simon@josefsson.org>
12202 * gnulib-tool (sed_transform_main_lib_file)
12203 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12206 2009-05-26 Simon Josefsson <simon@josefsson.org>
12208 * tests/test-strstr.c: Add another self-test.
12209 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12210 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12212 2009-05-23 Bruno Haible <bruno@clisp.org>
12214 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12217 2009-05-21 Bruno Haible <bruno@clisp.org>
12219 Simplify use of mode_t varargs.
12220 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12221 uses 'mode_t' or 'int'.
12222 * lib/openat.c (openat): Likewise.
12223 * lib/open-safer.c (open_safer): Likewise.
12224 * m4/mode_t.m4: New file.
12225 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12226 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12227 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12228 * modules/open (Files): Add m4/mode_t.m4.
12229 * modules/openat (Files): Likewise.
12230 * modules/fcntl-safer (Files): Likewise.
12231 Suggested by Eric Blake.
12233 2009-05-21 Pádraig Brady <P@draigbrady.com>
12235 * doc/glibc-functions/fallocate.texi: New file.
12236 * doc/gnulib.texi: Include it.
12238 2009-05-21 Eric Blake <ebb9@byu.net>
12239 Bruno Haible <bruno@clisp.org>
12241 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12243 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12245 2009-05-21 Eric Blake <ebb9@byu.net>
12246 Bruno Haible <bruno@clisp.org>
12248 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12249 include_next. Fix of 2008-11-20 commit.
12250 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12251 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12252 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12254 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12255 instead of NEXT_MATH_H.
12257 2009-05-21 Bruno Haible <bruno@clisp.org>
12259 Avoid redefinition warnings for SIZE_MAX.
12260 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12261 Reported by Simon Josefsson.
12263 2009-05-21 Bruno Haible <bruno@clisp.org>
12265 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12268 2009-05-20 Bruno Haible <bruno@clisp.org>
12270 Make zeroptr.h work on mingw.
12271 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12273 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12274 * modules/memchr2-tests (configure.ac): Likewise.
12275 * modules/memcmp-tests (configure.ac): Likewise.
12276 * modules/memmem-tests (configure.ac): Likewise.
12277 * modules/memrchr-tests (configure.ac): Likewise.
12278 Reported by Simon Josefsson.
12280 2009-05-20 Simon Josefsson <simon@josefsson.org>
12282 * tests/test-glob.c: Include string.h for strcmp prototype.
12284 2009-05-20 Simon Josefsson <simon@josefsson.org>
12286 * modules/getdelim (Depends-on): Add explicit stdint, although it
12287 was implicitly already pulled in via realloc-posix.
12288 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12290 2009-05-20 Simon Josefsson <simon@josefsson.org>
12292 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12293 G. Christensen" <tgc@jupiterrise.com>.
12294 * m4/sys_socket_h.m4: Check for sa_family_t.
12295 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12296 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12297 * tests/test-sys_socket.c: Check that sa_family_t works.
12299 2009-05-18 Eric Blake <ebb9@byu.net>
12301 maint.mk: allow gnulib_dir in VPATH build
12302 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12304 2009-05-15 Jim Meyering <meyering@redhat.com>
12306 maint.mk: Give gnulib_dir a default definition.
12307 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12308 Thus, most packages no longer need to specify this variable in cfg.mk
12310 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12312 rename.m4: fix typos that would make non-mingw cross-configure fail
12313 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12315 2009-05-13 Eric Blake <ebb9@byu.net>
12317 mmap-anon: avoid out-of-order autoconf expansion
12318 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12319 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12320 * modules/memchr-tests (Depends-on): Add extensions.
12321 * modules/memchr2-tests (Depends-on): Add extensions.
12322 * modules/memcmp-tests (Depends-on): Add extensions.
12323 * modules/memmem-tests (Depends-on): Add extensions.
12324 * modules/memrchr-tests (Depends-on): Add extensions.
12326 2009-05-13 Bruno Haible <bruno@clisp.org>
12328 Make some tests ISO C 99 compliant.
12329 * tests/zerosize-ptr.h: New file.
12330 * tests/test-memchr.c: Include zerosize-ptr.h.
12331 (main): Use a zero-size object pointer instead of NULL.
12332 * tests/test-memchr2.c: Include zerosize-ptr.h.
12333 (main): Use a zero-size object pointer instead of NULL.
12334 * tests/test-memcmp.c: Include zerosize-ptr.h.
12335 (main): Use a zero-size object pointer instead of NULL.
12336 * tests/test-memmem.c: Include zerosize-ptr.h.
12337 (main): Use a zero-size object pointer instead of NULL.
12338 * tests/test-memrchr.c: Include zerosize-ptr.h.
12339 (main): Use a zero-size object pointer instead of NULL.
12340 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12342 (Depends-on): Add getpagesize.
12343 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12344 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12346 (Depends-on): Add getpagesize.
12347 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12348 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12350 (Depends-on): Add getpagesize.
12351 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12352 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12354 (Depends-on): Add getpagesize.
12355 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12356 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12358 (Depends-on): Add getpagesize.
12359 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12361 2009-05-12 Bruno Haible <bruno@clisp.org>
12363 Tests for module 'alignof'.
12364 * modules/alignof-tests: New file.
12365 * tests/test-alignof.c: New file.
12367 2009-05-12 Bruno Haible <bruno@clisp.org>
12370 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12371 vendor compilers that are always correct.
12373 2009-05-12 Bruno Haible <bruno@clisp.org>
12375 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12376 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12377 not whether its fully works.
12379 2009-05-12 Bruno Haible <bruno@clisp.org>
12381 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12383 2009-05-12 Jim Meyering <meyering@redhat.com>
12385 * top/maint.mk: Adjust backslash alignment.
12387 2009-05-11 Simon Josefsson <simon@josefsson.org>
12389 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12391 2009-05-11 Eric Blake <ebb9@byu.net>
12393 argp: avoid undefined behavior
12394 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12397 2009-05-08 Simon Josefsson <simon@josefsson.org>
12399 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12400 user.name to prevent git commit from complaining.
12402 2009-05-10 Bruno Haible <bruno@clisp.org>
12404 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12405 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12406 it rewrites every file name only once.
12407 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12409 2009-05-08 Bruno Haible <bruno@clisp.org>
12411 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12414 2009-05-08 Simon Josefsson <simon@josefsson.org>
12416 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12417 sockaddr_storage test.
12419 2009-05-07 Simon Josefsson <simon@josefsson.org>
12421 * modules/sys_socket (Makefile.am): Substitute
12422 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12423 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12424 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12425 * tests/test-sys_socket.c: Check sockaddr_storage.
12427 2009-05-08 Bruno Haible <bruno@clisp.org>
12429 New module 'alignof'.
12430 * lib/alignof.h: New file.
12431 * modules/alignof: New file.
12433 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12434 Bruno Haible <bruno@clisp.org>
12436 Fix test-file-has-acl on FreeBSD.
12437 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12438 mask is implicitly added.
12439 * tests/test-file-has-acl.c: Include <signal.h>.
12440 (main): Terminate the test after 5 seconds.
12441 * modules/acl-tests (configure.ac): Check for alarm function.
12443 2009-05-04 Bruno Haible <bruno@clisp.org>
12445 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12446 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12447 * modules/errno (configure.ac): Drop AC_REQUIRE.
12448 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12449 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12451 2009-05-04 Simon Josefsson <simon@josefsson.org>
12453 * modules/glob-tests: New module.
12454 * tests/test-glob.c: Add.
12456 2009-05-04 Simon Josefsson <simon@josefsson.org>
12458 * modules/fnmatch-tests: New module.
12459 * tests/test-fnmatch.c: Add.
12461 2009-05-04 Eric Blake <ebb9@byu.net>
12463 maint: make the new no-submodule-changes rule VPATH-safe
12464 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12466 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12467 Bruno Haible <bruno@clisp.org>
12469 acl: Fix infinite loop on FreeBSD.
12470 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12471 of return value from acl_get_entry.
12472 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12475 2009-05-03 Bruno Haible <bruno@clisp.org>
12477 * lib/acl-internal.h (acl_entries): Clarify return value.
12478 * lib/acl_entries.c (acl_entries): Likewise.
12480 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12482 Bug fix in acl module.
12483 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12485 2009-05-03 Bruno Haible <bruno@clisp.org>
12487 Create gperf-generated file in the source dir, not in the build dir.
12488 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12489 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12490 * modules/unicase/locale-language (unicase/locale-languages.h):
12492 * modules/unicase/special-casing (unicase/special-casing-table.h):
12494 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12495 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12496 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12497 Reported by Ralf Wildenhues.
12499 2009-05-03 Bruno Haible <bruno@clisp.org>
12501 * modules/fnmatch (Description, configure.ac): Taken from
12503 * modules/fnmatch-posix: Turn into a symbolic reference to the
12504 'fnmatch' module, and deprecate.
12505 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12507 2009-05-03 Bruno Haible <bruno@clisp.org>
12509 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12510 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12511 Reported by Ralf Wildenhues.
12513 2009-05-04 Simon Josefsson <simon@josefsson.org>
12515 * m4/fnmatch.m4: Fix fnmatch re-define.
12517 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12519 priv-set: new module and tests; adapt write-any-file
12520 * lib/priv-set.c: New file.
12521 * lib/priv-set.h: New file.
12522 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12523 * lib/write-any-file.c: Simplify by using priv-set module.
12524 * m4/priv-set.m4: New file.
12525 * modules/priv-set: New file.
12526 * modules/unlinkdir: Add dependency on priv-set module.
12527 * modules/write-any-file: Likewise.
12529 Tests for module 'priv-set'.
12530 * modules/priv-set-tests: New file.
12531 * tests/test-priv-set.c: New file.
12533 2009-05-03 Jim Meyering <meyering@redhat.com>
12534 Bruno Haible <bruno@clisp.org>
12536 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12537 use the converted UTF-8 variant of the name instead.
12539 2009-05-03 Jim Meyering <meyering@redhat.com>
12541 tests: tighten some getdate tests
12542 * tests/test-getdate.c (main): Tighten tests: require equality,
12543 not just greater than. Set TZ envvar to UTC0.
12545 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12547 getdate: correctly interpret "next monday" when run on a Monday
12548 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12549 that e.g., "next tues" (when run on a tuesday) results in a date
12550 that is one week in the future, and not today's date.
12551 I.e., add a week when the wday is the same as the current one.
12552 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12553 and earlier by Martin Bernreuther and Jan Minář.
12554 * tests/test-getdate.c (main): Check that "next DAY" is always in
12555 the future and that "last DAY" is always in the past.
12557 2009-05-02 Jim Meyering <meyering@redhat.com>
12559 build: ensure that a release build fails when a submodule is unclean
12560 * top/maint.mk (no-submodule-changes): New rule.
12561 (alpha beta major): Depend on it.
12563 2009-05-02 Bruno Haible <bruno@clisp.org>
12565 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12566 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12567 shell variable gl_fnmatch_required to detect which variant is
12569 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12570 gl_FUNC_FNMATCH_POSIX.
12571 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12572 exclude fnmatch-posix.
12574 2009-05-02 Bruno Haible <bruno@clisp.org>
12576 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12577 * modules/mbsrtowcs (License): Change to LGPLv2+.
12578 * modules/strnlen1 (License): Likewise.
12579 Reported by Simon Josefsson.
12581 2009-05-02 Bruno Haible <bruno@clisp.org>
12583 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12585 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12586 gnulib-tool was called with option --source-base=lib.
12588 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12590 Use automake *-local hooks without commands, for extensibility.
12591 * modules/localcharset (Makefile.am): Rename install-exec-local
12592 rule to install-exec-localcharset, and make it a prerequisite of
12593 install-exec-local. Likewise, rename the uninstall-local rule to
12594 uninstall-localcharset, and make it a prerequisite of the former.
12596 2009-05-01 Bruno Haible <bruno@clisp.org>
12598 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12599 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12600 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12601 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12602 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12603 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12604 m4/locale-zh.m4, m4/codeset.m4.
12606 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12607 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12608 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12611 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12612 REPLACE_WCRTOMB if mbstate_t must be replaced.
12613 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12614 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12616 2009-05-01 Bruno Haible <bruno@clisp.org>
12618 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12619 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12620 dngettext, dcngettext, textdomain, bindtextdomain,
12621 bind_textdomain_codeset): Undefine before redefining.
12623 2009-04-30 Bruno Haible <bruno@clisp.org>
12625 Fix bug introduced on 2009-04-25.
12626 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12627 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12628 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12630 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12632 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12634 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12636 2009-04-28 Bruno Haible <bruno@clisp.org>
12639 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12640 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12641 * lib/unicase.h (u*_casexfrm): Likewise.
12642 Reported by Paolo Bonzini.
12644 2009-04-28 Bruno Haible <bruno@clisp.org>
12646 Fix a compilation error.
12647 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12648 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12649 Reported by Jim Meyering.
12651 2009-04-27 Bruno Haible <bruno@clisp.org>
12653 New module 'libunistring'.
12654 * modules/libunistring: New file.
12655 * m4/libunistring.m4: New file.
12656 * MODULES.html.sh (Unicode string functions): Add it.
12658 2009-04-27 Eric Blake <ebb9@byu.net>
12660 maint.mk: allow package-specific header to provide <config.h>
12661 * top/maint.mk (sc_require_config_h): New variable.
12662 (sc_require_config_h, sc_require_config_h_first): Use it.
12664 2009-04-27 Simon Josefsson <simon@josefsson.org>
12666 * top/maint.mk (sc_avoid_if_before_free): Except
12667 useless-if-before-free script.
12669 2009-04-27 Eric Blake <ebb9@byu.net>
12671 maintainer-makefile: depend on all required helper scripts
12672 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12673 useless-if-before-free.
12674 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12675 version, rather than assuming gnulib checkout is available.
12676 Reported by Simen Josefsson.
12678 2009-04-26 Bruno Haible <bruno@clisp.org>
12680 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12681 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12684 2009-04-26 Bruno Haible <bruno@clisp.org>
12686 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12687 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12688 AC_LIB_HAVE_LINKFLAGS.
12690 2009-04-26 Bruno Haible <bruno@clisp.org>
12692 Simplify calling convention of u*_conv_from_encoding.
12693 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12694 u32_conv_from_encoding): Expect a resultbuf argument and return the
12695 result directly as a pointer.
12696 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12697 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12698 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12699 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12700 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12701 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12703 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12704 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12705 * lib/vasnprintf.c (VASNPRINTF): Update.
12706 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12707 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12708 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12709 * NEWS: Mention the change.
12711 2009-04-26 Bruno Haible <bruno@clisp.org>
12713 Simplify calling convention of u*_conv_to_encoding.
12714 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12715 u32_conv_to_encoding): Expect a resultbuf argument and return the
12716 result directly as a pointer.
12717 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12718 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12719 freeing scaled_offsets if mem_iconveha failed.
12720 * lib/unicase/u-casexfrm.h (FUNC): Update.
12721 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12722 * lib/vasnprintf.c (VASNPRINTF): Update.
12723 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12724 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12725 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12726 * NEWS: Mention the change.
12728 2009-04-26 Bruno Haible <bruno@clisp.org>
12730 Avoid test failures on AIX and OSF/1.
12731 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12733 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12734 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12736 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12737 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12738 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12739 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12740 * doc/posix-functions/malloc.texi: Document the portability problem
12741 related to malloc(0).
12743 2009-04-26 Bruno Haible <bruno@clisp.org>
12745 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12746 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12747 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12749 2009-04-25 Bruno Haible <bruno@clisp.org>
12751 Avoid link error when creating a namespace clean library.
12752 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12753 as macro with arguments if already defined as an alias.
12754 * lib/signbitf.c (gl_signbitf): Don't undefine.
12755 * lib/signbitd.c (gl_signbitd): Don't undefine.
12756 * lib/signbitl.c (gl_signbitl): Don't undefine.
12758 2009-04-25 Jim Meyering <meyering@redhat.com>
12760 vc-list-files: fix another quoting bug
12761 * build-aux/vc-list-files: Avoid sed backslash expansion
12762 of pathological directory names.
12764 2009-04-25 Eric Blake <ebb9@byu.net>
12766 vc-list-files: fix shell quoting error
12767 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12770 2009-04-25 Jim Meyering <meyering@redhat.com>
12772 vc-list-files: restore lost functionality with subdir argument
12773 * build-aux/vc-list-files: When given a non-"." sub-directory
12774 argument, substitute the $dir/ prefix back onto each resulting name.
12775 Otherwise, coreutils' root_tests check would fail.
12777 2009-04-24 Eric Blake <ebb9@byu.net>
12779 vc-list-files: ignore git symlinks
12780 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12781 than ls-files, to ignore git symlinks.
12783 maint.mk: import improvements from m4
12784 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12785 (move_if_change): Delete unused macro.
12786 (news-date-check, vc-diff-check): Support VPATH builds.
12787 (announcement): Likewise. Split --bootstrap-tools list...
12788 (boostrap-tools): ...into separate list, which can be overridden
12790 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12791 requiring dependency on useless-if-before-free module.
12792 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12793 Support VPATH builds.
12795 2009-04-24 Jim Meyering <meyering@redhat.com>
12797 maint.mk: remove coreutils-specific rules and variables
12798 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12799 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12800 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12802 maint.mk: remove obsolete rule
12803 * top/maint.mk (rel-check): Remove rule.
12804 (WGET, WGETFLAGS): Remove now-unused variables.
12806 2009-04-24 Simon Josefsson <simon@josefsson.org>
12808 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12811 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12812 '$(PATH_SEPARATOR)' instead of ':'.
12814 2009-04-24 Simon Josefsson <simon@josefsson.org>
12816 * lib/getopt1.c (main): Use 'const' for static array.
12818 2009-04-24 Simon Josefsson <simon@josefsson.org>
12820 * top/maint.mk: Sync with coreutils.
12821 * NEWS: Explain incompatibilities.
12823 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12824 Bruno Haible <bruno@clisp.org>
12826 Fix cross-compilation results.
12827 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12828 statement, as third argument of AC_TRY_RUN.
12829 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12830 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12832 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12833 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12835 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12836 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12837 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12839 2009-04-20 Bruno Haible <bruno@clisp.org>
12841 Avoid test failure on mingw.
12842 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12844 2009-04-20 Bruno Haible <bruno@clisp.org>
12846 Avoid compilation error on mingw.
12847 * modules/localename-tests (Depends-on): Add locale.
12849 2009-04-19 Bruno Haible <bruno@clisp.org>
12851 Support for building a shared library on Windows platforms.
12852 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12853 (main): Test the presence of UNINORM_NFC here.
12854 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12855 (main): Test the presence of UNINORM_NFD here.
12856 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12857 (main): Test the presence of UNINORM_NFKC here.
12858 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12859 (main): Test the presence of UNINORM_NFKD here.
12861 2009-04-19 Bruno Haible <bruno@clisp.org>
12863 Avoid a compiler warning.
12864 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12865 Change type of variable 'sequence'.
12867 2009-04-19 Bruno Haible <bruno@clisp.org>
12869 * modules/configmake (Makefile.am): When the contents of configmake.h
12870 does not change, arrange to preserve its modification time.
12872 2009-04-17 Simon Josefsson <simon@josefsson.org>
12874 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12877 2009-04-16 Jim Meyering <meyering@redhat.com>
12879 useless-if-before-free: improve conversion code
12880 * build-aux/useless-if-before-free: Adjust code-in-comment to match
12881 "...!= 0" as well as "...!= NULL". emacs has one of the former.
12883 2009-04-14 Bruno Haible <bruno@clisp.org>
12885 * modules/fcntl (Depends-on): Add extensions.
12886 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12888 2009-04-12 Ben Pfaff <blp@gnu.org>
12890 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12891 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12893 2009-03-20 Ben Pfaff <blp@gnu.org>
12895 Make rename replace existing destinations on Windows.
12896 * m4/rename.m4: Add test for Mingw.
12897 * lib/rename.c: Add rename replacement that uses MoveFileEx with
12898 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12899 * doc/posix-functions/rename.texi: Document.
12901 2009-04-10 Bruno Haible <bruno@clisp.org>
12903 New include file "iconveh.h".
12904 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12905 * lib/striconveh.h: Include it.
12906 (enum iconv_ilseq_handler): Remove definition.
12907 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12909 * lib/striconveha.c: Include striconveh.h.
12910 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12911 * modules/striconveh (Files): Add lib/iconveh.h.
12912 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12915 2009-04-10 Bruno Haible <bruno@clisp.org>
12917 * lib/uniconv.h: Update comment.
12919 2009-04-10 Bruno Haible <bruno@clisp.org>
12921 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12923 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12924 * lib/unistr/u16-mbtouc-aux.c: Likewise.
12925 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12926 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12927 "unistring-notinline.h", so that the function gets defined always.
12928 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12929 * lib/unistr/u8-uctomb.c: Likewise.
12930 * lib/unistr/u16-mbtouc.c: Likewise.
12931 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12932 * lib/unistr/u16-uctomb.c: Likewise.
12933 * lib/unistr/u32-mbtouc.c: Likewise.
12934 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12935 * lib/unistr/u32-uctomb.c: Likewise.
12937 2009-04-10 Bruno Haible <bruno@clisp.org>
12939 Mark 'utime' obsolete.
12940 * modules/utime (Status, Notice): New sections.
12941 Suggested by Jim Meyering.
12943 Fix cross-compile guess for utime test.
12944 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12946 * doc/posix-functions/utime.texi: Give more precisions.
12947 Reported by Jan <ipif@ymail.com>.
12949 2009-04-09 Kamil Dudka <kdudka@redhat.com>
12951 filevercmp: correct today's change
12952 * lib/filevercmp.c: Also handle coreutils' test inputs.
12953 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12955 Fix regression in 'filevercmp' module. Thanks Sven Joachim
12957 * lib/filevercmp.c: Special handle for "", "." and "..".
12958 * tests/test-filevercmp.c: Enlarge the set suite.
12960 2009-04-07 Jim Meyering <meyering@redhat.com>
12962 useless-if-before-free: show how to remove braced useless free, too
12963 * build-aux/useless-if-before-free: still only in a comment, though.
12965 2009-04-07 Reuben Thomas <rrt@sc3d.org>
12967 maint.mk: import changes to syntax-check macros from coreutils
12968 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12969 Use them in the relevant macros.
12971 2009-04-06 Bruno Haible <bruno@clisp.org>
12973 Fix unportable use of bit-fields.
12974 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12975 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12976 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12978 2009-04-06 Bruno Haible <bruno@clisp.org>
12980 Avoid test failures on AIX and OSF/1.
12981 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12982 that malloc(0) = NULL.
12983 * tests/unicase/test-u8-tolower.c (check): Likewise.
12984 * tests/unicase/test-u8-totitle.c (check): Likewise.
12985 * tests/unicase/test-u8-toupper.c (check): Likewise.
12986 * tests/unicase/test-u16-casefold.c (check): Likewise.
12987 * tests/unicase/test-u16-tolower.c (check): Likewise.
12988 * tests/unicase/test-u16-totitle.c (check): Likewise.
12989 * tests/unicase/test-u16-toupper.c (check): Likewise.
12990 * tests/unicase/test-u32-casefold.c (check): Likewise.
12991 * tests/unicase/test-u32-tolower.c (check): Likewise.
12992 * tests/unicase/test-u32-totitle.c (check): Likewise.
12993 * tests/unicase/test-u32-toupper.c (check): Likewise.
12994 * tests/uninorm/test-u8-nfc.c (check): Likewise.
12995 * tests/uninorm/test-u8-nfd.c (check): Likewise.
12996 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12997 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12998 * tests/uninorm/test-u16-nfc.c (check): Likewise.
12999 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13000 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13001 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13002 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13003 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13004 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13005 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13007 2009-04-05 Bruno Haible <bruno@clisp.org>
13009 Work around an autoconf limitation.
13010 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13011 comment line if it would be longer than 3 KB.
13013 2009-04-05 Bruno Haible <bruno@clisp.org>
13015 Avoid test failure with libiconv-1.13.
13016 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13017 of the expected test results.
13019 2009-04-05 Bruno Haible <bruno@clisp.org>
13021 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13022 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13023 that it should be installed.
13025 2009-04-05 Bruno Haible <bruno@clisp.org>
13027 * gnulib-tool: New option --copy-file.
13028 (func_usage): Document it.
13029 (func_dest_tmpfilename): Moved out of func_import.
13030 (func_add_file, func_update_file): New functions, extracted from
13032 (func_import): Update.
13034 2009-04-05 Karl Berry <karl@gnu.org>
13036 * README: prominently mention gnulib-tool.
13037 Rearrange sections so getting the code is near the top.
13039 2009-04-05 Bruno Haible <bruno@clisp.org>
13041 * lib/unicase.h: Mention u*_cmp2.
13042 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13043 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13044 * lib/unicase/ulc-casecmp.c: Likewise.
13045 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13046 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13047 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13049 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13050 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13052 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13055 * lib/uninorm.h: Mention u*_cmp2.
13056 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13057 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13058 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13059 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13060 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13062 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13064 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13067 New module 'unistr/u32-cmp2'.
13068 * lib/unistr/u32-cmp2.c: New file.
13069 * modules/unistr/u32-cmp2: New file.
13071 New module 'unistr/u16-cmp2'.
13072 * lib/unistr/u16-cmp2.c: New file.
13073 * modules/unistr/u16-cmp2: New file.
13075 New module 'unistr/u8-cmp2'.
13076 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13077 * lib/unistr/u8-cmp2.c: New file.
13078 * lib/unistr/u-cmp2.h: New file.
13079 * modules/unistr/u8-cmp2: New file.
13081 2009-04-05 Bruno Haible <bruno@clisp.org>
13083 * lib/unictype.h (uc_property_is_valid): New macro.
13084 * tests/unictype/test-pr_byname.c (main): Use it.
13086 * lib/unistr.h: Doc fixes.
13087 * lib/uniconv.h: Doc fixes.
13088 * lib/unictype.h: Doc fixes.
13090 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13092 Port coreutils 7.2 to Solaris 8.
13094 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13095 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13096 for Solaris 8. This is a bit of a hack, as it means it's the
13097 caller's responsibility to add -lnsl if needed, but most likely it
13098 won't be needed since only getaddrinfo uses this and getaddrinfo
13099 isn't needed on Solaris 8.
13101 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13102 problem to Solaris 8 encountered with coreutils 7.2, which
13103 resulted in a message "fnmatch.c:292: warning: passing argument 4
13104 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13105 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13107 2009-04-03 Simon Josefsson <simon@josefsson.org>
13109 * m4/ld-version-script.m4: Add FIXME comment.
13111 2009-04-02 Simon Josefsson <simon@josefsson.org>
13113 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13114 SOVERSION variable.
13116 2009-04-02 Bruno Haible <bruno@clisp.org>
13118 * Makefile (info, html, dvi, pdf): Combine the rules.
13119 Suggested by Jim Meyering.
13121 2009-04-01 Bruno Haible <bruno@clisp.org>
13123 * Makefile (info, html, dvi, pdf): New targets.
13124 Reported by Reuben Thomas <rrt@sc3d.org>.
13126 2009-04-01 Bruno Haible <bruno@clisp.org>
13128 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13129 can be put into PATH.
13130 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13132 2009-04-01 Bruno Haible <bruno@clisp.org>
13134 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13136 2009-04-01 Bruno Haible <bruno@clisp.org>
13138 Rename module 'visibility'.
13139 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13140 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13141 * doc/gnulib.texi: Update.
13142 * MODULES.html.sh (Misc): Update.
13143 * NEWS: Mention the change.
13145 2009-04-01 Simon Josefsson <simon@josefsson.org>
13147 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13148 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13149 Eric Blake <ebb9@byu.net> for review.
13150 * MODULES.html.sh: Add lib-msvc-compat.
13151 * doc/gnulib.texi: Link to new section.
13152 * m4/ld-output-def.m4: New file.
13153 * doc/ld-output-def.texi: New file.
13155 2009-04-01 Simon Josefsson <simon@josefsson.org>
13157 Rename ld-version-script to lib-symbol-versions. Suggested by
13158 Bruno Haible <bruno@clisp.org>.
13159 * modules/ld-version-script: Renamed to lib-symbol-versions.
13160 * doc/ld-version-script.texi: Fix module name.
13161 * MODULES.html.sh: Add lib-symbol-versions.
13163 2009-03-31 Simon Josefsson <simon@josefsson.org>
13165 * modules/u64-tests: New file.
13166 * tests/test-u64.c: New file.
13168 2009-03-04 Simon Josefsson <simon@josefsson.org>
13170 * MODULES.html.sh: Mention u64.
13171 * modules/u64: New module.
13172 * modules/crypto/sha512: Depend on u64 module instead of providing
13175 2009-03-27 Eric Blake <ebb9@byu.net>
13177 test-strerror: make debugging EAI_SYSTEM easier
13178 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13179 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13180 failure was EAI_SYSTEM.
13182 2009-03-25 Bruno Haible <bruno@clisp.org>
13184 Fix a problem with --enable-relocatable on Solaris 7.
13185 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13188 2009-03-25 Eric Blake <ebb9@byu.net>
13190 test-sockets: avoid gcc warning
13191 * tests/test-sockets.c (main): Silence compiler warning.
13193 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13195 New modules nproc, pthread, contributed by Glen Lenker.
13197 * MODULES.html.sh: Add pthread, nproc.
13198 * lib/nproc.c: New file.
13199 * lib/nproc.h: New file.
13200 * lib/pthread.in.h: New file.
13201 * m4/pthread.m4: New file.
13202 * modules/nproc: New file.
13203 * modules/pthread: New file.
13205 2009-03-24 Simon Josefsson <simon@josefsson.org>
13207 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13210 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13212 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13213 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13214 * tests/test-filevercmp.c: Add tests for backup suffixes.
13216 2009-03-24 Simon Josefsson <simon@josefsson.org>
13218 * modules/stdlib (Depends-on): Add stdint, needed when defining
13219 struct random_data on, for example, HP-UX 10.20. Reported by
13220 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13222 2009-03-24 Simon Josefsson <simon@josefsson.org>
13224 * lib/readline.c (readline): Call fflush on stdout after printing
13227 2009-03-20 Bruno Haible <bruno@clisp.org>
13229 Remove dependency from 'close' module to -lws2_32 on native Windows.
13230 * lib/close-hook.h: New file.
13231 * lib/close-hook.c: New file.
13232 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13234 (_gl_close_fd_maybe_socket): Remove function.
13235 (rpl_close): Invoke execute_all_close_hooks instead of
13236 _gl_close_fd_maybe_socket.
13237 * lib/sockets.c: Include close-hook.h, w32sock.h.
13238 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13239 (close_sockets_hook): New variable.
13240 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13241 (gl_sockets_cleanup): Unregister it.
13242 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13243 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13244 * modules/close-hook: New file.
13245 * modules/close (Files): Remove lib/w32sock.h.
13246 (Depends-on): Add close-hook.
13247 (Link): Remove section.
13248 * modules/sockets (Files): Add lib/w32sock.h.
13249 (Depends-on): Add close-hook.
13250 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13252 * NEWS: Mention that LIB_CLOSE is gone.
13254 2009-03-23 Eric Blake <ebb9@byu.net>
13256 signal-tests: test previous patch
13257 * tests/test-signal.c: New file.
13258 * modules/signal-tests: Likewise.
13260 signal.h: always support 'volatile sig_atomic_t'
13261 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13262 (gl_SIGNAL_H_DEFAULTS): Add a default.
13263 * modules/signal (Makefile.am): Substitute if needed.
13264 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13265 users can blindly add volatile.
13266 * doc/posix-headers/signal.texi (signal.h): Document it.
13267 Reported by Matthew Woehlke.
13269 2009-03-23 Jim Meyering <meyering@redhat.com>
13271 pathmax: PATH_MAX: use pathconf only when available
13272 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13273 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13274 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13275 This avoids a link failure in a PSP cross-compilation environment
13276 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13278 * lib/vasnprintf.c (divide): Fix typo in comment.
13280 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13282 * gnulib-tool (func_filter_filelist): Fix comment.
13284 2009-03-20 Bruno Haible <bruno@clisp.org>
13286 Make sockets.h self-contained.
13287 * lib/sockets.c: Include sockets.h first.
13288 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13290 2009-03-19 Eric Blake <ebb9@byu.net>
13292 doc: mention more functions added in cygwin 1.7.0
13293 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13295 * doc/posix-functions/log2f.texi: Likewise.
13297 2009-03-19 Jim Meyering <meyering@redhat.com>
13299 fsusage: avoid syntax error due to statement-before-declaration
13300 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13301 after all declarations. Reported by Matthew Woehlke in
13302 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13304 2009-03-18 Eric Blake <ebb9@byu.net>
13306 build-aux/compile: sync from automake
13307 * build-aux/compile: New file, from automake.
13308 * config/srclist.txt: Mention build-aux/compile.
13310 2009-03-17 Bruno Haible <bruno@clisp.org>
13312 * lib/git-merge-changelog.c: Fix typo in comment.
13313 Reported by Reuben Thomas <rrt@sc3d.org>.
13315 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13317 * m4/regex.m4: update and improve help for
13318 --without-included-regex.
13320 2009-03-17 Simon Josefsson <simon@josefsson.org>
13322 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13323 failure on missing include files.
13325 2009-03-17 Eric Blake <ebb9@byu.net>
13327 doc: mention more functions added in cygwin 1.7.0
13328 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13330 * doc/posix-functions/fwscanf.texi: Likewise.
13331 * doc/posix-functions/swprintf.texi: Likewise.
13332 * doc/posix-functions/swscanf.texi: Likewise.
13333 * doc/posix-functions/vfwprintf.texi: Likewise.
13334 * doc/posix-functions/vfwscanf.texi: Likewise.
13335 * doc/posix-functions/vswprintf.texi: Likewise.
13336 * doc/posix-functions/vswscanf.texi: Likewise.
13337 * doc/posix-functions/vwprintf.texi: Likewise.
13338 * doc/posix-functions/vwscanf.texi: Likewise.
13339 * doc/posix-functions/wcscasecmp.texi: Likewise.
13340 * doc/posix-functions/wcsdup.texi: Likewise.
13341 * doc/posix-functions/wcsftime.texi: Likewise.
13342 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13343 * doc/posix-functions/wprintf.texi: Likewise.
13344 * doc/posix-functions/wscanf.texi: Likewise.
13345 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13347 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13349 maint.mk: really add $(AM_MAKEFLAGS)
13350 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13351 was inadvertently omitted in the last commit.
13352 Spotted by Bruno Haible.
13354 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13355 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13356 $(AM_MAKEFLAGS)' rather than plain `make'.
13358 gnulib-tool: execute $MAKE not make
13359 * gnulib-tool: Default $MAKE to 'make'.
13360 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13361 than make. Initialize $MAKE in the do-autobuild script.
13363 gnulib-tool: use $MAKE not make in generated files
13364 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13365 make, in generated files. Initialize $MAKE in the do-autobuild
13368 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13370 GNUmakefile: disable parallelism only for multiple, recursive targets
13371 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13372 additions in the Makefile.
13373 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13375 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13376 are listed on the command line and at least one of them is
13377 listed in $(ALL_RECURSIVE_TARGETS).
13379 2009-03-14 Bruno Haible <bruno@clisp.org>
13381 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13382 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13383 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13384 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13385 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13386 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13387 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13389 * modules/unistr/u8-strchr (Depends-on): Likewise.
13390 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13391 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13393 * modules/unistr/u16-strchr (Depends-on): Likewise.
13394 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13396 2009-03-12 Bruno Haible <bruno@clisp.org>
13398 Work around select() bug on Interix 3.5.
13399 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13400 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13401 * m4/select.m4: New file.
13402 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13403 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13404 * modules/select (Files): Add m4/select.m4.
13405 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13406 * modules/nanosleep (Depends-on): Add select.
13407 * modules/poll (Depends-on): Likewise.
13408 * doc/posix-functions/select.texi: Mention the Interix bug.
13409 Reported by Markus Duft <mduft@gentoo.org>.
13411 * lib/select.c: Renamed from lib/winsock-select.c.
13412 * modules/select (Files): Add lib/select.c, remove
13413 lib/winsock-select.c.
13414 (configure.ac): Update.
13416 2009-03-12 Jim Meyering <meyering@redhat.com>
13418 avoid gcc warnings about unused macro definitions
13419 * lib/readtokens.c (STREQ): Remove unused definition.
13420 * lib/xmalloc.c (SIZE_MAX): Likewise.
13421 * lib/openat-die.c (N_): Likewise.
13422 * lib/mountlist.c (SIZE_MAX): Remove definition.
13423 Instead, include <stdint.h>.
13424 * lib/readutmp.c: Likewise.
13425 * modules/readutmp (Depends-on): Add stdint.
13426 * modules/mountlist (Depends-on): Add stdint.
13427 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13429 2009-03-10 Bruno Haible <bruno@clisp.org>
13431 Tests for module 'mbmemcasecoll'.
13432 * modules/mbmemcasecoll-tests: New file.
13433 * tests/test-mbmemcasecoll1.sh: New file.
13434 * tests/test-mbmemcasecoll2.sh: New file.
13435 * tests/test-mbmemcasecoll3.sh: New file.
13436 * tests/test-mbmemcasecoll.c: New file.
13438 New module 'mbmemcasecoll'.
13439 * lib/mbmemcasecoll.h: New file.
13440 * lib/mbmemcasecoll.c: New file.
13441 * modules/mbmemcasecoll: New file.
13443 * tests/test-mbmemcasecmp.h: New file, extracted from
13444 tests/test-mbmemcasecmp.c.
13445 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13446 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13448 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13450 2009-03-09 Bruno Haible <bruno@clisp.org>
13452 Tests for module 'mbmemcasecmp'.
13453 * modules/mbmemcasecmp-tests: New file.
13454 * tests/test-mbmemcasecmp1.sh: New file.
13455 * tests/test-mbmemcasecmp2.sh: New file.
13456 * tests/test-mbmemcasecmp3.sh: New file.
13457 * tests/test-mbmemcasecmp.c: New file.
13459 New module 'mbmemcasecmp'.
13460 * lib/mbmemcasecmp.h: New file.
13461 * lib/mbmemcasecmp.c: New file.
13462 * modules/mbmemcasecmp: New file.
13464 2009-03-09 Bruno Haible <bruno@clisp.org>
13466 Tests for module 'unicase/ulc-casecoll'.
13467 * modules/unicase/ulc-casecoll-tests: New file.
13468 * tests/unicase/test-ulc-casecoll1.sh: New file.
13469 * tests/unicase/test-ulc-casecoll2.sh: New file.
13470 * tests/unicase/test-ulc-casecoll.c: New file.
13472 New module 'unicase/ulc-casecoll'.
13473 * lib/unicase.h (ulc_casecoll): New declaration.
13474 * lib/unicase/ulc-casecoll.c: New file.
13475 * modules/unicase/ulc-casecoll: New file.
13477 New module 'unicase/ulc-casexfrm'.
13478 * lib/unicase.h (ulc_casexfrm): New declaration.
13479 * lib/unicase/ulc-casexfrm.c: New file.
13480 * modules/unicase/ulc-casexfrm: New file.
13482 2009-03-09 Bruno Haible <bruno@clisp.org>
13484 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13487 * m4/mbscasecmp.m4: Remove file.
13488 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13489 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13491 * m4/mbscasestr.m4: Remove file.
13492 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13493 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13495 * m4/mbschr.m4: Remove file.
13496 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13497 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13499 * m4/mbscspn.m4: Remove file.
13500 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13501 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13503 * m4/mbslen.m4: Remove file.
13504 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13505 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13507 * m4/mbsncasecmp.m4: Remove file.
13508 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13509 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13511 * m4/mbsnlen.m4: Remove file.
13512 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13513 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13515 * m4/mbspbrk.m4: Remove file.
13516 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13517 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13519 * m4/mbspcasecmp.m4: Remove file.
13520 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13521 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13523 * m4/mbsrchr.m4: Remove file.
13524 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13525 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13527 * m4/mbssep.m4: Remove file.
13528 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13529 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13531 * m4/mbsspn.m4: Remove file.
13532 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13533 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13535 * m4/mbsstr.m4: Remove file.
13536 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13537 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13539 * m4/mbstok_r.m4: Remove file.
13540 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13541 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13543 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13545 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13546 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13548 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13550 2009-03-08 Bruno Haible <bruno@clisp.org>
13552 Tests for module 'unicase/ulc-casecmp'.
13553 * modules/unicase/ulc-casecmp-tests: New file.
13554 * tests/unicase/test-ulc-casecmp1.sh: New file.
13555 * tests/unicase/test-ulc-casecmp2.sh: New file.
13556 * tests/unicase/test-ulc-casecmp.c: New file.
13558 New module 'unicase/ulc-casecmp'.
13559 * lib/unicase.h (ulc_casecmp): New declaration.
13560 * lib/unicase/ulc-casecmp.c: New file.
13561 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13562 'const SRC_UNIT *'.
13563 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13564 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13565 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13566 * modules/unicase/ulc-casecmp: New file.
13568 Tests for module 'unicase/u32-is-cased'.
13569 * modules/unicase/u32-is-cased-tests: New file.
13570 * tests/unicase/test-u32-is-cased.c: New file.
13572 Tests for module 'unicase/u16-is-cased'.
13573 * modules/unicase/u16-is-cased-tests: New file.
13574 * tests/unicase/test-u16-is-cased.c: New file.
13576 Tests for module 'unicase/u8-is-cased'.
13577 * modules/unicase/u8-is-cased-tests: New file.
13578 * tests/unicase/test-u8-is-cased.c: New file.
13579 * tests/unicase/test-is-cased.h: New file.
13581 New module 'unicase/u32-is-cased'.
13582 * lib/unicase/u32-is-cased.c: New file.
13583 * modules/unicase/u32-is-cased: New file.
13585 New module 'unicase/u16-is-cased'.
13586 * lib/unicase/u16-is-cased.c: New file.
13587 * modules/unicase/u16-is-cased: New file.
13589 New module 'unicase/u8-is-cased'.
13590 * lib/unicase/u8-is-cased.c: New file.
13591 * lib/unicase/u-is-cased.h: New file.
13592 * modules/unicase/u8-is-cased: New file.
13594 Tests for module 'unicase/u32-is-casefolded'.
13595 * modules/unicase/u32-is-casefolded-tests: New file.
13596 * tests/unicase/test-u32-is-casefolded.c: New file.
13598 Tests for module 'unicase/u16-is-casefolded'.
13599 * modules/unicase/u16-is-casefolded-tests: New file.
13600 * tests/unicase/test-u16-is-casefolded.c: New file.
13602 Tests for module 'unicase/u8-is-casefolded'.
13603 * modules/unicase/u8-is-casefolded-tests: New file.
13604 * tests/unicase/test-u8-is-casefolded.c: New file.
13605 * tests/unicase/test-is-casefolded.h: New file.
13607 New module 'unicase/u32-is-casefolded'.
13608 * lib/unicase/u32-is-casefolded.c: New file.
13609 * modules/unicase/u32-is-casefolded: New file.
13611 New module 'unicase/u16-is-casefolded'.
13612 * lib/unicase/u16-is-casefolded.c: New file.
13613 * modules/unicase/u16-is-casefolded: New file.
13615 New module 'unicase/u8-is-casefolded'.
13616 * lib/unicase/u8-is-casefolded.c: New file.
13617 * modules/unicase/u8-is-casefolded: New file.
13619 Tests for module 'unicase/u32-is-titlecase'.
13620 * modules/unicase/u32-is-titlecase-tests: New file.
13621 * tests/unicase/test-u32-is-titlecase.c: New file.
13623 Tests for module 'unicase/u16-is-titlecase'.
13624 * modules/unicase/u16-is-titlecase-tests: New file.
13625 * tests/unicase/test-u16-is-titlecase.c: New file.
13627 Tests for module 'unicase/u8-is-titlecase'.
13628 * modules/unicase/u8-is-titlecase-tests: New file.
13629 * tests/unicase/test-u8-is-titlecase.c: New file.
13630 * tests/unicase/test-is-titlecase.h: New file.
13632 New module 'unicase/u32-is-titlecase'.
13633 * lib/unicase/u32-is-titlecase.c: New file.
13634 * modules/unicase/u32-is-titlecase: New file.
13636 New module 'unicase/u16-is-titlecase'.
13637 * lib/unicase/u16-is-titlecase.c: New file.
13638 * modules/unicase/u16-is-titlecase: New file.
13640 New module 'unicase/u8-is-titlecase'.
13641 * lib/unicase/u8-is-titlecase.c: New file.
13642 * modules/unicase/u8-is-titlecase: New file.
13644 Tests for module 'unicase/u32-is-lowercase'.
13645 * modules/unicase/u32-is-lowercase-tests: New file.
13646 * tests/unicase/test-u32-is-lowercase.c: New file.
13648 Tests for module 'unicase/u16-is-lowercase'.
13649 * modules/unicase/u16-is-lowercase-tests: New file.
13650 * tests/unicase/test-u16-is-lowercase.c: New file.
13652 Tests for module 'unicase/u8-is-lowercase'.
13653 * modules/unicase/u8-is-lowercase-tests: New file.
13654 * tests/unicase/test-u8-is-lowercase.c: New file.
13655 * tests/unicase/test-is-lowercase.h: New file.
13657 New module 'unicase/u32-is-lowercase'.
13658 * lib/unicase/u32-is-lowercase.c: New file.
13659 * modules/unicase/u32-is-lowercase: New file.
13661 New module 'unicase/u16-is-lowercase'.
13662 * lib/unicase/u16-is-lowercase.c: New file.
13663 * modules/unicase/u16-is-lowercase: New file.
13665 New module 'unicase/u8-is-lowercase'.
13666 * lib/unicase/u8-is-lowercase.c: New file.
13667 * modules/unicase/u8-is-lowercase: New file.
13669 Tests for module 'unicase/u32-is-uppercase'.
13670 * modules/unicase/u32-is-uppercase-tests: New file.
13671 * tests/unicase/test-u32-is-uppercase.c: New file.
13673 Tests for module 'unicase/u16-is-uppercase'.
13674 * modules/unicase/u16-is-uppercase-tests: New file.
13675 * tests/unicase/test-u16-is-uppercase.c: New file.
13677 Tests for module 'unicase/u8-is-uppercase'.
13678 * modules/unicase/u8-is-uppercase-tests: New file.
13679 * tests/unicase/test-u8-is-uppercase.c: New file.
13680 * tests/unicase/test-is-uppercase.h: New file.
13682 New module 'unicase/u32-is-uppercase'.
13683 * lib/unicase/u32-is-uppercase.c: New file.
13684 * modules/unicase/u32-is-uppercase: New file.
13686 New module 'unicase/u16-is-uppercase'.
13687 * lib/unicase/u16-is-uppercase.c: New file.
13688 * modules/unicase/u16-is-uppercase: New file.
13690 New module 'unicase/u8-is-uppercase'.
13691 * lib/unicase/u8-is-uppercase.c: New file.
13692 * modules/unicase/u8-is-uppercase: New file.
13694 New module 'unicase/u32-is-invariant'.
13695 * lib/unicase/u32-is-invariant.c: New file.
13696 * modules/unicase/u32-is-invariant: New file.
13698 New module 'unicase/u16-is-invariant'.
13699 * lib/unicase/u16-is-invariant.c: New file.
13700 * modules/unicase/u16-is-invariant: New file.
13702 New module 'unicase/u8-is-invariant'.
13703 * lib/unicase/u8-is-invariant.c: New file.
13704 * lib/unicase/invariant.h: New file.
13705 * lib/unicase/u-is-invariant.h: New file.
13706 * modules/unicase/u8-is-invariant: New file.
13708 Tests for module 'unicase/u32-casecoll'.
13709 * modules/unicase/u32-casecoll-tests: New file.
13710 * tests/unicase/test-u32-casecoll.c: New file.
13712 Tests for module 'unicase/u16-casecoll'.
13713 * modules/unicase/u16-casecoll-tests: New file.
13714 * tests/unicase/test-u16-casecoll.c: New file.
13716 Tests for module 'unicase/u8-casecoll'.
13717 * modules/unicase/u8-casecoll-tests: New file.
13718 * tests/unicase/test-u8-casecoll.c: New file.
13720 New module 'unicase/u32-casecoll'.
13721 * lib/unicase/u32-casecoll.c: New file.
13722 * modules/unicase/u32-casecoll: New file.
13724 New module 'unicase/u16-casecoll'.
13725 * lib/unicase/u16-casecoll.c: New file.
13726 * modules/unicase/u16-casecoll: New file.
13728 New module 'unicase/u8-casecoll'.
13729 * lib/unicase/u8-casecoll.c: New file.
13730 * lib/unicase/u-casecoll.h: New file.
13731 * modules/unicase/u8-casecoll: New file.
13733 New module 'unicase/u32-casexfrm'.
13734 * lib/unicase/u32-casexfrm.c: New file.
13735 * modules/unicase/u32-casexfrm: New file.
13737 New module 'unicase/u16-casexfrm'.
13738 * lib/unicase/u16-casexfrm.c: New file.
13739 * modules/unicase/u16-casexfrm: New file.
13741 New module 'unicase/u8-casexfrm'.
13742 * lib/unicase/u8-casexfrm.c: New file.
13743 * lib/unicase/u-casexfrm.h: New file.
13744 * modules/unicase/u8-casexfrm: New file.
13746 Tests for module 'unicase/u32-casecmp'.
13747 * modules/unicase/u32-casecmp-tests: New file.
13748 * tests/unicase/test-u32-casecmp.c: New file.
13750 Tests for module 'unicase/u16-casecmp'.
13751 * modules/unicase/u16-casecmp-tests: New file.
13752 * tests/unicase/test-u16-casecmp.c: New file.
13754 Tests for module 'unicase/u8-casecmp'.
13755 * modules/unicase/u8-casecmp-tests: New file.
13756 * tests/unicase/test-u8-casecmp.c: New file.
13757 * tests/unicase/test-casecmp.h: New file.
13759 New module 'unicase/u32-casecmp'.
13760 * lib/unicase/u32-casecmp.c: New file.
13761 * modules/unicase/u32-casecmp: New file.
13763 New module 'unicase/u16-casecmp'.
13764 * lib/unicase/u16-casecmp.c: New file.
13765 * modules/unicase/u16-casecmp: New file.
13767 New module 'unicase/u8-casecmp'.
13768 * lib/unicase/u8-casecmp.c: New file.
13769 * lib/unicase/u-casecmp.h: New file.
13770 * modules/unicase/u8-casecmp: New file.
13772 Tests for module 'unicase/u32-casefold'.
13773 * modules/unicase/u32-casefold-tests: New file.
13774 * tests/unicase/test-u32-casefold.c: New file.
13776 Tests for module 'unicase/u16-casefold'.
13777 * modules/unicase/u16-casefold-tests: New file.
13778 * tests/unicase/test-u16-casefold.c: New file.
13780 Tests for module 'unicase/u8-casefold'.
13781 * modules/unicase/u8-casefold-tests: New file.
13782 * tests/unicase/test-u8-casefold.c: New file.
13784 New module 'unicase/u32-casefold'.
13785 * lib/unicase/u32-casefold.c: New file.
13786 * modules/unicase/u32-casefold: New file.
13788 New module 'unicase/u16-casefold'.
13789 * lib/unicase/u16-casefold.c: New file.
13790 * modules/unicase/u16-casefold: New file.
13792 New module 'unicase/u8-casefold'.
13793 * lib/unicase/u8-casefold.c: New file.
13794 * lib/unicase/u-casefold.h: New file.
13795 * modules/unicase/u8-casefold: New file.
13797 New module 'unicase/tocasefold'.
13798 * lib/unicase/casefold.h: New file.
13799 * lib/unicase/tocasefold.c: New file.
13800 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13801 * modules/unicase/tocasefold: New file.
13803 Tests for module 'unicase/u32-totitle'.
13804 * modules/unicase/u32-totitle-tests: New file.
13805 * tests/unicase/test-u32-totitle.c: New file.
13807 Tests for module 'unicase/u16-totitle'.
13808 * modules/unicase/u16-totitle-tests: New file.
13809 * tests/unicase/test-u16-totitle.c: New file.
13811 Tests for module 'unicase/u8-totitle'.
13812 * modules/unicase/u8-totitle-tests: New file.
13813 * tests/unicase/test-u8-totitle.c: New file.
13815 New module 'unicase/u32-totitle'.
13816 * lib/unicase/u32-totitle.c: New file.
13817 * modules/unicase/u32-totitle: New file.
13819 New module 'unicase/u16-totitle'.
13820 * lib/unicase/u16-totitle.c: New file.
13821 * modules/unicase/u16-totitle: New file.
13823 New module 'unicase/u8-totitle'.
13824 * lib/unicase/u8-totitle.c: New file.
13825 * lib/unicase/u-totitle.h: New file.
13826 * modules/unicase/u8-totitle: New file.
13828 Tests for module 'unicase/u32-tolower'.
13829 * modules/unicase/u32-tolower-tests: New file.
13830 * tests/unicase/test-u32-tolower.c: New file.
13832 Tests for module 'unicase/u16-tolower'.
13833 * modules/unicase/u16-tolower-tests: New file.
13834 * tests/unicase/test-u16-tolower.c: New file.
13836 Tests for module 'unicase/u8-tolower'.
13837 * modules/unicase/u8-tolower-tests: New file.
13838 * tests/unicase/test-u8-tolower.c: New file.
13840 New module 'unicase/u32-tolower'.
13841 * lib/unicase/u32-tolower.c: New file.
13842 * modules/unicase/u32-tolower: New file.
13844 New module 'unicase/u16-tolower'.
13845 * lib/unicase/u16-tolower.c: New file.
13846 * modules/unicase/u16-tolower: New file.
13848 New module 'unicase/u8-tolower'.
13849 * lib/unicase/u8-tolower.c: New file.
13850 * modules/unicase/u8-tolower: New file.
13852 Tests for module 'unicase/u32-toupper'.
13853 * modules/unicase/u32-toupper-tests: New file.
13854 * tests/unicase/test-u32-toupper.c: New file.
13856 Tests for module 'unicase/u16-toupper'.
13857 * modules/unicase/u16-toupper-tests: New file.
13858 * tests/unicase/test-u16-toupper.c: New file.
13860 Tests for module 'unicase/u8-toupper'.
13861 * modules/unicase/u8-toupper-tests: New file.
13862 * tests/unicase/test-u8-toupper.c: New file.
13864 New module 'unicase/u32-toupper'.
13865 * lib/unicase/u32-toupper.c: New file.
13866 * modules/unicase/u32-toupper: New file.
13868 New module 'unicase/u16-toupper'.
13869 * lib/unicase/u16-toupper.c: New file.
13870 * modules/unicase/u16-toupper: New file.
13872 New module 'unicase/u8-toupper'.
13873 * lib/unicase/u8-toupper.c: New file.
13874 * modules/unicase/u8-toupper: New file.
13876 New module 'unicase/u32-casemap'.
13877 * lib/unicase/u32-casemap.c: New file.
13878 * modules/unicase/u32-casemap: New file.
13880 New module 'unicase/u16-casemap'.
13881 * lib/unicase/u16-casemap.c: New file.
13882 * modules/unicase/u16-casemap: New file.
13884 New module 'unicase/u8-casemap'.
13885 * lib/unicase/unicasemap.h: New file.
13886 * lib/unicase/u8-casemap.c: New file.
13887 * lib/unicase/u-casemap.h: New file.
13888 * modules/unicase/u8-casemap: New file.
13890 New module 'unicase/special-casing'.
13891 * lib/unicase/special-casing.h: New file.
13892 * lib/unicase/special-casing.c: New file.
13893 * lib/unicase/special-casing-table.gperf: New file, generated by
13895 * modules/unicase/special-casing: New file.
13897 Tests for module 'unicase/locale-language'.
13898 * modules/unicase/locale-language-tests: New file.
13899 * tests/unicase/test-locale-language.sh: New file.
13900 * tests/unicase/test-locale-language.c: New file.
13902 New module 'unicase/locale-language'.
13903 * lib/unicase/locale-language.c: New file.
13904 * lib/unicase/locale-languages.gperf: New file.
13905 * modules/unicase/locale-language: New file.
13907 Generate more tables for case conversion and case folding.
13908 * lib/gen-uni-tables.c (SCC_*): New enum items.
13909 (struct special_casing_rule): New type.
13910 (casing_rules, num_casing_rules, allocated_casing_rules): New
13912 (add_casing_rule, fill_casing_rules): New functions.
13913 (struct casefold_rule): New type.
13914 (casefolding_rules, num_casefolding_rules,
13915 allocated_casefolding_rules): New variables.
13916 (fill_casefolding_rules): New function.
13917 (unicode_casefold): New variable.
13918 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13919 sort_casing_rules, output_casing_rules): New functions.
13920 (main): Accept to more arguments: SpecialCasing.txt and
13921 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13922 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13923 Output mapping for casefolding.
13925 * lib/unicase.h: Include stdbool.h, uninorm.h.
13926 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13927 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13928 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13930 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13932 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13933 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13935 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13936 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13937 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13938 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13940 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13942 2009-03-08 Bruno Haible <bruno@clisp.org>
13944 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13945 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13946 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13947 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13949 2009-03-07 Bruno Haible <bruno@clisp.org>
13951 Adjust u*_normcmp, u*_normcoll API.
13952 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13953 u16_normcoll, u32_normcoll): Change failure conventions.
13954 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13955 errno and return -1.
13956 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13958 2009-03-07 Bruno Haible <bruno@clisp.org>
13960 Tests for module 'uninorm/u32-normcoll'.
13961 * modules/uninorm/u32-normcoll-tests: New file.
13962 * tests/uninorm/test-u32-normcoll.c: New file.
13964 Tests for module 'uninorm/u16-normcoll'.
13965 * modules/uninorm/u16-normcoll-tests: New file.
13966 * tests/uninorm/test-u16-normcoll.c: New file.
13968 Tests for module 'uninorm/u8-normcoll'.
13969 * modules/uninorm/u8-normcoll-tests: New file.
13970 * tests/uninorm/test-u8-normcoll.c: New file.
13972 2009-03-07 Bruno Haible <bruno@clisp.org>
13974 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13975 tests/uninorm/test-u32-normcmp.c.
13976 * tests/uninorm/test-u32-normcmp.c: Include it.
13977 (test_nonascii): New function, extracted from main. Add some more
13979 (main): Invoke test_ascii and test_nonascii.
13980 * modules/uninorm/u32-normcmp-tests (Files): Add
13981 tests/uninorm/test-u32-normcmp.h.
13982 (Depends-on): Remove uninorm/u32-normcmp.
13984 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13985 tests/uninorm/test-u16-normcmp.c.
13986 * tests/uninorm/test-u16-normcmp.c: Include it.
13987 (test_nonascii): New function, extracted from main. Add some more
13989 (main): Invoke test_ascii and test_nonascii.
13990 * modules/uninorm/u16-normcmp-tests (Files): Add
13991 tests/uninorm/test-u16-normcmp.h.
13992 (Depends-on): Remove uninorm/u16-normcmp.
13994 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13995 tests/uninorm/test-u8-normcmp.c.
13996 * tests/uninorm/test-u8-normcmp.c: Include it.
13997 (test_nonascii): New function, extracted from main. Add some more
13999 (main): Invoke test_ascii and test_nonascii.
14000 * modules/uninorm/u8-normcmp-tests (Files): Add
14001 tests/uninorm/test-u8-normcmp.h.
14002 (Depends-on): Remove uninorm/u8-normcmp.
14004 2009-03-07 Bruno Haible <bruno@clisp.org>
14006 New module 'uninorm/u32-normcoll'.
14007 * lib/uninorm/u32-normcoll.c: New file.
14008 * modules/uninorm/u32-normcoll: New file.
14010 New module 'uninorm/u16-normcoll'.
14011 * lib/uninorm/u16-normcoll.c: New file.
14012 * modules/uninorm/u16-normcoll: New file.
14014 New module 'uninorm/u8-normcoll'.
14015 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14017 * lib/uninorm/u8-normcoll.c: New file.
14018 * lib/uninorm/u-normcoll.h: New file.
14019 * modules/uninorm/u8-normcoll: New file.
14021 New module 'uninorm/u32-normxfrm'.
14022 * lib/uninorm/u32-normxfrm.c: New file.
14023 * modules/uninorm/u32-normxfrm: New file.
14025 New module 'uninorm/u16-normxfrm'.
14026 * lib/uninorm/u16-normxfrm.c: New file.
14027 * modules/uninorm/u16-normxfrm: New file.
14029 New module 'uninorm/u8-normxfrm'.
14030 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14032 * lib/uninorm/u8-normxfrm.c: New file.
14033 * lib/uninorm/u-normxfrm.h: New file.
14034 * modules/uninorm/u8-normxfrm: New file.
14036 2009-03-07 Bruno Haible <bruno@clisp.org>
14038 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14039 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14040 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14042 2009-03-07 Bruno Haible <bruno@clisp.org>
14044 New module 'memxfrm'.
14045 * lib/memxfrm.h: New file.
14046 * lib/memxfrm.c: New file.
14047 * modules/memxfrm: New file.
14049 2009-03-07 Bruno Haible <bruno@clisp.org>
14051 New module 'memcmp2'.
14052 * lib/memcmp2.h: New file.
14053 * lib/memcmp2.c: New file.
14054 * modules/memcmp2: New file.
14056 2009-03-07 Bruno Haible <bruno@clisp.org>
14058 Tests for module 'uninorm/decomposing-form'.
14059 * modules/uninorm/decomposing-form-tests: New file.
14060 * tests/uninorm/test-decomposing-form.c: New file.
14062 New module 'uninorm/decomposing-form'.
14063 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14064 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14065 Add 'decomposing_variant' field.
14066 * lib/uninorm/decomposing-form.c: New file.
14067 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14068 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14069 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14070 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14071 * modules/uninorm/decomposing-form: New file.
14072 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14073 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14075 2009-03-07 Bruno Haible <bruno@clisp.org>
14077 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14080 2009-03-06 Bruno Haible <bruno@clisp.org>
14082 Tests for module 'uninorm/u32-normcmp'.
14083 * tests/uninorm/test-u32-normcmp.c: New file.
14084 * modules/uninorm/u32-normcmp-tests: New file.
14086 Tests for module 'uninorm/u16-normcmp'.
14087 * tests/uninorm/test-u16-normcmp.c: New file.
14088 * modules/uninorm/u16-normcmp-tests: New file.
14090 Tests for module 'uninorm/u8-normcmp'.
14091 * tests/uninorm/test-u8-normcmp.c: New file.
14092 * modules/uninorm/u8-normcmp-tests: New file.
14094 New module 'uninorm/u32-normcmp'.
14095 * lib/uninorm/u32-normcmp.c: New file.
14096 * modules/uninorm/u32-normcmp: New file.
14098 New module 'uninorm/u16-normcmp'.
14099 * lib/uninorm/u16-normcmp.c: New file.
14100 * modules/uninorm/u16-normcmp: New file.
14102 New module 'uninorm/u8-normcmp'.
14103 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14105 * lib/uninorm/u8-normcmp.c: New file.
14106 * lib/uninorm/u-normcmp.h: New file.
14107 * modules/uninorm/u8-normcmp: New file.
14109 2009-03-06 Bruno Haible <bruno@clisp.org>
14111 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14112 Reported by Eric Blake.
14114 2009-03-06 Eric Blake <ebb9@byu.net>
14115 Bruno Haible <bruno@clisp.org>
14117 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14118 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14120 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14121 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14123 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14125 2009-03-06 Eric Blake <ebb9@byu.net>
14127 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14128 to avoid compiler warnings.
14129 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14131 2009-03-05 Bruno Haible <bruno@clisp.org>
14133 * tests/test-ftell.c (main): Disable test beyond end of file on
14135 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14137 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14139 * lib/filevercmp.c: Move hidden files up in ordering.
14140 * tests/test-filevercmp.c: Add tests for hidden files.
14142 2009-03-04 Bruno Haible <bruno@clisp.org>
14144 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14145 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14147 Reported by Simon Josefsson.
14149 2009-03-03 Bruno Haible <bruno@clisp.org>
14151 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14152 Reported by Simon Josefsson.
14154 * doc/ld-version-script.texi: Update node reference.
14156 2009-03-03 Bruno Haible <bruno@clisp.org>
14158 * modules/visibility (License): Change to 'unlimited'.
14159 Suggested by Simon Josefsson.
14161 2009-03-03 Jim Meyering <meyering@redhat.com>
14163 unlinkdir: cannot_unlink_dir may modify process state
14164 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14165 it's neither thread-safe nor appropriate for use in a library.
14167 2009-03-03 Eric Blake <ebb9@byu.net>
14169 test-closein: silence test under Darwin
14170 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14171 care if it dies from EPIPE or EBADF.
14173 2009-03-03 Bruno Haible <bruno@clisp.org>
14175 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14177 * doc/visibility.texi: Fix @node and @section.
14179 2009-03-03 Simon Josefsson <simon@josefsson.org>
14181 * doc/gnulib.texi: Link to sections for ld version script and
14183 * doc/visibility.texi: Add @node and @section.
14184 * modules/ld-version-script: New module.
14185 * m4/ld-version-script.m4: New file.
14186 * doc/ld-version-script.texi: New file.
14188 2009-03-02 David Lutterkort <lutter@redhat.com>
14190 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14191 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14193 2009-03-02 Bruno Haible <bruno@clisp.org>
14195 * doc/visibility.texi: Mention libtool's -export-symbols option.
14197 2009-03-02 Jim Meyering <meyering@redhat.com>
14199 announce-gen: new option: --no-print-checksums
14200 * build-aux/announce-gen (usage): Describe it.
14201 (print_checksums): Print a newline here, not in the [*] footnote.
14204 2009-03-01 Bruno Haible <bruno@clisp.org>
14206 Use socklen_t in the native Windows replacements prototypes.
14207 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14209 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14210 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14211 * modules/getsockopt (Depends-on): Add socklen.
14212 * modules/setsockopt (Depends-on): Add socklen.
14214 2009-03-01 Bruno Haible <bruno@clisp.org>
14216 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14219 2009-03-01 Eric Blake <ebb9@byu.net>
14220 Bruno Haible <bruno@clisp.org>
14222 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14224 * lib/wait-process.c (wait_subprocess): Omit error message about
14225 deadly signal sent to the child of termsigp != NULL.
14227 2009-03-01 Eric Blake <ebb9@byu.net>
14229 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14231 2009-03-01 Bruno Haible <bruno@clisp.org>
14233 Avoid a gcc warning.
14234 * tests/test-sched.c (b): Make global.
14235 Reported by Eric Blake.
14237 2009-01-19 Martin Lambers <marlam@marlam.de>
14239 Provide POSIX semantics for socket timeout options on W32.
14240 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14241 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14242 * modules/setsockopt: Depend on sys_time module for struct timeval.
14243 * modules/getsockopt: Depend on sys_time module for struct timeval.
14245 2009-03-01 Simon Josefsson <simon@josefsson.org>
14247 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14248 __USE_GNU, for consistency with netdb.in.h.
14249 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14251 2009-03-01 Bruno Haible <bruno@clisp.org>
14253 More support for FreeMiNT.
14254 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14255 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14257 2009-03-01 Bruno Haible <bruno@clisp.org>
14259 More support for FreeMiNT.
14260 * lib/fpurge.c (fpurge): Correct last commit.
14261 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14263 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14265 Fix unportable awk script in vc-list-files.
14266 * build-aux/vc-list-files: In the replacement awk script, use
14267 substr with a second argument of 1, not zero.
14268 Report by Simon Josefsson.
14270 2009-02-28 Bruno Haible <bruno@clisp.org>
14272 More support for FreeMiNT.
14273 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14275 * lib/fwriting.c (fwriting): Likewise.
14276 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14278 2009-02-28 Bruno Haible <bruno@clisp.org>
14280 * tests/test-freadseek.c (main): Disable test beyond end of file on
14282 * tests/test-ftello.c (main): Likewise.
14283 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14285 2009-02-28 Bruno Haible <bruno@clisp.org>
14287 Add tentative support for FreeMiNT.
14288 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14289 * lib/fpurge.c (fpurge): Likewise.
14290 * lib/freadable.c (freadable): Likewise.
14291 * lib/freading.c (freading): Likewise.
14292 * lib/freadptr.c (freadptr): Likewise.
14293 * lib/freadseek.c (freadptrinc): Likewise.
14294 * lib/fseeko.c (rpl_fseeko): Likewise.
14295 * lib/fseterr.c (fseterr): Likewise.
14296 * lib/fwritable.c (fwritable): Likewise.
14297 * lib/fwriting.c (fwriting): Likewise.
14298 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14300 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14302 2009-02-28 Bruno Haible <bruno@clisp.org>
14304 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14306 Reported by Jim Meyering.
14308 2009-02-28 Bruno Haible <bruno@clisp.org>
14310 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14311 Mention the results of these tests on various platforms.
14312 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14314 * doc/posix-functions/printf.texi: Likewise.
14315 * doc/posix-functions/snprintf.texi: Likewise.
14316 * doc/posix-functions/sprintf.texi: Likewise.
14317 * doc/posix-functions/vfprintf.texi: Likewise.
14318 * doc/posix-functions/vprintf.texi: Likewise.
14319 * doc/posix-functions/vsnprintf.texi: Likewise.
14320 * doc/posix-functions/vsprintf.texi: Likewise.
14321 * doc/glibc-functions/obstack_printf.texi: Likewise.
14322 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14324 2009-02-28 Bruno Haible <bruno@clisp.org>
14326 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14327 Reported by Loïc Minier <lool@dooz.org>.
14329 2009-02-27 Bruno Haible <bruno@clisp.org>
14331 * gnulib-tool (func_import): Make the sed expression used to create the
14332 sed script for updating the .gitignore file POSIX compliant.
14333 Reported by Eric Blake.
14335 2009-02-27 Bruno Haible <bruno@clisp.org>
14337 * gnulib-tool (sed): Don't alias as "sed --posix".
14338 Reported by Eric Blake.
14340 2009-02-27 Bruno Haible <bruno@clisp.org>
14342 Avoid test link errors.
14343 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14344 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14345 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14346 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14347 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14349 2009-02-27 Bruno Haible <bruno@clisp.org>
14351 Avoid spurious "(cached)" in configure output.
14352 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14353 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14354 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14355 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14356 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14357 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14358 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14359 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14360 Reported by Eric Blake.
14362 2009-02-27 Eric Blake <ebb9@byu.net>
14364 printf: fix regression in previous patch
14365 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14367 2009-02-27 Bruno Haible <bruno@clisp.org>
14369 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14371 * lib/stdint.in.h: Likewise.
14372 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14374 2009-02-27 Eric Blake <ebb9@byu.net>
14376 doc: mention more functions added in cygwin 1.7.0
14377 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14379 * doc/posix-functions/open_wmemstream.texi: Likewise.
14380 * doc/posix-functions/wcsnlen.texi: Likewise.
14381 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14382 * doc/posix-functions/wcstod.texi: Likewise.
14383 * doc/posix-functions/wcstof.texi: Likewise.
14384 * doc/posix-functions/wcstoimax.texi: Likewise.
14385 * doc/posix-functions/wcstok.texi: Likewise.
14386 * doc/posix-functions/wcstoumax.texi: Likewise.
14388 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14389 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14390 * doc/posix-functions/fprintf.texi: Update.
14391 * doc/posix-functions/printf.texi: Update.
14392 * doc/posix-functions/snprintf.texi: Update.
14393 * doc/posix-functions/sprintf.texi: Update.
14394 * doc/posix-functions/vfprintf.texi: Update.
14395 * doc/posix-functions/vprintf.texi: Update.
14396 * doc/posix-functions/vsnprintf.texi: Update.
14397 * doc/posix-functions/vsprintf.texi: Update.
14398 * doc/glibc-functions/obstack_printf.texi: Update.
14399 * doc/glibc-functions/obstack_vprintf.texi: Update.
14401 2009-02-26 Eric Blake <ebb9@byu.net>
14403 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14404 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14405 compilation bug by using runtime conversion.
14406 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14407 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14408 * modules/ceill-tests (Files): Use nan.h.
14409 * modules/floorl-tests (Files): Likewise.
14410 * modules/frexpl-tests (Files): Likewise.
14411 * modules/isnanl-tests (Files): Likewise.
14412 * modules/ldexpl-tests (Files): Likewise.
14413 * modules/roundl-tests (Files): Likewise.
14414 * modules/truncl-tests (Files): Likewise.
14415 * tests/test-ceill.c (main): Use a working NaN.
14416 * tests/test-floorl.c (main): Likewise.
14417 * tests/test-frexpl.c (main): Likewise.
14418 * tests/test-isnan.c (test_long_double): Likewise.
14419 * tests/test-isnanl.h (main): Likewise.
14420 * tests/test-ldexpl.h (main): Likewise.
14421 * tests/test-roundl.h (main): Likewise.
14422 * tests/test-truncl.h (main): Likewise.
14423 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14425 2009-02-26 Eric Blake <ebb9@byu.net>
14426 Bruno Haible <bruno@clisp.org>
14428 Work around a *printf bug with %ls on Solaris.
14429 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14430 precision is specified, sprintf stops converting the wide string
14431 argument when the number of bytes that have been produced by this
14432 conversion equals or exceeds the precision.
14433 * doc/posix-functions/fprintf.texi: Update.
14434 * doc/posix-functions/printf.texi: Update.
14435 * doc/posix-functions/snprintf.texi: Update.
14436 * doc/posix-functions/sprintf.texi: Update.
14437 * doc/posix-functions/vfprintf.texi: Update.
14438 * doc/posix-functions/vprintf.texi: Update.
14439 * doc/posix-functions/vsnprintf.texi: Update.
14440 * doc/posix-functions/vsprintf.texi: Update.
14441 * doc/glibc-functions/obstack_printf.texi: Update.
14442 * doc/glibc-functions/obstack_vprintf.texi: Update.
14444 2009-02-26 Eric Blake <ebb9@byu.net>
14446 stdlib: favor compiler check of random.h
14447 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14448 to avoid an ObjC random.h installed by Swarm.
14450 2009-02-26 Bruno Haible <bruno@clisp.org>
14452 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14453 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14454 Reported by Gary V. Vaughan <gary@gnu.org>.
14456 2009-02-26 Bruno Haible <bruno@clisp.org>
14458 Fix *printf behaviour regarding the %ls directive.
14459 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14460 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14461 NEED_PRINTF_DIRECTIVE_LS.
14462 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14463 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14464 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14465 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14466 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14467 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14468 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14469 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14470 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14471 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14472 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14473 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14474 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14475 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14476 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14477 * doc/posix-functions/fprintf.texi: Update.
14478 * doc/posix-functions/printf.texi: Update.
14479 * doc/posix-functions/snprintf.texi: Update.
14480 * doc/posix-functions/sprintf.texi: Update.
14481 * doc/posix-functions/vfprintf.texi: Update.
14482 * doc/posix-functions/vprintf.texi: Update.
14483 * doc/posix-functions/vsnprintf.texi: Update.
14484 * doc/posix-functions/vsprintf.texi: Update.
14485 * doc/glibc-functions/obstack_printf.texi: Update.
14486 * doc/glibc-functions/obstack_vprintf.texi: Update.
14487 Reported by Eric Blake.
14489 2009-02-25 Bruno Haible <bruno@clisp.org>
14491 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14493 Reported by Gary V. Vaughan <gary@gnu.org>.
14495 2009-02-25 Bruno Haible <bruno@clisp.org>
14497 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14498 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14499 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14500 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14501 Reported by Gary V. Vaughan <gary@gnu.org>.
14503 2009-02-25 Bruno Haible <bruno@clisp.org>
14505 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14506 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14507 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14508 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14509 Reported by Gary V. Vaughan <gary@gnu.org>.
14511 2009-02-25 Eric Blake <ebb9@byu.net>
14513 tests: skip fseek/ftell tests if ungetc is broken
14514 * m4/ungetc.m4: New file.
14515 * modules/fseek-tests: Split test, so ungetc dependency is
14516 separate from rest of test.
14517 * modules/fseeko-tests: Likewise.
14518 * modules/ftell-tests: Likewise.
14519 * modules/ftello-tests: Likewise.
14520 * tests/test-fseek.c (main): Isolate ungetc dependency.
14521 * tests/test-fseeko.c (main): Likewise.
14522 * tests/test-ftell.c (main): Likewise.
14523 * tests/test-ftello.c (main): Likewise.
14524 * tests/test-fseek2.sh: New file.
14525 * tests/test-fseeko2.sh: Likewise.
14526 * tests/test-ftell2.sh: Likewise.
14527 * tests/test-ftello2.sh: Likewise.
14529 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14531 test-getaddrinfo: fix usage of skip return code 77
14532 * tests/test-gettaddrinfo.c: Return skip code 77 only
14533 for first occurance of skip (4x77 is not 77)
14535 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14537 strtod: avoid C99 decl-after-statement
14538 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14540 2009-02-24 Eric Blake <ebb9@byu.net>
14542 strtod: detect HP-UX 11.31 bug
14543 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14544 Reported by Gary V. Vaughan.
14546 2009-02-23 Bruno Haible <bruno@clisp.org>
14548 Fix invalid read past end of memory block.
14549 * lib/vasnprintf.c (DCHAR_SET): Define.
14550 (local_wcslen): Define only when needed.
14551 (local_strnlen, local_wcsnlen): New functions.
14552 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14553 directives that involve a conversion ourselves.
14554 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14555 wcsnlen, mbrtowc, wcrtomb.
14556 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14557 * tests/test-vasprintf-posix.c (test_function): Likewise.
14558 * tests/test-snprintf-posix.h (test_function): Likewise.
14559 * tests/test-sprintf-posix.h (test_function): Likewise.
14560 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14562 2009-02-22 Bruno Haible <bruno@clisp.org>
14564 Implement new clarified decomposition of Hangul syllables.
14565 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14566 of type LTV, return only a pairwise decomposition.
14567 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14569 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14570 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14571 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14573 2009-02-22 Bruno Haible <bruno@clisp.org>
14575 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14576 zero-length results and shrink excess allocated memory.
14577 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14578 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14579 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14580 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14581 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14582 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14583 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14584 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14585 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14586 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14587 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14588 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14590 2009-02-21 Bruno Haible <bruno@clisp.org>
14592 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14593 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14594 spaces after a period. Put a space between a macro name and its
14595 argument list. Trivial rewordings.
14596 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14597 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14598 (main): Return 0 explicitly.
14600 2009-02-21 Bruno Haible <bruno@clisp.org>
14602 Tests for module 'uninorm/filter'.
14603 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14604 * modules/uninorm/filter-tests: New file.
14606 New module 'uninorm/filter'.
14607 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14608 uninorm_filter_flush, uninorm_filter_free): New declarations.
14609 * lib/uninorm/uninorm-filter.c: New file.
14610 * modules/uninorm/filter: New file.
14612 2009-02-21 Bruno Haible <bruno@clisp.org>
14614 Tests for module 'uninorm/nfkc'.
14615 * tests/uninorm/test-nfkc.c: New file.
14616 * tests/uninorm/test-u8-nfkc.c: New file.
14617 * tests/uninorm/test-u16-nfkc.c: New file.
14618 * tests/uninorm/test-u32-nfkc.c: New file.
14619 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14620 * tests/uninorm/test-u32-nfkc-big.c: New file.
14621 * modules/uninorm/nfkc-tests: New file.
14623 New module 'uninorm/nfkc'.
14624 * lib/uninorm/nfkc.c: New file.
14625 * modules/uninorm/nfkc: New file.
14627 Tests for module 'uninorm/nfkd'.
14628 * tests/uninorm/test-nfkd.c: New file.
14629 * tests/uninorm/test-u8-nfkd.c: New file.
14630 * tests/uninorm/test-u16-nfkd.c: New file.
14631 * tests/uninorm/test-u32-nfkd.c: New file.
14632 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14633 * tests/uninorm/test-u32-nfkd-big.c: New file.
14634 * modules/uninorm/nfkd-tests: New file.
14636 New module 'uninorm/nfkd'.
14637 * lib/uninorm/nfkd.c: New file.
14638 * modules/uninorm/nfkd: New file.
14640 Tests for module 'uninorm/nfc'.
14641 * tests/uninorm/test-nfc.c: New file.
14642 * tests/uninorm/test-u8-nfc.c: New file.
14643 * tests/uninorm/test-u16-nfc.c: New file.
14644 * tests/uninorm/test-u32-nfc.c: New file.
14645 * tests/uninorm/test-u32-nfc-big.sh: New file.
14646 * tests/uninorm/test-u32-nfc-big.c: New file.
14647 * modules/uninorm/nfc-tests: New file.
14649 New module 'uninorm/nfc'.
14650 * lib/uninorm/nfc.c: New file.
14651 * modules/uninorm/nfc: New file.
14653 Tests for module 'uninorm/nfd'.
14654 * tests/uninorm/test-nfd.c: New file.
14655 * tests/uninorm/test-u8-nfd.c: New file.
14656 * tests/uninorm/test-u16-nfd.c: New file.
14657 * tests/uninorm/test-u32-nfd.c: New file.
14658 * tests/uninorm/test-u32-nfd-big.sh: New file.
14659 * tests/uninorm/test-u32-nfd-big.c: New file.
14660 * tests/uninorm/test-u32-normalize-big.h: New file.
14661 * tests/uninorm/test-u32-normalize-big.c: New file.
14662 * tests/uninorm/NormalizationTest.txt: New file, created from
14663 Unicode 5.1.0 NormalizationTest.txt.
14664 * modules/uninorm/nfd-tests: New file.
14666 New module 'uninorm/nfd'.
14667 * lib/uninorm/nfd.c: New file.
14668 * modules/uninorm/nfd: New file.
14670 New module 'uninorm/u32-normalize'.
14671 * lib/uninorm/u32-normalize.c: New file.
14672 * modules/uninorm/u32-normalize: New file.
14674 New module 'uninorm/u16-normalize'.
14675 * lib/uninorm/u16-normalize.c: New file.
14676 * modules/uninorm/u16-normalize: New file.
14678 New module 'uninorm/u8-normalize'.
14679 * lib/uninorm/u8-normalize.c: New file.
14680 * lib/uninorm/normalize-internal.h: New file.
14681 * lib/uninorm/u-normalize-internal.h: New file.
14682 * modules/uninorm/u8-normalize: New file.
14684 New module 'uninorm/decompose-internal'.
14685 * lib/uninorm/decompose-internal.c: New file.
14686 * modules/uninorm/decompose-internal: New file.
14688 Tests for module 'uninorm/composition'.
14689 * tests/uninorm/test-composition.c: New file.
14690 * modules/uninorm/composition-tests: New file.
14692 New module 'uninorm/composition'.
14693 * lib/uninorm/composition.c: New file.
14694 * lib/uninorm/composition-table.gperf: New file, generated by
14696 * modules/uninorm/composition: New file.
14698 Tests for module 'uninorm/compat-decomposition'.
14699 * tests/uninorm/test-compat-decomposition.c: New file.
14700 * modules/uninorm/compat-decomposition-tests: New file.
14702 New module 'uninorm/compat-decomposition'.
14703 * lib/uninorm/decompose-internal.h: New file.
14704 * lib/uninorm/compat-decomposition.c: New file.
14705 * modules/uninorm/compat-decomposition: New file.
14707 Tests for module 'uninorm/canonical-decomposition'.
14708 * tests/uninorm/test-canonical-decomposition.c: New file.
14709 * modules/uninorm/canonical-decomposition-tests: New file.
14711 New module 'uninorm/canonical-decomposition'.
14712 * lib/uninorm/canonical-decomposition.c: New file.
14713 * modules/uninorm/canonical-decomposition: New file.
14715 Tests for module 'uninorm/decomposition'.
14716 * tests/uninorm/test-decomposition.c: New file.
14717 * modules/uninorm/decomposition-tests: New file.
14719 New module 'uninorm/decomposition'.
14720 * lib/uninorm/decomposition.c: New file.
14721 * modules/uninorm/decomposition: New file.
14723 New module 'uninorm/decomposition-table'.
14724 * lib/uninorm/decomposition-table.h: New file.
14725 * lib/uninorm/decomposition-table.c: New file.
14726 * lib/uninorm/decomposition-table1.h: New file, generated by
14728 * lib/uninorm/decomposition-table2.h: New file, generated by
14730 * modules/uninorm/decomposition-table: New file.
14732 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14733 (UC_DECOMP_*): New enumeration items.
14734 (get_decomposition): New function.
14735 (struct decomp_table): New type.
14736 (output_decomposition, output_decomposition_tables): New functions.
14737 (unicode_composition_exclusions): New variable.
14738 (fill_composition_exclusions, debug_output_composition_tables): New
14740 (main): Accept one more argument. Invoke fill_composition_exclusions.
14741 Output decomposition and composition tables.
14743 New module 'uninorm/base'.
14744 * lib/uninorm.h: New file.
14745 * lib/unictype.h: Update comment.
14746 * modules/uninorm/base: New file.
14748 2009-02-21 David Lutterkort <lutter@redhat.com>
14750 Tests for module 'safe-alloc'.
14751 * tests/test-safe-alloc.c: New file.
14752 * modules/safe-alloc-tests: New file.
14754 New module 'safe-alloc'.
14755 * lib/safe-alloc.h: New file.
14756 * lib/safe-alloc.c: New file.
14757 * m4/safe-alloc.m4: New file.
14758 * modules/safe-alloc: New file.
14759 * doc/safe-alloc.texi: New file.
14760 * doc/gnulib.texi: Include it.
14761 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14764 2009-02-18 Bruno Haible <bruno@clisp.org>
14766 Fix link error on non-glibc systems.
14767 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14769 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14771 2009-02-18 Jim Meyering <meyering@redhat.com>
14773 fts: avoid used-uninitialized error due to recent change
14774 * lib/fts.c (fts_read): Guard uses of the new member,
14775 parent->fts_n_dirs_remaining, since it's not relevant for
14776 the parent of a directory specified on the command-line.
14778 2009-02-17 James Youngman <jay@gnu.org>
14779 Bruno Haible <bruno@clisp.org>
14781 * m4/include_next.m4: Reformulate comment.
14783 2009-02-16 Jim Meyering <meyering@redhat.com>
14785 fts: add #if guards so that the fts_lgpl module still builds
14786 * lib/fts.c: Guard just-added hash-table-using parts with
14787 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14788 Reported by Simon Josefsson.
14790 2009-02-15 Bruno Haible <bruno@clisp.org>
14792 * modules/array-mergesort-tests: New file.
14793 * tests/test-array-mergesort.c: New file.
14795 New module 'array-mergesort'.
14796 * modules/array-mergesort: New file.
14797 * lib/array-mergesort.h: New file.
14799 2009-02-15 Bruno Haible <bruno@clisp.org>
14801 Fix 2009-02-07 commit.
14802 * lib/gen-uni-tables.c (output_predicate, output_category,
14803 output_combclass, output_bidi_category, output_decimal_digit,
14804 output_digit, output_numeric, output_mirror, output_scripts,
14805 output_ident_category, output_simple_mapping): Fix format directives.
14806 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14808 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14810 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14811 fixes are available from IBM.
14813 2009-02-13 Jim Meyering <meyering@redhat.com>
14815 fts: arrange not to stat non-directories in more cases
14816 This makes GNU find (when it doesn't need to stat each file)
14817 *much* more efficient at traversing reiserfs file systems.
14818 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14819 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14820 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14821 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14822 (leaf_optimization_applies): New function.
14823 (LCO_hash, LCO_compare): New helper functions.
14824 (link_count_optimize_ok): New function.
14825 (fts_stat): Initialize new member (if dir).
14826 (fts_read): Decrement parent's fts_n_dirs_remaining count if
14827 we've just stat'ed a directory. Skip the stat call when possible.
14829 Note this AFS-related exchange:
14830 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14831 and note find's pioctl call in find/fstype.c.
14832 But that is necessary only if you want to enable the
14833 optimization for AFS, and for now, I don't.
14835 fts: move a function definition "up" (no semantic change)
14836 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14837 "up" to precede upcoming use of a related function.
14839 2009-02-11 Jim Meyering <meyering@redhat.com>
14841 fts: correct internal computation of nlinks (optimization-related)
14842 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14843 whether the current entry is a directory, so don't test it.
14845 2009-02-10 Bruno Haible <bruno@clisp.org>
14847 Tests for module 'uniwbrk/ulc-wordbreaks'.
14848 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14849 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14850 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14852 Tests for module 'uniwbrk/u32-wordbreaks'.
14853 * modules/uniwbrk/u32-wordbreaks-tests: New file.
14854 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14856 Tests for module 'uniwbrk/u16-wordbreaks'.
14857 * modules/uniwbrk/u16-wordbreaks-tests: New file.
14858 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14860 Tests for module 'uniwbrk/u8-wordbreaks'.
14861 * modules/uniwbrk/u8-wordbreaks-tests: New file.
14862 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14864 2009-02-10 Bruno Haible <bruno@clisp.org>
14866 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14868 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14869 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14870 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14872 2009-02-10 Simon Josefsson <simon@josefsson.org>
14874 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14875 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
14877 2009-02-10 Bruno Haible <bruno@clisp.org>
14879 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14880 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14881 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14882 * lib/unilbrk/u8-possible-linebreaks.c: Update.
14883 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14884 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14886 2009-02-09 Simon Josefsson <simon@josefsson.org>
14888 * lib/sockets.h (gl_fd_to_handle): New function.
14890 * tests/test-sockets.c: Call gl_fd_to_handle.
14892 2009-02-09 Bruno Haible <bruno@clisp.org>
14894 * doc/havelib.texi: Document the conventions on bi-arch systems.
14896 2009-02-08 Bruno Haible <bruno@clisp.org>
14898 Document the AC_LIB_LINKFLAGS macro.
14899 * doc/havelib.texi: New file, mostly written on 2005-05-24.
14900 * doc/gnulib.texi: Include it.
14902 2009-02-08 Bruno Haible <bruno@clisp.org>
14904 Fix wrong order of sections, compared to TOC.
14905 * doc/gnulib.texi: Include relocatable-maint.texi after the
14906 "Regular expressions" node, not before.
14908 2009-02-08 Bruno Haible <bruno@clisp.org>
14910 Tests for module 'unicase/totitle'.
14911 * modules/unicase/totitle-tests: New file.
14913 Tests for module 'unicase/tolower'.
14914 * modules/unicase/tolower-tests: New file.
14916 Tests for module 'unicase/toupper'.
14917 * modules/unicase/toupper-tests: New file.
14918 * tests/unicase/test-mapping-part1.h: New file.
14919 * tests/unicase/test-mapping-part2.h: New file.
14921 New module 'unicase/totitle'.
14922 * modules/unicase/totitle: New file.
14923 * lib/unicase/totitle.c: New file.
14925 New module 'unicase/tolower'.
14926 * modules/unicase/tolower: New file.
14927 * lib/unicase/tolower.c: New file.
14929 New module 'unicase/toupper'.
14930 * modules/unicase/toupper: New file.
14931 * lib/unicase/toupper.c: New file.
14932 * lib/unicase/simple-mapping.h: New file.
14934 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14935 (mapping_table): New structure.
14936 (output_simple_mapping): New function.
14937 (main): Invoke output_simple_mapping_test and output_simple_mapping.
14938 * modules/gen-uni-tables (Description): Update.
14939 * lib/unicase/toupper.h: New file, automatically generated by
14941 * lib/unicase/tolower.h: New file, automatically generated by
14943 * lib/unicase/totitle.h: New file, automatically generated by
14945 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14947 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14949 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14952 New module 'unicase/base'.
14953 * modules/unicase/base: New file.
14954 * lib/unicase.h: New file.
14956 2009-02-08 Bruno Haible <bruno@clisp.org>
14958 New module 'uniwbrk/ulc-wordbreaks'.
14959 * modules/uniwbrk/ulc-wordbreaks: New file.
14960 * lib/uniwbrk/ulc-wordbreaks.c: New file.
14962 New module 'uniwbrk/u32-wordbreaks'.
14963 * modules/uniwbrk/u32-wordbreaks: New file.
14964 * lib/uniwbrk/u32-wordbreaks.c: New file.
14966 New module 'uniwbrk/u16-wordbreaks'.
14967 * modules/uniwbrk/u16-wordbreaks: New file.
14968 * lib/uniwbrk/u16-wordbreaks.c: New file.
14970 New module 'uniwbrk/u8-wordbreaks'.
14971 * modules/uniwbrk/u8-wordbreaks: New file.
14972 * lib/uniwbrk/u8-wordbreaks.c: New file.
14973 * lib/uniwbrk/u-wordbreaks.h: New file.
14975 New module 'uniwbrk/table'.
14976 * modules/uniwbrk/table: New file.
14977 * lib/uniwbrk/wbrktable.h: New file.
14978 * lib/uniwbrk/wbrktable.c: New file.
14980 New module 'uniwbrk/wordbreak-property'.
14981 * modules/uniwbrk/wordbreak-property: New file.
14982 * lib/uniwbrk/wordbreak-property.c: New file.
14984 * lib/gen-uni-tables.c (WBP_*): New enum items.
14985 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14986 (unicode_org_wbp): New variable.
14987 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14989 (wbp_table): New structure.
14990 (output_wbp, output_wbrk_tables): New functions.
14991 (main): Accept additional argument. Invoke fill_org_wbp,
14992 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14993 output_wbrk_tables.
14994 * modules/gen-uni-tables (Description): Update.
14995 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14998 New module 'uniwbrk/base'.
14999 * modules/uniwbrk/base: New file.
15000 * lib/uniwbrk.h: New file.
15002 2009-02-08 Bruno Haible <bruno@clisp.org>
15004 Update to Unicode 5.1.0.
15005 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15007 (is_property_default_ignorable_code_point): Don't include characters
15008 of category Cc or Cs and not-a-characters.
15009 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15010 U+0D79, U+109E, U+109F, U+A60C.
15011 * lib/unictype/bidi_of.h: Regenerated.
15012 * lib/unictype/blocks.h: Regenerated.
15013 * lib/unictype/categ_C.h: Regenerated.
15014 * lib/unictype/categ_Cf.h: Regenerated.
15015 * lib/unictype/categ_Cn.h: Regenerated.
15016 * lib/unictype/categ_L.h: Regenerated.
15017 * lib/unictype/categ_Ll.h: Regenerated.
15018 * lib/unictype/categ_Lm.h: Regenerated.
15019 * lib/unictype/categ_Lo.h: Regenerated.
15020 * lib/unictype/categ_Lu.h: Regenerated.
15021 * lib/unictype/categ_M.h: Regenerated.
15022 * lib/unictype/categ_Mc.h: Regenerated.
15023 * lib/unictype/categ_Me.h: Regenerated.
15024 * lib/unictype/categ_Mn.h: Regenerated.
15025 * lib/unictype/categ_N.h: Regenerated.
15026 * lib/unictype/categ_Nd.h: Regenerated.
15027 * lib/unictype/categ_Nl.h: Regenerated.
15028 * lib/unictype/categ_No.h: Regenerated.
15029 * lib/unictype/categ_P.h: Regenerated.
15030 * lib/unictype/categ_Pd.h: Regenerated.
15031 * lib/unictype/categ_Pe.h: Regenerated.
15032 * lib/unictype/categ_Pf.h: Regenerated.
15033 * lib/unictype/categ_Pi.h: Regenerated.
15034 * lib/unictype/categ_Po.h: Regenerated.
15035 * lib/unictype/categ_Ps.h: Regenerated.
15036 * lib/unictype/categ_S.h: Regenerated.
15037 * lib/unictype/categ_Sk.h: Regenerated.
15038 * lib/unictype/categ_Sm.h: Regenerated.
15039 * lib/unictype/categ_So.h: Regenerated.
15040 * lib/unictype/categ_of.h: Regenerated.
15041 * lib/unictype/combining.h: Regenerated.
15042 * lib/unictype/ctype_alnum.h: Regenerated.
15043 * lib/unictype/ctype_alpha.h: Regenerated.
15044 * lib/unictype/ctype_graph.h: Regenerated.
15045 * lib/unictype/ctype_lower.h: Regenerated.
15046 * lib/unictype/ctype_print.h: Regenerated.
15047 * lib/unictype/ctype_punct.h: Regenerated.
15048 * lib/unictype/ctype_upper.h: Regenerated.
15049 * lib/unictype/decdigit.h: Regenerated.
15050 * lib/unictype/digit.h: Regenerated.
15051 * lib/unictype/mirror.h: Regenerated.
15052 * lib/unictype/numeric.h: Regenerated.
15053 * lib/unictype/pr_alphabetic.h: Regenerated.
15054 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15055 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15056 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15057 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15058 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15059 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15060 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15061 * lib/unictype/pr_combining.h: Regenerated.
15062 * lib/unictype/pr_dash.h: Regenerated.
15063 * lib/unictype/pr_decimal_digit.h: Regenerated.
15064 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15065 * lib/unictype/pr_deprecated.h: Regenerated.
15066 * lib/unictype/pr_diacritic.h: Regenerated.
15067 * lib/unictype/pr_extender.h: Regenerated.
15068 * lib/unictype/pr_format_control.h: Regenerated.
15069 * lib/unictype/pr_grapheme_base.h: Regenerated.
15070 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15071 * lib/unictype/pr_grapheme_link.h: Regenerated.
15072 * lib/unictype/pr_id_continue.h: Regenerated.
15073 * lib/unictype/pr_id_start.h: Regenerated.
15074 * lib/unictype/pr_ideographic.h: Regenerated.
15075 * lib/unictype/pr_ignorable_control.h: Regenerated.
15076 * lib/unictype/pr_lowercase.h: Regenerated.
15077 * lib/unictype/pr_math.h: Regenerated.
15078 * lib/unictype/pr_numeric.h: Regenerated.
15079 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15080 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15081 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15082 * lib/unictype/pr_other_id_continue.h: Regenerated.
15083 * lib/unictype/pr_other_lowercase.h: Regenerated.
15084 * lib/unictype/pr_other_math.h: Regenerated.
15085 * lib/unictype/pr_punctuation.h: Regenerated.
15086 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15087 * lib/unictype/pr_soft_dotted.h: Regenerated.
15088 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15089 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15090 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15091 * lib/unictype/pr_uppercase.h: Regenerated.
15092 * lib/unictype/pr_xid_continue.h: Regenerated.
15093 * lib/unictype/pr_xid_start.h: Regenerated.
15094 * lib/unictype/pr_zero_width.h: Regenerated.
15095 * lib/unictype/scripts.h: Regenerated.
15096 * lib/unictype/scripts_byname.gperf: Regenerated.
15097 * lib/unictype/sy_java_ident.h: Regenerated.
15098 * lib/unilbrk/lbrkprop1.h: Regenerated.
15099 * lib/unilbrk/lbrkprop2.h: Regenerated.
15100 * tests/unictype/test-categ_C.c: Regenerated.
15101 * tests/unictype/test-categ_Cf.c: Regenerated.
15102 * tests/unictype/test-categ_Cn.c: Regenerated.
15103 * tests/unictype/test-categ_L.c: Regenerated.
15104 * tests/unictype/test-categ_Ll.c: Regenerated.
15105 * tests/unictype/test-categ_Lm.c: Regenerated.
15106 * tests/unictype/test-categ_Lo.c: Regenerated.
15107 * tests/unictype/test-categ_Lu.c: Regenerated.
15108 * tests/unictype/test-categ_M.c: Regenerated.
15109 * tests/unictype/test-categ_Mc.c: Regenerated.
15110 * tests/unictype/test-categ_Me.c: Regenerated.
15111 * tests/unictype/test-categ_Mn.c: Regenerated.
15112 * tests/unictype/test-categ_N.c: Regenerated.
15113 * tests/unictype/test-categ_Nd.c: Regenerated.
15114 * tests/unictype/test-categ_Nl.c: Regenerated.
15115 * tests/unictype/test-categ_No.c: Regenerated.
15116 * tests/unictype/test-categ_P.c: Regenerated.
15117 * tests/unictype/test-categ_Pd.c: Regenerated.
15118 * tests/unictype/test-categ_Pe.c: Regenerated.
15119 * tests/unictype/test-categ_Pf.c: Regenerated.
15120 * tests/unictype/test-categ_Pi.c: Regenerated.
15121 * tests/unictype/test-categ_Po.c: Regenerated.
15122 * tests/unictype/test-categ_Ps.c: Regenerated.
15123 * tests/unictype/test-categ_S.c: Regenerated.
15124 * tests/unictype/test-categ_Sk.c: Regenerated.
15125 * tests/unictype/test-categ_Sm.c: Regenerated.
15126 * tests/unictype/test-categ_So.c: Regenerated.
15127 * tests/unictype/test-ctype_alnum.c: Regenerated.
15128 * tests/unictype/test-ctype_alpha.c: Regenerated.
15129 * tests/unictype/test-ctype_graph.c: Regenerated.
15130 * tests/unictype/test-ctype_lower.c: Regenerated.
15131 * tests/unictype/test-ctype_print.c: Regenerated.
15132 * tests/unictype/test-ctype_punct.c: Regenerated.
15133 * tests/unictype/test-ctype_upper.c: Regenerated.
15134 * tests/unictype/test-decdigit.h: Regenerated.
15135 * tests/unictype/test-digit.h: Regenerated.
15136 * tests/unictype/test-numeric.h: Regenerated.
15137 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15138 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15139 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15140 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15141 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15142 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15143 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15144 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15145 * tests/unictype/test-pr_combining.c: Regenerated.
15146 * tests/unictype/test-pr_dash.c: Regenerated.
15147 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15148 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15149 * tests/unictype/test-pr_deprecated.c: Regenerated.
15150 * tests/unictype/test-pr_diacritic.c: Regenerated.
15151 * tests/unictype/test-pr_extender.c: Regenerated.
15152 * tests/unictype/test-pr_format_control.c: Regenerated.
15153 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15154 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15155 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15156 * tests/unictype/test-pr_id_continue.c: Regenerated.
15157 * tests/unictype/test-pr_id_start.c: Regenerated.
15158 * tests/unictype/test-pr_ideographic.c: Regenerated.
15159 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15160 * tests/unictype/test-pr_lowercase.c: Regenerated.
15161 * tests/unictype/test-pr_math.c: Regenerated.
15162 * tests/unictype/test-pr_numeric.c: Regenerated.
15163 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15164 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15166 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15167 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15168 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15169 * tests/unictype/test-pr_other_math.c: Regenerated.
15170 * tests/unictype/test-pr_punctuation.c: Regenerated.
15171 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15172 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15173 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15174 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15175 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15176 * tests/unictype/test-pr_uppercase.c: Regenerated.
15177 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15178 * tests/unictype/test-pr_xid_start.c: Regenerated.
15179 * tests/unictype/test-pr_zero_width.c: Regenerated.
15181 Update to Unicode 5.1.0.
15182 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15183 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15184 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15185 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15186 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15187 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15188 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15189 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15190 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15191 (nonspacing_table_ind): Update.
15192 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15194 Update to Unicode 5.1.0.
15195 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15197 * lib/uniname/uniname.c (unicode_character_name,
15198 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15199 * lib/uniname/uninames.h: Regenerated.
15200 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15202 2009-02-07 Bruno Haible <bruno@clisp.org>
15204 Merge gen-ctype and gen-lbrk into a single program.
15205 * lib/gen-uni-tables.c: New file, incorporating
15206 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15207 Add directory prefixes to the names of the generated files.
15208 * lib/unictype/gen-ctype.c: Remove file.
15209 * lib/unilbrk/gen-lbrk.c: Remove file.
15210 * modules/gen-uni-tables: New file.
15211 * modules/unictype/gen-ctype: Remove file.
15212 * modules/unilbrk/gen-lbrk: Remove file.
15214 2009-02-07 Bruno Haible <bruno@clisp.org>
15216 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15218 New module 'unistr/u32-strcoll'.
15219 * modules/unistr/u32-strcoll: New file.
15220 * lib/unistr/u32-strcoll.c: New file.
15222 New module 'unistr/u16-strcoll'.
15223 * modules/unistr/u16-strcoll: New file.
15224 * lib/unistr/u16-strcoll.c: New file.
15226 New module 'unistr/u8-strcoll'.
15227 * modules/unistr/u8-strcoll: New file.
15228 * lib/unistr/u8-strcoll.c: New file.
15229 * lib/unistr/u-strcoll.h: New file.
15231 2009-02-07 Bruno Haible <bruno@clisp.org>
15233 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15234 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15235 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15236 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15237 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15238 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15240 2009-02-07 Bruno Haible <bruno@clisp.org>
15243 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15244 output_combclass, output_bidi_category, output_decimal_digit,
15245 output_digit, output_numeric, output_mirror, output_scripts,
15246 output_ident_category): Use proper width specifier in format strings.
15248 2009-02-07 Bruno Haible <bruno@clisp.org>
15250 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15253 2009-02-07 Jim Meyering <meyering@redhat.com>
15255 regex: avoid compilation failure with upcoming gcc-4.4
15256 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15257 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15258 "... error: integer overflow in preprocessor expression".
15260 2009-02-05 Ben Pfaff <blp@gnu.org>
15262 Fix link errors on Windows when close module is used.
15263 * modules/close: Add $(LIB_CLOSE) to Link section.
15264 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15265 $(LIB_CLOSE) on Windows.
15267 2009-02-05 Jim Meyering <meyering@redhat.com>
15269 still avoid unused-parameter warnings, but do it cleanly
15270 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15271 (get_fs_usage): Cast to void instead.
15272 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15273 (dev_from_mount_options, read_file_system_list): Cast to void.
15274 Prompted by Bruno Haible.
15276 2009-02-04 Jim Meyering <meyering@redhat.com>
15278 fsusage.c: correct copyright year
15279 * lib/fsusage.c: Reflect year in which the change is pushed into
15281 avoid misc. warnings
15282 * lib/fsusage.c (UNUSED_PARAM): Define.
15283 (get_fs_usage): Mark parameter "disk" as unused.
15284 * lib/getugroups.c (getgrent): Use "void" in prototype.
15285 * lib/mountlist.c: Mark unused parameters.
15286 (read_file_system_list): Declare a local with "const".
15287 * lib/nanosleep.c (getnow): Declare static.
15288 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15290 dirfd: set errno upon failure
15291 * lib/dirfd.c: Include <errno.h>.
15292 Set errno to ENOTSUP when returning -1.
15293 * modules/dirfd (Depends-on): Add errno.
15294 Suggested by John Kodis <kodis@comcast.net>.
15296 2009-02-01 Bruno Haible <bruno@clisp.org>
15298 Don't assume sizeof (long) >= sizeof (void *).
15299 * lib/memcmp.c: Include stdint.h.
15300 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15301 srcp2 to 'const byte *'.
15302 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15303 types to uintptr_t.
15304 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15305 * modules/memcmp (Depends-on): Add stdint.
15306 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15308 2009-01-30 Eric Blake <ebb9@byu.net>
15310 fix more require-before-expand issues
15311 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15312 expand, AC_PROG_AWK.
15313 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15315 2009-01-28 Eric Blake <ebb9@byu.net>
15317 version-etc: use consistent URL formatting
15318 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15319 Improve formatting. Use fputs for string without %.
15321 2009-01-28 Jim Meyering <meyering@redhat.com>
15323 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15324 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15325 "underquoted definition of NAME" from autoconf-2.59.
15327 2009-01-28 Bruno Haible <bruno@clisp.org>
15329 * doc/gnulib.texi: Add "Obsolete modules" to index.
15331 2009-01-28 Jim Meyering <meyering@redhat.com>
15333 useless-if-before-free: recognize more variants
15334 * build-aux/useless-if-before-free: Also recognize e.g.,
15335 if (NULL != p) free (p);
15337 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15339 test-getaddrinfo: skip (don't fail) this test when there's no network
15340 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15341 on the presumption that it means you lack network access.
15343 2009-01-26 Jim Meyering <meyering@redhat.com>
15345 fflush: avoid warnings on modern systems
15346 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15347 pos and result, into scopes where they're used.
15349 2009-01-26 Eric Blake <ebb9@byu.net>
15351 Silence warning reintroduced by recent extensions patch.
15352 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15353 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15356 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15357 * m4/00gnulib.m4: New file.
15358 * gnulib-tool (func_get_filelist): Always use it.
15359 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15360 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15362 2009-01-25 Bruno Haible <bruno@clisp.org>
15364 Make test-quotearg work on MacOS X and AIX.
15365 * tests/test-quotearg.sh: New file.
15366 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15367 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15368 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15369 include <libintl.h>.
15370 (fake_locale): Remove variable.
15371 (gettext, dgettext, dcgettext): Remove functions.
15372 (main): Instead of setting a fake locale, set a real locale. Call
15373 textdomain and bindtextdomain.
15374 * modules/quotearg-tests (Files): Add the new files.
15375 (Depends-on): Add gettext, setenv, unsetenv.
15376 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15377 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15378 Augment TESTS_ENVIRONMENT.
15380 2009-01-25 Bruno Haible <bruno@clisp.org>
15382 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15383 fr_FR.ISO8859-1 locale on MacOS X.
15384 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15385 ja_JP.eucJP locale on MacOS X.
15386 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15387 zh_CN.GB18030 locale on MacOS X.
15389 2009-01-25 Bruno Haible <bruno@clisp.org>
15391 Avoid link errors on MacOS X 10.3.
15392 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15393 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15395 2009-01-25 Bruno Haible <bruno@clisp.org>
15397 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15398 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15399 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15400 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15401 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15402 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15403 posix_spawnattr_init, posix_spawnattr_setsigmask,
15404 posix_spawnattr_setflags, posix_spawnattr_destroy.
15406 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15407 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15408 * modules/execute (Files): Remove m4/posix_spawn.m4.
15409 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15410 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15411 posix_spawnattr_init, posix_spawnattr_setsigmask,
15412 posix_spawnattr_setflags, posix_spawnattr_destroy.
15414 2009-01-25 Bruno Haible <bruno@clisp.org>
15416 * lib/glthread/threadlib.c: Include <stdlib.h>.
15418 2009-01-25 Bruno Haible <bruno@clisp.org>
15420 * lib/glthread/threadlib.c (dummy): New declaration.
15422 2009-01-25 Bruno Haible <bruno@clisp.org>
15424 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15425 multibyte characters also for the GB18030 encoding. Don't crash when
15426 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15428 2009-01-25 Bruno Haible <bruno@clisp.org>
15430 Avoid redefining 'struct random_data' on OSF/1 5.1.
15431 * lib/stdlib.in.h: Include <random.h> if it exists.
15432 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15433 HAVE_RANDOM_H. Include <random.h> when testing whether
15434 'struct random_data' exists.
15435 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15437 2009-01-25 Bruno Haible <bruno@clisp.org>
15439 Don't install charset.alias on MacOS X >= 10.3.
15440 * lib/localcharset.c (DARWIN7): New macro.
15441 (get_charset_aliases): Hardcode the result for Darwin7.
15442 * modules/localcharset (install-exec-local): Don't install
15443 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15445 2009-01-25 Bruno Haible <bruno@clisp.org>
15447 Don't install charset.alias on mingw and Cygwin.
15448 * modules/localcharset (install-exec-local): Don't install
15449 charset.alias on mingw and Cygwin, if the file does not yet exist.
15450 The result for these platforms is hardcoded in localcharset.c.
15452 2009-01-25 Bruno Haible <bruno@clisp.org>
15454 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15455 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15456 before requiring AC_USE_SYSTEM_EXTENSIONS.
15458 2009-01-25 Jim Meyering <meyering@redhat.com>
15460 c-strtod: avoid warnings
15461 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15462 "assignment discards qualifiers from pointer target type" warnings.
15464 2009-01-24 Bruno Haible <bruno@clisp.org>
15466 Add support for non-UTF-8 locales on MacOS X.
15467 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15468 canonical encodings. For Darwin 7 and newer, don't map traditional
15469 encodings to UTF-8.
15470 Reported by Vincent Lefevre <vincent@vinc17.org>
15471 at <http://savannah.gnu.org/bugs/?25235>.
15473 2009-01-24 Bruno Haible <bruno@clisp.org>
15475 * doc/gnulib.texi (Obsolete modules): New section.
15476 Reported by Mike Frysinger <vapier@gentoo.org>.
15478 2009-01-24 Bruno Haible <bruno@clisp.org>
15480 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15483 2009-01-24 Bruno Haible <bruno@clisp.org>
15485 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15486 Reported by Eric Blake.
15488 2009-01-24 Bruno Haible <bruno@clisp.org>
15490 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15491 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15492 Reported by Gary V. Vaughan <gary@gnu.org>.
15494 2009-01-24 Bruno Haible <bruno@clisp.org>
15496 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15498 2009-01-23 Bruno Haible <bruno@clisp.org>
15500 Make c-strtod, c-strtold usable in libraries.
15501 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15502 (C_STRTOD): Call strdup instead of xstrdup.
15503 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15504 * modules/c-strtold (Depends-on): Likewise.
15505 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15506 * NEWS: Mention the change.
15507 Reported by Michael Gold <mgold@ncf.ca>.
15509 2009-01-23 Jim Meyering <meyering@redhat.com>
15511 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15512 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15513 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15515 2009-01-23 Simon Josefsson <simon@josefsson.org>
15517 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15519 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15520 * modules/version-etc (Description): Update.
15522 2009-01-22 Bruno Haible <bruno@clisp.org>
15524 Cache the C locale object.
15525 * lib/c-strtod.c (c_locale_cache): New variable.
15526 (c_locale): New function.
15527 (C_STRTOD): Use it, and don't call freelocale.
15528 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15529 Suggested by Paolo Bonzini.
15531 2009-01-21 Bruno Haible <bruno@clisp.org>
15533 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15534 conditions other than overflow.
15536 2009-01-21 Bruno Haible <bruno@clisp.org>
15538 * lib/c-strtod.c: Include errno.h.
15539 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15540 value from STRTOD_L and STRTOD.
15542 2009-01-21 Bruno Haible <bruno@clisp.org>
15543 and Jim Meyering <meyering@redhat.com>
15545 nanosleep: skip configure test (fail it) for apple universal builds
15546 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15547 universal builds, assume that nanosleep does not work.
15548 * modules/nanosleep (Depends-on): Add multiarch.
15550 mktime: skip configure test (fail it) for apple universal builds
15551 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15552 universal builds, assume that mktime does not work.
15553 * modules/mktime (Depends-on): Add multiarch.
15555 2009-01-21 Eric Blake <ebb9@byu.net>
15557 multiarch: avoid expand-before-require warning
15558 * modules/multiarch (configure.ac): Require, rather than expand,
15560 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15561 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15562 enforce that all clients require it. Partial reversion of
15565 error: avoid expand-before-require warning
15566 * modules/errno (configure.ac): Require, rather than expand,
15568 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15569 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15570 enforce that all clients require it.
15572 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15573 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15574 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15575 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15577 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15580 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15582 regex: do not depend on obsolete modules.
15583 * modules/regex: Remove memcmp and memmove.
15585 2009-01-20 Bruno Haible <bruno@clisp.org>
15587 Make the 'link' module link on Windows NT 4.
15588 * lib/link.c (_WIN32_WINNT): Don't define.
15589 (CreateHardLinkFuncType): New type.
15590 (CreateHardLinkFunc, initialized): New variables.
15591 (initialize): New function.
15592 (link): Invoke CreateHardLink indirectly through the function pointer.
15594 2009-01-20 Bruno Haible <bruno@clisp.org>
15596 Fix compilation failure on mingw.
15597 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15599 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15601 * doc/c-strtod.texi: Mention a couple of restrictions.
15603 2009-01-20 Jim Meyering <meyering@redhat.com>
15605 gettimeofday: move more declarations out of functions
15606 * lib/gettimeofday.c: Move extern declarations of tzset and
15607 gmtime out of containing functions. Prompted by Bruno Haible.
15609 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15611 regex: do not depend on obsolete modules.
15612 * modules/regex: Remove memcmp and memmove.
15614 2009-01-19 Bruno Haible <bruno@clisp.org>
15616 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15617 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15618 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15619 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15620 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15622 2009-01-19 Bruno Haible <bruno@clisp.org>
15624 * tests/test-link.c: Include <errno.h>.
15625 (main): Exit with code 77 when a hard link cannot be created due to
15627 * tests/test-link.sh: Skip test when a hard link cannot be created due
15628 to the file system.
15629 Suggested by Eric Blake.
15631 2009-01-19 Martin Lambers <marlam@marlam.de>
15633 * modules/link-tests: New file.
15634 * tests/test-link.sh: New file.
15635 * tests/test-link.c: New file.
15637 2009-01-19 Eric Blake <ebb9@byu.net>
15639 doc: mention another function added in cygwin 1.7.0
15640 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15641 Another new function in cygwin 1.7.
15643 2009-01-19 Bruno Haible <bruno@clisp.org>
15645 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15646 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15647 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15648 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15649 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15650 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15651 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15652 * m4/md4.m4 (gl_MD4): Likewise.
15653 * m4/md5.m4 (gl_MD5): Likewise.
15654 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15655 * m4/sha1.m4 (gl_SHA1): Likewise.
15656 * m4/sha256.m4 (gl_SHA256): Likewise.
15657 * m4/sha512.m4 (gl_SHA512): Likewise.
15659 2009-01-19 Bruno Haible <bruno@clisp.org>
15661 * modules/uniname/uniname-tests (Depends-on): Add progname.
15662 * tests/uniname/test-uninames.c: Include progname.h.
15663 (main): Call set_program_name.
15665 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15666 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15667 (main): Call set_program_name.
15669 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15670 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15671 (main): Call set_program_name.
15673 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15674 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15675 (main): Call set_program_name.
15677 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15678 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15679 (main): Call set_program_name.
15681 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15682 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15683 (main): Call set_program_name.
15685 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15686 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15687 (main): Call set_program_name.
15689 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15690 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15691 (main): Call set_program_name.
15693 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15694 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15695 (main): Call set_program_name.
15697 2009-01-19 Eric Blake <ebb9@byu.net>
15699 test-unistd: test previous patch
15700 * tests/test-unistd.c: Test *_FILENO macros.
15702 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15703 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15704 Guarantee a definition.
15705 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15706 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15707 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15708 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15709 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15711 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15712 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15713 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15715 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15716 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15717 (STDERR_FILENO): Likewise.
15718 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15719 (STDERR_FILENO): Likewise.
15720 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15721 (STDERR_FILENO): Likewise.
15722 Reported by Elbert Pol.
15724 2009-01-19 Eric Blake <ebb9@byu.net>
15726 doc: mention more functions added in cygwin 1.7.0
15727 * doc/posix-functions/abort.texi (abort): Update wording related
15729 * doc/posix-functions/daylight.texi (daylight): Likewise.
15730 * doc/posix-functions/optarg.texi (optarg): Likewise.
15731 * doc/posix-functions/optarg.texi (opterr): Likewise.
15732 * doc/posix-functions/optarg.texi (optind): Likewise.
15733 * doc/posix-functions/optarg.texi (optopt): Likewise.
15734 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15735 worked in 1.5.x, and was withdrawn in 1.7.
15736 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15737 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15739 * doc/posix-functions/perror.texi (perror): Likewise.
15740 * doc/posix-functions/printf.texi (printf): Likewise.
15741 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15742 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15743 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15744 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15745 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15746 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15747 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15749 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15751 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15753 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15754 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15756 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15757 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15758 * doc/posix-functions/confstr.texi (confstr): Likewise.
15759 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15760 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15761 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15762 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15763 * doc/posix-functions/fputws.texi (fputws): Likewise.
15764 * doc/posix-functions/fwide.texi (fwide): Likewise.
15765 * doc/posix-functions/getwc.texi (getwc): Likewise.
15766 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15767 * doc/posix-functions/putwc.texi (putwc): Likewise.
15768 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15769 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15770 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15771 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15772 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15773 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15774 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15775 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15776 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15777 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15778 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15780 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15782 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15783 * lib/ioctl.c: Include <sys/ioctl.h>.
15785 2009-01-19 Simon Josefsson <simon@josefsson.org>
15787 * modules/getdate-tests (Depends-on): Add progname.
15788 * tests/test-getdate.c: Use progname module, to avoid link errors
15789 on non-glibc systems.
15791 2009-01-18 Simon Josefsson <simon@josefsson.org>
15793 * modules/filenamecat-tests (Depends-on): Add progname.
15794 * modules/fstrcmp-tests (Depends-on): Likewise.
15796 * tests/test-filenamecat.c: Use progname module, to avoid link
15797 errors on non-glibc systems.
15798 * tests/test-fstrcmp.c: Likewise.
15800 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15802 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15803 * lib/gettimeofday.c: Move extern declaration out of function.
15805 2009-01-18 Bruno Haible <bruno@clisp.org>
15807 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15808 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15809 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15811 2009-01-18 Bruno Haible <bruno@clisp.org>
15813 * lib/strftime.c (MEMPCPY): Remove unused macro.
15814 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15816 2009-01-18 Martin Lambers <marlam@marlam.de>
15819 * lib/unistd.in.h (link): New declaration.
15820 * lib/link.c: New file.
15821 * m4/link.m4: New file.
15822 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15824 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15825 * modules/link: New file.
15826 * doc/posix-functions/link.texi: Mention the new module.
15828 2009-01-18 Bruno Haible <bruno@clisp.org>
15830 * tests/test-avltree_list.c (main): Call set_program_name.
15831 * tests/test-avltree_oset.c (main): Likewise.
15832 * tests/test-obstack-printf.c: Include progname.h.
15833 (main): Call set_program_name.
15834 * tests/test-quotearg.c: Include progname.h.
15835 (main): Call set_program_name.
15836 * tests/test-xmemdup0.c: Include progname.h.
15837 (main): Call set_program_name.
15839 2009-01-18 Bruno Haible <bruno@clisp.org>
15841 New module 'alphasort'.
15842 * lib/dirent.in.h (alphasort): New declaration.
15843 * lib/alphasort.c: New file, from glibc with modifications.
15844 * m4/alphasort.m4: New file.
15845 * modules/alphasort: New file.
15846 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15848 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15850 * doc/posix-functions/alphasort.texi: Mention the new module and the
15851 portability problems.
15853 2009-01-18 Bruno Haible <bruno@clisp.org>
15855 New module 'scandir'.
15856 * lib/dirent.in.h (scandir): New declaration.
15857 * lib/scandir.c: New file, from glibc with modifications.
15858 * m4/scandir.m4: New file.
15859 * modules/scandir: New file.
15860 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15862 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15864 * doc/posix-functions/scandir.texi: Mention the new module and the
15865 portability problems.
15867 2009-01-17 Bruno Haible <bruno@clisp.org>
15869 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15870 Update documentation.
15871 (func_remove_suffix): Escape all dots in the suffix. Update
15873 (func_filter_filelist): Update documentation.
15874 Reported by Ralf Wildenhues.
15876 2009-01-17 Bruno Haible <bruno@clisp.org>
15878 * modules/dprintf-posix-tests: New file.
15879 * tests/test-dprintf-posix.sh: New file.
15880 * tests/test-dprintf-posix.c: New file.
15882 New modules 'dprintf', 'dprintf-posix'.
15883 * lib/stdio.in.h (dprintf): New declaration.
15884 * lib/dprintf.c: New file.
15885 * m4/dprintf.m4: New file.
15886 * m4/dprintf-posix.m4: New file.
15887 * modules/dprintf: New file.
15888 * modules/dprintf-posix: New file.
15889 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15890 HAVE_DPRINTF, REPLACE_DPRINTF.
15891 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15892 HAVE_DPRINTF, REPLACE_DPRINTF.
15893 * doc/posix-functions/dprintf.texi: Mention the new modules.
15895 2009-01-17 Bruno Haible <bruno@clisp.org>
15897 * modules/vdprintf-posix-tests: New file.
15898 * tests/test-vdprintf-posix.sh: New file.
15899 * tests/test-vdprintf-posix.c: New file.
15901 New modules 'vdprintf', 'vdprintf-posix'.
15902 * lib/stdio.in.h (vdprintf): New declaration.
15903 * lib/vdprintf.c: New file.
15904 * m4/vdprintf.m4: New file.
15905 * m4/vdprintf-posix.m4: New file.
15906 * modules/vdprintf: New file.
15907 * modules/vdprintf-posix: New file.
15908 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15909 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15910 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15911 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15912 * doc/posix-functions/vdprintf.texi: Mention the new modules.
15914 2009-01-17 Bruno Haible <bruno@clisp.org>
15916 Fix replacement of fopen on mingw.
15917 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15920 2009-01-17 Bruno Haible <bruno@clisp.org>
15922 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15923 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15925 2009-01-17 Bruno Haible <bruno@clisp.org>
15927 Avoid test-fflush2.sh failure on mingw.
15928 * tests/test-fflush2.c: Include binary-io.h.
15929 (main): Put standard input into binary mode.
15930 * modules/fflush-tests (Depends-on): Add binary-io.
15932 2009-01-17 Bruno Haible <bruno@clisp.org>
15934 * lib/wchar.in.h: In another particular situation, include only the
15935 system's <wchar.h> file.
15936 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15937 Reported by Albert Chin-A-Young <china@thewrittenword.com>
15938 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15940 2009-01-17 Bruno Haible <bruno@clisp.org>
15942 Support for stripping executables in --enable-relocatable.
15943 * build-aux/install-reloc: Expect one more argument, or an environment
15944 variable RELOC_STRIP_PROG. If set, strip the destination program and
15946 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15948 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15949 to set RELOCATABLE_STRIP.
15950 * NEWS: Mention the new Makefile requirement.
15952 2009-01-17 Bruno Haible <bruno@clisp.org>
15954 * build-aux/install-reloc: Remove debugging information left over by
15955 C compiler on MacOS X.
15957 2009-01-17 Bruno Haible <bruno@clisp.org>
15959 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15960 * lib/progreloc.c (find_executable): Fix type of pointer passed to
15961 _NSGetExecutablePath.
15963 2009-01-16 Jim Meyering <meyering@redhat.com>
15965 strerror: avoid warnings about discarding "const"
15966 * lib/strerror.c (rpl_strerror): Instead of returning a const
15967 string from each and every "case", use a variable, and add a single
15968 cast after the switch.
15970 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
15972 * lib/arpa_inet.in.h: Add extern "C" block for C++.
15974 2009-01-16 Bruno Haible <bruno@clisp.org>
15976 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15977 array initializer syntax that also works in C++ mode.
15978 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15980 2009-01-16 Jim Meyering <meyering@redhat.com>
15982 poll: suppress a warning
15983 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15984 to ignore "...unsigned expression < 0 is always false" warnings.
15986 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
15988 poll: remove declarations of unused variables
15989 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15990 sockbuf and optlen.
15992 2009-01-15 Bruno Haible <bruno@clisp.org>
15994 Make fflush-after-ungetc POSIX compliant on BSD systems.
15995 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15996 (clear_ungetc_buffer): Implement also for other systems.
15997 (rpl_fflush): On glibc systems, invoke
15998 clear_ungetc_buffer_preserving_position. Otherwise, invoke
15999 clear_ungetc_buffer after fetching the stream's position, not before.
16001 2009-01-15 Bruno Haible <bruno@clisp.org>
16003 Make fflush-after-ungetc POSIX compliant on glibc systems.
16004 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16006 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16007 (rpl_fflush): On glibc systems, simply call the system's fflush
16008 function after clearing the ungetc buffer.
16009 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16010 Instead, lseek only to the end of file, then use the system's fseeko
16011 for the rest. On glibc systems, reset the EOF indicator bit.
16013 2009-01-15 Jim Meyering <meyering@redhat.com>
16015 openmp.m4: revert quote-adding change, for portability to older autoconf
16016 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16017 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16018 Simon Josefsson noticed the problem when using autoconf-2.61.
16020 2009-01-15 Bruno Haible <bruno@clisp.org>
16022 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16023 * tests/test-fflush2.c (ASSERT): Always fail.
16024 (main): Add two tests for fflush() after ungetc(), taking into account
16025 the Austin Group's clarification.
16026 Suggested by Eric Blake.
16028 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16030 mktime.m4: remove K&R-style function prototypes
16031 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16032 for the Sun C++ compiler.
16034 2009-01-14 Bruno Haible <bruno@clisp.org>
16036 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16037 while including <wchar.h>.
16038 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16039 the system's <wchar.h> file.
16040 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16042 2009-01-14 Bruno Haible <bruno@clisp.org>
16044 * m4/csharp.m4: Don't mention gettext on the serial number line.
16045 * m4/csharpexec.m4: Likewise.
16046 * m4/eaccess.m4: Likewise.
16047 * m4/javaexec.m4: Likewise.
16048 * m4/sig_atomic_t.m4: Likewise.
16049 * m4/tmpdir.m4: Likewise.
16050 * m4/intldir.m4: Bump gettext version.
16051 * m4/lib-ld.m4: Likewise.
16053 2009-01-14 Bruno Haible <bruno@clisp.org>
16055 * lib/progname.c (set_program_name): Add more comments.
16056 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16058 2009-01-14 Simon Josefsson <simon@josefsson.org>
16060 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16061 were sys/stat.h does not define it.
16063 2009-01-14 Jim Meyering <meyering@redhat.com>
16065 many *.m4 files: improve m4 quoting
16066 99% of this change was performed by running the following commands:
16067 git ls-files | grep '\.m4$' | xargs perl -pi \
16068 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16069 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16070 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16071 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16072 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16073 The remainder were to add Copyright dates, increment serial numbers,
16074 undo some changes in comments, exclude m4/intl.m4, and add quotes
16075 around the "1" in ",1" where the unusual spacing prohibited the
16076 above regexps from doing the job. For more details, see
16077 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16078 * m4/acl.m4: Modified.
16079 * m4/afs.m4: Likewise.
16080 * m4/alloca.m4: Likewise.
16081 * m4/argp.m4: Likewise.
16082 * m4/argz.m4: Likewise.
16083 * m4/atexit.m4: Likewise.
16084 * m4/bison-i18n.m4: Likewise.
16085 * m4/bison.m4: Likewise.
16086 * m4/byteswap.m4: Likewise.
16087 * m4/c-stack.m4: Likewise.
16088 * m4/c-strtod.m4: Likewise.
16089 * m4/calloc.m4: Likewise.
16090 * m4/canonicalize-lgpl.m4: Likewise.
16091 * m4/chown.m4: Likewise.
16092 * m4/clock_time.m4: Likewise.
16093 * m4/codeset.m4: Likewise.
16094 * m4/copy-file.m4: Likewise.
16095 * m4/csharp.m4: Likewise.
16096 * m4/csharpcomp.m4: Likewise.
16097 * m4/csharpexec.m4: Likewise.
16098 * m4/d-ino.m4: Likewise.
16099 * m4/d-type.m4: Likewise.
16100 * m4/dirfd.m4: Likewise.
16101 * m4/double-slash-root.m4: Likewise.
16102 * m4/eaccess.m4: Likewise.
16103 * m4/eealloc.m4: Likewise.
16104 * m4/environ.m4: Likewise.
16105 * m4/errno_h.m4: Likewise.
16106 * m4/euidaccess.m4: Likewise.
16107 * m4/execute.m4: Likewise.
16108 * m4/fatal-signal.m4: Likewise.
16109 * m4/fchdir.m4: Likewise.
16110 * m4/fcntl_h.m4: Likewise.
16111 * m4/fileblocks.m4: Likewise.
16112 * m4/filenamecat.m4: Likewise.
16113 * m4/findprog.m4: Likewise.
16114 * m4/flexmember.m4: Likewise.
16115 * m4/fnmatch.m4: Likewise.
16116 * m4/fopen.m4: Likewise.
16117 * m4/fpending.m4: Likewise.
16118 * m4/fprintf-posix.m4: Likewise.
16119 * m4/free.m4: Likewise.
16120 * m4/frexp.m4: Likewise.
16121 * m4/frexpl.m4: Likewise.
16122 * m4/fsusage.m4: Likewise.
16123 * m4/ftruncate.m4: Likewise.
16124 * m4/gc-camellia.m4: Likewise.
16125 * m4/gc-random.m4: Likewise.
16126 * m4/gc.m4: Likewise.
16127 * m4/getaddrinfo.m4: Likewise.
16128 * m4/getcwd-abort-bug.m4: Likewise.
16129 * m4/getcwd-path-max.m4: Likewise.
16130 * m4/getdate.m4: Likewise.
16131 * m4/getdomainname.m4: Likewise.
16132 * m4/getgroups.m4: Likewise.
16133 * m4/gethostname.m4: Likewise.
16134 * m4/gethrxtime.m4: Likewise.
16135 * m4/getline.m4: Likewise.
16136 * m4/getloadavg.m4: Likewise.
16137 * m4/getndelim2.m4: Likewise.
16138 * m4/getpass.m4: Likewise.
16139 * m4/gettext.m4: Likewise.
16140 * m4/gettime.m4: Likewise.
16141 * m4/gettimeofday.m4: Likewise.
16142 * m4/gnulib-common.m4: Likewise.
16143 * m4/group-member.m4: Likewise.
16144 * m4/host-os.m4: Likewise.
16145 * m4/iconv.m4: Likewise.
16146 * m4/iconv_open.m4: Likewise.
16147 * m4/inet_ntop.m4: Likewise.
16148 * m4/inet_pton.m4: Likewise.
16149 * m4/inline.m4: Likewise.
16150 * m4/intldir.m4: Likewise.
16151 * m4/intlmacosx.m4: Likewise.
16152 * m4/intmax.m4: Likewise.
16153 * m4/intmax_t.m4: Likewise.
16154 * m4/inttypes.m4: Likewise.
16155 * m4/inttypes_h.m4: Likewise.
16156 * m4/inttypes-pri.m4: Likewise.
16157 * m4/isapipe.m4: Likewise.
16158 * m4/isnand.m4: Likewise.
16159 * m4/isnanf.m4: Likewise.
16160 * m4/isnanl.m4: Likewise.
16161 * m4/javacomp.m4: Likewise.
16162 * m4/javaexec.m4: Likewise.
16163 * m4/jm-winsz1.m4: Likewise.
16164 * m4/jm-winsz2.m4: Likewise.
16165 * m4/lchown.m4: Likewise.
16166 * m4/lcmessage.m4: Likewise.
16167 * m4/ldexpl.m4: Likewise.
16168 * m4/lib-ld.m4: Likewise.
16169 * m4/lib-link.m4: Likewise.
16170 * m4/libsigsegv.m4: Likewise.
16171 * m4/link-follow.m4: Likewise.
16172 * m4/localcharset.m4: Likewise.
16173 * m4/locale-fr.m4: Likewise.
16174 * m4/locale-ja.m4: Likewise.
16175 * m4/locale-tr.m4: Likewise.
16176 * m4/locale-zh.m4: Likewise.
16177 * m4/lock.m4: Likewise.
16178 * m4/longlong.m4: Likewise.
16179 * m4/ls-mntd-fs.m4: Likewise.
16180 * m4/lstat.m4: Likewise.
16181 * m4/malloc.m4: Likewise.
16182 * m4/mathl.m4: Likewise.
16183 * m4/mbrtowc.m4: Likewise.
16184 * m4/mbstate_t.m4: Likewise.
16185 * m4/mbswidth.m4: Likewise.
16186 * m4/memchr.m4: Likewise.
16187 * m4/memcmp.m4: Likewise.
16188 * m4/memcpy.m4: Likewise.
16189 * m4/memmem.m4: Likewise.
16190 * m4/memmove.m4: Likewise.
16191 * m4/mempcpy.m4: Likewise.
16192 * m4/memrchr.m4: Likewise.
16193 * m4/memset.m4: Likewise.
16194 * m4/minmax.m4: Likewise.
16195 * m4/mkdir-slash.m4: Likewise.
16196 * m4/mkdtemp.m4: Likewise.
16197 * m4/mktime.m4: Likewise.
16198 * m4/mmap-anon.m4: Likewise.
16199 * m4/mountlist.m4: Likewise.
16200 * m4/nanosleep.m4: Likewise.
16201 * m4/nls.m4: Likewise.
16202 * m4/nocrash.m4: Likewise.
16203 * m4/open.m4: Likewise.
16204 * m4/openat.m4: Likewise.
16205 * m4/openmp.m4: Likewise.
16206 * m4/pathmax.m4: Likewise.
16207 * m4/perl.m4: Likewise.
16208 * m4/physmem.m4: Likewise.
16209 * m4/pipe.m4: Likewise.
16210 * m4/po.m4: Likewise.
16211 * m4/poll.m4: Likewise.
16212 * m4/posixtm.m4: Likewise.
16213 * m4/posixver.m4: Likewise.
16214 * m4/printf-frexp.m4: Likewise.
16215 * m4/printf-frexpl.m4: Likewise.
16216 * m4/printf-posix.m4: Likewise.
16217 * m4/printf-posix-rpl.m4: Likewise.
16218 * m4/printf.m4: Likewise.
16219 * m4/progtest.m4: Likewise.
16220 * m4/putenv.m4: Likewise.
16221 * m4/readline.m4: Likewise.
16222 * m4/readlink.m4: Likewise.
16223 * m4/readutmp.m4: Likewise.
16224 * m4/realloc.m4: Likewise.
16225 * m4/regex.m4: Likewise.
16226 * m4/relocatable.m4: Likewise.
16227 * m4/relocatable-lib.m4: Likewise.
16228 * m4/rename-dest-slash.m4: Likewise.
16229 * m4/rename.m4: Likewise.
16230 * m4/rmdir-errno.m4: Likewise.
16231 * m4/rmdir.m4: Likewise.
16232 * m4/roundf.m4: Likewise.
16233 * m4/roundl.m4: Likewise.
16234 * m4/rpmatch.m4: Likewise.
16235 * m4/save-cwd.m4: Likewise.
16236 * m4/selinux-selinux-h.m4: Likewise.
16237 * m4/setenv.m4: Likewise.
16238 * m4/settime.m4: Likewise.
16239 * m4/sig2str.m4: Likewise.
16240 * m4/sig_atomic_t.m4: Likewise.
16241 * m4/signalblocking.m4: Likewise.
16242 * m4/signbit.m4: Likewise.
16243 * m4/sigpipe.m4: Likewise.
16244 * m4/sockets.m4: Likewise.
16245 * m4/sockpfaf.m4: Likewise.
16246 * m4/st_dm_mode.m4: Likewise.
16247 * m4/stat-time.m4: Likewise.
16248 * m4/stdbool.m4: Likewise.
16249 * m4/stdint.m4: Likewise.
16250 * m4/stdint_h.m4: Likewise.
16251 * m4/stpcpy.m4: Likewise.
16252 * m4/stpncpy.m4: Likewise.
16253 * m4/strcase.m4: Likewise.
16254 * m4/strchrnul.m4: Likewise.
16255 * m4/strcspn.m4: Likewise.
16256 * m4/strdup.m4: Likewise.
16257 * m4/strftime.m4: Likewise.
16258 * m4/strndup.m4: Likewise.
16259 * m4/strnlen.m4: Likewise.
16260 * m4/strpbrk.m4: Likewise.
16261 * m4/strptime.m4: Likewise.
16262 * m4/strsep.m4: Likewise.
16263 * m4/strtod.m4: Likewise.
16264 * m4/strtoimax.m4: Likewise.
16265 * m4/strtok_r.m4: Likewise.
16266 * m4/strtol.m4: Likewise.
16267 * m4/strtoll.m4: Likewise.
16268 * m4/strtoul.m4: Likewise.
16269 * m4/strtoull.m4: Likewise.
16270 * m4/strtoumax.m4: Likewise.
16271 * m4/strverscmp.m4: Likewise.
16272 * m4/threadlib.m4: Likewise.
16273 * m4/timegm.m4: Likewise.
16274 * m4/tm_gmtoff.m4: Likewise.
16275 * m4/tmpdir.m4: Likewise.
16276 * m4/tmpfile.m4: Likewise.
16277 * m4/tzset.m4: Likewise.
16278 * m4/uintmax_t.m4: Likewise.
16279 * m4/unlinkdir.m4: Likewise.
16280 * m4/unlocked-io.m4: Likewise.
16281 * m4/uptime.m4: Likewise.
16282 * m4/userspec.m4: Likewise.
16283 * m4/utimbuf.m4: Likewise.
16284 * m4/utime.m4: Likewise.
16285 * m4/utimes-null.m4: Likewise.
16286 * m4/utimes.m4: Likewise.
16287 * m4/vararrays.m4: Likewise.
16288 * m4/vasnprintf.m4: Likewise.
16289 * m4/vfprintf-posix.m4: Likewise.
16290 * m4/vprintf-posix.m4: Likewise.
16291 * m4/wait-process.m4: Likewise.
16292 * m4/wchar_t.m4: Likewise.
16293 * m4/wint_t.m4: Likewise.
16294 * m4/write-any-file.m4: Likewise.
16295 * m4/yield.m4: Likewise.
16297 2009-01-13 Bruno Haible <bruno@clisp.org>
16299 Avoid test-copy-file.sh failures when ACL support insufficient.
16300 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16302 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16303 Reported by Jim Meyering.
16305 2009-01-13 Bruno Haible <bruno@clisp.org>
16307 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16308 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16309 * modules/unistdio/u8-printf-parse (Files): Likewise.
16310 * modules/unistdio/u32-printf-parse (Files): Likewise.
16311 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16313 2009-01-13 Simon Josefsson <simon@josefsson.org>
16315 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16316 and m4/inttypes_h.m4 too.
16318 2009-01-12 Eric Blake <ebb9@byu.net>
16320 tests: IRIX 6.2 cc can't compile -0.0 into .data
16321 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16322 rather than at compile-time.
16323 * tests/test-floorl.c (minus_zero): Likewise.
16324 * tests/test-frexpl.c (minus_zero): Likewise.
16325 * tests/test-isnan.c (minus_zerol): Likewise.
16326 * tests/test-isnanl.h (minus_zero): Likewise.
16327 * tests/test-ldexpl.c (minus_zero): Likewise.
16328 * tests/test-roundl.c (minus_zero): Likewise.
16329 * tests/test-signbit.c (minus_zerol): Likewise.
16330 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16331 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16332 * tests/test-truncl.c (minus_zero): Likewise.
16333 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16334 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16335 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16337 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16339 regex: fix glibc bug 9697
16340 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16343 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16345 regex: fix glibc bug 697
16346 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16347 being NULL also if there are no backreferences.
16349 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16351 regex: merge glibc changes
16352 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16353 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16354 re_string_skip_chars, re_string_reconstruct): Likewise.
16355 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16357 2009-01-07 Jim Meyering <meyering@redhat.com>
16359 poll: filter through cppi
16360 * lib/poll.c: Indent cpp directives to reflect nesting.
16362 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16364 poll: don't return uninitialized
16365 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16367 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16369 avoid compile failure on AIX 6.1
16370 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16371 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16373 2009-01-04 Jim Meyering <meyering@redhat.com>
16375 remove duplicate inclusion of <stdio.h>
16376 * tests/test-fprintf-posix.c: Likewise.
16377 * tests/test-printf-posix.c: Likewise.
16378 * tests/test-snprintf-posix.c: Likewise.
16379 * tests/test-sprintf-posix.c: Likewise.
16380 * tests/test-vasprintf-posix.c: Likewise.
16381 * tests/test-vfprintf-posix.c: Likewise.
16382 * tests/test-vprintf-posix.c: Likewise.
16383 * tests/test-vsnprintf-posix.c: Likewise.
16384 * tests/test-vsprintf-posix.c: Likewise.
16386 2009-01-03 Jim Meyering <meyering@redhat.com>
16388 gnulib-tool: fix sed-based filtering
16389 * gnulib-tool (func_filter_filelist): Remove extra backslash
16390 in sed_fff_filter definition.
16392 2009-01-02 Jim Meyering <meyering@redhat.com>
16394 strftime: avoid compilation failure on Solaris 2.6
16395 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16396 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16397 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16398 be available. Reported by Tom G. Christensen. Details in
16399 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16401 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16402 Bruno Haible <bruno@clisp.org>
16404 Speed up gnulib-tool by doing more string processing through shell
16406 * gnulib-tool (fast_func_append): New variable.
16407 (func_remove_prefix, func_remove_suffix): New functions.
16408 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16409 (func_filter_filelist): New function.
16410 (func_get_dependencies): Use func_remove_suffix instead of sed.
16411 (func_get_automake_snippet): Use func_filter_filelist instead of a
16412 subshell and sed invocation.
16414 2009-01-01 Bruno Haible <bruno@clisp.org>
16416 Fix a security bug.
16417 * gnulib-tool (func_import, import, update): Don't allow the characters
16418 '"', '$', '`', '\' in macro arguments that become part of commands that
16421 2009-01-01 Bruno Haible <bruno@clisp.org>
16423 * gnulib-tool (func_reset_sigpipe): Add more comments.
16425 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16427 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16428 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16429 already know the answer.
16431 2009-01-01 Jim Meyering <meyering@redhat.com>
16433 * lib/version-etc.c (version_etc_va): Update copyright year.
16435 2008-12-30 Bruno Haible <bruno@clisp.org>
16437 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16438 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16439 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16441 2008-12-29 Eric Blake <ebb9@byu.net>
16443 multiarch: avoid autoconf AC_REQUIRE bug
16444 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16445 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16447 Reported by Bruno Haible, and analyzed in
16448 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16450 2008-12-29 Bruno Haible <bruno@clisp.org>
16452 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16453 files in subdirectories correctly.
16454 Reported by Ralf Wildenhues.
16456 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16458 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16459 rather than 'join FILE -', for Solaris join.
16461 2008-12-29 Bruno Haible <bruno@clisp.org>
16463 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16465 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16466 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16467 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16468 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16469 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16470 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16471 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16472 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16473 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16474 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16475 * m4/nls.m4 (AM_NLS): Likewise.
16476 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16477 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16478 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16479 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16480 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16481 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16482 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16483 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16484 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16485 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16486 * m4/xsize.m4 (gl_XSIZE): Likewise.
16487 Suggested by Jim Meyering.
16489 2008-11-17 Bruce Korb <bkorb@gnu.org>
16491 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16492 * lib/parse-duration.c: use a switch instead of cascading if's.
16494 2008-12-29 Eric Blake <ebb9@byu.net>
16496 wchar.h: supply WEOF on Irix 5.3
16497 * lib/wchar.in.h (wint_t): Also supply WEOF.
16498 * lib/wctype.in.h (wint_t): Likewise.
16499 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16500 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16501 Reported by Tom G. Christensen.
16503 2008-12-26 Bruno Haible <bruno@clisp.org>
16505 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16508 2008-12-26 Bruno Haible <bruno@clisp.org>
16510 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16512 2008-12-26 Bruno Haible <bruno@clisp.org>
16514 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16515 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16516 not __STDC_CONSTANT_MACROS.
16517 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16519 2008-12-25 Bruno Haible <bruno@clisp.org>
16521 Add support for universal builds to vasnprintf.
16522 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16523 universal builds, guess no.
16524 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16525 * modules/vasprintf-posix (Depends-on): Likewise.
16526 * modules/fprintf-posix (Depends-on): Likewise.
16527 * modules/vfprintf-posix (Depends-on): Likewise.
16528 * modules/snprintf-posix (Depends-on): Likewise.
16529 * modules/vsnprintf-posix (Depends-on): Likewise.
16530 * modules/sprintf-posix (Depends-on): Likewise.
16531 * modules/vsprintf-posix (Depends-on): Likewise.
16532 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16533 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16534 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16535 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16536 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16537 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16538 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16540 Add support for universal builds to <inttypes.h>.
16541 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16542 _SCNu64_PREFIX): In Apple
16543 universal builds, define directly, using _LP64.
16544 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16545 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16546 * modules/inttypes (Depends-on): Add multiarch.
16547 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16549 Add support for universal builds to <stdint.h>.
16550 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16551 universal builds, define directly, using _LP64.
16552 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16553 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16555 * modules/stdint (Depends-on): Add multiarch.
16556 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16558 New module 'multiarch'.
16559 * modules/multiarch: New file.
16560 * m4/multiarch.m4: New file.
16562 2008-12-25 Bruno Haible <bruno@clisp.org>
16564 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16566 2008-12-25 Bruno Haible <bruno@clisp.org>
16568 * modules/btowc (License): Relicense under LGPLv2+.
16569 * modules/mbsinit (License): Likewise.
16570 * modules/mbrtowc (License): Likewise.
16571 * modules/wcrtomb (License): Likewise.
16572 * modules/streq (License): Likewise.
16573 Reported by David Lutterkort <lutter@redhat.com>.
16575 2008-12-23 Bruno Haible <bruno@clisp.org>
16577 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16579 2008-12-23 Bruno Haible <bruno@clisp.org>
16581 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16582 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16583 GETADDRINFO_LIB, not in LIBS.
16584 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16585 * modules/canon-host (Link): Likewise.
16586 * NEWS: Mention the change.
16587 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16590 2008-12-22 Bruno Haible <bruno@clisp.org>
16592 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16593 * doc/posix-functions/iswalpha_l.texi: Likewise.
16594 * doc/posix-functions/iswblank_l.texi: Likewise.
16595 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16596 * doc/posix-functions/iswctype_l.texi: Likewise.
16597 * doc/posix-functions/iswdigit_l.texi: Likewise.
16598 * doc/posix-functions/iswgraph_l.texi: Likewise.
16599 * doc/posix-functions/iswlower_l.texi: Likewise.
16600 * doc/posix-functions/iswprint_l.texi: Likewise.
16601 * doc/posix-functions/iswpunct_l.texi: Likewise.
16602 * doc/posix-functions/iswspace_l.texi: Likewise.
16603 * doc/posix-functions/iswupper_l.texi: Likewise.
16604 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16605 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16606 * doc/posix-functions/open_wmemstream.texi: Likewise.
16607 * doc/posix-functions/swscanf.texi: Likewise.
16608 * doc/posix-functions/towctrans_l.texi: Likewise.
16609 * doc/posix-functions/towlower.texi: Likewise.
16610 * doc/posix-functions/towlower_l.texi: Likewise.
16611 * doc/posix-functions/towupper.texi: Likewise.
16612 * doc/posix-functions/towupper_l.texi: Likewise.
16613 * doc/posix-functions/vfwprintf.texi: Likewise.
16614 * doc/posix-functions/vfwscanf.texi: Likewise.
16615 * doc/posix-functions/vswscanf.texi: Likewise.
16616 * doc/posix-functions/vwprintf.texi: Likewise.
16617 * doc/posix-functions/vwscanf.texi: Likewise.
16618 * doc/posix-functions/wcpcpy.texi: Likewise.
16619 * doc/posix-functions/wcpncpy.texi: Likewise.
16620 * doc/posix-functions/wcscasecmp.texi: Likewise.
16621 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16622 * doc/posix-functions/wcscoll_l.texi: Likewise.
16623 * doc/posix-functions/wcsdup.texi: Likewise.
16624 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16625 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16626 * doc/posix-functions/wcsnlen.texi: Likewise.
16627 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16628 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16629 * doc/posix-functions/wctrans_l.texi: Likewise.
16630 * doc/posix-functions/wctype_l.texi: Likewise.
16631 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16632 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16633 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16634 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16635 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16636 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16637 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16638 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16639 * doc/glibc-functions/wcschrnul.texi: Likewise.
16640 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16641 * doc/glibc-functions/wcstod_l.texi: Likewise.
16642 * doc/glibc-functions/wcstof_l.texi: Likewise.
16643 * doc/glibc-functions/wcstol_l.texi: Likewise.
16644 * doc/glibc-functions/wcstold_l.texi: Likewise.
16645 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16646 * doc/glibc-functions/wcstoq.texi: Likewise.
16647 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16648 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16649 * doc/glibc-functions/wcstouq.texi: Likewise.
16650 * doc/glibc-functions/wmempcpy.texi: Likewise.
16652 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16653 Eric Blake <ebb9@byu.net>
16654 Paolo Bonzini <bonzini@gnu.org>
16655 Bruno Haible <bruno@clisp.org>
16657 Make c-stack work on Haiku.
16658 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16659 (c_stack_action): Use SA_ONSTACK flag.
16661 2008-12-22 Bruno Haible <bruno@clisp.org>
16663 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16665 2008-12-22 Bruno Haible <bruno@clisp.org>
16667 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16668 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16670 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16672 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16673 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16674 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16675 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16677 2008-12-22 Bruno Haible <bruno@clisp.org>
16679 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16682 2008-12-22 Eric Blake <ebb9@byu.net>
16684 Avoid gcc warnings on cygwin.
16685 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16686 Avoid unused variable.
16687 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16690 2008-12-22 Bruno Haible <bruno@clisp.org>
16692 Remove HAVE_MBRTOWC conditionals.
16693 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16694 (mbscasecmp): Assume mbrtowc function.
16695 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16696 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16697 * lib/mbschr.c: Include mbuiter.h unconditionally.
16698 (mbschr): Assume mbrtowc function.
16699 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16700 (mbscspn): Assume mbrtowc function.
16701 * lib/mbslen.c: Include mbuiter.h unconditionally.
16702 (mbslen): Assume mbrtowc function.
16703 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16704 (mbsncasecmp): Assume mbrtowc function.
16705 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16706 (mbsnlen): Assume mbrtowc function.
16707 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16708 (mbspbrk): Assume mbrtowc function.
16709 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16710 (mbspcasecmp): Assume mbrtowc function.
16711 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16712 (mbsrchr): Assume mbrtowc function.
16713 * lib/mbssep.c: Include mbuiter.h unconditionally.
16714 (mbssep): Assume mbrtowc function.
16715 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16716 (mbsspn): Assume mbrtowc function.
16717 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16718 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16719 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16720 (mbstok_r): Assume mbrtowc function.
16721 * lib/propername.c: Include mbuiter.h unconditionally.
16722 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16723 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16724 (trim2): Assume mbrtowc function.
16725 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16726 (mbsnwidth): Assume mbrtowc function.
16727 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16728 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16729 fallback definitions.
16730 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16732 2008-12-22 Bruno Haible <bruno@clisp.org>
16734 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16736 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16738 * modules/regex: Request emulations for the mb*/wc* functions we need.
16739 * m4/regex.m4: Don't look for those functions here.
16740 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16742 2008-12-22 Bruno Haible <bruno@clisp.org>
16744 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16746 2008-12-21 Bruno Haible <bruno@clisp.org>
16748 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16749 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16750 (Include): Remove conditionalization.
16751 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16752 (Include): Remove conditionalization.
16753 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16754 (Include): Remove conditionalization.
16755 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16756 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16757 * NEWS: Mention the change.
16758 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16759 via Sergey Poznyakoff <gray@gnu.org.ua>.
16761 2008-12-21 Bruno Haible <bruno@clisp.org>
16763 * MODULES.html.sh (Extended multibyte and wide character utilities
16764 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16765 wcrtomb, wcsrtombs.
16766 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16767 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16768 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16769 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16771 2008-12-21 Bruno Haible <bruno@clisp.org>
16773 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16775 2008-12-21 Bruno Haible <bruno@clisp.org>
16777 * modules/wcsnrtombs-tests: New file.
16778 * tests/test-wcsnrtombs1.sh: New file.
16779 * tests/test-wcsnrtombs2.sh: New file.
16780 * tests/test-wcsnrtombs3.sh: New file.
16781 * tests/test-wcsnrtombs4.sh: New file.
16782 * tests/test-wcsnrtombs.c: New file.
16784 New module 'wcsnrtombs'.
16785 * lib/wchar.in.h (wcsnrtombs): New declaration.
16786 * lib/wcsnrtombs.c: New file.
16787 * lib/wcsrtombs-state.c: New file.
16788 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16789 (internal_state): Remove variable.
16790 * m4/wcsnrtombs.m4: New file.
16791 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16793 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16795 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16797 * modules/wcsnrtombs: New file.
16798 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16799 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16801 2008-12-21 Bruno Haible <bruno@clisp.org>
16803 * modules/wcsrtombs-tests: New file.
16804 * tests/test-wcsrtombs1.sh: New file.
16805 * tests/test-wcsrtombs2.sh: New file.
16806 * tests/test-wcsrtombs3.sh: New file.
16807 * tests/test-wcsrtombs4.sh: New file.
16808 * tests/test-wcsrtombs.c: New file.
16810 New module 'wcsrtombs'.
16811 * lib/wchar.in.h (wcsrtombs): New declaration.
16812 * lib/wcsrtombs.c: New file.
16813 * m4/wcsrtombs.m4: New file.
16814 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16815 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16816 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16817 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16818 * modules/wcsrtombs: New file.
16819 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16822 2008-12-21 Bruno Haible <bruno@clisp.org>
16824 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16825 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16826 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16827 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16829 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16830 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16831 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16832 m4/locale-zh.m4, m4/codeset.m4.
16833 * doc/posix-functions/wcrtomb.texi: Document the bug.
16835 2008-12-21 Bruno Haible <bruno@clisp.org>
16837 Work around a btowc() bug on IRIX 6.5.
16838 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16839 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16840 REPLACE_WTOBC if not.
16841 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16842 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16843 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16845 2008-12-21 Bruno Haible <bruno@clisp.org>
16847 * modules/wcrtomb-tests: New file.
16848 * tests/test-wcrtomb.sh: New file.
16849 * tests/test-wcrtomb.c: New file.
16851 New module 'wcrtomb'.
16852 * lib/wchar.in.h (wcrtomb): New declaration.
16853 * lib/wcrtomb.c: New file.
16854 * m4/wcrtomb.m4: New file.
16855 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16857 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16859 * modules/wcrtomb: New file.
16860 * doc/posix-functions/wcrtomb.texi: Mention the new module.
16862 2008-12-21 Bruno Haible <bruno@clisp.org>
16864 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16865 * modules/mbsrtowcs (Files): Likewise.
16866 * modules/wctob (Files): Likewise.
16867 * modules/c-strcase-tests (Files): Likewise.
16868 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16869 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16870 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16871 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16872 * modules/vasnprintf-posix-tests (Files): Likewise.
16874 2008-12-21 William Pursell <bill.pursell@gmail.com>
16876 gitlog-to-changelog: pass all command-line arguments to git-log
16877 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16878 it is sometimes convenient to filter the commits in various ways.
16879 gitlog-to-changelog only allows --since to specify a start date,
16880 but git-log itself supports many other filtering mechanisms.
16881 At the moment, I want to filter by branch name. Rather than
16882 adding a --branch option to gitlog-to-changelog, it seems more
16883 flexible to simply pass all options directly to git-log and let
16884 git do the work. Notice that this effectively makes --since a
16885 redundant option for gitlog-to-changelog, but removing it would
16886 require current usage to change since calls would then require
16887 an additional '--'.
16889 2008-12-21 Bruno Haible <bruno@clisp.org>
16891 * modules/mbsnrtowcs-tests: New file.
16892 * tests/test-mbsnrtowcs1.sh: New file.
16893 * tests/test-mbsnrtowcs2.sh: New file.
16894 * tests/test-mbsnrtowcs3.sh: New file.
16895 * tests/test-mbsnrtowcs4.sh: New file.
16896 * tests/test-mbsnrtowcs.c: New file.
16898 New module 'mbsnrtowcs'.
16899 * lib/wchar.in.h (mbsnrtowcs): New declaration.
16900 * lib/mbsnrtowcs.c: New file.
16901 * lib/mbsrtowcs-state.c: New file.
16902 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16903 (internal_state): Remove variable.
16904 * m4/mbsnrtowcs.m4: New file.
16905 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16907 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16908 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16909 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16910 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16911 * modules/mbsnrtowcs: New file.
16912 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16913 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16914 portability problem.
16916 2008-12-21 Bruno Haible <bruno@clisp.org>
16918 Work around mbsrtowcs bug.
16919 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16920 (gl_FUNC_MBSRTOWCS): Invoke it.
16921 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16923 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16925 2008-12-21 Bruno Haible <bruno@clisp.org>
16927 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16929 2008-12-21 Bruno Haible <bruno@clisp.org>
16931 Update doc for AIX.
16932 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16933 16-bit wchar_t type.
16934 * doc/posix-functions/btowc.texi: Likewise.
16935 * doc/posix-functions/fgetwc.texi: Likewise.
16936 * doc/posix-functions/fgetws.texi: Likewise.
16937 * doc/posix-functions/fputwc.texi: Likewise.
16938 * doc/posix-functions/fputws.texi: Likewise.
16939 * doc/posix-functions/fwide.texi: Likewise.
16940 * doc/posix-functions/fwprintf.texi: Likewise.
16941 * doc/posix-functions/fwscanf.texi: Likewise.
16942 * doc/posix-functions/getwchar.texi: Likewise.
16943 * doc/posix-functions/getwc.texi: Likewise.
16944 * doc/posix-functions/iswalnum.texi: Likewise.
16945 * doc/posix-functions/iswalpha.texi: Likewise.
16946 * doc/posix-functions/iswblank.texi: Likewise.
16947 * doc/posix-functions/iswcntrl.texi: Likewise.
16948 * doc/posix-functions/iswctype.texi: Likewise.
16949 * doc/posix-functions/iswdigit.texi: Likewise.
16950 * doc/posix-functions/iswgraph.texi: Likewise.
16951 * doc/posix-functions/iswlower.texi: Likewise.
16952 * doc/posix-functions/iswprint.texi: Likewise.
16953 * doc/posix-functions/iswpunct.texi: Likewise.
16954 * doc/posix-functions/iswspace.texi: Likewise.
16955 * doc/posix-functions/iswupper.texi: Likewise.
16956 * doc/posix-functions/iswxdigit.texi: Likewise.
16957 * doc/posix-functions/mbrtowc.texi: Likewise.
16958 * doc/posix-functions/mbsrtowcs.texi: Likewise.
16959 * doc/posix-functions/mbstowcs.texi: Likewise.
16960 * doc/posix-functions/mbtowc.texi: Likewise.
16961 * doc/posix-functions/putwchar.texi: Likewise.
16962 * doc/posix-functions/putwc.texi: Likewise.
16963 * doc/posix-functions/swprintf.texi: Likewise.
16964 * doc/posix-functions/tolower.texi: Likewise.
16965 * doc/posix-functions/toupper.texi: Likewise.
16966 * doc/posix-functions/towctrans.texi: Likewise.
16967 * doc/posix-functions/ungetwc.texi: Likewise.
16968 * doc/posix-functions/vswprintf.texi: Likewise.
16969 * doc/posix-functions/wcrtomb.texi: Likewise.
16970 * doc/posix-functions/wcscat.texi: Likewise.
16971 * doc/posix-functions/wcschr.texi: Likewise.
16972 * doc/posix-functions/wcscmp.texi: Likewise.
16973 * doc/posix-functions/wcscoll.texi: Likewise.
16974 * doc/posix-functions/wcscpy.texi: Likewise.
16975 * doc/posix-functions/wcscspn.texi: Likewise.
16976 * doc/posix-functions/wcsftime.texi: Likewise.
16977 * doc/posix-functions/wcslen.texi: Likewise.
16978 * doc/posix-functions/wcsncat.texi: Likewise.
16979 * doc/posix-functions/wcsncmp.texi: Likewise.
16980 * doc/posix-functions/wcsncpy.texi: Likewise.
16981 * doc/posix-functions/wcspbrk.texi: Likewise.
16982 * doc/posix-functions/wcsrchr.texi: Likewise.
16983 * doc/posix-functions/wcsrtombs.texi: Likewise.
16984 * doc/posix-functions/wcsspn.texi: Likewise.
16985 * doc/posix-functions/wcsstr.texi: Likewise.
16986 * doc/posix-functions/wcstod.texi: Likewise.
16987 * doc/posix-functions/wcstof.texi: Likewise.
16988 * doc/posix-functions/wcstoimax.texi: Likewise.
16989 * doc/posix-functions/wcstok.texi: Likewise.
16990 * doc/posix-functions/wcstold.texi: Likewise.
16991 * doc/posix-functions/wcstoll.texi: Likewise.
16992 * doc/posix-functions/wcstol.texi: Likewise.
16993 * doc/posix-functions/wcstombs.texi: Likewise.
16994 * doc/posix-functions/wcstoull.texi: Likewise.
16995 * doc/posix-functions/wcstoul.texi: Likewise.
16996 * doc/posix-functions/wcstoumax.texi: Likewise.
16997 * doc/posix-functions/wcswidth.texi: Likewise.
16998 * doc/posix-functions/wcsxfrm.texi: Likewise.
16999 * doc/posix-functions/wctob.texi: Likewise.
17000 * doc/posix-functions/wctomb.texi: Likewise.
17001 * doc/posix-functions/wctrans.texi: Likewise.
17002 * doc/posix-functions/wctype.texi: Likewise.
17003 * doc/posix-functions/wcwidth.texi: Likewise.
17004 * doc/posix-functions/wmemchr.texi: Likewise.
17005 * doc/posix-functions/wmemcmp.texi: Likewise.
17006 * doc/posix-functions/wmemcpy.texi: Likewise.
17007 * doc/posix-functions/wmemmove.texi: Likewise.
17008 * doc/posix-functions/wmemset.texi: Likewise.
17009 * doc/posix-functions/wprintf.texi: Likewise.
17010 * doc/posix-functions/wscanf.texi: Likewise.
17012 2008-12-21 Bruno Haible <bruno@clisp.org>
17014 Update doc for HP-UX 11.11.
17015 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17016 in HP-UX version 11.00, not in all versions of HP-UX 11.
17017 * doc/posix-functions/fwide.texi: Likewise.
17018 * doc/posix-functions/fwprintf.texi: Likewise.
17019 * doc/posix-functions/fwscanf.texi: Likewise.
17020 * doc/posix-functions/inet_ntop.texi: Likewise.
17021 * doc/posix-functions/inet_pton.texi: Likewise.
17022 * doc/posix-functions/mbrlen.texi: Likewise.
17023 * doc/posix-functions/mbrtowc.texi: Likewise.
17024 * doc/posix-functions/mbsinit.texi: Likewise.
17025 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17026 * doc/posix-functions/swprintf.texi: Likewise.
17027 * doc/posix-functions/swscanf.texi: Likewise.
17028 * doc/posix-functions/towctrans.texi: Likewise.
17029 * doc/posix-functions/vfwprintf.texi: Likewise.
17030 * doc/posix-functions/vswprintf.texi: Likewise.
17031 * doc/posix-functions/vwprintf.texi: Likewise.
17032 * doc/posix-functions/wcrtomb.texi: Likewise.
17033 * doc/posix-functions/wcsrtombs.texi: Likewise.
17034 * doc/posix-functions/wcsstr.texi: Likewise.
17035 * doc/posix-functions/wctob.texi: Likewise.
17036 * doc/posix-functions/wctrans.texi: Likewise.
17037 * doc/posix-functions/wmemchr.texi: Likewise.
17038 * doc/posix-functions/wmemcmp.texi: Likewise.
17039 * doc/posix-functions/wmemcpy.texi: Likewise.
17040 * doc/posix-functions/wmemmove.texi: Likewise.
17041 * doc/posix-functions/wmemset.texi: Likewise.
17042 * doc/posix-functions/wprintf.texi: Likewise.
17043 * doc/posix-functions/wscanf.texi: Likewise.
17045 2008-12-21 Bruno Haible <bruno@clisp.org>
17047 Work around a portability problem.
17048 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17049 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17051 2008-12-20 Bruno Haible <bruno@clisp.org>
17053 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17054 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17055 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17056 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17057 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17059 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17060 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17062 (GNULIB_defined_mbstate_t): New macro.
17063 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17064 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17065 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17066 reuses the system's mbrtowc function but works around the bugs.
17067 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17068 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17070 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17071 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17072 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17073 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17074 REPLACE_MBSINIT if mbsinit needs to be overridden.
17075 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17076 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17077 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17078 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17079 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17081 (Depends): Add mbsinit.
17082 * modules/mbsinit (Depends): Add mbrtowc.
17083 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17085 2008-12-20 Bruno Haible <bruno@clisp.org>
17087 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17088 so that there are no conversion errors on AIX.
17089 * tests/test-mbsrtowcs.c (main): LIkewise.
17091 2008-12-20 Bruno Haible <bruno@clisp.org>
17093 Work around wctob bug on Solaris <= 9.
17094 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17095 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17096 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17097 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17098 * modules/wctob (Files): Add m4/locale-fr.m4.
17099 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17101 2008-12-20 Bruno Haible <bruno@clisp.org>
17103 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17105 * tests/test-select-in.sh: Likewise.
17106 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17108 2008-12-20 Bruno Haible <bruno@clisp.org>
17110 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17111 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17114 2008-12-20 Bruno Haible <bruno@clisp.org>
17116 Ensure mbstate_t is defined on HP-UX 11.11.
17117 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17118 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17119 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17120 AC_USE_SYSTEM_EXTENSIONS.
17121 * modules/fnmatch (Depends-on): Add extensions.
17122 * modules/mbrlen (Depends-on): Likewise.
17123 * modules/mbrtowc (Depends-on): Likewise.
17124 * modules/mbsinit (Depends-on): Likewise.
17125 * modules/mbsrtowcs (Depends-on): Likewise.
17126 * modules/mbswidth (Depends-on): Likewise.
17127 * modules/quotearg (Depends-on): Likewise.
17128 * modules/strftime (Depends-on): Likewise.
17130 2008-12-20 Bruno Haible <bruno@clisp.org>
17132 Ensure wctob is declared on IRIX 6.5.
17133 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17134 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17135 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17136 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17138 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17140 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17142 2008-12-19 Bruno Haible <bruno@clisp.org>
17144 * modules/mbsrtowcs-tests: New file.
17145 * tests/test-mbsrtowcs1.sh: New file.
17146 * tests/test-mbsrtowcs2.sh: New file.
17147 * tests/test-mbsrtowcs3.sh: New file.
17148 * tests/test-mbsrtowcs4.sh: New file.
17149 * tests/test-mbsrtowcs.c: New file.
17151 New module 'mbsrtowcs'.
17152 * lib/wchar.in.h (mbsrtowcs): New declaration.
17153 * lib/mbsrtowcs.c: New file.
17154 * m4/mbsrtowcs.m4: New file.
17155 * modules/mbsrtowcs: New file.
17156 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17158 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17160 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17162 2008-12-19 Bruno Haible <bruno@clisp.org>
17164 New module 'mbrlen'.
17165 * lib/wchar.in.h (mbrlen): New declaration.
17166 * lib/mbrlen.c: New file.
17167 * m4/mbrlen.m4: New file.
17168 * modules/mbrlen: New file.
17169 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17171 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17173 * doc/posix-functions/mbrlen.texi: Document the new module.
17175 2008-12-19 Bruno Haible <bruno@clisp.org>
17177 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17178 * modules/mbrtowc (Depends-on): Add verify.
17179 Suggested by Paul Eggert.
17181 2008-12-18 Bruno Haible <bruno@clisp.org>
17183 * modules/mbsinit-tests: New file.
17184 * tests/test-mbsinit.sh: New file.
17185 * tests/test-mbsinit.c: New file.
17187 2008-12-18 Bruno Haible <bruno@clisp.org>
17189 * modules/mbrtowc-tests: New file.
17190 * tests/test-mbrtowc1.sh: New file.
17191 * tests/test-mbrtowc2.sh: New file.
17192 * tests/test-mbrtowc3.sh: New file.
17193 * tests/test-mbrtowc4.sh: New file.
17194 * tests/test-mbrtowc.c: New file.
17196 New module 'mbrtowc'.
17197 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17198 mbsinit and mbrtowc.
17199 (mbrtowc): New declaration.
17200 * lib/mbrtowc.c: New file.
17201 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17202 * modules/mbrtowc: New file.
17203 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17205 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17207 * doc/posix-functions/mbrtowc.texi: Document the new module.
17209 2008-12-18 Bruno Haible <bruno@clisp.org>
17211 New module 'wctob'.
17212 * lib/wchar.in.h (wctob): New declaration.
17213 * lib/wctob.c: New file.
17214 * m4/wctob.m4: New file.
17215 * modules/wctob: New file.
17216 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17218 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17219 * doc/posix-functions/wctob.texi: Document the new module.
17221 2008-12-18 Bruno Haible <bruno@clisp.org>
17223 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17224 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17226 2008-12-18 Simon Josefsson <simon@josefsson.org>
17228 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17229 G. Christensen" <tgc@jupiterrise.com>.
17231 * lib/flock.c: Need to include errno.h. Reported by "Tom
17232 G. Christensen" <tgc@jupiterrise.com>.
17234 * lib/flock.c: Need to include string.h. Reported by "Tom
17235 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17238 2008-12-18 Bruno Haible <bruno@clisp.org>
17240 * m4/locale-ja.m4: New file, from GNU gettext.
17242 2008-12-17 Bruno Haible <bruno@clisp.org>
17244 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17245 Suggested by Eric Blake.
17247 2008-12-17 Bruno Haible <bruno@clisp.org>
17249 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17251 2008-12-17 Bruno Haible <bruno@clisp.org>
17253 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17254 * modules/mbsinit (Depends-on): Add verify.
17255 Suggested by Paul Eggert.
17257 2008-12-17 Bruno Haible <bruno@clisp.org>
17259 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17260 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17262 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17263 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17264 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17265 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17266 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17267 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17268 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17269 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17270 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17271 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17272 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17273 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17274 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17275 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17276 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17277 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17278 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17279 * modules/trim (configure.ac): Likewise.
17281 2008-12-17 Bruno Haible <bruno@clisp.org>
17283 * modules/btowc-tests: New file.
17284 * tests/test-btowc1.sh: New file.
17285 * tests/test-btowc2.sh: New file.
17286 * tests/test-btowc.c: New file.
17288 New module 'btowc'.
17289 * lib/wchar.in.h (btowc): New declaration.
17290 * lib/btowc.c: New file.
17291 * m4/btowc.m4: New file.
17292 * modules/btowc: New file.
17293 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17295 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17296 * doc/posix-functions/btowc.texi: Document the new module.
17298 2008-12-17 Bruno Haible <bruno@clisp.org>
17300 New module 'mbsinit'.
17301 * lib/wchar.in.h (mbsinit): New declaration.
17302 * lib/mbsinit.c: New file.
17303 * m4/mbsinit.m4: New file.
17304 * modules/mbsinit: New file.
17305 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17307 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17309 * doc/posix-functions/mbsinit.texi: Document the new module.
17311 2008-12-16 Bruno Haible <bruno@clisp.org>
17313 * lib/unistd.in.h: Add comment.
17314 * tests/test-environ.c: Don't include <stdlib.h>.
17316 2008-12-16 Bruno Haible <bruno@clisp.org>
17318 * lib/parse-duration.h (parse_duration): Document return value
17320 * lib/parse-duration.c: Include specification header first. Add
17323 (parse_year_month_day, parse_hour_minute_second): Move side effects
17324 outside of strchr call.
17325 (parse_non_iso8601): Move side effects outside of isspace call.
17326 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17329 2008-12-16 Bruno Haible <bruno@clisp.org>
17331 * tests/test-parse-duration.sh: Produce no output when the test
17334 2008-12-16 Bruno Haible <bruno@clisp.org>
17336 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17339 2008-12-15 Bruno Haible <bruno@clisp.org>
17341 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17342 * doc/glibc-functions/flistxattr.texi: Likewise.
17343 * doc/glibc-functions/fopencookie.texi: Likewise.
17344 * doc/glibc-functions/fremovexattr.texi: Likewise.
17345 * doc/glibc-functions/fsetxattr.texi: Likewise.
17346 * doc/glibc-functions/getxattr.texi: Likewise.
17347 * doc/glibc-functions/lgetxattr.texi: Likewise.
17348 * doc/glibc-functions/listxattr.texi: Likewise.
17349 * doc/glibc-functions/llistxattr.texi: Likewise.
17350 * doc/glibc-functions/lremovexattr.texi: Likewise.
17351 * doc/glibc-functions/lsetxattr.texi: Likewise.
17352 * doc/glibc-functions/removexattr.texi: Likewise.
17353 * doc/glibc-functions/setxattr.texi: Likewise.
17354 * doc/posix-functions/open_memstream.texi: Likewise.
17356 2008-12-15 Eric Blake <ebb9@byu.net>
17358 Update doc for cygwin 1.7.
17359 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17361 * doc/posix-functions/fchmodat.texi: Likewise.
17362 * doc/posix-functions/fchownat.texi: Likewise.
17363 * doc/posix-functions/fdopendir.texi: Likewise.
17364 * doc/posix-functions/fmemopen.texi: Likewise.
17365 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17366 * doc/posix-functions/fstatat.texi: Likewise.
17367 * doc/posix-functions/futimens.texi: Likewise.
17368 * doc/posix-functions/gai_strerror.texi: Likewise.
17369 * doc/posix-functions/getaddrinfo.texi: Likewise.
17370 * doc/posix-functions/getnameinfo.texi: Likewise.
17371 * doc/posix-functions/if_freenameindex.texi: Likewise.
17372 * doc/posix-functions/if_indextoname.texi: Likewise.
17373 * doc/posix-functions/if_nameindex.texi: Likewise.
17374 * doc/posix-functions/if_nametoindex.texi: Likewise.
17375 * doc/posix-functions/insque.texi: Likewise.
17376 * doc/posix-functions/linkat.texi: Likewise.
17377 * doc/posix-functions/llrint.texi: Likewise.
17378 * doc/posix-functions/llrintf.texi: Likewise.
17379 * doc/posix-functions/llrintl.texi: Likewise.
17380 * doc/posix-functions/lockf.texi: Likewise.
17381 * doc/posix-functions/lrintl.texi: Likewise.
17382 * doc/posix-functions/mkdirat.texi: Likewise.
17383 * doc/posix-functions/mkfifoat.texi: Likewise.
17384 * doc/posix-functions/mknodat.texi: Likewise.
17385 * doc/posix-functions/mq_close.texi: Likewise.
17386 * doc/posix-functions/mq_getattr.texi: Likewise.
17387 * doc/posix-functions/mq_notify.texi: Likewise.
17388 * doc/posix-functions/mq_open.texi: Likewise.
17389 * doc/posix-functions/mq_receive.texi: Likewise.
17390 * doc/posix-functions/mq_send.texi: Likewise.
17391 * doc/posix-functions/mq_setattr.texi: Likewise.
17392 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17393 * doc/posix-functions/mq_timedsend.texi: Likewise.
17394 * doc/posix-functions/mq_unlink.texi: Likewise.
17395 * doc/posix-functions/open_memstream.texi: Likewise.
17396 * doc/posix-functions/openat.texi: Likewise.
17397 * doc/posix-functions/posix_fadvise.texi: Likewise.
17398 * doc/posix-functions/posix_fallocate.texi: Likewise.
17399 * doc/posix-functions/posix_madvise.texi: Likewise.
17400 * doc/posix-functions/posix_memalign.texi: Likewise.
17401 * doc/posix-functions/posix_openpt.texi: Likewise.
17402 * doc/posix-functions/readlinkat.texi: Likewise.
17403 * doc/posix-functions/remque.texi: Likewise.
17404 * doc/posix-functions/renameat.texi: Likewise.
17405 * doc/posix-functions/rintl.texi: Likewise.
17406 * doc/posix-functions/sem_unlink.texi: Likewise.
17407 * doc/posix-functions/shm_open.texi: Likewise.
17408 * doc/posix-functions/shm_unlink.texi: Likewise.
17409 * doc/posix-functions/signgam.texi: Likewise.
17410 * doc/posix-functions/sigset.texi: Likewise.
17411 * doc/posix-functions/stpcpy.texi: Likewise.
17412 * doc/posix-functions/stpncpy.texi: Likewise.
17413 * doc/posix-functions/strerror.texi: Likewise.
17414 * doc/posix-functions/strtod.texi: Likewise.
17415 * doc/posix-functions/symlinkat.texi: Likewise.
17416 * doc/posix-functions/unlinkat.texi: Likewise.
17417 * doc/posix-functions/utimensat.texi: Likewise.
17418 * doc/glibc-functions/bindresvport.texi: Likewise.
17419 * doc/glibc-functions/dn_expand.texi: Likewise.
17420 * doc/glibc-functions/exp10.texi: Likewise.
17421 * doc/glibc-functions/exp10f.texi: Likewise.
17422 * doc/glibc-functions/fgetxattr.texi: Likewise.
17423 * doc/glibc-functions/flistxattr.texi: Likewise.
17424 * doc/glibc-functions/fopencookie.texi: Likewise.
17425 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17426 * doc/glibc-functions/fremovexattr.texi: Likewise.
17427 * doc/glibc-functions/fsetxattr.texi: Likewise.
17428 * doc/glibc-functions/getifaddrs.texi: Likewise.
17429 * doc/glibc-functions/getxattr.texi: Likewise.
17430 * doc/glibc-functions/lgetxattr.texi: Likewise.
17431 * doc/glibc-functions/listxattr.texi: Likewise.
17432 * doc/glibc-functions/llistxattr.texi: Likewise.
17433 * doc/glibc-functions/lremovexattr.texi: Likewise.
17434 * doc/glibc-functions/lsetxattr.texi: Likewise.
17435 * doc/glibc-functions/pow10.texi: Likewise.
17436 * doc/glibc-functions/pow10f.texi: Likewise.
17437 * doc/glibc-functions/rcmd_af.texi: Likewise.
17438 * doc/glibc-functions/removexattr.texi: Likewise.
17439 * doc/glibc-functions/res_init.texi: Likewise.
17440 * doc/glibc-functions/res_mkquery.texi: Likewise.
17441 * doc/glibc-functions/res_query.texi: Likewise.
17442 * doc/glibc-functions/res_querydomain.texi: Likewise.
17443 * doc/glibc-functions/res_send.texi: Likewise.
17444 * doc/glibc-functions/rresvport_af.texi: Likewise.
17445 * doc/glibc-functions/setxattr.texi: Likewise.
17446 * doc/glibc-functions/strcasestr.texi: Likewise.
17448 2008-12-15 Bruno Haible <bruno@clisp.org>
17450 Fix compilation error on OSF/1 4.0.
17451 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17452 <sys/time.h>, simply delegate to the system header.
17453 Reported by Daniel Richard G. <oss@teragram.com>.
17455 2008-12-15 Bruno Haible <bruno@clisp.org>
17457 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17458 * doc/posix-functions/fchmodat.texi: Likewise.
17459 * doc/posix-functions/fchownat.texi: Likewise.
17460 * doc/posix-functions/fdopendir.texi: Likewise.
17461 * doc/posix-functions/fstatat.texi: Likewise.
17462 * doc/posix-functions/mkdirat.texi: Likewise.
17463 * doc/posix-functions/unlinkat.texi: Likewise.
17465 2008-12-14 Bruno Haible <bruno@clisp.org>
17467 Update doc for POSIX:2008.
17468 * doc/posix-functions/faccessat.texi: New file.
17469 * doc/posix-functions/fchmodat.texi: New file.
17470 * doc/posix-functions/fchownat.texi: New file.
17471 * doc/posix-functions/fdopendir.texi: New file.
17472 * doc/posix-functions/fstatat.texi: New file.
17473 * doc/posix-functions/futimens.texi: New file.
17474 * doc/posix-functions/linkat.texi: New file.
17475 * doc/posix-functions/mkdirat.texi: New file.
17476 * doc/posix-functions/mkfifoat.texi: New file.
17477 * doc/posix-functions/mknodat.texi: New file.
17478 * doc/posix-functions/open_wmemstream.texi: New file.
17479 * doc/posix-functions/openat.texi: New file.
17480 * doc/posix-functions/psiginfo.texi: New file.
17481 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17482 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17483 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17484 * doc/posix-functions/readlinkat.texi: New file.
17485 * doc/posix-functions/renameat.texi: New file.
17486 * doc/posix-functions/strerror_l.texi: New file.
17487 * doc/posix-functions/symlinkat.texi: New file.
17488 * doc/posix-functions/unlinkat.texi: New file.
17489 * doc/posix-functions/utimensat.texi: New file.
17490 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17492 2008-12-14 Bruno Haible <bruno@clisp.org>
17494 Update doc for POSIX:2008.
17495 * doc/posix-functions/alphasort.texi: Renamed from
17496 doc/glibc-functions/alphasort.texi.
17497 * doc/posix-functions/dirfd.texi: Renamed from
17498 doc/glibc-functions/dirfd.texi.
17499 * doc/posix-functions/dprintf.texi: Renamed from
17500 doc/glibc-functions/dprintf.texi.
17501 * doc/posix-functions/duplocale.texi: Renamed from
17502 doc/glibc-functions/duplocale.texi.
17503 * doc/posix-functions/fexecve.texi: Renamed from
17504 doc/glibc-functions/fexecve.texi.
17505 * doc/posix-functions/fmemopen.texi: Renamed from
17506 doc/glibc-functions/fmemopen.texi.
17507 * doc/posix-functions/freelocale.texi: Renamed from
17508 doc/glibc-functions/freelocale.texi.
17509 * doc/posix-functions/getdate_err.texi: Renamed from
17510 doc/glibc-functions/getdate_err.texi.
17511 * doc/posix-functions/isalnum_l.texi: Renamed from
17512 doc/glibc-functions/isalnum_l.texi.
17513 * doc/posix-functions/isalpha_l.texi: Renamed from
17514 doc/glibc-functions/isalpha_l.texi.
17515 * doc/posix-functions/isblank_l.texi: Renamed from
17516 doc/glibc-functions/isblank_l.texi.
17517 * doc/posix-functions/iscntrl_l.texi: Renamed from
17518 doc/glibc-functions/iscntrl_l.texi.
17519 * doc/posix-functions/isdigit_l.texi: Renamed from
17520 doc/glibc-functions/isdigit_l.texi.
17521 * doc/posix-functions/isgraph_l.texi: Renamed from
17522 doc/glibc-functions/isgraph_l.texi.
17523 * doc/posix-functions/islower_l.texi: Renamed from
17524 doc/glibc-functions/islower_l.texi.
17525 * doc/posix-functions/isprint_l.texi: Renamed from
17526 doc/glibc-functions/isprint_l.texi.
17527 * doc/posix-functions/ispunct_l.texi: Renamed from
17528 doc/glibc-functions/ispunct_l.texi.
17529 * doc/posix-functions/isspace_l.texi: Renamed from
17530 doc/glibc-functions/isspace_l.texi.
17531 * doc/posix-functions/isupper_l.texi: Renamed from
17532 doc/glibc-functions/isupper_l.texi.
17533 * doc/posix-functions/iswalnum_l.texi: Renamed from
17534 doc/glibc-functions/iswalnum_l.texi.
17535 * doc/posix-functions/iswalpha_l.texi: Renamed from
17536 doc/glibc-functions/iswalpha_l.texi.
17537 * doc/posix-functions/iswblank_l.texi: Renamed from
17538 doc/glibc-functions/iswblank_l.texi.
17539 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17540 doc/glibc-functions/iswcntrl_l.texi.
17541 * doc/posix-functions/iswctype_l.texi: Renamed from
17542 doc/glibc-functions/iswctype_l.texi.
17543 * doc/posix-functions/iswdigit_l.texi: Renamed from
17544 doc/glibc-functions/iswdigit_l.texi.
17545 * doc/posix-functions/iswgraph_l.texi: Renamed from
17546 doc/glibc-functions/iswgraph_l.texi.
17547 * doc/posix-functions/iswlower_l.texi: Renamed from
17548 doc/glibc-functions/iswlower_l.texi.
17549 * doc/posix-functions/iswprint_l.texi: Renamed from
17550 doc/glibc-functions/iswprint_l.texi.
17551 * doc/posix-functions/iswpunct_l.texi: Renamed from
17552 doc/glibc-functions/iswpunct_l.texi.
17553 * doc/posix-functions/iswspace_l.texi: Renamed from
17554 doc/glibc-functions/iswspace_l.texi.
17555 * doc/posix-functions/iswupper_l.texi: Renamed from
17556 doc/glibc-functions/iswupper_l.texi.
17557 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17558 doc/glibc-functions/iswxdigit_l.texi.
17559 * doc/posix-functions/isxdigit_l.texi: Renamed from
17560 doc/glibc-functions/isxdigit_l.texi.
17561 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17562 doc/glibc-functions/mbsnrtowcs.texi.
17563 * doc/posix-functions/mkdtemp.texi: Renamed from
17564 doc/glibc-functions/mkdtemp.texi.
17565 * doc/posix-functions/newlocale.texi: Renamed from
17566 doc/glibc-functions/newlocale.texi.
17567 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17568 doc/glibc-functions/nl_langinfo_l.texi.
17569 * doc/posix-functions/open_memstream.texi: Renamed from
17570 doc/glibc-functions/open_memstream.texi.
17571 * doc/posix-functions/opterr.texi: Renamed from
17572 doc/glibc-functions/opterr.texi.
17573 * doc/posix-functions/optind.texi: Renamed from
17574 doc/glibc-functions/optind.texi.
17575 * doc/posix-functions/optopt.texi: Renamed from
17576 doc/glibc-functions/optopt.texi.
17577 * doc/posix-functions/psignal.texi: Renamed from
17578 doc/glibc-functions/psignal.texi.
17579 * doc/posix-functions/scandir.texi: Renamed from
17580 doc/glibc-functions/scandir.texi.
17581 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17582 doc/glibc-functions/sched_get_priority_min.texi.
17583 * doc/posix-functions/signgam.texi: Renamed from
17584 doc/glibc-functions/signgam.texi.
17585 * doc/posix-functions/stpcpy.texi: Renamed from
17586 doc/glibc-functions/stpcpy.texi.
17587 * doc/posix-functions/stpncpy.texi: Renamed from
17588 doc/glibc-functions/stpncpy.texi.
17589 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17590 doc/glibc-functions/strcasecmp_l.texi.
17591 * doc/posix-functions/strcoll_l.texi: Renamed from
17592 doc/glibc-functions/strcoll_l.texi.
17593 * doc/posix-functions/strfmon_l.texi: Renamed from
17594 doc/glibc-functions/strfmon_l.texi.
17595 * doc/posix-functions/strftime_l.texi: Renamed from
17596 doc/glibc-functions/strftime_l.texi.
17597 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17598 doc/glibc-functions/strncasecmp_l.texi.
17599 * doc/posix-functions/strndup.texi: Renamed from
17600 doc/glibc-functions/strndup.texi.
17601 * doc/posix-functions/strnlen.texi: Renamed from
17602 doc/glibc-functions/strnlen.texi.
17603 * doc/posix-functions/strsignal.texi: Renamed from
17604 doc/glibc-functions/strsignal.texi.
17605 * doc/posix-functions/strxfrm_l.texi: Renamed from
17606 doc/glibc-functions/strxfrm_l.texi.
17607 * doc/posix-functions/timer_gettime.texi: Renamed from
17608 doc/glibc-functions/timer_gettime.texi.
17609 * doc/posix-functions/tolower_l.texi: Renamed from
17610 doc/glibc-functions/tolower_l.texi.
17611 * doc/posix-functions/toupper_l.texi: Renamed from
17612 doc/glibc-functions/toupper_l.texi.
17613 * doc/posix-functions/towctrans_l.texi: Renamed from
17614 doc/glibc-functions/towctrans_l.texi.
17615 * doc/posix-functions/towlower_l.texi: Renamed from
17616 doc/glibc-functions/towlower_l.texi.
17617 * doc/posix-functions/towupper_l.texi: Renamed from
17618 doc/glibc-functions/towupper_l.texi.
17619 * doc/posix-functions/uselocale.texi: Renamed from
17620 doc/glibc-functions/uselocale.texi.
17621 * doc/posix-functions/vdprintf.texi: Renamed from
17622 doc/glibc-functions/vdprintf.texi.
17623 * doc/posix-functions/wcpcpy.texi:
17624 Renamed from doc/glibc-functions/wcpcpy.texi.
17625 * doc/posix-functions/wcpncpy.texi: Renamed from
17626 doc/glibc-functions/wcpncpy.texi.
17627 * doc/posix-functions/wcscasecmp.texi: Renamed from
17628 doc/glibc-functions/wcscasecmp.texi.
17629 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17630 doc/glibc-functions/wcscasecmp_l.texi.
17631 * doc/posix-functions/wcscoll_l.texi: Renamed from
17632 doc/glibc-functions/wcscoll_l.texi.
17633 * doc/posix-functions/wcsdup.texi: Renamed from
17634 doc/glibc-functions/wcsdup.texi.
17635 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17636 doc/glibc-functions/wcsncasecmp.texi.
17637 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17638 doc/glibc-functions/wcsncasecmp_l.texi.
17639 * doc/posix-functions/wcsnlen.texi: Renamed from
17640 doc/glibc-functions/wcsnlen.texi.
17641 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17642 doc/glibc-functions/wcsnrtombs.texi.
17643 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17644 doc/glibc-functions/wcsxfrm_l.texi.
17645 * doc/posix-functions/wctrans_l.texi: Renamed from
17646 doc/glibc-functions/wctrans_l.texi.
17647 * doc/posix-functions/wctype_l.texi: Renamed from
17648 doc/glibc-functions/wctype_l.texi.
17649 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17650 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17651 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17652 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17654 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17657 2008-12-14 Bruno Haible <bruno@clisp.org>
17659 Update doc for POSIX:2008.
17660 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17662 2008-12-14 Bruno Haible <bruno@clisp.org>
17664 Update doc for POSIX:2008.
17665 * doc/pastposix-functions/bcmp.texi: Renamed from
17666 doc/posix-functions/bcmp.texi.
17667 * doc/pastposix-functions/bcopy.texi: Renamed from
17668 doc/posix-functions/bcopy.texi.
17669 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17670 doc/posix-functions/bsd_signal.texi.
17671 * doc/pastposix-functions/bzero.texi: Renamed from
17672 doc/posix-functions/bzero.texi.
17673 * doc/pastposix-functions/ecvt.texi: Renamed from
17674 doc/posix-functions/ecvt.texi.
17675 * doc/pastposix-functions/fcvt.texi: Renamed from
17676 doc/posix-functions/fcvt.texi.
17677 * doc/pastposix-functions/ftime.texi: Renamed from
17678 doc/posix-functions/ftime.texi.
17679 * doc/pastposix-functions/gcvt.texi: Renamed from
17680 doc/posix-functions/gcvt.texi.
17681 * doc/pastposix-functions/getcontext.texi: Renamed from
17682 doc/posix-functions/getcontext.texi.
17683 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17684 doc/posix-functions/gethostbyaddr.texi.
17685 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17686 doc/posix-functions/gethostbyname.texi.
17687 * doc/pastposix-functions/getwd.texi: Renamed from
17688 doc/posix-functions/getwd.texi.
17689 * doc/pastposix-functions/h_errno.texi: Renamed from
17690 doc/posix-functions/h_errno.texi.
17691 * doc/pastposix-functions/index.texi: Renamed from
17692 doc/posix-functions/index.texi.
17693 * doc/pastposix-functions/makecontext.texi: Renamed from
17694 doc/posix-functions/makecontext.texi.
17695 * doc/pastposix-functions/mktemp.texi: Renamed from
17696 doc/posix-functions/mktemp.texi.
17697 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17698 doc/posix-functions/pthread_attr_getstackaddr.texi.
17699 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17700 doc/posix-functions/pthread_attr_setstackaddr.texi.
17701 * doc/pastposix-functions/rindex.texi: Renamed from
17702 doc/posix-functions/rindex.texi.
17703 * doc/pastposix-functions/scalb.texi: Renamed from
17704 doc/posix-functions/scalb.texi.
17705 * doc/pastposix-functions/setcontext.texi: Renamed from
17706 doc/posix-functions/setcontext.texi.
17707 * doc/pastposix-functions/swapcontext.texi: Renamed from
17708 doc/posix-functions/swapcontext.texi.
17709 * doc/pastposix-functions/ualarm.texi: Renamed from
17710 doc/posix-functions/ualarm.texi.
17711 * doc/pastposix-functions/usleep.texi: Renamed from
17712 doc/posix-functions/usleep.texi.
17713 * doc/pastposix-functions/vfork.texi: Renamed from
17714 doc/posix-functions/vfork.texi.
17715 * doc/pastposix-functions/wcswcs.texi: Renamed from
17716 doc/posix-functions/wcswcs.texi.
17717 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17718 (Function Substitutes): Update.
17720 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17722 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17725 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17726 Bruno Haible <bruno@clisp.org>
17728 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17730 2008-12-13 Bruno Haible <bruno@clisp.org>
17732 * modules/strtoull (Depends-on): Remove unistd.
17734 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17736 * modules/strtoull (Depends-on): Add stdlib.
17738 2008-12-11 Simon Josefsson <simon@josefsson.org>
17740 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17742 2008-12-10 Jim Meyering <meyering@redhat.com>
17744 gl_ASSERT: don't say assertions are disabled when they're not
17745 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17746 "checking whether to enable assertions... no", when they are in
17747 fact enabled. This is solely a bug in the output of configure.
17748 In spite of saying "no", NDEBUG was not defined in that case.
17749 Also, as noted by Eric Blake, leave assertions enabled upon
17750 --enable-assert=INVALID.
17752 2008-12-10 Bruno Haible <bruno@clisp.org>
17754 Change MODULES.html to refer to POSIX:2008 where possible.
17755 * MODULES.html.sh (POSIX2008_URL): New variable.
17756 (posix_headers): Remove sys/timeb, ucontext.
17757 (posix2001_headers): New variable.
17758 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17759 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17760 index, makecontext, mktemp, pthread_attr_getstackaddr,
17761 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17762 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17763 (posix2001_functions): New variable.
17764 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17767 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17769 add missing include to parse-duration.c
17770 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17771 * modules/parse-duration (Depends-on): Add xalloc.
17773 fix sed script reading maint.mk
17774 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17775 (syntax-check-rules): Use it.
17777 2008-12-09 Bruno Haible <bruno@clisp.org>
17779 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17780 MacOS X 10.4/PowerPC.
17781 Reported by Simon Josefsson.
17783 2008-12-08 Jim Meyering <meyering@redhat.com>
17785 work around mingw's lack of some S_IF definitions
17786 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17787 Reported by Simon Josefsson.
17789 2008-12-08 Bruno Haible <bruno@clisp.org>
17791 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17792 applied to variables. Needed on MacOS X 10.4/PowerPC.
17793 Reported by Simon Josefsson.
17795 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17796 and Eric Blake <ebb9@byu.net>
17798 assert: honor --enable-assert
17799 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17800 order to honor --enable-assert, rather than treating it as a
17801 synonym for --disable-assert.
17803 2008-12-08 Jim Meyering <meyering@redhat.com>
17805 * lib/posixtm.c: Remove now-useless declaration of mktime.
17807 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17809 2008-12-07 Bruno Haible <bruno@clisp.org>
17811 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17812 test_once): Mark functions as static.
17813 * tests/test-tls.c (test_tls): Likewise.
17815 2008-12-07 Bruno Haible <bruno@clisp.org>
17817 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17818 iconv_register_autodetect.
17820 2008-12-07 Jim Meyering <meyering@redhat.com>
17822 posixtm.c: avoid a warning
17823 * lib/posixtm.c (posixtime): Don't initialize tm0.
17824 It's no longer needed to placate gcc4's -Wuninitialized,
17825 and the attempt to placate would elicit a new warning.
17827 unicodeio.c: mark unused parameters
17828 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17829 (fallback_failure_callback): Likewise.
17831 2008-12-07 Bruno Haible <bruno@clisp.org>
17833 * gnulib-tool (func_create_testdir): When building the tests
17834 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17835 Reported by Simon Josefsson.
17837 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17839 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17841 2008-12-06 Bruno Haible <bruno@clisp.org>
17843 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17844 Suggested by Eric Blake.
17846 2008-12-06 Bruno Haible <bruno@clisp.org>
17848 Fix a c-stack test failure on MacOS X.
17849 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17850 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17851 handler for SIGBUS as well.
17852 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17853 install a signal handler for SIGBUS as well.
17854 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17856 2008-12-06 Bruno Haible <bruno@clisp.org>
17858 Advocacy documentation.
17859 * doc/gnulib-intro.texi (Benefits): New section.
17860 * doc/gnulib.texi: Update.
17862 2008-12-06 Bruno Haible <bruno@clisp.org>
17864 Document the 'manywarnings' module.
17865 * doc/manywarnings.texi: New file.
17866 * doc/gnulib.texi: Include it.
17868 2008-12-05 Eric Blake <ebb9@byu.net>
17870 tests: silence some gcc warnings
17871 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17872 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17875 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17876 Bruno Haible <bruno@clisp.org>
17878 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17880 2008-11-29 Jim Meyering <meyering@redhat.com>
17882 unicodeio.c: mark unused parameters
17883 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17884 (fallback_failure_callback): Likewise.
17887 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
17888 (set_stat_type): Return S_IF*-valued "type" directly.
17889 Prompted by James Youngman's spotting a related bug.
17890 Confirmed by further testing through find.
17892 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17893 * lib/fts.c (D_TYPE): Define.
17894 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17895 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17896 (s_ifmt_shift_bits): New function.
17897 (set_stat_type): New function.
17898 (fts_build): When not calling fts_stat, call set_stat_type
17899 to propagate dirent.d_type info to fts_read caller.
17900 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17901 fts_statp->st_mode type information may be valid.
17903 2008-11-28 Simon Josefsson <simon@josefsson.org>
17905 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
17906 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
17909 2008-11-20 Bruno Haible <bruno@clisp.org>
17911 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17912 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17914 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17915 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17916 * modules/math (Makefile.am): Substitute
17917 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17918 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17920 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
17921 Bruno Haible <bruno@clisp.org>
17923 * lib/stdint.in.h: Define all type macros so that their expansion is
17924 a single typedef'ed token. Fixes a compilation failure in Boost which
17925 does "using ::int8_t;".
17927 2008-11-18 Simon Josefsson <simon@josefsson.org>
17929 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17930 gl_MANYWARN_ALL_GCC.
17931 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17932 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
17933 * modules/manywarnings: New file.
17934 * MODULES.html.sh: Mention manywarnings module.
17936 2008-11-18 Bruno Haible <bruno@clisp.org>
17938 * doc/gnulib-tool.texi (Unit tests): New section.
17940 2008-11-18 Simon Josefsson <simon@josefsson.org>
17942 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17943 paths like 'lib/po/foo.po'.
17945 2008-11-17 Simon Josefsson <simon@josefsson.org>
17947 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
17948 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17950 2008-11-17 Simon Josefsson <simon@josefsson.org>
17952 * m4/warnings.m4: Use CPPFLAGS to really check whether the
17955 2008-11-17 Simon Josefsson <simon@josefsson.org>
17957 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17959 2008-11-17 Bruce Korb <bkorb@gnu.org>
17961 * modules/parse-duration-tests: New file.
17962 * tests/test-parse-duration.sh: New file.
17963 * tests/test-parse-duration.c: New file.
17965 New module 'parse-duration'.
17966 * lib/parse-duration.h: New file.
17967 * lib/parse-duration.c: New file.
17968 * modules/parse-duration: New file.
17970 2008-11-17 Bruno Haible <bruno@clisp.org>
17972 * tests/test-select-out.sh: Comment out the first pipe test.
17973 Reported by Simon Josefsson.
17975 2008-11-17 Bruno Haible <bruno@clisp.org>
17977 * modules/getaddrinfo (Depends-on): Add servent, hostent.
17978 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17981 2008-11-17 Bruno Haible <bruno@clisp.org>
17983 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17984 -lnetwork and -lnet. Needed for Haiku and BeOS.
17986 2008-11-16 Bruno Haible <bruno@clisp.org>
17988 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17990 2008-11-16 Bruno Haible <bruno@clisp.org>
17992 Avoid test failure on Haiku.
17993 * tests/test-fsync.c: Include <errno.h>.
17994 (main): Don't require that fsync (0) fails.
17996 2008-11-15 Bruno Haible <bruno@clisp.org>
17998 New module 'hostent'.
17999 * modules/hostent: New file.
18000 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18002 2008-11-15 Bruno Haible <bruno@clisp.org>
18004 New module 'servent'.
18005 * modules/servent: New file.
18006 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18008 2008-11-15 Bruno Haible <bruno@clisp.org>
18010 Avoid generating same test program with two different rules.
18011 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18012 test-frexp to test-frexp-nolibm.
18013 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18014 test-frexpl to test-frexpl-nolibm.
18016 2008-11-15 Bruno Haible <bruno@clisp.org>
18018 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18021 2008-11-15 Bruno Haible <bruno@clisp.org>
18023 * lib/netdb.in.h: Activate the definitions also when the system's
18024 <netdb.h> has 'struct addrinfo'.
18025 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18026 EAI_OVERFLOW or AI_NUMERICSERV.
18027 * doc/posix-headers/netdb.texi: Document the problem.
18029 2008-11-15 Bruno Haible <bruno@clisp.org>
18031 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18033 Make the 'sched' module work on platforms where <sched.h> exists but
18034 is incomplete (such as Haiku).
18035 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18036 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18037 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18038 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18039 HAVE_STRUCT_SCHED_PARAM.
18040 * modules/sched (Depends-on): Add include_next.
18041 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18042 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18043 * doc/posix-headers/sched.texi: Document the issue.
18045 2008-11-13 Jim Meyering <meyering@redhat.com>
18047 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18048 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18049 test would fail due to the difference in the Report bugs to ...
18050 line. The expected address is empty, "<>", while the actual
18051 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18053 2008-11-12 Bruno Haible <bruno@clisp.org>
18055 lstat: don't compile lstat.c on systems lacking lstat
18056 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18057 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18058 Reported by Daniel P. Berrange via Jim Meyering.
18060 2008-11-12 Jim Meyering <meyering@redhat.com>
18062 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18064 2008-11-12 Simon Josefsson <simon@josefsson.org>
18066 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18069 2008-11-12 Bruno Haible <bruno@clisp.org>
18071 * lib/unicodeio.c: Include unistr.h.
18072 (utf8_wctomb): Remove function.
18073 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18075 2008-11-12 Simon Josefsson <simon@josefsson.org>
18077 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18078 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18080 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18082 2008-11-12 Simon Josefsson <simon@josefsson.org>
18084 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18085 * doc/gnulib.texi: Add section for warnings.
18087 2008-11-11 Bruno Haible <bruno@clisp.org>
18089 * lib/sockets.h: Add a comment.
18091 2008-11-11 Karl Berry <karl@gnu.org>
18093 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18095 2008-11-11 Eric Blake <ebb9@byu.net>
18097 fdl.texi: avoid git symlinks
18098 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18100 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18102 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18104 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18106 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18107 (gl_WARN_ADD): Substitute $2 if literal.
18109 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18111 * m4/warning.m4: Remove.
18113 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18115 * m4/warnings.m4: Almost complete rewrite. :-)
18117 2008-11-10 Simon Josefsson <simon@josefsson.org>
18119 * modules/warnings: New module.
18120 * m4/warnings.m4: New file.
18121 * MODULES.html.sh: Mention warnings module.
18122 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18123 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18125 2008-11-10 Eric Blake <ebb9@byu.net>
18127 fdl.texi: make a symlink to the latest version
18128 * doc/standards.texi: Revert today's earlier change.
18129 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18130 * doc/fdl.texi: ...and replace this with a symlink to the newer
18133 2008-11-10 Bruno Haible <bruno@clisp.org>
18135 * tests/test-select-fd.c (main): Accept the result file name as fourth
18137 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18138 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18140 2008-11-10 Bruno Haible <bruno@clisp.org>
18142 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18143 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18144 as autoconf-substituted macros.
18145 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18146 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18147 gl_NETDB_H_DEFAULTS. Set these variables.
18148 * modules/netdb (Makefile.am): Substitute these variables.
18150 2008-11-10 Eric Blake <ebb9@byu.net>
18152 standards.texi: include correct file for FDL 1.3
18153 * doc/standards.texi (GNU Free Documentation License): Change
18154 include file to pull in FDL 1.3, not 1.2.
18156 fdl.texi: revert accidental change to license
18157 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18159 2008-11-10 Bruno Haible <bruno@clisp.org>
18161 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18162 cross-compiling guesses also when the native compile gives no result.
18164 2008-11-10 Bruno Haible <bruno@clisp.org>
18166 * lib/spawni.c (__spawni): Force variable into the stack.
18168 2008-11-10 Bruno Haible <bruno@clisp.org>
18170 Add support for Haiku.
18171 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18172 glibc and BeOS, but also on Haiku.
18173 * lib/fpurge.c (fpurge): Likewise.
18174 * lib/freadable.c (freadable): Likewise.
18175 * lib/freadahead.c (freadahead): Likewise.
18176 * lib/freading.c (freading): Likewise.
18177 * lib/freadptr.c (freadptr): Likewise.
18178 * lib/freadseek.c (freadptrinc): Likewise.
18179 * lib/fseeko.c (rpl_fseeko): Likewise.
18180 * lib/fseterr.c (fseterr): Likewise.
18181 * lib/fwritable.c (fwritable): Likewise.
18182 * lib/fwriting.c (fwriting): Likewise.
18183 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18185 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18187 * lib/config.charset: Treat Haiku like BeOS.
18189 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18191 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18192 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18194 2008-11-08 Bruno Haible <bruno@clisp.org>
18196 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18199 2008-11-08 Bruno Haible <bruno@clisp.org>
18201 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18203 2008-11-08 Bruno Haible <bruno@clisp.org>
18205 * tests/test-select-fd.c: New file.
18206 * tests/test-select-in.sh: New file.
18207 * tests/test-select-out.sh: New file.
18208 * tests/test-select-stdin.c: New file.
18209 * modules/select-tests (Files): Add the new files.
18210 (Depends-on): Add gettimeofday.
18211 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18212 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18213 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18215 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18216 Bruno Haible <bruno@clisp.org>
18218 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18220 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18222 * build-aux/pmccabe2html: Added support for C++ source files.
18224 2008-11-05 Ben Pfaff <blp@gnu.org>
18226 Fix lib/close.c build on Windows.
18227 * modules/close (Files): Add lib/w32sock.h.
18229 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18231 Accept Bison's NEWS format.
18232 * build-aux/announce-gen (print_news_deltas): Tweak
18235 2008-11-04 Bruno Haible <bruno@clisp.org>
18237 * modules/random_r (Maintainer): Add glibc.
18239 2008-11-04 Simon Josefsson <simon@josefsson.org>
18241 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18242 by karl@freefriends.org (Karl Berry).
18243 * doc/alloca.texi: Likewise.
18244 * doc/c-ctype.texi: Likewise.
18245 * doc/c-strcase.texi: Likewise.
18246 * doc/c-strcaseeq.texi: Likewise.
18247 * doc/c-strcasestr.texi: Likewise.
18248 * doc/c-strstr.texi: Likewise.
18249 * doc/c-strtod.texi: Likewise.
18250 * doc/c-strtold.texi: Likewise.
18251 * doc/ctime.texi: Likewise.
18252 * doc/error.texi: Likewise.
18253 * doc/fdl.texi: Likewise.
18254 * doc/gcd.texi: Likewise.
18255 * doc/getdate.texi: Likewise.
18256 * doc/gnulib-intro.texi: Likewise.
18257 * doc/gnulib-tool.texi: Likewise.
18258 * doc/gnulib.texi: Likewise.
18259 * doc/inet_ntoa.texi: Likewise.
18260 * doc/maintain.texi: Likewise.
18261 * doc/make-stds.texi: Likewise.
18262 * doc/quote.texi: Likewise.
18263 * doc/regexprops-generic.texi: Likewise.
18264 * doc/standards.texi: Likewise.
18265 * doc/verify.texi: Likewise.
18266 * doc/visibility.texi: Likewise.
18267 * doc/gnulib.texi (GNU Free Documentation License): Include
18268 fdl-1.3.texi instead of fdl.texi.
18270 2008-11-04 Simon Josefsson <simon@josefsson.org>
18272 * doc/fdl-1.3.texi: New file, from
18273 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18274 * modules/fdl-1.3: Add.
18275 * MODULES.html.sh: Add fdl-1.3.
18277 2008-11-03 Bruno Haible <bruno@clisp.org>
18279 Make determination of absolute name of header file work with AIX xlc.
18280 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18281 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18283 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18284 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18286 2008-11-03 Simon Josefsson <simon@josefsson.org>
18288 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18289 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18292 2008-11-02 Bruno Haible <bruno@clisp.org>
18294 Mark 'strpbrk' obsolete.
18295 * modules/strpbrk (Status, Notice): New sections.
18296 * modules/strtok_r (Depends-on): Add strpbrk.
18298 2008-11-02 Bruno Haible <bruno@clisp.org>
18300 Mark 'strdup' obsolete.
18301 * modules/strdup (Status, Notice): New sections.
18302 * modules/findprog (Depends-on): Add strdup.
18303 * modules/getaddrinfo (Depends-on): Likewise.
18304 * modules/localename (Depends-on): Likewise.
18305 * modules/relocatable-lib (Depends-on): Likewise.
18306 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18307 * modules/relocatable-prog (Depends-on): Likewise.
18308 * modules/trim (Depends-on): Likewise.
18309 * modules/unictype/gen-ctype (Depends-on): Likewise.
18310 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18312 2008-11-02 Bruno Haible <bruno@clisp.org>
18314 Mark 'strcspn' obsolete.
18315 * modules/strcspn (Status, Notice): New sections.
18317 2008-11-02 Bruno Haible <bruno@clisp.org>
18319 Mark 'rmdir' obsolete.
18320 * modules/rmdir (Status, Notice): New sections.
18321 * modules/clean-temp (Depends-on): Add rmdir.
18322 * modules/openat (Depends-on): Likewise.
18324 2008-11-02 Bruno Haible <bruno@clisp.org>
18326 Mark 'raise' obsolete.
18327 * modules/raise (Status, Notice): New sections.
18328 (Include): Specify <signal.h>.
18329 * modules/stdio (Depends-on): Add raise.
18330 * modules/write (Depends-on): Likewise.
18332 2008-11-02 Bruno Haible <bruno@clisp.org>
18334 Mark 'memset' obsolete.
18335 * modules/memset (Status, Notice): New sections.
18337 2008-11-02 Bruno Haible <bruno@clisp.org>
18339 Mark 'memmove' obsolete.
18340 * modules/memmove (Status, Notice): New sections.
18341 * modules/argp (Depends-on): Add memmove.
18342 * modules/argz (Depends-on): Likewise.
18343 * modules/canonicalize (Depends-on): Likewise.
18344 * modules/canonicalize-lgpl (Depends-on): Likewise.
18345 * modules/fts (Depends-on): Likewise.
18346 * modules/getcwd (Depends-on): Likewise.
18347 * modules/human (Depends-on): Likewise.
18348 * modules/regex (Depends-on): Likewise.
18349 * modules/striconveh (Depends-on): Likewise.
18350 * modules/trim (Depends-on): Likewise.
18351 * modules/unistr/u8-move (Depends-on): Likewise.
18352 * modules/unistr/u16-move (Depends-on): Likewise.
18353 * modules/unistr/u32-move (Depends-on): Likewise.
18355 2008-11-02 Bruno Haible <bruno@clisp.org>
18357 Mark 'memcpy' obsolete.
18358 * modules/memcpy (Status, Notice): New sections.
18360 2008-11-02 Bruno Haible <bruno@clisp.org>
18362 Mark 'memcmp' obsolete.
18363 * modules/memcmp (Status, Notice): New sections.
18364 * modules/argmatch (Depends-on): Add memchr.
18365 * modules/backupfile (Depends-on): Likewise.
18366 * modules/c-strcasestr (Depends-on): Likewise.
18367 * modules/crypto/des (Depends-on): Likewise.
18368 * modules/csharpcomp (Depends-on): Likewise.
18369 * modules/fnmatch (Depends-on): Likewise.
18370 * modules/git-merge-changelog (Depends-on): Likewise.
18371 * modules/isnand (Depends-on): Likewise.
18372 * modules/isnand-nolibm (Depends-on): Likewise.
18373 * modules/isnanf (Depends-on): Likewise.
18374 * modules/isnanf-nolibm (Depends-on): Likewise.
18375 * modules/isnanl (Depends-on): Likewise.
18376 * modules/isnanl-nolibm (Depends-on): Likewise.
18377 * modules/mbchar (Depends-on): Likewise.
18378 * modules/memcoll (Depends-on): Likewise.
18379 * modules/quotearg (Depends-on): Likewise.
18380 * modules/regex (Depends-on): Likewise.
18381 * modules/relocatable-prog (Depends-on): Likewise.
18382 * modules/same (Depends-on): Likewise.
18383 * modules/signbit (Depends-on): Likewise.
18384 * modules/strcasestr-simple (Depends-on): Likewise.
18385 * modules/unictype/gen-ctype (Depends-on): Likewise.
18386 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18387 * modules/uniname/uniname (Depends-on): Likewise.
18388 * modules/unistr/u8-cmp (Depends-on): Likewise.
18390 2008-11-02 Bruno Haible <bruno@clisp.org>
18392 Mark 'memchr' obsolete.
18393 * modules/memchr (Status, Notice): New sections.
18394 * modules/argp (Depends-on): Add memchr.
18395 * modules/base64 (Depends-on): Likewise.
18396 * modules/c-strcasestr (Depends-on): Likewise.
18397 * modules/chdir-long (Depends-on): Likewise.
18398 * modules/fnmatch (Depends-on): Likewise.
18399 * modules/getsubopt (Depends-on): Likewise.
18400 * modules/git-merge-changelog (Depends-on): Likewise.
18401 * modules/glob (Depends-on): Likewise.
18402 * modules/strcasestr-simple (Depends-on): Likewise.
18403 * modules/strnlen (Depends-on): Likewise.
18405 2008-11-02 Bruno Haible <bruno@clisp.org>
18407 Mark 'atexit' obsolete.
18408 * modules/atexit (Status, Notice): New sections.
18409 * modules/chdir-long (Depends-on): Add atexit.
18410 * modules/wait-process (Depends-on): Likewise.
18412 2008-11-02 Bruno Haible <bruno@clisp.org>
18414 * gnulib-tool: New option --with-obsolete.
18415 (func_usage): Document it.
18416 (func_modules_transitive_closure): Drop obsolete dependencies if
18417 incobsolete is not true.
18418 (func_import): Read and save the incobsolete variable to the cache.
18420 2008-11-02 Bruno Haible <bruno@clisp.org>
18422 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18423 * gnulib-tool: New option --extract-status.
18424 (func_usage): Document it.
18425 (sed_extract_prog): Recognize it.
18426 (func_get_status): New function.
18428 2008-10-30 Simon Josefsson <simon@josefsson.org>
18430 * modules/sockets (License): Change from LGPL to LGPLv2+.
18432 2008-10-28 Simon Josefsson <simon@josefsson.org>
18434 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18436 2008-10-28 Simon Josefsson <simon@josefsson.org>
18438 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18439 Mention times and sys_times.
18440 * modules/sys_times, modules/sys_times-tests: New modules.
18441 * modules/times, modules/times-tests: Likewise
18442 * m4/sys_times_h.m4: New file.
18443 * lib/sys_times.in.h: Likewise
18444 * lib/times.c: Likewise.
18445 * tests/test-sys_times.c: Likewise.
18446 * tests/test-times.c: Likewise.
18447 * doc/posix-headers/sys_times.texi: Update.
18448 * doc/posix-functions/times.texi: Update.
18450 2008-10-28 Jim Meyering <meyering@redhat.com>
18452 * modules/tempname (Depends-on): Add lstat.
18454 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18456 2008-10-28 Simon Josefsson <simon@josefsson.org>
18458 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18459 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18460 using idiom used elsewhere in gnulib.
18462 2008-10-27 Jim Meyering <meyering@redhat.com>
18464 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18466 2008-10-27 Simon Josefsson <simon@josefsson.org>
18468 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18469 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18471 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18473 2008-10-27 Simon Josefsson <simon@josefsson.org>
18475 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18477 2008-10-27 Bruno Haible <bruno@clisp.org>
18479 * tests/test-lstat.c: Include <stdio.h>.
18481 2008-10-27 Simon Josefsson <simon@josefsson.org>
18483 * modules/lstat-tests: New module.
18484 * tests/test-lstat.c: New file.
18486 2008-10-26 Jim Meyering <meyering@redhat.com>
18488 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18490 2008-10-26 Simon Josefsson <simon@josefsson.org>
18491 Bruno Haible <bruno@clisp.org>
18493 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18494 * modules/configmake (Include): Add a note that the include must come
18495 after all system headers.
18496 * lib/javaversion.c: Include configmake.h after all other includes.
18498 2008-10-26 Bruno Haible <bruno@clisp.org>
18500 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18501 HAVE_STRUCT_RANDOM_DATA to 1.
18502 (gl_STDLIB_H): Simplify.
18504 2008-10-26 Simon Josefsson <simon@josefsson.org>
18506 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18507 substitute HAVE_STRUCT_RANDOM_DATA.
18508 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18510 * modules/stdlib (Makefile.am): Substitute
18511 HAVE_STRUCT_RANDOM_DATA.
18513 2008-10-26 Simon Josefsson <simon@josefsson.org>
18515 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18516 * doc/gnulib-intro.texi (Copyright): Likewise.
18518 2008-10-26 Simon Josefsson <simon@josefsson.org>
18520 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18523 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18524 Bruno Haible <bruno@clisp.org>
18526 * lib/unistd.in.h: Include <winsock2.h>.
18527 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18528 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18529 Provide dummy declarations.
18530 (gethostname): Override.
18531 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18532 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18533 gl_PREREQ_SYS_H_WINSOCK2.
18534 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18535 * doc/posix-functions/gethostname.texi: More details.
18537 2008-10-25 Bruno Haible <bruno@clisp.org>
18539 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18540 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18541 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18543 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18545 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18546 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18547 gl_UNISTD_H_DEFAULTS.
18549 2008-10-25 Eric Blake <ebb9@byu.net>
18551 signbit: avoid spurious compiler failure
18552 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18553 declarations inside function.
18555 2008-10-24 Simon Josefsson <simon@josefsson.org>
18556 Bruno Haible <bruno@clisp.org>
18558 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18559 * modules/random_r (Depends-on): Add stdint.
18561 2008-10-24 Bruno Haible <bruno@clisp.org>
18563 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18565 * modules/strerror (License): Likewise.
18567 2008-10-24 Jim Meyering <meyering@redhat.com>
18569 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18570 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18572 2008-10-24 Eric Blake <ebb9@byu.net>
18574 getgroups: fix compilation when getgroups is available
18575 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18576 but with <config.h> override of getgroups disabled.
18578 2008-10-24 Simon Josefsson <simon@josefsson.org>
18580 * doc/gnulib.texi (Header files): Add note about C++ problems.
18581 Explained by Bruno Haible <bruno@clisp.org>.
18583 2008-10-23 Bruno Haible <bruno@clisp.org>
18585 Define a dummy SA_NODEFER macro on Interix.
18586 * lib/signal.in.h (SA_NODEFER): Define fallback.
18587 Reported by Aleksey Cheusov <cheusov@tut.by> via
18588 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18590 2008-10-23 Bruno Haible <bruno@clisp.org>
18592 * modules/freadahead (License): Change to LGPLv2+.
18593 Suggested by Simon Josefsson.
18595 2008-10-23 Jim Meyering <meyering@redhat.com>
18597 random_r: new module
18598 * modules/random_r: New file.
18599 * m4/random_r.m4: New file.
18600 * lib/random_r.c: New file, from glibc.
18601 * modules/random_r-tests: New file.
18602 * tests/test-random_r.c: New file.
18603 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18605 (RAND_MAX): Define.
18606 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18607 * modules/stdlib: Substitute them, too.
18608 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18609 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18610 * doc/glibc-functions/random_r.texi: Likewise.
18611 * doc/glibc-functions/setstate_r.texi: Likewise.
18612 * doc/glibc-functions/srandom_r.texi: Likewise.
18613 * config/srclist.txt: Mention it.
18615 2008-10-23 David Lutterkort <lutter@redhat.com>
18617 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18620 2008-10-23 Jim Meyering <meyering@redhat.com>
18622 selinux-h: mark parameters of stub functions as intentionally unused
18623 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18624 * lib/se-context.in.h: Likewise.
18626 2008-10-22 Simon Josefsson <simon@josefsson.org>
18628 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18630 2008-10-22 Simon Josefsson <simon@josefsson.org>
18632 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18634 2008-10-22 Eric Blake <ebb9@byu.net>
18636 glthread/thread: avoid compiler warning
18637 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18638 Add unreachable abort to silence compiler.
18640 2008-10-22 Eric Blake <ebb9@byu.net>
18642 netdb: also supply struct addrinfo for cygwin 1.5.x
18643 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18645 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18647 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18649 2008-10-22 Bruno Haible <bruno@clisp.org>
18651 * users.txt: Update entry about pspp.
18653 2008-10-21 Bruno Haible <bruno@clisp.org>
18656 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18657 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18660 * lib/ioctl.c (ioctl): Don't undefine.
18661 * lib/socket.c (socket): Don't undefine.
18663 Remove unused module indicator macros.
18664 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18665 GNULIB_$1 as a C macro.
18667 * doc/posix-functions/close.texi: Undo last change.
18668 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18671 2008-10-21 Bruno Haible <bruno@clisp.org>
18673 Add gethostname() declaration to <unistd.h>.
18674 * lib/unistd.in.h (gethostname): New declaration.
18675 * lib/gethostname.c: Include <unistd.h>.
18676 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18677 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18678 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18679 and HAVE_GETHOSTNAME.
18680 * modules/gethostname (Depends-on): Add unistd.
18681 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18682 (Include): Specify <unistd.h>.
18683 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18685 * tests/test-gethostname.c: Include <unistd.h> first.
18687 2008-10-21 Bruno Haible <bruno@clisp.org>
18689 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18690 * modules/select-tests (Depends-on): Likewise.
18691 Reported by Simon Josefsson.
18693 2008-10-21 Simon Josefsson <simon@josefsson.org>
18695 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18696 * lib/accept.c: New file, based on winsock.c.
18697 * lib/bind.c: New file, based on winsock.c.
18698 * lib/connect.c: New file, based on winsock.c.
18699 * lib/getpeername.c: New file, based on winsock.c.
18700 * lib/getsockname.c: New file, based on winsock.c.
18701 * lib/getsockopt.c: New file, based on winsock.c.
18702 * lib/ioctl.c: New file, based on winsock.c.
18703 * lib/listen.c: New file, based on winsock.c.
18704 * lib/recv.c: New file, based on winsock.c.
18705 * lib/recvfrom.c: New file, based on winsock.c.
18706 * lib/send.c: New file, based on winsock.c.
18707 * lib/sendto.c: New file, based on winsock.c.
18708 * lib/setsockopt.c: New file, based on winsock.c.
18709 * lib/shutdown.c: New file, based on winsock.c.
18710 * lib/socket.c: New file, based on winsock.c.
18711 * lib/w32sock.h: New file, based on winsock.c.
18712 * lib/winsock.c: Remove file.
18713 * modules/accept: Likewise.
18714 * modules/bind: Likewise.
18715 * modules/connect: Likewise.
18716 * modules/getpeername: Likewise.
18717 * modules/getsockname: Likewise.
18718 * modules/getsockopt: Likewise.
18719 * modules/ioctl: Likewise.
18720 * modules/listen: Likewise.
18721 * modules/recv: Likewise.
18722 * modules/recvfrom: Likewise.
18723 * modules/send: Likewise.
18724 * modules/sendto: Likewise.
18725 * modules/setsockopt: Likewise.
18726 * modules/shutdown: Likewise.
18727 * modules/socket: Use socket.c instead of winsock.c.
18728 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18729 * doc/posix-functions/accept.texi: Doc fix.
18730 * doc/posix-functions/bind.texi: Doc fix.
18731 * doc/posix-functions/close.texi: Doc fix.
18732 * doc/posix-functions/connect.texi: Doc fix.
18733 * doc/posix-functions/getpeername.texi: Doc fix.
18734 * doc/posix-functions/getsockname.texi: Doc fix.
18735 * doc/posix-functions/getsockopt.texi: Doc fix.
18736 * doc/posix-functions/ioctl.texi: Doc fix.
18737 * doc/posix-functions/listen.texi: Doc fix.
18738 * doc/posix-functions/recv.texi: Doc fix.
18739 * doc/posix-functions/recvfrom.texi: Doc fix.
18740 * doc/posix-functions/send.texi: Doc fix.
18741 * doc/posix-functions/sendto.texi: Doc fix.
18742 * doc/posix-functions/setsockopt.texi: Doc fix.
18743 * doc/posix-functions/shutdown.texi: Doc fix.
18744 * doc/posix-functions/socket.texi: Doc fix.
18746 2008-10-20 Bruno Haible <bruno@clisp.org>
18748 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18749 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18750 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18751 as an alias for SIGABRT.
18752 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18753 (sigaction): Map it to SIGABRT.
18754 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18756 2008-10-20 Bruno Haible <bruno@clisp.org>
18758 * lib/fts.c: Don't include lstat.h.
18759 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18761 Move the lstat() declaration to <sys/stat.h>.
18762 * lib/lstat.h: Remove file.
18763 * lib/sys_stat.in.h: Add special invocation convention.
18764 (lstat): New declaration.
18765 * lib/lstat.c (orig_lstat): New function.
18766 (rpl_lstat): Use orig_lstat instead of lstat.
18767 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18768 AC_C_INLINE. Set REPLACE_LSTAT.
18769 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18771 * modules/lstat (Files): Remove lib/lstat.h.
18772 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18773 (Include): Specify <sys/stat.h> instead of lstat.h.
18774 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18776 * NEWS: Mention the change.
18778 2008-10-20 Bruno Haible <bruno@clisp.org>
18780 * modules/posix_spawn-tests: New file.
18781 * tests/test-posix_spawn3.c: New file.
18783 2008-10-20 Bruno Haible <bruno@clisp.org>
18785 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18786 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18787 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18788 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18789 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18791 2008-10-20 Bruno Haible <bruno@clisp.org>
18793 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18794 of posix_spawn on AIX 5.3.
18796 2008-10-20 Bruno Haible <bruno@clisp.org>
18798 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18800 2008-10-20 Bruno Haible <bruno@clisp.org>
18802 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18803 of AC_LANG_PROGRAM.
18805 2008-10-20 Simon Josefsson <simon@josefsson.org>
18807 * lib/netdb.in.h: Don't define GNU specific constants until they
18808 are supported or needed. Reported by Bruno Haible
18811 2008-10-20 Simon Josefsson <simon@josefsson.org>
18813 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18815 2008-10-20 Simon Josefsson <simon@josefsson.org>
18817 * lib/getaddrinfo.h: Remove file.
18818 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18819 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18820 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18821 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18822 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18823 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18824 * tests/test-getaddrinfo.c: Likewise.
18825 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18826 * NEWS: Mention change.
18828 2008-10-19 Bruno Haible <bruno@clisp.org>
18830 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18832 2008-10-19 Bruno Haible <bruno@clisp.org>
18834 * lib/wait-process.c: Include simply <sys/wait.h>.
18835 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18836 WIFSTOPPED): Remove fallback definitions.
18837 * modules/wait-process (Depends-on): Add sys_wait.
18839 New module 'sys_wait'.
18840 * modules/sys_wait: New file.
18841 * lib/sys_wait.in.h: New file, partially copied from
18842 lib/wait-process.c.
18843 * m4/sys_wait_h.m4: New file.
18844 * doc/posix-headers/sys_wait.texi: Mention the new module.
18846 2008-10-19 Bruno Haible <bruno@clisp.org>
18848 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18850 2008-10-19 Bruno Haible <bruno@clisp.org>
18852 Assume that waitpid() fills an 'int' status, not a 'union wait'.
18853 * lib/wait-process.c (WAIT_T): Remove type.
18854 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18855 (wait_subprocess): Update.
18857 2008-10-19 Bruno Haible <bruno@clisp.org>
18859 New module 'atoll'.
18860 * modules/atoll: New file.
18861 * lib/stdlib.in.h (atoll): New declaration.
18862 * lib/atoll.c: New file, from glibc with modifications.
18863 * m4/atoll.m4: New file.
18864 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18866 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18867 * doc/posix-functions/atoll.texi: Mention the new module.
18869 2008-10-19 Bruno Haible <bruno@clisp.org>
18871 Add strtoull() declaration to <stdlib.h>.
18872 * lib/stdlib.in.h (strtoull): New declaration.
18873 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18875 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18877 * modules/strtoull (Depends-on): Add stdlib.
18878 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18879 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18882 2008-10-19 Bruno Haible <bruno@clisp.org>
18884 Add strtoll() declaration to <stdlib.h>.
18885 * lib/stdlib.in.h (strtoll): New declaration.
18886 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18888 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18890 * modules/strtoll (Depends-on): Add stdlib.
18891 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18892 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18894 2008-10-19 Bruno Haible <bruno@clisp.org>
18896 * modules/bcopy (Depends-on): Add strings.
18897 (Include): Specify <strings.h>.
18899 2008-10-19 Bruno Haible <bruno@clisp.org>
18901 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18903 2008-10-19 Bruno Haible <bruno@clisp.org>
18905 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18906 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18909 2008-10-19 Bruno Haible <bruno@clisp.org>
18911 * lib/atanl.c: Don't include isnanl.h.
18912 * lib/cosl.c: Likewise.
18913 * lib/ldexpl.c: Likewise.
18914 * lib/logl.c: Likewise.
18915 * lib/sinl.c: Likewise.
18916 * lib/sqrtl.c: Likewise.
18917 * lib/tanl.c: Likewise.
18919 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18920 * lib/isnanf.h: Remove file.
18921 * lib/isnand.h: Remove file.
18922 * lib/isnanl.h: Remove file.
18923 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18924 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18926 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18927 HAVE_ISNANF, don't define it as a C macro.
18928 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18929 HAVE_ISNAND, don't define it as a C macro.
18930 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18931 HAVE_ISNANL, don't define it as a C macro.
18932 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18934 * modules/isnanf (Files): Remove lib/isnanf.h.
18935 (Depends-on): Add math.
18936 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18937 (Include): Specify <math.h> instead of isnanf.h.
18938 * modules/isnand (Files): Remove lib/isnand.h.
18939 (Depends-on): Add math.
18940 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18941 (Include): Specify <math.h> instead of isnand.h.
18942 * modules/isnanl (Files): Remove lib/isnanl.h.
18943 (Depends-on): Add math.
18944 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18945 (Include): Specify <math.h> instead of isnanl.h.
18946 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18948 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18949 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18950 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18951 * NEWS: Mention the change.
18953 2008-10-18 Bruno Haible <bruno@clisp.org>
18955 Add getusershell(), setusershell(), endusershell() declarations to
18957 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18959 * lib/getusershell.c: Include unistd.h.
18960 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18961 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18963 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18964 and HAVE_GETUSERSHELL.
18965 * modules/getusershell (Depends-on): Add unistd, extensions.
18966 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18967 (Include): Specify <unistd.h>.
18968 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18971 2008-10-18 Bruno Haible <bruno@clisp.org>
18973 Add a getloadavg() declaration to <stdlib.h>.
18974 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18975 getloadavg declaration.
18976 (getloadavg): New declaration.
18977 * lib/getloadavg.c: Include <stdlib.h> first.
18978 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18979 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18980 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18981 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18982 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18983 * modules/getloadavg (Depends-on): Add stdlib, extensions.
18984 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18985 (Include): Specify <stdlib.h>.
18986 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18987 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18989 2008-10-18 Bruno Haible <bruno@clisp.org>
18991 * lib/dirchownmod.c: Don't include lchmod.h.
18993 Move the lchmod() declaration to <sys/stat.h>.
18994 * lib/lchmod.h: Remove file.
18995 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18996 (lchmod): New declaration, moved here from lib/lchown.h.
18997 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18998 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18999 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19001 * modules/lchmod (Files): Remove lib/lchmod.h.
19002 (Depends-on): Add sys_stat, extensions.
19003 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19004 (Include): Specify <sys/stat.h> instead of lchmod.h.
19005 * modules/sys_stat (Depends-on): Add link-warning.
19006 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19007 definition of GL_LINK_WARNING.
19008 * NEWS: Mention the change.
19010 2008-10-18 Bruno Haible <bruno@clisp.org>
19012 * lib/fchdir.c: Don't include dirfd.h.
19013 * lib/fts.c: Likewise.
19014 * lib/getcwd.c: Likewise.
19015 * lib/glob.c: Likewise.
19017 Move the dirfd() declaration to <dirent.h>.
19018 * lib/dirfd.h: Remove file.
19019 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19020 (dirfd): New declaration.
19021 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19022 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19023 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19025 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19027 * modules/dirfd (Files): Remove lib/dirfd.h.
19028 (Depends-on): Add dirent, extensions.
19029 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19030 (Include): Specify <dirent.h> instead of dirfd.h.
19031 * modules/dirent (Depends-on): Add link-warning.
19032 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19033 definition of GL_LINK_WARNING.
19034 * NEWS: Mention the change.
19036 2008-10-18 Bruno Haible <bruno@clisp.org>
19038 Move the euidaccess() declaration to <unistd.h>.
19039 * lib/euidaccess.h: Remove file.
19040 * lib/unistd.in.h (euidaccess): New declaration.
19041 * lib/euidaccess.c: Don't include euidaccess.h.
19042 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19043 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19044 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19045 and HAVE_EUIDACCESS.
19046 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19047 (Depends-on): Add unistd.
19048 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19049 (Include): Specify <unistd.h> instead of euidaccess.h.
19050 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19052 * NEWS: Mention the change.
19054 2008-10-18 Bruno Haible <bruno@clisp.org>
19056 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19058 Move the getdomainname() declaration to <unistd.h>.
19059 * lib/getdomainname.h: Remove file.
19060 * lib/unistd.in.h (getdomainname): New declaration.
19061 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19062 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19063 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19064 HAVE_GETDOMAINNAME.
19065 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19066 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19067 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19068 (Depends-on): Add unistd, extensions.
19069 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19070 (Includes): Specify <unistd.h> instead of getdomainname.h.
19071 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19072 HAVE_GETDOMAINNAME.
19073 * NEWS: Mention the change.
19075 2008-10-18 Bruno Haible <bruno@clisp.org>
19077 * modules/dirent: New file.
19078 * m4/dirent_h.m4: New file.
19079 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19080 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19081 * modules/fchdir (Files): Remove lib/dirent.in.h.
19082 (Depends-on): Add dirent.
19083 (Makefile.am): Move rules to modules/dirent.
19084 * doc/posix-headers/dirent.texi: Mention the new module.
19086 2008-10-18 Bruno Haible <bruno@clisp.org>
19088 Avoid -Wunused-parameter warnings in public gnulib header files.
19089 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19091 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19093 2008-10-18 Bruno Haible <bruno@clisp.org>
19095 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19096 * doc/glibc-functions/error.texi: Mention the module 'error'.
19097 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19098 * doc/glibc-functions/getdomainname.texi: Mention the module
19100 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19101 * doc/glibc-functions/getpagesize.texi: Mention the module
19103 * doc/glibc-functions/getusershell.texi: Mention the module
19105 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19106 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19107 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19108 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19109 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19110 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19111 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19112 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19113 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19114 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19115 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19116 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19117 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19118 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19120 2008-10-17 Bruno Haible <bruno@clisp.org>
19122 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19123 HP-UX and IRIX, use -0.0L.
19124 * tests/test-ceill.c (minus_zero): Likewise.
19125 * tests/test-floorl.c (minus_zero): Likewise.
19126 * tests/test-frexpl.c (minus_zero): Likewise.
19127 * tests/test-isnan.c (minus_zerol): Likewise.
19128 * tests/test-isnanl.h (minus_zero): Likewise.
19129 * tests/test-ldexpl.c (minus_zero): Likewise.
19130 * tests/test-roundl.c (minus_zero): Likewise.
19131 * tests/test-signbit.c (minus_zerol): Likewise.
19132 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19133 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19134 * tests/test-truncl.c (minus_zero): Likewise.
19135 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19136 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19137 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19138 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19140 2008-10-17 Bruno Haible <bruno@clisp.org>
19142 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19143 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19144 that it gets activated only for gcc >= 3.0.
19145 * lib/dirent.in.h: Likewise.
19146 * lib/errno.in.h: Likewise.
19147 * lib/fcntl.in.h: Likewise.
19148 * lib/float.in.h: Likewise.
19149 * lib/iconv.in.h: Likewise.
19150 * lib/inttypes.in.h: Likewise.
19151 * lib/locale.in.h: Likewise.
19152 * lib/math.in.h: Likewise.
19153 * lib/netdb.in.h: Likewise.
19154 * lib/netinet_in.in.h: Likewise.
19155 * lib/search.in.h: Likewise.
19156 * lib/signal.in.h: Likewise.
19157 * lib/spawn.in.h: Likewise.
19158 * lib/stdarg.in.h: Likewise.
19159 * lib/stdint.in.h: Likewise.
19160 * lib/stdio.in.h: Likewise.
19161 * lib/stdlib.in.h: Likewise.
19162 * lib/string.in.h: Likewise.
19163 * lib/strings.in.h: Likewise.
19164 * lib/sys_file.in.h: Likewise.
19165 * lib/sys_ioctl.in.h: Likewise.
19166 * lib/sys_select.in.h: Likewise.
19167 * lib/sys_socket.in.h: Likewise.
19168 * lib/sys_stat.in.h: Likewise.
19169 * lib/sys_time.in.h: Likewise.
19170 * lib/sysexits.in.h: Likewise.
19171 * lib/time.in.h: Likewise.
19172 * lib/unistd.in.h: Likewise.
19173 * lib/wchar.in.h: Likewise.
19174 * lib/wctype.in.h: Likewise.
19175 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19177 2008-10-17 Jim Meyering <meyering@redhat.com>
19179 ignore-value: don't depend on inline module
19180 * modules/ignore-value (Depends-on): Remove 'inline'.
19181 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19182 Suggestion from Bruno Haible.
19184 2008-10-17 Bruno Haible <bruno@clisp.org>
19186 New implementation of condition variables for Win32.
19187 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19188 (gl_linked_waitqueue_t): New type.
19189 (gl_cond_t): Use it.
19190 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19191 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19192 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19193 (glthread_cond_init_func, glthread_cond_wait_func,
19194 glthread_cond_timedwait_func, glthread_cond_signal_func,
19195 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19196 Reimplemented on the basis of gl_linked_waitqueue_t.
19197 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19199 (gl_rwlock_t): Update.
19200 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19202 2008-10-17 Simon Josefsson <simon@josefsson.org>
19204 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19205 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19207 2008-10-17 Jim Meyering <meyering@redhat.com>
19209 ignore-value: new module
19210 * modules/ignore-value: New file.
19211 * lib/ignore-value.h: New file.
19212 * MODULES.html.sh (Compiler warning management): New section,
19213 just for this module. More to come.
19215 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19217 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19218 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19219 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19221 2008-10-16 Jim Meyering <meyering@redhat.com>
19223 openat-die.c: avoid 'no previous prototype' warning
19224 * lib/openat-die.c: Include "openat.h".
19225 Reported by Reuben Thomas <rrt@sc3d.org>.
19227 2008-10-16 Simon Josefsson <simon@josefsson.org>
19229 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19230 * lib/netdb.in.h: Fix typo.
19231 Reported by Bruno Haible <bruno@clisp.org>
19233 * lib/netdb.in.h: Include sys/socket.h for platforms without
19234 netdb.h, to get structures like hostent on MinGW.
19235 * modules/netdb (Depends-on): Add sys_socket.
19237 2008-10-15 Simon Josefsson <simon@josefsson.org>
19239 * modules/netdb, modules/netdb-tests: New file.
19240 * m4/netdb_h.m4: New file.
19241 * lib/netdb.in.h: Add, currently just an empty file pending
19243 * tests/test-netdb.c: New file.
19244 * doc/posix-headers/netdb.texi: Mention that we replace it if
19246 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19249 2008-10-15 Simon Josefsson <simon@josefsson.org>
19251 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19254 2008-10-13 Bruno Haible <bruno@clisp.org>
19256 * lib/glthread/cond.c (glthread_cond_wait_func,
19257 glthread_cond_timedwait_func): Add a comment.
19259 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19261 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19262 * tests/test-select.c: Likewise,
19264 2008-10-13 Bruno Haible <bruno@clisp.org>
19266 * lib/glthread/cond.c (glthread_cond_wait_func,
19267 glthread_cond_timedwait_func): Fix variable name.
19268 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19270 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19272 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19273 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19274 struct sockaddr.sa_len.
19275 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19277 2008-10-13 Simon Josefsson <simon@josefsson.org>
19279 * build-aux/pmccabe2html: Add css and css_url parameters.
19281 2008-10-12 Bruno Haible <bruno@clisp.org>
19283 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19285 Reported by Rainer Tammer <tammer@tammer.net>.
19287 2008-10-12 Bruno Haible <bruno@clisp.org>
19289 Use msvcrt aware primitives for creation/termination of Win32 threads.
19290 * lib/glthread/thread.c: Include <process.h>.
19291 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19292 (wrapper_func): Update signature.
19293 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19295 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19296 Bruno Haible <bruno@clisp.org>
19298 Provide a Win32 implementation of the 'cond' module.
19299 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19300 * lib/glthread/cond.c (glthread_cond_init_func,
19301 glthread_cond_wait_func, glthread_cond_timedwait_func,
19302 glthread_cond_signal_func, glthread_cond_broadcast_func,
19303 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19304 * modules/cond (Dependencies): Add gettimeofday.
19306 2008-10-11 Bruno Haible <bruno@clisp.org>
19308 Make sleep work on older versions of mingw.
19309 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19310 only whether it exists.
19311 * doc/posix-functions/sleep.texi: Mention the problem with older
19314 2008-10-11 Bruno Haible <bruno@clisp.org>
19316 New module 'shutdown'.
19317 * modules/shutdown: New file.
19318 * lib/sys_socket.in.h (shutdown): New declaration.
19319 * lib/winsock.c (shutdown): New function.
19320 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19322 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19323 * doc/posix-functions/shutdown.texi: Document the new module.
19325 2008-10-11 Jim Meyering <meyering@redhat.com>
19327 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19329 2008-10-11 Bruno Haible <bruno@clisp.org>
19331 New module 'fclose'.
19332 * modules/fclose: New file.
19333 * lib/stdio.in.h (fclose): New declaration.
19334 * lib/fclose.c: New file.
19335 * m4/fclose.m4: New file.
19336 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19338 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19339 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19341 * modules/close (Depends-on): fclose.
19342 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19344 2008-10-11 Bruno Haible <bruno@clisp.org>
19346 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19347 set errno and don't call _close.
19349 2008-10-10 Bruno Haible <bruno@clisp.org>
19351 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19352 ACL, not afterwards. Fixes test failure on Cygwin.
19354 2008-10-09 Ben Pfaff <blp@gnu.org>
19356 * build-aux/announce-gen: Fix gnulib version related part of usage
19357 message. Die with a useful error message if no tarballs are
19360 2008-10-10 Jim Meyering <meyering@redhat.com>
19362 bootstrap: use git's --depth=N option only if it's supported
19363 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19364 recognize the --depth option. Reported by Pádraig Brady.
19366 2008-10-09 Bruno Haible <bruno@clisp.org>
19368 New module 'ioctl'.
19369 * modules/ioctl: New file.
19370 * lib/sys_socket.in.h (ioctl): Remove declaration.
19371 * lib/winsock.c: Include <sys/ioctl.h>.
19372 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19373 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19374 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19375 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19376 * doc/posix-functions/ioctl.texi: Mention the new module.
19378 2008-10-09 Bruno Haible <bruno@clisp.org>
19380 New module 'sys_ioctl'.
19381 * lib/sys_ioctl.in.h: New file.
19382 * m4/sys_ioctl_h.m4: New file.
19383 * modules/sys_ioctl: New file.
19384 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19386 2008-10-09 Bruno Haible <bruno@clisp.org>
19388 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19389 * lib/winsock.c: Include <stdarg.h>.
19390 (rpl_ioctl): Change to second argument 'int' and then varargs.
19392 2008-10-09 Bruno Haible <bruno@clisp.org>
19394 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19395 when the sys_socket module is present and the system has <winsock2.h>.
19397 2008-10-09 Bruno Haible <bruno@clisp.org>
19399 * doc/posix-functions/close.texi: Mention module 'close' instead of
19400 module 'sys_socket'.
19402 2008-10-09 Bruno Haible <bruno@clisp.org>
19404 * doc/glibc-headers/sys_ioctl.texi: New file.
19405 * doc/gnulib.texi: Include it.
19407 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19408 Bruno Haible <bruno@clisp.org>
19410 Combine the two replacements of 'close'.
19411 * lib/sys_socket.in.h (close): Define to a reminder to include
19413 (_gl_close_fd_maybe_socket): New declaration.
19414 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19415 * lib/winsock.c (close): Remove undefinition.
19416 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19417 needed for the gnulib module 'close'.
19418 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19419 define to an error symbol or to a warning, if suitable.
19420 * lib/close.c: Include <sys/socket.h>.
19421 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19422 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19423 UNISTD_H_HAVE_WINSOCK2_H.
19424 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19425 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19426 UNISTD_H_HAVE_WINSOCK2_H.
19427 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19428 (configure.ac): Set a module indicator.
19429 (Makefile.am): Substitute GNULIB_CLOSE.
19430 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19431 * modules/poll-tests (Depends-on): Add close.
19432 * modules/select-tests (Depends-on): Likewise.
19434 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19435 Bruno Haible <bruno@clisp.org>
19437 New module 'close'.
19438 * modules/close: New file.
19439 * lib/unistd.in.h (close): Move declaration out of the
19440 FCHDIR_REPLACEMENT scope.
19441 (_gl_unregister_fd): New declaration.
19442 * lib/close.c: New file.
19443 * lib/fchdir.c (rpl_close): Remove function.
19444 * m4/close.m4: New file.
19445 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19447 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19449 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19451 * modules/fchdir (Depends-on): Add close.
19453 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19454 Bruno Haible <bruno@clisp.org>
19456 * lib/fcntl.in.h (open): Simplify conditionals.
19457 (_gl_register_fd): New declaration.
19458 * lib/fchdir.c (rpl_open): Remove function.
19459 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19461 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19462 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19465 2008-10-09 Jim Meyering <meyering@redhat.com>
19467 GNUmakefile: use the more name-space-friendly "_version"
19468 * top/GNUmakefile (_dummy): Update.
19469 (_version): Rename from "version".
19471 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19472 Bruno Haible <bruno@clisp.org>
19474 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19476 (_gl_register_fd): New function, extracted from rpl_open.
19477 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19478 (rpl_open, rpl_opendir): Use _gl_register_fd.
19480 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19482 Fix organization of 'open' replacement.
19483 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19484 (gl_FUNC_OPEN): Use it.
19485 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19487 2008-10-08 Bruno Haible <bruno@clisp.org>
19489 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19491 2008-10-08 Simon Josefsson <simon@josefsson.org>
19493 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19494 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19497 2008-10-08 Eric Blake <ebb9@byu.net>
19499 GNUmakefile: add 'make version' target
19500 * top/GNUmakefile (_curr-ver): Split version update rules...
19501 (version): ...into a target.
19503 2008-10-07 Bruno Haible <bruno@clisp.org>
19505 Use a more portable replacement expression for -0.0L.
19506 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19507 instead of -0.0L. Fix m4 quotation.
19509 * tests/test-signbit.c: Include <float.h>.
19510 (minus_zero): New variable.
19511 (test_signbitl): Use minus_zero instead of -zero.
19512 * modules/signbit-tests (Depends-on): Add float.
19514 * tests/test-ceill.c: Include <float.h>.
19515 (zero): Remove variable.
19516 (minus_zero): New variable.
19517 (main): Use minus_zero instead of -zero.
19518 * modules/ceill-tests (Depends-on): Add float.
19520 * tests/test-floorl.c: Include <float.h>.
19521 (zero): Remove variable.
19522 (minus_zero): New variable.
19523 (main): Use minus_zero instead of -zero.
19524 * modules/floorl-tests (Depends-on): Add float.
19526 * tests/test-roundl.c: Include <float.h>.
19527 (zero): Remove variable.
19528 (minus_zero): New variable.
19529 (main): Use minus_zero instead of -zero.
19530 * modules/roundl-tests (Depends-on): Add float.
19532 * tests/test-truncl.c: Include <float.h>.
19533 (zero): Remove variable.
19534 (minus_zero): New variable.
19535 (main): Use minus_zero instead of -zero.
19536 * modules/truncl-tests (Depends-on): Add float.
19538 * tests/test-frexpl.c (zero): Remove variable.
19539 (minus_zero): New variable.
19540 (main): Use minus_zero instead of -zero.
19541 * modules/frexpl-tests (Depends-on): Add float.
19543 * tests/test-isnan.c (zerol): Remove variable.
19544 (minus_zerol): New variable.
19545 (test_long_double): Use minus_zerol instead of -zerol.
19546 * modules/isnan-tests (Depends-on): Add float.
19548 * tests/test-isnanl.h (zero): Remove variable.
19549 (minus_zero): New variable.
19550 (main): Use minus_zero instead of -zero.
19551 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19552 * modules/isnanl-tests (Depends-on): Add float.
19554 * tests/test-ldexpl.c (zero): Remove variable.
19555 (minus_zero): New variable.
19556 (main): Use minus_zero instead of -zero.
19557 * modules/ldexpl-tests (Depends-on): Add float.
19559 * tests/test-snprintf-posix.h (zerol): Remove variable.
19560 (minus_zerol): New variable.
19561 (test_function): Use minus_zerol instead of -zerol.
19562 * modules/snprintf-posix-tests (Depends-on): Add float.
19563 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19565 * tests/test-sprintf-posix.h (zerol): Remove variable.
19566 (minus_zerol): New variable.
19567 (test_function): Use minus_zerol instead of -zerol.
19568 * modules/sprintf-posix-tests (Depends-on): Add float.
19569 * modules/vsprintf-posix-tests (Depends-on): Add float.
19571 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19572 (minus_zerol): New variable.
19573 (test_function): Use minus_zerol instead of -zerol.
19574 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19576 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19577 (minus_zerol): New variable.
19578 (test_function): Use minus_zerol instead of -zerol.
19579 * modules/vasprintf-posix-tests (Depends-on): Add float.
19581 2008-10-07 Simon Josefsson <simon@josefsson.org>
19583 * MODULES.html.sh (Support for building documentation): Mention
19584 pmccabe2html. Sort entries.
19586 Add pmccabe2html module, from gnupdf.
19587 * build-aux/pmccabe.css: New file.
19588 * build-aux/pmccabe2html: New file.
19589 * m4/pmccabe2html.m4: New file.
19590 * modules/pmccabe2html: New file.
19592 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19595 * MODULES.html.sh: Add to list of modules.
19596 * lib/flock.c: flock implementation for Windows and Unix systems
19598 * doc/glibc-functions/flock.texi: Update documentation.
19599 * lib/sys_file.in.h: <sys/file.h> header file.
19600 * m4/flock.m4: M4 macros.
19601 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19602 * modules/flock: flock module.
19603 * modules/flock-tests: flock tests module.
19604 * modules/sys_file: sys/file.h module.
19605 * tests/test-flock.c: test suite for flock.
19607 2008-10-06 Jim Meyering <meyering@redhat.com>
19609 bootstrap: check for LT_INIT more portably still ;-)
19610 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19611 Spotted by Bruno Haible.
19613 2008-10-06 Eric Blake <ebb9@byu.net>
19615 test-signbit: avoid tripping Irix cc bug on -0.0L
19616 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19617 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19618 entire testsuite consistent and avoids an Irix 6.2 bug.
19620 2008-10-05 Bruno Haible <bruno@clisp.org>
19621 Jim Meyering <jim@meyering.net>
19623 Add an option for ignoring EPIPE during close_stdout.
19624 * lib/closeout.h: Include <stdbool.h>.
19625 (close_stdout_set_ignore_EPIPE): New declaration.
19626 * lib/closeout.c: Include <stdbool.h>.
19627 (ignore_EPIPE): New variable.
19628 (close_stdout_set_ignore_EPIPE): New function.
19629 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19630 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19632 * modules/closeout (Depends-on): Add stdbool.
19634 2008-10-05 Bruno Haible <bruno@clisp.org>
19636 * modules/accept: New file.
19637 * modules/bind: New file.
19638 * modules/connect: New file.
19639 * modules/getpeername: New file.
19640 * modules/getsockname: New file.
19641 * modules/getsockopt: New file.
19642 * modules/listen: New file.
19643 * modules/recv: New file.
19644 * modules/recvfrom: New file.
19645 * modules/send: New file.
19646 * modules/sendto: New file.
19647 * modules/setsockopt: New file.
19648 * modules/socket: New file.
19649 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19650 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19651 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19652 the particular module is requested. Add a link warning when the
19653 particular module is not requested.
19654 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19655 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19656 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19657 the particular module is requested.
19658 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19659 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19660 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19661 * modules/sys_socket (Depends-on): Add link-warning.
19662 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19663 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19664 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19665 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19667 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19668 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19669 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19670 * doc/posix-functions/getpeername.texi: Mention the new module
19672 * doc/posix-functions/getsockname.texi: Mention the new module
19674 * doc/posix-functions/getsockopt.texi: Mention the new module
19676 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19677 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19678 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19679 * doc/posix-functions/send.texi: Mention the new module 'send'.
19680 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19681 * doc/posix-functions/setsockopt.texi: Mention the new module
19683 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19684 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19685 listen, connect, accept.
19686 * modules/select-tests (Depends-on): Likewise.
19688 2008-10-05 Bruno Haible <bruno@clisp.org>
19690 * lib/winsock.c (strerror): Remove unused #undef.
19691 (rpl_close): Remove unused local variable.
19693 * modules/sys_socket (Depends-on); Add errno.
19695 2008-10-05 Bruno Haible <bruno@clisp.org>
19697 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19698 (select): Add a link warning when the 'select' module is not used.
19699 * modules/sys_select (Depends-on): Add link-warning.
19700 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19701 Suggested by Paolo Bonzini.
19703 2008-10-05 Jim Meyering <meyering@redhat.com>
19705 bootstrap: check for LT_INIT more portably
19706 * build-aux/bootstrap: Avoid using grep -E, since it's not
19707 portable enough. Suggestion from Bruno Haible.
19709 2008-10-05 Bruno Haible <bruno@clisp.org>
19711 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19712 as being fixed by gnulib.
19714 2008-10-05 Bruno Haible <bruno@clisp.org>
19716 * modules/select-tests: New file, mostly copied from
19717 modules/sys_select-tests.
19718 * tests/test-select.c: New file, mostly copied from
19719 tests/test-sys_select.c.
19720 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19721 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19722 (Makefile.am): Remove test_sys_select_LDADD.
19724 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19725 to an undefined symbol, for an error message.
19726 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19727 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19728 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19729 winsock-select.c here.
19730 * modules/sys_select (Files): Remove lib/winsock-select.c.
19731 (Depends-on): Remove alloca.
19732 (Makefile.am): Substitute GNULIB_SELECT.
19733 * modules/select: New file.
19734 * doc/posix-functions/select.texi: Update.
19736 2008-10-05 Bruno Haible <bruno@clisp.org>
19738 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19739 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19740 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19741 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19743 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19744 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19746 2008-10-05 Bruno Haible <bruno@clisp.org>
19748 * modules/getdtablesize-tests: New file.
19749 * tests/test-getdtablesize.c: New file.
19751 New module 'getdtablesize'.
19752 * lib/unistd.in.h (getdtablesize): New declaration.
19753 * lib/getdtablesize.c: New file.
19754 * m4/getdtablesize.m4: New file.
19755 * modules/getdtablesize: New file.
19756 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19757 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19758 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19759 HAVE_GETDTABLESIZE.
19760 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19762 2008-10-05 Bruno Haible <bruno@clisp.org>
19764 * modules/sched (Makefile.am): Fix typo.
19765 Reported by Simon Josefsson.
19767 2008-10-05 Jim Meyering <meyering@redhat.com>
19769 bootstrap: check for LT_INIT, too
19770 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19771 are deprecated. Suggestion from Ralf Wildenhues.
19773 2008-10-05 Bruno Haible <bruno@clisp.org>
19775 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19776 overriding them by ours.
19777 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19779 2008-10-05 Jim Meyering <meyering@redhat.com>
19781 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19782 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19783 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19785 2008-10-04 Bruno Haible <bruno@clisp.org>
19787 * modules/dup2 (License): Change to LGPLv2+.
19788 * modules/sleep (License): Likewise.
19789 * modules/perror (License): Likewise.
19790 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19792 * modules/signal (License): Likewise.
19793 * modules/sigprocmask (License): Likewise.
19794 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19797 2008-10-04 Bruno Haible <bruno@clisp.org>
19799 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19800 Reported by Rainer Tammer <tammer@tammer.net>.
19802 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19803 Bruno Haible <bruno@clisp.org>
19805 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19806 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19807 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19809 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19811 filevercmp: new module
19812 * lib/filevercmp.h: New function filevercmp comparing version strings.
19813 * lib/filevercmp.c: Implementation of filevercmp function.
19814 * modules/filevercmp: Module metadata.
19815 * tests/test-filevercmp.c: Unit test for new module.
19816 * modules/filevercmp-tests: Unit test metadata.
19817 * MODULES.html.sh: Add filevercmp module.
19819 2008-10-03 Bruno Haible <bruno@clisp.org>
19821 * lib/c-ctype.h: Add comment.
19822 Reported by Jim Meyering.
19824 2008-10-02 Bruno Haible <bruno@clisp.org>
19826 * modules/posix_spawn-internal (Depends-on): Add 'open'.
19828 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19830 * build-aux/bootstrap: Allow renaming bootstrap, and change the
19831 name of bootstrap.conf accordingly.
19833 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19835 * build-aux/bootstrap: Install git-merge-changelog configuration
19836 items into .gitconfig if needed.
19838 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19840 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19841 git repository, and initialize/update it accordingly.
19843 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
19845 * modules/fsync-tests: New file.
19846 * tests/test-fsync.c: New file.
19848 New module 'fsync'.
19849 * lib/fsync.c: New file.
19850 * m4/fsync.m4: New file.
19851 * modules/fsync: New file.
19852 * lib/unistd.in.h (fsync): New declaration.
19853 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19854 GNULIB_FSYNC and HAVE_FSYNC.
19855 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19856 * MODULES.html.sh (posix_functions): Add fsync.
19857 * doc/posix-functions/fsync.texi: Mention the new module.
19859 2008-10-02 Jim Meyering <meyering@redhat.com>
19861 fts.c: sync with similar code from coreutils' remove.c
19862 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19863 Guard also with "#if defined __linux__", since for now at least,
19864 this code is Linux-kernel-specific.
19866 2008-10-02 Jim Meyering <meyering@redhat.com>
19869 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19870 Include <sys/vfs.h>, not <sys/statfs.h>.
19872 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19873 Include <sys/vfs.h>, not <sys/statfs.h>.
19875 2008-10-01 Bruno Haible <bruno@clisp.org>
19877 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19878 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19879 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19880 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19881 * doc/posix-functions/posix_spawnp.texi: Likewise.
19882 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19883 whether posix_spawn actually works.
19884 * m4/pipe.m4 (gl_PIPE): Likewise.
19885 * modules/execute (Files): Add m4/posix_spawn.m4.
19886 * modules/pipe (Files): Add m4/posix_spawn.m4.
19887 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19889 2008-10-01 Jim Meyering <meyering@redhat.com>
19891 remove trailing spaces
19893 * lib/poll.c (poll): Likewise.
19894 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19895 * lib/winsock.c (rpl_close): Likewise.
19896 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19897 * modules/yield: Likewise.
19898 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19899 * tests/test-sys_select.c (connect_to_socket): Likewise.
19901 fts.c: adjust a new interface to be more generally useful
19902 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19903 (fts_build): Adjust caller.
19905 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19907 * modules/cond-tests: New file.
19908 * tests/test-cond.c: New file.
19910 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19911 Bruno Haible <bruno@clisp.org>
19913 * modules/cond (Dependencies): Add errno, time.
19914 * lib/glthread/cond.h: Include <time.h>.
19915 (gl_cond_define, gl_cond_define_initialized): Use the same definition
19918 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19919 Bruno Haible <bruno@clisp.org>
19921 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19923 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19924 Bruno Haible <bruno@clisp.org>
19926 * modules/tls-tests (Depends-on): Add thread, yield.
19927 (configure.ac): Remove all checks.
19928 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19929 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19930 gl_thread_self): Remove definitions. Include glthread/thread.h and
19931 glthread/yield.h instead.
19932 (test_tls): Pass an additional NULL argument to gl_thread_join.
19934 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19935 Bruno Haible <bruno@clisp.org>
19937 * modules/lock-tests (Depends-on): Add thread, yield.
19938 (configure.ac): Remove all checks.
19939 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19940 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19941 gl_thread_self): Remove definitions. Include glthread/thread.h and
19942 glthread/yield.h instead.
19943 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19944 additional NULL argument to gl_thread_join.
19946 2008-09-30 Bruno Haible <bruno@clisp.org>
19948 Fix the Win32 implementation of the 'thread' module.
19949 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19951 (gl_thread_self): Invoke gl_thread_self_func.
19952 (gl_thread_self_func): New declaration.
19953 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19954 (do_init_self_key, init_self_key): New functions.
19955 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19956 Remove some fields.
19957 (running_threads, running_lock): Remove variables.
19958 (get_current_thread_handle): New function.
19959 (gl_thread_self_func, wrapper_func, glthread_create_func,
19960 glthread_join_func, gl_thread_exit_func): Largely rewritten and
19963 2008-09-30 Bruno Haible <bruno@clisp.org>
19965 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19968 2008-09-30 Jim Meyering <meyering@redhat.com>
19970 fts.m4: correct the test for statfs.f_type
19971 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19972 when checking for statfs.f_type.
19974 2008-09-15 Simon Josefsson <simon@josefsson.org>
19976 tests: avoid some compiler warnings
19977 * tests/test-memchr.c (main): Pass NULL indirectly.
19978 * tests/test-getdate.c (main): Remove unused variable 'ret'.
19980 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19982 getdate.y: disallow countable dayshifts like "4 yesterday ago"
19983 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19984 exactly specified dayshifts.
19985 (dayshift): New rule.
19986 (rel): Add dayshift.
19987 (relative_time_table) [tomorrow, yesterday, today, now]:
19988 Use tDAY_SHIFT in place of tDAY_UNIT.
19989 * tests/test-getdate.c: Add tests for now-disallowed countable
19990 dayshifts, e.g., "4 yesterday ago".
19992 2008-09-29 Bruno Haible <bruno@clisp.org>
19994 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19995 * tests/test-posix_spawn1.in.sh: Renamed from
19996 tests/test-posix_spawn.in.sh.
19997 * tests/test-posix_spawn2.c: New file.
19998 * tests/test-posix_spawn2.in.sh: New file.
19999 * modules/posix_spawnp-tests (Files): Update.
20000 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20002 2008-09-29 Bruno Haible <bruno@clisp.org>
20004 Propagate effects of putenv/setenv/unsetenv to child processes.
20005 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20006 * lib/pipe.c (create_pipe): Likewise.
20008 2008-09-29 Bruno Haible <bruno@clisp.org>
20010 Enable use of shell scripts as executables in mingw.
20011 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20012 run the program as a shell script.
20013 * lib/pipe.c (create_pipe): Likewise.
20014 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20017 2008-09-29 Eric Blake <ebb9@byu.net>
20019 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20021 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20023 * doc/posix-functions/accept.texi: Update mingw problems.
20024 * doc/posix-functions/bind.texi: Update mingw problems.
20025 * doc/posix-functions/close.texi: Update mingw problems.
20026 * doc/posix-functions/connect.texi: Update mingw problems.
20027 * doc/posix-functions/getpeername.texi: Update mingw problems.
20028 * doc/posix-functions/getsockname.texi: Update mingw problems.
20029 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20030 * doc/posix-functions/ioctl.texi: Update mingw problems.
20031 * doc/posix-functions/listen.texi: Update mingw problems.
20032 * doc/posix-functions/recv.texi: Update mingw problems.
20033 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20034 * doc/posix-functions/select.texi: Update mingw problems.
20035 * doc/posix-functions/send.texi: Update mingw problems.
20036 * doc/posix-functions/sendto.texi: Update mingw problems.
20037 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20038 * doc/posix-functions/socket.texi: Update mingw problems.
20040 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20041 Bruno Haible <bruno@clisp.org>
20043 * lib/sys_select.in.h: Include sys/time.h.
20044 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20045 * modules/sys_select: Depend on sys_time.
20046 * tests/test-sys_select.c: Test that sys/select.h defines struct
20049 2008-09-29 Bruno Haible <bruno@clisp.org>
20051 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20052 * lib/sys_select.in.h: Likewise.
20054 2008-09-29 Bruno Haible <bruno@clisp.org>
20056 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20058 2008-09-29 Bruno Haible <bruno@clisp.org>
20060 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20061 Set LIBSOCKET instead of augmenting LIBS.
20062 * modules/sockets (Link): New section.
20063 * modules/sockets-tests (test_sockets_LDADD): New variable.
20064 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20065 * modules/poll-tests (test_poll_LDADD): New variable.
20066 * NEWS: Document the change.
20068 2008-09-29 Bruno Haible <bruno@clisp.org>
20070 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20071 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20072 ARPA_INET_H directly.
20073 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20075 2008-09-28 Bruno Haible <bruno@clisp.org>
20077 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20078 from gl_HEADER_SYS_SOCKET.
20079 (gl_HEADER_SYS_SOCKET): Invoke it.
20080 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20082 2008-09-28 Bruno Haible <bruno@clisp.org>
20084 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20085 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20086 Needed on OSF/1 4.0.
20088 2008-09-28 Bruno Haible <bruno@clisp.org>
20090 Override open more carefully.
20091 * lib/open.c (orig_open): New function.
20092 (rpl_open): Use orig_open instead of open.
20093 * lib/fcntl.in.h: Add special invocation convention.
20094 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20095 (gl_FUNC_OPEN): Invoke it.
20097 Override freopen more carefully.
20098 * lib/freopen.c (orig_freopen): New function.
20099 (rpl_freopen): Use orig_freopen instead of freopen.
20100 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20101 (gl_FUNC_FREOPEN): Invoke it.
20103 Override fopen more carefully.
20104 * lib/fopen.c (orig_fopen): New function.
20105 (rpl_fopen): Use orig_fopen instead of fopen.
20106 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20107 (gl_FUNC_FOPEN): Invoke it.
20108 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20110 2008-09-28 Bruno Haible <bruno@clisp.org>
20112 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20115 2008-09-28 Bruno Haible <bruno@clisp.org>
20117 * tests/test-sigaction.c (handler, main): Disable the check whether
20118 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20119 glibc systems with LinuxThreads.
20121 2008-09-28 Bruno Haible <bruno@clisp.org>
20123 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20125 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20127 * lib/fcntl.in.h (open): Likewise.
20128 Reported by Rainer Tammer <tammer@tammer.net>.
20130 2008-09-28 Bruno Haible <bruno@clisp.org>
20132 * modules/posix_spawnp-tests: New file.
20133 * tests/test-posix_spawn.c: New file.
20134 * tests/test-posix_spawn.in.sh: New file.
20136 New module 'posix_spawnp'.
20137 * modules/posix_spawnp: New file.
20138 * lib/spawnp.c: New file, from GNU libc with modifications.
20139 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20141 New module 'posix_spawn'.
20142 * modules/posix_spawn: New file.
20143 * lib/spawn.c: New file, from GNU libc with modifications.
20144 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20146 New module 'posix_spawnattr_destroy'.
20147 * modules/posix_spawnattr_destroy: New file.
20148 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20149 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20152 New module 'posix_spawnattr_setsigmask'.
20153 * modules/posix_spawnattr_setsigmask: New file.
20154 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20156 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20159 New module 'posix_spawnattr_getsigmask'.
20160 * modules/posix_spawnattr_getsigmask: New file.
20161 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20163 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20166 New module 'posix_spawnattr_setsigdefault'.
20167 * modules/posix_spawnattr_setsigdefault: New file.
20168 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20170 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20173 New module 'posix_spawnattr_getsigdefault'.
20174 * modules/posix_spawnattr_getsigdefault: New file.
20175 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20177 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20180 New module 'posix_spawnattr_setschedpolicy'.
20181 * modules/posix_spawnattr_setschedpolicy: New file.
20182 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20184 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20187 New module 'posix_spawnattr_getschedpolicy'.
20188 * modules/posix_spawnattr_getschedpolicy: New file.
20189 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20191 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20194 New module 'posix_spawnattr_setschedparam'.
20195 * modules/posix_spawnattr_setschedparam: New file.
20196 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20198 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20201 New module 'posix_spawnattr_getschedparam'.
20202 * modules/posix_spawnattr_getschedparam: New file.
20203 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20205 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20208 New module 'posix_spawnattr_setpgroup'.
20209 * modules/posix_spawnattr_setpgroup: New file.
20210 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20212 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20215 New module 'posix_spawnattr_getpgroup'.
20216 * modules/posix_spawnattr_getpgroup: New file.
20217 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20219 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20222 New module 'posix_spawnattr_setflags'.
20223 * modules/posix_spawnattr_setflags: New file.
20224 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20225 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20228 New module 'posix_spawnattr_getflags'.
20229 * modules/posix_spawnattr_getflags: New file.
20230 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20231 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20234 New module 'posix_spawnattr_init'.
20235 * modules/posix_spawnattr_init: New file.
20236 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20237 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20240 New module 'posix_spawn_file_actions_destroy'.
20241 * modules/posix_spawn_file_actions_destroy: New file.
20242 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20244 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20247 New module 'posix_spawn_file_actions_addopen'.
20248 * modules/posix_spawn_file_actions_addopen: New file.
20249 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20251 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20254 New module 'posix_spawn_file_actions_adddup2'.
20255 * modules/posix_spawn_file_actions_adddup2: New file.
20256 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20258 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20261 New module 'posix_spawn_file_actions_addclose'.
20262 * modules/posix_spawn_file_actions_addclose: New file.
20263 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20265 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20268 New module 'posix_spawn_file_actions_init'.
20269 * modules/posix_spawn_file_actions_init: New file.
20270 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20271 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20274 New module 'posix_spawn-internal'.
20275 * modules/posix_spawn-internal: New file.
20276 * lib/spawn_int.h: New file, from GNU libc with modifications.
20277 * lib/spawni.c: New file, from GNU libc with modifications.
20278 * m4/posix_spawn.m4: New file.
20280 New module 'spawn'.
20281 * modules/spawn: New file.
20282 * lib/spawn.in.h: New file, from GNU libc with modifications.
20283 * m4/spawn_h.m4: New file.
20284 * doc/posix-headers/spawn.texi: Mention the new module.
20286 2008-09-28 Bruno Haible <bruno@clisp.org>
20288 * modules/sched-tests: New file.
20289 * tests/test-sched.c: New file.
20291 New module 'sched'.
20292 * modules/sched: New file.
20293 * lib/sched.in.h: New file.
20294 * m4/sched_h.m4: New file.
20295 * doc/posix-headers/sched.texi: Mention the new module.
20297 2008-09-27 Eric Blake <ebb9@byu.net>
20299 Fix previous patch, and tweak references to $0.
20300 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20301 (func_version, func_gnulib_dir): Don't call this program
20303 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20304 with using $0 in function.
20305 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20306 (func_fatal_error): Reuse the name the user invoked us with.
20308 2008-09-27 Bruno Haible <bruno@clisp.org>
20310 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20311 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20312 (gl_ICONV_H): Not here.
20313 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20314 instead of assigning ICONV_H directly.
20316 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20317 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20320 2008-09-27 Bruno Haible <bruno@clisp.org>
20322 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20323 * modules/arpa_inet (Depends-on): Add link-warning.
20324 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20325 * modules/unistd (Makefile.am): Likewise.
20327 2008-09-26 Bruno Haible <bruno@clisp.org>
20329 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20331 (func_version): Essentially copied from gnulib-tool.
20332 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20333 func_readlink): Copied from gnulib-tool.
20335 2008-09-26 Bruno Haible <bruno@clisp.org>
20337 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20338 invoking git-version-gen.
20340 2008-09-26 Bruno Haible <bruno@clisp.org>
20342 * posix-modules: Update to directory names changed on 2008-01-19.
20343 Remove commas in output before splitting into words. No more need to
20344 avoid 'ftruncate' since 2007-02-19.
20346 2008-09-26 Bruno Haible <bruno@clisp.org>
20348 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20350 2008-09-26 Bruno Haible <bruno@clisp.org>
20352 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20353 * modules/fwriteerror (Depends-on): Add errno.
20355 2008-09-26 Bruno Haible <bruno@clisp.org>
20357 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20358 * tests/test-vc-list-files-cvs.sh: Likewise.
20360 2008-09-26 Bruno Haible <bruno@clisp.org>
20362 * doc/posix-headers/sys_resource.texi: Reorder items.
20364 2008-09-26 Jim Meyering <meyering@redhat.com>
20366 fts: tweak inode comparison function
20367 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20368 inode numbers, as documented.
20370 fts: sort dirent entries on inode number before traversing
20371 This avoids a quadratic, seek-related performance penalty when
20372 operating on a directory containing many entries (measurable at 10k;
20373 3.5 hours at 2 million entries with a cold cache) on certain types
20374 of file systems, including ext3 and ext4, but not tmpfs.
20375 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20376 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20377 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20378 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20379 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20380 (fts_build): Set the stat.st_ino member from D_INO.
20381 If it is likely to be useful, sort dirent entries on inode number.
20383 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20384 and the struct statfs.f_type member.
20385 * modules/fts (Depends-on): Add d-ino.
20387 2008-09-26 Bruno Haible <bruno@clisp.org>
20389 * modules/sigpipe-die (Depends-on): Add sigpipe.
20391 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20392 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20393 and GNULIB_STDIO_H_SIGPIPE are set.
20394 * lib/stdio-write.c: New file.
20395 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20396 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20397 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20398 REPLACE_STDIO_WRITE_FUNCS.
20399 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20400 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20401 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20402 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20403 * modules/stdio (Files): Add lib/stdio-write.c.
20404 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20405 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20406 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20407 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20408 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20409 REPLACE_FPRINTF_POSIX.
20410 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20411 REPLACE_PRINTF_POSIX.
20412 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20413 REPLACE_VFPRINTF_POSIX.
20414 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20415 REPLACE_VPRINTF_POSIX.
20416 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20418 * doc/posix-functions/fputc.texi: Likewise.
20419 * doc/posix-functions/fputs.texi: Likewise.
20420 * doc/posix-functions/fwrite.texi: Likewise.
20421 * doc/posix-functions/printf.texi: Likewise.
20422 * doc/posix-functions/putc.texi: Likewise.
20423 * doc/posix-functions/putchar.texi: Likewise.
20424 * doc/posix-functions/puts.texi: Likewise.
20425 * doc/posix-functions/vfprintf.texi: Likewise.
20426 * doc/posix-functions/vprintf.texi: Likewise.
20428 * modules/safe-write (Depends-on): Add write.
20430 * modules/sigpipe-tests: New file.
20431 * tests/test-sigpipe.c: New file.
20432 * tests/test-sigpipe.sh: New file.
20434 * modules/write: New file.
20435 * lib/unistd.in.h: Include <sys/types.h>.
20436 (write): New declaration.
20437 * lib/write.c: New file.
20438 * m4/write.m4: New file.
20439 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20440 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20441 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20442 GNULIB_WRITE, REPLACE_WRITE.
20443 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20444 and the SIGPIPE issue.
20446 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20447 (raise): New declaration.
20448 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20449 (ext_signal): New function.
20450 (rpl_raise): New function.
20451 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20452 GNULIB_SIGNAL_H_SIGPIPE.
20453 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20454 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20456 * modules/sigpipe: New file.
20457 * m4/sigpipe.m4: New file.
20459 2008-09-25 Derek Price <derek@ximbiot.com>
20460 Bruno Haible <bruno@clisp.org>
20462 * gnulib-tool (func_import): Report all license incompatibilities, not
20463 just the first one.
20465 2008-09-25 Bruno Haible <bruno@clisp.org>
20467 * gnulib-tool (func_import): When computing the edits, consider not
20468 only the Makefile.ams that exist but also those that will be generated.
20470 2008-09-25 Simon Josefsson <simon@josefsson.org>
20472 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20473 fixes gnulib-tool --test warning about duplicate dependency.
20475 2008-09-25 Bruno Haible <bruno@clisp.org>
20477 * gnulib-tool: Don't ask the user to perform edits in the generated
20479 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20480 apply to the Makefile.am being generated.
20481 (func_emit_tests_Makefile_am): Execute edits that apply to the
20482 Makefile.am being generated.
20483 (func_import): Setup list of Makefile.am edits before emitting the
20484 Makefile.ams, not at the end.
20485 (func_create_testdir): Update.
20486 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20488 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20490 * gnulib-tool (func_import): Store the --tests-base option in the
20491 comment in gnulib-cache.m4.
20493 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20495 * NEWS: Document increased portability that sys_select now provides.
20497 * lib/sys_select.in.h: Install select wrapper.
20498 * lib/sys_socket.in.h: Use more descriptive name when there is no
20500 * lib/winsock-select.c: New.
20501 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20502 Require gl_HEADER_SYS_SOCKET.
20503 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20504 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20505 * tests/test-sys_select.c: Add functional tests.
20507 2008-09-24 Eric Blake <ebb9@byu.net>
20509 open, fopen: close fd leak in last patch
20510 * lib/open.c (rpl_open): Close fd before returning error.
20511 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20512 * doc/posix-functions/open.texi (open): Document that Irix also
20514 * doc/posix-functions/fopen.texi (fopen): Likewise.
20515 Reported by Paolo Bonzini.
20517 2008-09-24 Bruno Haible <bruno@clisp.org>
20519 Ensure that a filename ending in a slash cannot be used to access a
20521 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20522 to check whether it's really a directory.
20523 * lib/fopen.c: Include fcntl.h, unistd.h.
20524 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20526 * modules/fopen (Depends-on): Add unistd.
20527 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20528 * tests/test-fopen.c (main): Likewise.
20529 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20530 * doc/posix-functions/fopen.texi: Likewise.
20531 Reported by Eric Blake.
20533 2008-09-23 Eric Blake <ebb9@byu.net>
20535 c-stack: avoid compiler optimizations when provoking overflow
20536 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20537 recursion harder to optimize, to ensure a stack overflow occurs.
20538 * tests/test-c-stack.c (recurse): Likewise.
20539 Borrowed from libsigsegv.
20541 c-stack: work around Irix sigaltstack bug
20542 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20543 whether sigaltstack uses wrong end of stack_t (copied in part from
20545 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20546 Irix bug, without requiring an over-allocation.
20547 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20550 fopen: document mingw bug on directories
20551 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20552 not allowing a stream visiting a directory, even though reading
20553 from such a stream is not portable.
20555 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20557 * lib/poll.c: Rewrite.
20558 * modules/poll: Depend on alloca.
20560 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20562 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20563 instead define prototypes for a full set of wrappers. Ensure
20564 that Cygwin does not use the compatibility code, which is only
20566 * lib/winsock.c: New.
20567 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20568 * modules/sys_socket: Add lib/winsock.c.
20570 * modules/poll-tests: Add errno and perror.
20571 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20573 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20575 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20577 2008-09-23 Bruno Haible <bruno@clisp.org>
20579 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20580 * doc/glibc-functions/*: Likewise.
20582 2008-09-23 Simon Josefsson <simon@josefsson.org>
20584 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20587 2008-09-22 Eric Blake <ebb9@byu.net>
20588 Bruno Haible <bruno@clisp.org>
20590 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20591 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20592 supply %A but mishandle pseudo-NaN.
20593 Reported by Simon Josefsson.
20595 2008-09-21 Bruno Haible <bruno@clisp.org>
20597 * tests/test-lock.c (main): Tweak skip message.
20598 * tests/test-tls.c (main): Likewise.
20600 2008-09-21 Bruno Haible <bruno@clisp.org>
20602 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20603 whether 'struct sigaction' has sa_sigaction here...
20604 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20605 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20607 2008-09-21 Bruno Haible <bruno@clisp.org>
20609 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20611 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20612 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20614 (Support for obsolete systems lacking POSIX:2001): New section.
20615 (String handling <string.h>): Move strdup to the new section.
20616 Suggested by Simon Josefsson and Paolo Bonzini.
20618 2008-09-21 Bruno Haible <bruno@clisp.org>
20620 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20621 exponents in %e and %g results on 'long double'. Needed for mingw's
20622 improved *printf functions.
20623 * tests/test-vasprintf-posix.c (test_function): Likewise.
20624 * tests/test-snprintf-posix.h (test_function): Likewise.
20625 * tests/test-sprintf-posix.h (test_function): Likewise.
20626 Reported by Eric Blake.
20628 2008-09-21 Bruno Haible <bruno@clisp.org>
20630 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20631 * tests/test-sprintf-posix.h (test_function): Likewise.
20633 2008-09-21 Bruno Haible <bruno@clisp.org>
20635 * modules/getpass (Depends-on): Add strdup-posix.
20637 New module 'strdup-posix'.
20638 * modules/strdup-posix: New file.
20639 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20640 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20641 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20643 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20644 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20645 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20648 * modules/strdup (Depends-on): Remove malloc-posix.
20650 2008-09-20 Bruno Haible <bruno@clisp.org>
20652 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20655 2008-09-20 Bruno Haible <bruno@clisp.org>
20657 Ensure that wint_t gets defined on IRIX 5.3.
20658 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20659 * lib/wctype.in.h (wint_t): Likewise.
20660 (__wctype_wint_t): Remove type.
20661 (isw*): Use wint_t instead of __wctype_wint_t.
20662 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20663 * modules/wchar (Files): Add m4/wint_t.m4.
20664 (Makefile.am): Substitute HAVE_WINT_T.
20665 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20666 * tests/test-wctype.c: Check that wint_t is defined.
20667 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20668 * doc/posix-headers/wctype.texi: Likewise.
20669 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20671 2008-09-18 Bruno Haible <bruno@clisp.org>
20673 * gnulib-tool (func_exit): Update comment.
20675 2008-09-18 Simon Josefsson <simon@josefsson.org>
20677 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20678 assumes strdup exists and does not depend on strdup to return
20679 ENOMEM on out of memory conditions.
20681 2008-09-18 Bruno Haible <bruno@clisp.org>
20683 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20684 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20685 digits for the exponent.
20687 2008-09-18 Jim Meyering <meyering@redhat.com>
20688 Bruno Haible <bruno@clisp.org>
20690 * lib/vasnprintf.c (decimal_point_char): Define also if
20691 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20693 2008-09-16 Bruno Haible <bruno@clisp.org>
20694 and Eric Blake <ebb9@byu.net>
20696 vasnprintf: support Irix 5.3
20697 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20698 that mishandle long double infinity.
20699 Reported by Tom G. Christensen.
20701 2008-09-16 Bruno Haible <bruno@clisp.org>
20703 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20705 * doc/glibc-functions/alphasort.texi: Likewise.
20706 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20708 2008-09-16 Jim Meyering <meyering@redhat.com>
20710 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20711 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20712 a umask modification leak out of a subshell. Otherwise, the
20713 opensolaris /bin/sh would be accepted and thus cause unwarranted
20714 failures in the coreutils test suite.
20716 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20718 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20721 2008-09-16 Jim Meyering <meyering@redhat.com>
20723 avoid spurious test failure when library is built without ACL support
20724 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20725 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20726 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20727 * tests/test-copy-acl.sh: Likewise.
20729 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20731 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20732 based on character occurrence counts.
20734 2008-09-15 Eric Blake <ebb9@byu.net>
20736 tests: avoid some compiler warnings
20737 * tests/test-memchr.c (main): Pass NULL indirectly.
20738 * tests/test-closein.c (main): Avoid unused variable.
20740 2008-09-15 Bruno Haible <bruno@clisp.org>
20742 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20743 are missing on OpenBSD 4.0 individually.
20744 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20746 2008-09-15 Bruno Haible <bruno@clisp.org>
20748 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20749 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20750 * doc/posix-functions/perror.texi: Likewise.
20751 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20753 Reported by Eric Blake.
20755 * lib/errno.in.h: Use replacement values >= 2000.
20756 Reported by Eric Blake.
20758 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20760 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20761 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20763 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20764 compareseq was aborted.
20766 2008-09-14 Bruno Haible <bruno@clisp.org>
20768 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20770 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20771 (fstrcmp_bounded): Simplify result computation accordingly.
20773 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20775 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20776 (fstrcmp): Define in terms of fstrcmp_bounded.
20777 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20778 lower_bound argument.
20779 Return quickly if the result is certainly < lower_bound.
20780 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20782 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20784 * lib/diffseq.h (EARLY_ABORT): New macro.
20785 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20788 2008-09-14 Bruno Haible <bruno@clisp.org>
20790 * modules/perror-tests: New file.
20791 * tests/test-perror.sh: New file.
20792 * tests/test-perror.c: New file.
20794 New module 'perror'.
20795 * lib/stdio.in.h (perror): New declaration.
20796 * lib/perror.c: New file.
20797 * m4/perror.m4: New file.
20798 * modules/perror: New file.
20799 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20800 * doc/posix-functions/perror.texi: Mention the perror module.
20801 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20803 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20806 2008-09-14 Bruno Haible <bruno@clisp.org>
20808 * modules/stdio (Makefile.am): Reorder to match the order in
20810 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20812 2008-09-13 Bruno Haible <bruno@clisp.org>
20814 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20816 2008-09-13 Bruno Haible <bruno@clisp.org>
20818 Extend strerror to cover the added errno values.
20819 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20820 (rpl_strerror): Provide error messages for the added errno values and
20821 for the WSA* values.
20822 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20823 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20825 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20826 * modules/strerror (Depends-on): Add errno.
20827 * doc/posix-functions/strerror.texi: Document the change.
20828 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20831 2008-09-13 Bruno Haible <bruno@clisp.org>
20833 * modules/EOVERFLOW: Remove file.
20834 * m4/eoverflow.m4: Remove file.
20835 * modules/EOVERFLOW-tests: Remove file.
20836 * tests/test-EOVERFLOW.c: Remove file.
20837 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20838 * modules/ftell (Depends-on): Likewise.
20839 * modules/getdelim (Depends-on): Likewise.
20840 * modules/getugroups (Depends-on): Likewise.
20841 * modules/poll (Depends-on): Likewise.
20842 * modules/snprintf (Depends-on): Likewise.
20843 * modules/sprintf-posix (Depends-on): Likewise.
20844 * modules/vasnprintf (Depends-on): Likewise.
20845 * modules/vasprintf (Depends-on): Likewise.
20846 * modules/vfprintf-posix (Depends-on): Likewise.
20847 * modules/vsnprintf (Depends-on): Likewise.
20848 * modules/vsprintf-posix (Depends-on): Likewise.
20849 * modules/xvasprintf (Depends-on): Likewise.
20850 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20851 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20852 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20853 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20854 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20855 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20856 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20857 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20858 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20859 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20860 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20861 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20862 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20863 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20864 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20865 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20866 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20867 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20868 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20869 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20870 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20871 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20872 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20873 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20874 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20875 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20876 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20877 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20878 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20879 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20880 * MODULES.html.sh: Remove EOVERFLOW.
20881 * NEWS: Mention the change.
20883 2008-09-13 Bruno Haible <bruno@clisp.org>
20885 * modules/errno-tests: New file.
20886 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20888 * lib/errno.in.h: New file.
20889 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20890 * modules/errno: New file.
20891 * doc/posix-headers/errno.texi: Update documentation.
20892 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20894 2008-09-13 Bruno Haible <bruno@clisp.org>
20896 * tests/test-poll.c: Use #if for native Windows, rather than testing
20899 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20900 Bruno Haible <bruno@clisp.org>
20902 * lib/glob.c: Don't include <pwd.h> on native Windows.
20903 (WINDOWS32): New macro.
20904 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20906 2008-09-13 Bruno Haible <bruno@clisp.org>
20908 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20909 (ETIMEDOUT): Remove macro.
20910 (glthread_cond_timedwait_multithreaded): New declaration.
20911 (glthread_cond_timedwait): Use it.
20912 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20913 (glthread_cond_timedwait_multithreaded): New function.
20915 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20917 * modules/poll-tests: Do not check for io.h.
20918 * tests/test-poll.c: Check for __MSVCRT__ instead.
20920 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20922 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20923 * modules/poll-tests: Add inet_pton, stdbool, sockets.
20924 * tests/test-poll.c: Use them. Use _pipe on Windows.
20926 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20928 * modules/poll-tests: New.
20929 * tests/test-poll.c: New.
20931 2008-09-12 Eric Blake <ebb9@byu.net>
20933 frexp: test for NetBSD failure on -0.0
20934 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20935 not all, bugs from NetBSD 3.0 have been fixed.
20936 * doc/posix-functions/frexp.texi (frexp): Document bug.
20937 Reported by Thomas Klausner.
20939 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20940 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20942 Reported by Jonathan C. Patschke <jp@centtech.com>.
20944 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20946 * lib/glthread/cond.h: Use dummy implementation also if
20949 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20951 * modules/fnmatch-posix (License): Change to LGPLv2+.
20952 * modules/fnmatch-gnu (License): Likewise.
20954 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20956 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20958 2008-09-11 Jim Meyering <meyering@redhat.com>
20960 * users.txt: Add gtk-vnc.
20962 2008-09-08 Simon Josefsson <simon@josefsson.org>
20964 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20967 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20968 required for 16-bit and 8-bit rotates.
20969 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20970 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20971 UINT8_MAX instead of hard-coded constants.
20972 Suggested by Paul Eggert.
20974 2008-09-07 Bruno Haible <bruno@clisp.org>
20976 * tests/test-striconveh.c (main): Check behaviour when converting from
20979 Make striconveh work better with stateful encodings.
20980 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20981 that iconv does not increment the inptr when returning -1/EINVAL.
20983 2008-09-07 Bruno Haible <bruno@clisp.org>
20985 * build-aux/config.rpath: Update according to libtool-2.2.6.
20986 * build-aux/config.libpath: Likewise.
20988 2008-09-06 Bruno Haible <bruno@clisp.org>
20990 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20991 * lib/freadptr.c (freadptr): Likewise.
20992 * lib/freadseek.c (freadptrinc): Likewise.
20993 Reported by Simon Josefsson.
20995 2008-09-06 Bruno Haible <bruno@clisp.org>
20997 * modules/freadptr (License): Change to LGPLv2+.
20998 * modules/freadseek (License): Likewise.
20999 Suggested by Eric Blake.
21001 * modules/memchr2 (License): Change to LGPLv2+.
21002 Approved by Eric Blake.
21004 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21005 Bruno Haible <bruno@clisp.org>
21007 Make gnulib-tool work with native 'sed' on AIX.
21008 * gnulib-tool (sed_noop): New variable.
21009 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21010 func_add_or_update, func_create_testdir): Use it to initialize sed
21012 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21014 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21015 Bruno Haible <bruno@clisp.org>
21017 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21018 also works after #include directives.
21020 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21022 getdate.y: reject an out-of-range timezone value
21023 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21024 the range [-24...+24]. When specified with only one or two digits,
21025 * tests/test-getdate.c: Tests for the fix.
21026 * doc/getdate.texi: Document this change.
21028 2008-09-03 Bruno Haible <bruno@clisp.org>
21030 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21032 2008-09-02 Simon Josefsson <simon@josefsson.org>
21034 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21035 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21036 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21037 Blake <ebb9@byu.net>.
21039 * tests/test-bitrotate.c: Add more test vectors.
21041 2008-09-02 Eric Blake <ebb9@byu.net>
21043 vasnprintf-posix: handle large precision via %.*d
21044 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21045 when handling it ourselves.
21046 * tests/test-vasnprintf-posix.c (test_function): Add test.
21047 * tests/test-snprintf-posix.h (test_function): Likewise.
21048 * tests/test-sprintf-posix.h (test_function): Likewise.
21049 * tests/test-vasprintf-posix.c (test_function): Likewise.
21050 Reported by Alain Guibert.
21052 2008-09-01 Eric Blake <ebb9@byu.net>
21054 c-stack: make configure-time check more robust
21055 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21056 successful sigaction call.
21057 Reported by Tom G. Christensen.
21059 2008-09-01 Bruno Haible <bruno@clisp.org>
21061 New module 'findprog-lgpl'.
21062 * modules/findprog-lgpl: New file.
21063 * lib/findprog-lgpl.c: New file.
21064 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21065 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21066 to decide whether to use strdup or xstrdup, concatenated_filename or
21067 xconcatenated_filename.
21069 2008-09-01 Bruno Haible <bruno@clisp.org>
21071 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21072 'xconcat-filename' (GPL).
21073 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21074 (License): Change to LGPLv2+.
21075 * modules/xconcat-filename: New file.
21076 * lib/concat-filename.h (concatenated_filename): Change specification.
21077 (xconcatenated_filename): New declaration.
21078 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21079 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21081 * lib/xconcat-filename.c: New file.
21082 * NEWS: Mention the change.
21083 * lib/findprog.c: Include concat-filename.h, not filename.h.
21084 (find_in_path): Use xconcatenated_filename instead of
21085 concatenated_filename.
21086 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21087 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21088 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21089 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21090 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21091 instead of concatenated_filename.
21092 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21093 (execute_java_class): Use xconcatenated_filename instead of
21094 concatenated_filename.
21095 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21096 * modules/javacomp (Depends-on): Likewise.
21097 * modules/javaexec (Depends-on): Likewise.
21099 2008-09-01 Bruno Haible <bruno@clisp.org>
21101 Split module 'filename' into 'filename' and 'concat-filename'.
21102 * modules/filename: Keep only lib/filename.h.
21103 (License): Change to LGPLv2+.
21104 * modules/concat-filename: New file, extracted from modules/filename.
21105 * lib/filename.h (concatenated_filename): Remove declaration.
21106 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21107 * lib/concat-filename.c: Include concat-filename.h.
21108 * NEWS: Mention the change.
21110 2008-09-01 Simon Josefsson <simon@josefsson.org>
21112 * lib/bitrotate.h (rotl8, rotr8): Add.
21114 * modules/bitrotate (configure.ac): Need
21115 AC_REQUIRE([AC_C_INLINE]).
21116 (Description): Mention stdint.h. Reported by Bruno Haible
21119 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21120 Paolo Bonzini <bonzini@gnu.org>.
21122 2008-08-31 Bruno Haible <bruno@clisp.org>
21124 Assume Solaris specific bi-arch conventions on Solaris systems.
21125 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21126 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21127 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21128 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21129 like acl_libdirstem.
21130 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21132 * NEWS: Mention the change.
21133 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21135 2008-08-31 Jim Meyering <meyering@redhat.com>
21137 * lib/strftime.h: Add comments describing the two added arguments.
21139 remove duplicate #include directives
21140 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21141 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21143 2008-08-31 Bruno Haible <bruno@clisp.org>
21145 New module 'sigpipe-die'.
21146 * modules/sigpipe-die: New file.
21147 * lib/sigpipe-die.h: New file.
21148 * lib/sigpipe-die.c: New file.
21149 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21151 2008-08-31 Bruno Haible <bruno@clisp.org>
21153 Don't override previously installed signal handlers.
21154 * lib/fatal-signal.c (saved_sigactions): New variable.
21155 (uninstall_handlers): Reset the signal to the saved handler, not
21156 to SIG_DFL (except when ignored).
21157 (install_handlers): Save the previous handlers.
21159 2008-08-30 Bruno Haible <bruno@clisp.org>
21161 * gnulib-tool (func_reset_sigpipe): New function.
21162 (func_get_automake_snippet, func_modules_transitive_closure,
21163 func_import): Invoke it before a join command that reads from stdin,
21164 to avoid "echo: write error: Broken pipe" error messages on stderr.
21165 Reported by Sam Steingold <sds@gnu.org>.
21167 2008-08-30 Bruno Haible <bruno@clisp.org>
21169 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21170 Code copied from m4/open.m4.
21171 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21172 access and the filename ends in a slash. Code copied from lib/open.c.
21173 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21174 * tests/test-fopen.c (main): Check against bug with trailing slash.
21176 2008-08-29 Bruno Haible <bruno@clisp.org>
21178 Avoid some "gcc -pedantic" warnings.
21179 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21180 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21181 * lib/dirent.in.h: Likewise.
21182 * lib/fcntl.in.h: Likewise.
21183 * lib/float.in.h: Likewise.
21184 * lib/iconv.in.h: Likewise.
21185 * lib/inttypes.in.h: Likewise.
21186 * lib/locale.in.h: Likewise.
21187 * lib/math.in.h: Likewise.
21188 * lib/netinet_in.in.h: Likewise.
21189 * lib/search.in.h: Likewise.
21190 * lib/signal.in.h: Likewise.
21191 * lib/stdarg.in.h: Likewise.
21192 * lib/stdint.in.h: Likewise.
21193 * lib/stdio.in.h: Likewise.
21194 * lib/stdlib.in.h: Likewise.
21195 * lib/string.in.h: Likewise.
21196 * lib/strings.in.h: Likewise.
21197 * lib/sys_select.in.h: Likewise.
21198 * lib/sys_socket.in.h: Likewise.
21199 * lib/sys_stat.in.h: Likewise.
21200 * lib/sys_time.in.h: Likewise.
21201 * lib/sysexits.in.h: Likewise.
21202 * lib/time.in.h: Likewise.
21203 * lib/unistd.in.h: Likewise.
21204 * lib/wchar.in.h: Likewise.
21205 * lib/wctype.in.h: Likewise.
21206 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21207 * modules/fchdir (Makefile.am): Likewise.
21208 * modules/fcntl (Makefile.am): Likewise.
21209 * modules/float (Makefile.am): Likewise.
21210 * modules/iconv_open (Makefile.am): Likewise.
21211 * modules/inttypes (Makefile.am): Likewise.
21212 * modules/locale (Makefile.am): Likewise.
21213 * modules/math (Makefile.am): Likewise.
21214 * modules/netinet_in (Makefile.am): Likewise.
21215 * modules/search (Makefile.am): Likewise.
21216 * modules/signal (Makefile.am): Likewise.
21217 * modules/stdarg (Makefile.am): Likewise.
21218 * modules/stdint (Makefile.am): Likewise.
21219 * modules/stdio (Makefile.am): Likewise.
21220 * modules/stdlib (Makefile.am): Likewise.
21221 * modules/string (Makefile.am): Likewise.
21222 * modules/strings (Makefile.am): Likewise.
21223 * modules/sys_select (Makefile.am): Likewise.
21224 * modules/sys_socket (Makefile.am): Likewise.
21225 * modules/sys_stat (Makefile.am): Likewise.
21226 * modules/sys_time (Makefile.am): Likewise.
21227 * modules/sysexits (Makefile.am): Likewise.
21228 * modules/time (Makefile.am): Likewise.
21229 * modules/unistd (Makefile.am): Likewise.
21230 * modules/wchar (Makefile.am): Likewise.
21231 * modules/wctype (Makefile.am): Likewise.
21232 Reported by Reuben Thomas <rrt@sc3d.org>.
21234 2008-08-29 Bruno Haible <bruno@clisp.org>
21236 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21239 2008-08-29 Simon Josefsson <simon@josefsson.org>
21241 * MODULES.html.sh (Misc): Add bitrotate.
21243 * modules/bitrotate: New file.
21245 * lib/bitrotate.h: New file.
21247 * modules/bitrotate-tests: New file.
21249 * tests/test-bitrotate.c: New file.
21251 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21252 on the bitrotate module.
21254 * lib/arctwo.c: Use new bitrotate module.
21256 2008-08-29 Jim Meyering <meyering@redhat.com>
21258 bootstrap: merge changes from coreutils
21259 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21260 of copied files. Remove a kludge, now that this is fixed.
21261 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21262 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21263 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21265 2008-08-29 Bruno Haible <bruno@clisp.org>
21267 * MODULES.html.sh: Remove --cvs-urls option.
21269 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21271 maint.mk: adjust to file name change
21272 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21274 2008-08-28 Jim Meyering <meyering@redhat.com>
21276 * modules/getndelim2 (License): Relicense to LGPLv2+.
21277 Approved by Richard Stallman for the version of 1995, and by
21278 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21280 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21282 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21283 dummy if one is not available. Do not touch them if
21284 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21285 (getc_maybe_unlocked): New.
21286 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21288 2008-08-26 Eric Blake <ebb9@byu.net>
21290 doc/INSTALL: resync from autoconf
21291 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21292 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21294 * install.texi [!autoconf]: ...here. Resync from autoconf.
21295 * INSTALL: Regenerate.
21296 * INSTALL.ISO: New file.
21297 * INSTALL.UTF-8: Likewise.
21299 2008-08-26 Jim Meyering <meyering@redhat.com>
21301 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21302 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21303 these definitions conditional, so that they may be overridden, too.
21305 2008-08-26 Bruno Haible <bruno@clisp.org>
21307 Generate INSTALL file variants with prettier quotes.
21308 * doc/Makefile (INSTALL_PRELUDE): New macro.
21310 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21312 2008-08-26 Bruno Haible <bruno@clisp.org>
21314 Run makeinfo in an English locale.
21315 * doc/Makefile (MAKEINFO): New variable.
21317 2008-08-26 Bruno Haible <bruno@clisp.org>
21319 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21320 Suggested by Eric Blake.
21322 2008-08-25 Bruno Haible <bruno@clisp.org>
21324 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21326 2008-08-25 Eric Blake <ebb9@byu.net>
21328 c-stack: test that stack overflow can be caught
21329 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21330 that platform allows handling stack overflow; at least OS/2 EMX
21331 has sigaltstack, but crashes before transferring control to
21332 handler on stack overflow.
21333 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21334 check for HAVE_STACK_OVERFLOW_HANDLING.
21335 Reported by Elbert Pol.
21337 2008-08-25 Bruno Haible <bruno@clisp.org>
21339 * doc/posix-functions/strftime.texi: Fix description of strftime
21342 2008-08-24 Bruno Haible <bruno@clisp.org>
21344 * tests/uniwidth/test-uc_width2.c: New file.
21345 * tests/uniwidth/test-uc_width2.sh: New file.
21346 * modules/uniwidth/width-tests (Files): Add the new files.
21347 (TESTS): Add uniwidth/test-uc_width2.sh.
21348 (TESTS_ENVIRONMENT): New variable.
21349 (check_PROGRAMS): Add test-uc_width2.
21350 (test_uc_width2_SOURCES): New variable.
21352 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21353 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21355 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21357 2008-08-22 Eric Blake <ebb9@byu.net>
21359 test-lock, test-tls: mention why a test is skipped
21360 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21362 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21364 count-one-bits: relax license
21365 * modules/count-one-bits (License): Relicense to LGPLv2+.
21366 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21368 2008-08-22 Andreas Schwab <schwab@suse.de>
21370 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21371 Remove spurious space in assignment.
21373 2008-08-21 Simon Josefsson <simon@josefsson.org>
21375 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21376 Paul Eggert <eggert@CS.UCLA.EDU>.
21378 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21380 * modules/gettext: Add m4/threadlib.m4.
21382 2008-08-19 Eric Blake <ebb9@byu.net>
21384 test-c-stack: fix compilation failure on FreeBSD 5.0
21385 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21386 headers before <sys/resource.h>.
21387 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21389 Reported by Nelson H. F. Beebe.
21391 strverscmp: migrate from "strverscmp.h" to <string.h>
21392 * modules/string (Makefile.am): Add new hooks.
21393 * modules/strverscmp (Files): Remove strverscmp.h.
21394 (Depends-on): Add string.
21395 (configure.ac): Add indicator.
21396 (Include): Mention new header.
21397 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21399 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21401 * lib/strverscmp.h: Delete.
21402 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21403 * tests/test-strverscmp.c (includes): Adjust client.
21404 * lib/check-version.c (includes): Likewise.
21405 * NEWS: Document the change.
21407 strverscmp: add unit test
21408 * modules/strverscmp-tests: New file.
21409 * tests/test-strverscmp.c: Likewise.
21411 2008-08-19 Simon Josefsson <simon@josefsson.org>
21413 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21414 regarding Windows crypto stuff, from Mono.
21416 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21418 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21419 if present, for intel RND. Return error on failures.
21421 2008-08-18 Ben Pfaff <blp@gnu.org>
21423 gitlog-to-changelog: give better diagnostic for failed pipe-open
21424 * build-aux/gitlog-to-changelog: Improve error message: suggest
21425 that the version of Git may be too old.
21427 2008-08-18 Simon Josefsson <simon@josefsson.org>
21429 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21430 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21432 2008-08-18 Bruno Haible <bruno@clisp.org>
21434 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21437 2008-08-18 Bruno Haible <bruno@clisp.org>
21439 * lib/glthread/threadlib.c: Include <pthread.h>.
21441 2008-08-18 Bruno Haible <bruno@clisp.org>
21443 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21444 glthread_recursive_lock_* macros.
21445 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21448 2008-08-18 Bruno Haible <bruno@clisp.org>
21450 * lib/glthread/thread.c: Avoid forcing a context switch right after
21453 2008-08-17 Bruno Haible <bruno@clisp.org>
21455 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21456 * lib/glthread/thread.h: Provide Win32 specific implementation.
21457 * modules/thread (Files): Add lib/glthread/thread.c.
21458 (Depends-on): Add lock.
21459 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21461 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21463 New module 'yield'.
21464 * modules/yield: New file.
21465 * lib/glthread/yield.h: New file.
21466 * m4/yield.m4: New file.
21467 * MODULES.html.sh (Multithreading): Add yield.
21469 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21471 New module 'thread'.
21472 * modules/thread: New file.
21473 * lib/glthread/thread.h: New file.
21474 * m4/thread.m4: New file.
21475 * MODULES.html.sh (Multithreading): Add thread.
21477 2008-08-17 Bruno Haible <bruno@clisp.org>
21479 * lib/glthread/lock.h: Include <stdlib.h> always.
21480 * lib/glthread/tls.h: Likewise.
21481 * lib/glthread/cond.h: Likewise.
21483 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21486 * modules/cond: New file.
21487 * lib/glthread/cond.h: New file.
21488 * lib/glthread/cond.c: New file.
21489 * m4/cond.m4: New file.
21490 * MODULES.html.sh (Multithreading): Add cond.
21492 2008-08-16 Eric Blake <ebb9@byu.net>
21494 c-stack: fix regression on Irix 5.3 from 2008-06-21
21495 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21497 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21498 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21499 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21500 * modules/signal (Makefile.am): Use the value.
21501 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21502 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21503 * doc/posix-headers/signal.texi (signal.h): Document this
21505 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21506 Reported by Tom G. Christensen.
21508 2008-08-17 Bruno Haible <bruno@clisp.org>
21510 New module 'threadlib'.
21511 * modules/threadlib: New file.
21512 * lib/glthread/threadlib.c: New file, extracted from
21513 lib/glthread/lock.c.
21514 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21516 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21517 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21518 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21520 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21521 (gl_DISABLE_THREADS): Remove macro.
21522 * modules/lock (Files): Remove build-aux/config.rpath.
21523 (Depends-on): Remove havelib. Add threadlib.
21524 (configure.ac-early): Remove section.
21525 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21526 * modules/tls (Depends-on): Remove lock. Add threadlib.
21527 (Link): New section, copied from threadlib.
21528 * MODULES.html.sh (Multithreading): Add threadlib.
21530 2008-08-14 Bruno Haible <bruno@clisp.org>
21532 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21533 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21534 glthread_rwlock_unlock, glthread_rwlock_destroy,
21535 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21536 glthread_recursive_lock_destroy): Define as macros always.
21537 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21538 glthread_lock_lock.
21539 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21540 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21541 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21542 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21543 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21544 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21545 (glthread_recursive_lock_lock_func): Renamed from
21546 glthread_recursive_lock_lock.
21547 (glthread_recursive_lock_unlock_func): Renamed from
21548 glthread_recursive_lock_unlock.
21549 (glthread_recursive_lock_destroy_func): Renamed from
21550 glthread_recursive_lock_destroy.
21552 2008-08-14 Bruno Haible <bruno@clisp.org>
21554 * lib/glthread/lock.h: Renamed from lib/lock.h.
21555 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21556 * lib/glthread/tls.h: Renamed from lib/tls.h.
21557 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21558 * lib/fstrcmp.c: Update includes.
21559 * lib/strsignal.c: Update includes.
21560 * modules/lock (Files, Makefile.am): Update.
21561 (Include): Change to "glthread/lock.h".
21562 * modules/tls (Files, Makefile.am): Update.
21563 (Include): Change to "glthread/tls.h".
21564 * tests/test-lock.c: Update includes.
21565 * tests/test-tls.c: Update includes.
21566 * NEWS: Mention the renamed header files.
21568 2008-08-11 Jim Meyering <meyering@redhat.com>
21570 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21572 2008-08-11 Eric Blake <ebb9@byu.net>
21574 test-c-stack: avoid C99-ism
21575 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21577 Reported by Alain Guibert.
21579 2008-08-10 Jim Meyering <meyering@redhat.com>
21581 ensure that return value of uinttostr et al are not ignored
21582 * lib/inttostr.h (__GNUC_PREREQ): Define.
21583 (__attribute_warn_unused_result__): Define.
21584 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21586 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21588 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21589 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21591 2008-08-07 Jim Meyering <meyering@redhat.com>
21593 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21595 * modules/mkstemp (License): Relicense under LGPLv2+.
21596 * modules/tempname (License): Likewise.
21598 2008-08-06 Bruno Haible <bruno@clisp.org>
21600 * lib/poll.c (poll): Further micro-optimization.
21602 2008-08-06 Jim Meyering <meyering@redhat.com>
21604 inet_pton.c: use locale-independent tolower
21605 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21606 (inet_pton6): Use c_tolower rather than tolower.
21607 * modules/inet_pton (Depends-on): Add c-ctype.
21609 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21611 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21612 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21614 2008-08-06 Jim Meyering <meyering@redhat.com>
21616 * modules/inet_pton (License): Relicense under LGPLv2+.
21618 2008-08-03 Bruno Haible <bruno@clisp.org>
21620 Additional non-aborting API for lock and tls.
21621 * lib/lock.h: Include <errno.h>.
21622 (glthread_lock_init): New macro/function.
21623 (gl_lock_init): Define as wrapper around glthread_lock_init.
21624 (glthread_lock_lock): New macro/function.
21625 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21626 (glthread_lock_unlock): New macro/function.
21627 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21628 (glthread_lock_destroy): New macro/function.
21629 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21630 (glthread_rwlock_init): New macro/function.
21631 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21632 (glthread_rwlock_rdlock): New macro/function.
21633 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21634 (glthread_rwlock_wrlock): New macro/function.
21635 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21636 (glthread_rwlock_unlock): New macro/function.
21637 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21638 (glthread_rwlock_destroy): New macro/function.
21639 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21640 (glthread_recursive_lock_init): New macro/function.
21641 (gl_recursive_lock_init): Define as wrapper around
21642 glthread_recursive_lock_init.
21643 (glthread_recursive_lock_lock): New macro/function.
21644 (gl_recursive_lock_lock): Define as wrapper around
21645 glthread_recursive_lock_lock.
21646 (glthread_recursive_lock_unlock): New macro/function.
21647 (gl_recursive_lock_unlock): Define as wrapper around
21648 glthread_recursive_lock_unlock.
21649 (glthread_recursive_lock_destroy): New macro/function.
21650 (gl_recursive_lock_destroy): Define as wrapper around
21651 glthread_recursive_lock_destroy.
21652 (glthread_once): New macro/function.
21653 (gl_once): Define as wrapper around glthread_once.
21654 Update function declarations.
21655 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21656 glthread_rwlock_init. Return error code.
21657 (glthread_rwlock_rdlock_multithreaded): Renamed from
21658 glthread_rwlock_rdlock. Return error code.
21659 (glthread_rwlock_wrlock_multithreaded): Renamed from
21660 glthread_rwlock_wrlock. Return error code.
21661 (glthread_rwlock_unlock_multithreaded): Renamed from
21662 glthread_rwlock_unlock. Return error code.
21663 (glthread_rwlock_destroy_multithreaded): Renamed from
21664 glthread_rwlock_destroy. Return error code.
21665 (glthread_recursive_lock_init_multithreaded): Renamed from
21666 glthread_recursive_lock_init. Return error code.
21667 (glthread_recursive_lock_lock_multithreaded): Renamed from
21668 glthread_recursive_lock_lock. Return error code.
21669 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21670 glthread_recursive_lock_unlock. Return error code.
21671 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21672 glthread_recursive_lock_destroy. Return error code.
21673 (glthread_once_call): Make static.
21674 (glthread_once_multithreaded): Renamed from glthread_once.
21675 * lib/tls.h: Include <errno.h>.
21676 (glthread_tls_key_init): New macro/function.
21677 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21678 (glthread_tls_set): New macro/function.
21679 (gl_tls_set): Define as wrapper around glthread_tls_set.
21680 (glthread_tls_key_destroy): New macro/function.
21681 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21682 Update function declarations.
21683 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21685 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21687 2008-08-04 Eric Blake <ebb9@byu.net>
21689 gnumakefile: use space, not TAB, outside of targets
21690 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21692 2008-08-02 Jim Meyering <meyering@redhat.com>
21694 getdate.y: avoid locale-dependent date parsing failure
21695 In Turkish locales, getdate would fail to recognize keywords
21696 containing a lowercase "i". The solution is not to rely on
21697 locale-sensitive case-conversion.
21698 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21699 (lookup_word): Use c_toupper in place of toupper.
21700 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21701 Reported by Vefa Bicakci <bicave@superonline.com> in
21702 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21703 * modules/getdate (Depends-on): Add c-ctype.
21705 2008-08-02 Bruno Haible <bruno@clisp.org>
21707 * gnulib-tool (func_import): When updating or creating a .gitignore
21708 file, prepend each added line with a slash, and ignore leading slashes
21709 from the existing lines.
21710 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21712 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21714 Portability fix for GNU make 3.79.1.
21715 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21716 versions do not understand.
21718 2008-08-01 Bruno Haible <bruno@clisp.org>
21720 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21721 * tests/test-isnanf.h (zero): New variable.
21722 (main): Avoid literal -0.0f.
21723 * tests/test-isnand.h (zero): New variable.
21724 (main): Avoid literal -0.0.
21725 * tests/test-isnanl.h (zero): New variable.
21726 (main): Avoid literal -0.0L.
21727 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21728 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21730 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21731 (test_signbitd): Avoid literal -0.0.
21732 (test_signbitl): Avoid literal -0.0L.
21733 * tests/test-ceilf1.c (zero): New variable.
21734 (main): Avoid literal -0.0f.
21735 * tests/test-ceill.c (zero): New variable.
21736 (main): Avoid literal -0.0L.
21737 * tests/test-floorf1.c (zero): New variable.
21738 (main): Avoid literal -0.0f.
21739 * tests/test-floorl.c (zero): New variable.
21740 (main): Avoid literal -0.0L.
21741 * tests/test-roundf1.c (zero): New variable.
21742 (main): Avoid literal -0.0f.
21743 * tests/test-round1.c (zero): New variable.
21744 (main): Avoid literal -0.0.
21745 * tests/test-roundl.c (zero): New variable.
21746 (main): Avoid literal -0.0L.
21747 * tests/test-truncf1.c (zero): New variable.
21748 (main): Avoid literal -0.0f.
21749 * tests/test-trunc1.c (zero): New variable.
21750 (main): Avoid literal -0.0.
21751 * tests/test-truncl.c (zero): New variable.
21752 (main): Avoid literal -0.0L.
21753 * tests/test-frexp.c (zero): New variable.
21754 (main): Avoid literal -0.0.
21755 * tests/test-frexpl.c (zero): New variable.
21756 (main): Avoid literal -0.0L.
21757 * tests/test-ldexpl.c (zero): New variable.
21758 (main): Avoid literal -0.0L.
21759 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21760 (zerod, zerol): New variables.
21761 (test_function): Avoid literals -0.0, -0.0L.
21762 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21763 (zerod, zerol): New variables.
21764 (test_function): Avoid literals -0.0, -0.0L.
21765 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21766 (zerod, zerol): New variables.
21767 (test_function): Avoid literals -0.0, -0.0L.
21768 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21769 (zerod, zerol): New variables.
21770 (test_function): Avoid literals -0.0, -0.0L.
21771 * tests/test-strtod.c (zero): New variable.
21772 (main): Avoid literal -0.0.
21773 Reported by Jonathan C. Patschke <jp@centtech.com>.
21775 2008-07-31 Jim Meyering <meyering@redhat.com>
21777 sha256.h: correct definition of SHA224_DIGEST_SIZE
21778 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21779 Reported by Paulie Pena IV <paulie4@gmail.com>.
21780 Define as 224 / 8, rather than as a literal.
21781 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21782 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21783 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21785 2008-07-31 Bruno Haible <bruno@clisp.org>
21787 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21788 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21789 Reported by Jonathan Patschke <jp@centtech.com>.
21791 2008-07-31 Bruno Haible <bruno@clisp.org>
21793 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21794 Reported by Paolo Bonzini <bonzini@gnu.org>.
21796 2008-07-30 Eric Blake <ebb9@byu.net>
21798 test-strtod: allow compilation without -lm
21799 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21800 Reported by Dennis Clarke <blastwave@gmail.com>.
21802 2008-07-28 Jim Meyering <meyering@redhat.com>
21804 bootstrap: work also when there are no .po files in po/
21805 * build-aux/bootstrap (update_po_files): Complete the change
21806 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21808 2008-07-27 Jim Meyering <meyering@redhat.com>
21810 * users.txt: Add zile.
21812 2008-07-26 Ben Pfaff <blp@gnu.org>
21814 Add missing dependencies on new m4/exponent[fdl].m4 files.
21815 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21816 * modules/isnand-nolibm: Add m4/exponentd.m4.
21817 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21818 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21819 m4/isnan[fdl].m4, because the macros actually used moved.
21820 Reported by Jim Meyering.
21822 2008-07-14 Ben Pfaff <blp@gnu.org>
21825 * lib/isinf.c: New file.
21826 * lib/math.in.h: Define isinf macro if we have decided to replace
21828 * m4/isinf.m4: New file.
21829 * m4/math_h.m4: Initialize and substitute variables for isinf
21831 * modules/isinf: New file.
21832 * modules/isinf-tests: New file.
21833 * modules/math: Add substitutions for new module.
21834 * tests/test-isinf.c: New file.
21835 * doc/posix-functions/isinf.texi: Mention new module.
21836 * MODULES.html.sh: Mention new module.
21838 2008-07-14 Ben Pfaff <blp@gnu.org>
21840 Factor out some macros for use by additional modules.
21841 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21843 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21845 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21847 * m4/exponentf.m4: New file.
21848 * m4/exponentd.m4: New file.
21849 * m4/exponentl.m4: New file.
21850 * modules/isnanf: Use new file m4/exponentf.m4.
21851 * modules/isnand: Use new file m4/exponentd.m4.
21852 * modules/isnanl: Use new file m4/exponentl.m4.
21854 2008-07-23 Ulrich Drepper <drepper@redhat.com>
21856 mktime.c: normalize tp->tm_isdst value to -1/0/1.
21857 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21858 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21859 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21861 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21862 readlink on platforms without PATH_MAX.
21864 2008-07-21 Eric Blake <ebb9@byu.net>
21866 Warn, not fail, on stale version.
21867 * top/GNUmakefile (_curr-ver): Tone down previous patch.
21869 Don't allow installation with stale devel version number.
21870 * top/GNUmakefile (_is-install-target): New macro.
21871 (_curr-ver): Forbid installation with stale version number.
21873 2008-07-20 Bruno Haible <bruno@clisp.org>
21875 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21877 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21879 2008-07-20 Bruno Haible <bruno@clisp.org>
21881 * lib/c-stack.h (c_stack_action): Add documentation.
21882 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21884 2008-07-20 Bruno Haible <bruno@clisp.org>
21886 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21887 * modules/readlink (License): Likewise.
21889 2008-07-17 Eric Blake <ebb9@byu.net>
21891 * modules/c-stack (Link): Fix typo.
21893 Make c-stack use libsigsegv, when available.
21894 * modules/c-stack (Depends-on): Add libsigsegv.
21895 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21897 * lib/c-stack.c (SIGSTKSZ): Define fallback.
21898 (segv_handler, overflow_handler, c_stack_action)
21899 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21900 implementation when libsigsegv is available, but only when using
21901 the library is necessary.
21902 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21903 comment, explaining why XSI check fails on Linux.
21904 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21905 * tests/test-c-stack2.sh: Tweak skip message.
21906 * NEWS: Document new link-time requirements.
21908 2008-07-16 Eric Blake <ebb9@byu.net>
21910 c-stack: Expose false positives when not using libsigsegv.
21911 * modules/c-stack-tests (Files): Expand test.
21912 * tests/test-c-stack.c (main): Add means to conditionally trigger
21913 non-overflow SIGSEGV.
21914 * tests/test-c-stack2.sh: New file.
21916 2008-07-14 Bruno Haible <bruno@clisp.org>
21918 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21919 Reported by Eric Blake.
21921 2008-07-14 Sam Steingold <sds@gnu.org>
21922 Bruno Haible <bruno@clisp.org>
21924 New module libsigsegv.
21925 * modules/libsigsegv: New file.
21926 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21928 * MODULES.html.sh (Signal handling): New section.
21930 2008-07-14 Bruno Haible <bruno@clisp.org>
21932 * modules/unictype/ctype-* (Description): Add the word "function".
21933 Improves the resulting doc in MODULES.html.
21935 2008-07-12 Ben Pfaff <blp@gnu.org>
21937 Add longlong module.
21938 * modules/longlong: New file.
21940 2008-07-12 Bruno Haible <bruno@clisp.org>
21942 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21945 2008-07-10 Ben Pfaff <blp@gnu.org>
21948 * doc/posix-functions/isnan.texi: Mention new module.
21949 * lib/math.in.h: Define isnan macro if we have decided to replace
21951 * m4/isnan.m4: New file.
21952 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21953 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21955 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21957 * m4/math_h.m4: Initialize and substitute variables for isnan
21959 * modules/isnan: New file.
21960 * modules/isnan-tests: New file.
21961 * modules/math: Add substitutions for new module.
21962 * tests/test-isnan.c: New file.
21963 * MODULES.html.sh: Mention new module.
21965 2008-07-10 Ben Pfaff <blp@gnu.org>
21968 * lib/isnanf.m4: New file.
21969 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21970 (gl_HAVE_ISNANF_IN_LIBM): New macro.
21971 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21972 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21973 * modules/isnanf: New file.
21974 * modules/isnanf-tests: New file.
21975 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21977 * tests/test-isnanf-nolibm.c: factored most of its contents into
21978 new file tests/test-isnanf.h.
21979 * tests/test-isnanf.h: New file.
21980 * tests/test-isnanf.c: New file.
21981 * MODULES.html.sh: Mention new module.
21982 * doc/glibc-functions/isnanf.texi: Mention new module.
21984 2008-07-10 Ben Pfaff <blp@gnu.org>
21987 * lib/isnand.h: New file.
21988 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21989 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21990 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21991 functionality also.
21992 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21993 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21994 (gl_HAVE_ISNAND_IN_LIBM): New macro.
21995 * modules/isnand: New file.
21996 * modules/isnand-tests: New file.
21997 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21999 * tests/test-isnand-nolibm.c: factored most of its contents into
22000 new file tests/test-isnand.h.
22001 * tests/test-isnand.h: New file.
22002 * tests/test-isnand.c: New file.
22003 * MODULES.html.sh: Mention new module.
22005 2008-07-10 Ben Pfaff <blp@gnu.org>
22007 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22008 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22009 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22010 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22011 * modules/isnanf-nolibm: Update references to renamed files.
22012 * modules/isnand-nolibm: Likewise.
22013 * modules/isnanf-nolibm-tests: Likewise.
22014 * modules/isnand-nolibm-tests: Likewise.
22015 * lib/frexp.c: Likewise.
22016 * lib/isfinite.c: Likewise.
22017 * lib/signbitd.c: Likewise.
22018 * lib/signbitf.c: Likewise.
22019 * lib/vasnprintf.c: Likewise.
22020 * tests/test-ceilf1.c: Likewise.
22021 * tests/test-ceilf2.c: Likewise.
22022 * tests/test-floorf1.c: Likewise.
22023 * tests/test-floorf2.c: Likewise.
22024 * tests/test-frexp.c: Likewise.
22025 * tests/test-round1.c: Likewise.
22026 * tests/test-round2.c: Likewise.
22027 * tests/test-roundf1.c: Likewise.
22028 * tests/test-strtod.c: Likewise.
22029 * tests/test-trunc1.c: Likewise.
22030 * tests/test-trunc2.c: Likewise.
22031 * tests/test-truncf1.c: Likewise.
22032 * tests/test-truncf2.c: Likewise.
22033 * NEWS: Mention the renamed header files.
22035 2008-07-11 Jim Meyering <meyering@redhat.com>
22037 vc-list-files: make the last-resort awk code more portable
22038 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22039 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22040 does not support it.
22042 2008-07-10 Eric Blake <ebb9@byu.net>
22044 Work with tar's bootstrap.
22045 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22046 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22049 2008-07-09 Jim Meyering <meyering@redhat.com>
22051 posix-shell.m4: fix typo that made this test malfunction
22052 * m4/posix-shell.m4: Remove capitalization in variable name.
22054 2008-07-08 Bruno Haible <bruno@clisp.org>
22056 * m4/onceonly.m4: Update comments.
22057 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22059 2008-07-04 Jim Meyering <meyering@redhat.com>
22061 * users.txt: Add vc-dwim.
22062 (bison, coreutils): Use the gitweb URL.
22064 2008-07-03 Jim Meyering <meyering@redhat.com>
22066 * users.txt: Add libffcall. From Sam Steingold.
22068 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22070 getdate.y: do not ignore TZ with relative day, month or year offset
22071 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22072 relative-date-handling, since otherwise, the latter would clobber the
22073 sole output (an updated Start value) of the tz-handling block.
22074 * tests/test-getdate.c: Tests for the fix
22076 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22078 Recognize 'foo_LIBRARIES += libgnu.a'.
22079 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22080 makefile snippet has already specified an installation location,
22083 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22085 getdate.y: factor out common actions
22086 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22087 Use them in place of open-coded actions.
22089 2008-07-01 Simon Josefsson <simon@josefsson.org>
22091 Add self-test for getdate module.
22092 * modules/getdate-tests: New file.
22093 * tests/test-getdate.c: New file.
22095 2008-06-29 Bruno Haible <bruno@clisp.org>
22097 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22099 Reported by Sylvain Beucler <beuc@beuc.net>.
22101 2008-06-29 Bruno Haible <bruno@clisp.org>
22103 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22104 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22106 2008-06-29 Bruno Haible <bruno@clisp.org>
22108 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22110 Reported by Sylvain Beucler <beuc@beuc.net>.
22112 2008-06-26 Jim Meyering <meyering@redhat.com>
22114 make several modules depend on the "open" module
22115 This provides slightly increased consistency when opening-for-write
22116 the name of a non-directory spelled with a trailing slash.
22117 * modules/chdir-safer: Likewise.
22118 * modules/chown: Likewise.
22119 * modules/clean-temp: Likewise.
22120 * modules/copy-file: Likewise.
22121 * modules/fchdir: Likewise.
22122 * modules/fcntl-safer: Likewise.
22123 * modules/pipe: Likewise.
22124 * modules/utime: Likewise.
22125 Prompted by Eric Blake and Bruno Haible.
22127 2008-06-24 Andreas Schwab <schwab@suse.de>
22129 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22130 literals can be used as initializers for global variables.
22132 2008-06-23 Eric Blake <ebb9@byu.net>
22134 Make gnulib-cache.m4 easier to diff.
22135 * gnulib-tool (func_import): Allow newlines when reading cached
22136 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22138 2008-06-23 Bruno Haible <bruno@clisp.org>
22140 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22141 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22142 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22143 m4/signalblocking.m4.
22144 (gl_PREREQ_SIGACTION): Don't invoke it.
22145 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22146 gl_PREREQ_SIG_HANDLER_H.
22147 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22148 Don't check for sigaction here.
22150 2008-06-23 Bruno Haible <bruno@clisp.org>
22152 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22153 (install_handlers): Don't set the SA_RESETHAND flag.
22155 2008-06-23 Bruno Haible <bruno@clisp.org>
22157 * m4/sigaction.m4: Comment fixes.
22158 * lib/signal.in.h: Likewise.
22160 2008-06-23 Eric Blake <ebb9@byu.net>
22163 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22165 Avoid SA_ namespace.
22166 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22167 Reported by Ralf Wildenhues.
22169 Avoid test failure due to SA_RESTORER.
22170 * tests/test-sigaction.c (SA_MASK): New macro.
22171 (main): Avoid failing due to extension flags being set.
22172 Reported by Jim Meyering.
22174 Revert use of sig-handler.h in sigprocmask.c.
22175 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22176 it requires the existence of struct sigaction.
22177 * lib/sigprocmask.c (handler_t): Restore typedef.
22178 (rpl_signal, old_handlers): Use local type.
22180 2008-06-22 Bruno Haible <bruno@clisp.org>
22182 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22184 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22186 2008-06-22 Bruno Haible <bruno@clisp.org>
22188 * doc/posix-functions/siginterrupt.texi: Move note.
22190 * lib/signal.in.h (SA_RESTART): New macro.
22191 * lib/sigaction.c: Update comment.
22193 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22195 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22196 (gl_PREREQ_SIGPROCMASK): Invoke it.
22197 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22199 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22201 * lib/sigprocmask.c: Update a comment.
22203 2008-06-21 Eric Blake <ebb9@byu.net>
22205 Use sigaction module rather than signal().
22206 * modules/c-stack (Depends-on): Add sigaction.
22207 * modules/fatal-signal (Depends-on): Likewise.
22208 * modules/nanosleep (Depends-on): Likewise.
22209 * modules/sigprocmask (Files): Add sig-handler.h.
22210 * modules/sigaction (Files): Likewise.
22211 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22213 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22214 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22215 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22216 (init_fatal_signals): Likewise.
22217 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22218 (siginterrupt): Delete fallback.
22219 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22221 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22224 New module sigaction, for mingw.
22225 * modules/sigaction: New module...
22226 * modules/sigaction-tests: ...and its test.
22227 * m4/sigaction.m4: New file.
22228 * lib/sigaction.c: Likewise.
22229 * tests/test-sigaction.c: Likewise.
22230 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22231 * modules/signal (Makefile.am): Likewise.
22232 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22234 * doc/posix-headers/signal.texi (signal.h): Mention provided
22236 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22237 that sigaction is preferable.
22238 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22240 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22243 Improve robustness of sigprocmask by overriding signal.
22244 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22246 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22247 (SIGKILL, SIGSTOP): Provide fallbacks.
22248 (rpl_signal): Implement.
22249 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22250 signal can be called inside handlers.
22252 Fix nanosleep module on mingw.
22253 * modules/nanosleep (Depends-on): Add sys_select.
22254 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22256 Fix licensing of sigprocmask.
22257 * modules/raise (License): Relicense as LGPL.
22259 2008-06-21 Bruno Haible <bruno@clisp.org>
22261 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22262 result if it contains question marks.
22263 Reported by Michael Geng <linux@michaelgeng.de>.
22265 2008-06-19 Bruno Haible <bruno@clisp.org>
22268 * doc/gnulib.texi: Include updated-stamp.texi.
22269 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22270 (updated-stamp.texi): New rule.
22271 (gnulib.info): Depend on it.
22272 * doc/.gitignore: Add updated-stamp.texi.
22273 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22275 2008-06-19 Bruno Haible <bruno@clisp.org>
22277 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22278 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22280 2008-06-19 Eric Blake <ebb9@byu.net>
22282 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22283 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22284 Reported by Stepan Kasal.
22286 2008-06-18 Bruno Haible <bruno@clisp.org>
22288 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22289 Reported by Eric Blake.
22291 2008-06-18 Eric Blake <ebb9@byu.net>
22293 Work around cygwin 1.5.25 strsignal bug.
22294 * tests/test-strsignal.c: Allow for const char *.
22295 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22297 2008-06-18 Simon Josefsson <simon@josefsson.org>
22299 * users.txt: Update URL to article and add author/date
22302 2008-06-17 Bruno Haible <bruno@clisp.org>
22304 New macro gl_DISABLE_THREADS.
22305 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22306 if the user did not pass --enable-threads or --disable-threads option.
22307 (gl_DISABLE_THREADS): New macro.
22308 Reported by Eric Blake <ebb9@byu.net>.
22310 2008-06-17 Bruno Haible <bruno@clisp.org>
22312 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22313 when the macro ignores it.
22314 Based on a patch by Eric Blake <ebb9@byu.net>.
22316 2008-06-17 Bruno Haible <bruno@clisp.org>
22318 * modules/tls (License): Change to LGPLv2+.
22319 Reported by Eric Blake.
22321 2008-06-17 Eric Blake <ebb9@byu.net>
22323 Simplify c-stack prerequisites.
22324 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22325 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22326 no longer requires <ucontext.h> to exist. Optimize setrlimit
22328 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22331 Move c-stack test into testsuite.
22332 * modules/c-stack-tests: New file.
22333 * lib/c-stack.c [DEBUG]: Move test program...
22334 * tests/test-c-stack.c: ...into this new file. Skip rather than
22335 fail test if sigaltstack is lacking.
22336 * tests/test-c-stack.sh: New driver file.
22338 2008-06-16 Eric Blake <ebb9@byu.net>
22340 Use raise module consistently.
22341 * modules/fatal-signal (Depends-on): Add raise.
22342 * modules/sigprocmask (Depends-on): Likewise.
22343 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22344 * lib/sigprocmask.c (sigprocmask): Likewise.
22345 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22346 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22348 Fix compliance bug in sigpending.
22349 * lib/sigprocmask.c (sigpending): Return pending array via
22350 parameter, not return value.
22352 2008-06-14 Eric Blake <ebb9@byu.net>
22354 Improve obstack-printf test code.
22355 * tests/test-obstack-printf.c (test_function): Fix comment, and
22356 simplify usage of obstack_* in macros. Add a test for coverage.
22357 Reported by Bruno Haible.
22359 2008-06-14 Bruno Haible <bruno@clisp.org>
22361 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22362 array size as a constant, not as a const variable.
22363 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22364 AC_USE_SYSTEM_EXTENSIONS.
22365 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22366 Test whether the obstack_printf function actually exists.
22367 * modules/obstack-printf (Depends-on): Add extensions.
22368 (Include): Remove obstack.h.
22369 * modules/obstack-printf-posix (Depends-on): Add extensions.
22370 (Include): Remove obstack.h.
22372 2008-06-13 Eric Blake <ebb9@byu.net>
22374 Add obstack-printf and obstack-printf-posix modules.
22375 * modules/obstack-printf: New file.
22376 * modules/obstack-printf-posix: Likewise.
22377 * MODULES.html.sh (Misc): Mention them.
22378 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22380 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22382 * modules/stdio (Makefile.am): Accomodate new modules.
22383 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22384 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22386 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22388 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22389 (gl_REPLACE_OBSTACK_PRINTF): New macros
22390 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22391 * tests/test-obstack-printf.c: New file.
22392 * modules/obstack-printf-tests: Likewise.
22393 * modules/obstack-printf-posix-tests: Likewise.
22395 2008-06-11 Bruno Haible <bruno@clisp.org>
22397 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22398 * lib/open.c: Include errno.h.
22399 (open): Fail when attempting to write to a file that has a trailing
22401 * tests/test-open.c (main): Test against trailing slash bug.
22402 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22404 2008-06-10 Bruno Haible <bruno@clisp.org>
22406 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22407 for $? to work inside the trap command, with various /bin/sh-s.
22408 * tests/test-vc-list-files-cvs.sh: Likewise.
22410 2008-06-10 Bruno Haible <bruno@clisp.org>
22412 * lib/acl-internal.h: Don't include gettext.h here.
22413 * lib/set-mode-acl.c: Include gettext.h here.
22414 * lib/copy-acl.c: Likewise.
22416 2008-06-10 Bruno Haible <bruno@clisp.org>
22418 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22419 * lib/wait-process.c (wait_subprocess): Likewise.
22420 * lib/execute.h (execute): Add termsigp argument.
22421 * lib/execute.c (execute): Likewise.
22422 * lib/csharpcomp.c (compile_csharp_using_pnet,
22423 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22424 * lib/csharpexec.c (execute_csharp_using_pnet,
22425 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22426 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22427 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22428 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22429 is_jikes_present): Update.
22430 * lib/javaexec.c (execute_java_class): Update.
22431 * lib/javaversion.c (execute_and_read_line): Update.
22432 * NEWS: Document the changes.
22433 Reported by Eric Blake.
22435 2008-06-10 Eric Blake <ebb9@byu.net>
22437 Add missing include.
22438 * tests/test-strstr.c (includes): Add <signal.h>.
22439 * tests/test-strcasestr.c (includes): Likewise.
22440 * tests/test-memmem.c (includes): Likewise.
22442 2008-06-10 Bruno Haible <bruno@clisp.org>
22444 * lib/wait-process.c (wait_subprocess): Add an assertion.
22446 2008-06-10 Bruno Haible <bruno@clisp.org>
22448 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22450 2008-06-10 Bruno Haible <bruno@clisp.org>
22452 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22454 * tests/test-strcasestr.c (main): Likewise.
22455 * tests/test-strstr.c (main): Likewise.
22457 2008-06-09 Bruno Haible <bruno@clisp.org>
22459 Work around the Solaris 10 ACE ACLs ABI change.
22460 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22461 declare if ACL_NO_TRIVIAL is present.
22462 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22463 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22464 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22465 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22466 define if ACL_NO_TRIVIAL is present.
22467 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22468 and use the current ABI.
22469 (file_has_acl): Use same #if condition as elsewhere.
22470 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22471 in use, and use the current ABI.
22472 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22473 Reported by Jim Meyering.
22475 2008-06-09 Eric Blake <ebb9@byu.net>
22477 Work around environments that (stupidly) ignore SIGALRM.
22478 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22479 before using alarm().
22480 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22481 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22482 Reported by Ian Beckwith <ianb@erislabs.net>.
22484 Produce autobuild blurb earlier in log.
22485 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22487 2008-06-09 Jim Meyering <meyering@redhat.com>
22488 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22490 utimens.c: correct kernel bug work-around
22491 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
22492 failure, not success, and the kernel bug we're trying to work
22493 around affects not just the utimensat call, but also the fallback
22495 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22497 [HAVE_FUTIMENS]: Use the same work-around, here.
22499 2008-06-09 Jim Meyering <meyering@redhat.com>
22501 add more guards around definition of ACE_-related code
22502 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22503 ALLOW and ACE_OWNER are also defined.
22505 2008-06-08 Bruno Haible <bruno@clisp.org>
22507 * lib/acl-internal.h: Add me as co-author.
22508 * lib/file-has-acl.c: Likewise.
22509 * lib/set-mode-acl.c: Likewise.
22510 * lib/copy-acl.c: Likewise.
22512 2008-06-08 Bruno Haible <bruno@clisp.org>
22514 Add support for AIX ACLs.
22515 * lib/acl-internal.h (acl_nontrivial): New declaration.
22516 * lib/file-has-acl.c (acl_nontrivial): New function.
22517 (file_has_acl): Add implementation using AIX 4 ACL API.
22518 * lib/set-mode-acl.c (qset_acl): Likewise.
22519 * lib/copy-acl.c (qcopy_acl): Likewise.
22521 2008-06-08 Bruno Haible <bruno@clisp.org>
22523 Add support for HP-UX ACLs.
22524 * lib/acl-internal.h (acl_nontrivial): New declaration.
22525 * lib/file-has-acl.c (acl_nontrivial): New function.
22526 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22527 * lib/set-mode-acl.c (qset_acl): Likewise.
22528 * lib/copy-acl.c (qcopy_acl): Likewise.
22530 2008-06-08 Bruno Haible <bruno@clisp.org>
22532 Add support for Cygwin ACLs.
22533 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22534 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22535 the chmod_or_fchmod call.
22536 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22538 2008-06-08 Bruno Haible <bruno@clisp.org>
22540 Fix bug with setuid modes in Solaris 10+ code.
22541 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22542 succeeded, when the mode contains some special bits.
22544 2008-06-08 Bruno Haible <bruno@clisp.org>
22546 Add support for Solaris 7..10 ACLs.
22547 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22549 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22551 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22552 * lib/set-mode-acl.c (qset_acl): Likewise.
22553 * lib/copy-acl.c (qcopy_acl): Likewise.
22555 2008-06-08 Bruno Haible <bruno@clisp.org>
22557 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22559 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22560 (acl_access_nontrivial): Remove MacOS X case.
22561 (file_has_acl): Use acl_extended_nontrivial.
22562 * lib/copy-acl.c (qcopy_acl): Likewise.
22564 2008-06-08 Bruno Haible <bruno@clisp.org>
22566 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22568 2008-06-08 Jim Meyering <meyering@redhat.com>
22570 * modules/acl (Maintainer): Add Bruno Haible.
22572 2008-06-07 Bruno Haible <bruno@clisp.org>
22574 Improve support for Tru64 ACLs.
22575 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22578 2008-06-07 Bruno Haible <bruno@clisp.org>
22580 Add support for MacOS X ACLs.
22581 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22582 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22583 * lib/set-mode-acl.c (qset_acl): Likewise.
22584 * lib/copy-acl.c (qcopy_acl): Likewise.
22586 2008-06-07 Bruno Haible <bruno@clisp.org>
22588 Fix memory leak introduced on 2008-05-22.
22589 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22592 2008-06-07 Bruno Haible <bruno@clisp.org>
22594 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22595 to construct an empty ACL.
22597 2008-06-07 Bruno Haible <bruno@clisp.org>
22599 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22601 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22603 2008-06-07 Bruno Haible <bruno@clisp.org>
22605 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22606 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22608 2008-06-07 Bruno Haible <bruno@clisp.org>
22610 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22611 regardless of POSIX.
22612 * doc/posix-functions/_longjmp.texi: Likewise.
22613 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22614 SystemV platform in this case.
22616 2008-06-06 Eric Blake <ebb9@byu.net>
22618 Document abort() bugs.
22619 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22621 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22622 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22624 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22625 siglongjmp, but only as a macro.
22626 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22628 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22630 Tweak documentation to cover cygwin argz bugs.
22631 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22632 argz bug fix; no code change needed since no cygwin releases
22633 occurred between the last fix and the bug being tested.
22634 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22635 module and recently fixed cygwin bugs.
22636 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22637 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22638 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22639 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22640 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22642 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22643 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22644 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22645 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22646 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22647 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22650 Avoid gcc warning on cygwin.
22651 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22652 !ACL_NO_TRIVIAL]: Avoid unused variable.
22654 2008-06-05 Eric Blake <ebb9@byu.net>
22656 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22657 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22658 git-version-gen fails to come up with a version.
22659 Reported by Simon Josefsson.
22661 2008-06-05 Jim Meyering <meyering@redhat.com>
22662 Paul Eggert <eggert@cs.ucla.edu>
22664 utimens.c: work around a probable Linux kernel bug
22665 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22666 appears to be a kernel bug that causes utimensat to return 280
22667 instead of 0, indicating success.
22669 2008-06-04 Bruno Haible <bruno@clisp.org>
22671 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22674 2008-06-04 Bruno Haible <bruno@clisp.org>
22676 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22677 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22678 (file_has_acl): Use it. Save errno afterwards.
22679 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22681 2008-06-03 Bruno Haible <bruno@clisp.org>
22683 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22684 draft code. Simplify #ifs.
22685 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22686 Put Solaris code after POSIX-draft code. Fix comments regarding
22687 Solaris 10, HP-UX. Mention Cygwin.
22688 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22690 2008-06-03 Eric Blake <ebb9@byu.net>
22692 Provide fallback for older kernels.
22693 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22694 Provide runtime fallback if kernel lacks support.
22695 Reported by Mike Frysinger.
22697 2008-06-02 Bruno Haible <bruno@clisp.org>
22699 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22702 2008-06-02 Bruno Haible <bruno@clisp.org>
22704 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22705 * lib/copy-acl.c (qcopy_acl): Update comment.
22707 2008-06-02 Bruno Haible <bruno@clisp.org>
22709 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22712 2008-06-02 Bruno Haible <bruno@clisp.org>
22714 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22715 * tests/test-set-mode-acl.sh: Likewise.
22716 * tests/test-copy-acl.sh: Likewise.
22717 * tests/test-copy-file.sh: Likewise.
22719 2008-06-02 Bruno Haible <bruno@clisp.org>
22721 * tests/test-file-has-acl.sh: Remove unused code.
22723 2008-06-01 Bruno Haible <bruno@clisp.org>
22725 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22726 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22728 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22730 2008-06-01 Bruno Haible <bruno@clisp.org>
22732 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22733 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22734 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22736 * modules/acl-tests (configure.ac): Remove tests now contained in
22739 2008-06-02 Jim Meyering <meyering@redhat.com>
22741 announce-gen: use a better key-server host name
22742 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22743 it may be more consistently reliable. Suggested by Werner Koch
22744 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22746 2008-06-01 Bruno Haible <bruno@clisp.org>
22748 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22749 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22751 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22753 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22755 2008-06-01 Bruno Haible <bruno@clisp.org>
22758 * tests/test-file-has-acl.sh: New file.
22759 * tests/test-file-has-acl.c: New file.
22760 * tests/test-set-mode-acl.sh: New file.
22761 * tests/test-set-mode-acl.c: New file.
22762 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22763 * tests/test-copy-acl.c: New file.
22764 * modules/acl-tests: New file, based on modules/copy-file-tests.
22765 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22766 (Depends-on): Add acl-tests.
22767 (configure.ac): Remove checks.
22768 (Makefile.am): Don't create test-sameacls program here any more.
22770 2008-06-01 Bruno Haible <bruno@clisp.org>
22772 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22773 * tests/test-sameacls.c: Include progname.h.
22774 (main): Invoke set_program_name. Portability fixes for MacOS X,
22777 2008-06-01 Bruno Haible <bruno@clisp.org>
22779 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22781 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22783 2008-06-01 Bruno Haible <bruno@clisp.org>
22785 * modules/rpmatch (Depends-on): Add strdup.
22787 2008-06-01 Bruno Haible <bruno@clisp.org>
22789 * lib/pipe.c: Include unistd-safer.h.
22790 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22791 * modules/pipe (Depends-on): Add unistd-safer.
22793 2008-05-30 Simon Josefsson <simon@josefsson.org>
22795 * modules/autobuild (configure.ac): Call AB_INIT.
22797 2008-05-30 Simon Josefsson <simon@josefsson.org>
22799 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22800 Suggested by Bruno Haible <bruno@clisp.org>.
22802 2008-05-30 Simon Josefsson <simon@josefsson.org>
22804 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22805 printf. Use %lu instead of %d. Reported by Bruno Haible
22808 2008-05-29 Eric Blake <ebb9@byu.net>
22810 Prefer new POSIX 200x interfaces over futimesat.
22811 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22812 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22814 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22816 2008-05-28 Bruno Haible <bruno@clisp.org>
22818 * modules/stpcpy (License): Change to LGPLv2+.
22819 Requested by David Lutterkort <dlutter@redhat.com>.
22821 2008-05-27 Bruno Haible <bruno@clisp.org>
22823 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22825 Reported by Jose E. Marchesi <jemarch@gnu.org>.
22827 2008-05-27 Bruno Haible <bruno@clisp.org>
22829 * modules/iconv_open (Link): New section, from module 'iconv'.
22830 * modules/striconv (Link): Likewise.
22831 * modules/striconveh (Link): Likewise.
22832 * modules/xstriconv (Link): Likewise.
22833 * modules/unicodeio (Link): Likewise.
22834 * modules/propername (Link): Likewise.
22835 Reported by Jim Meyering.
22837 2008-05-26 Jim Meyering <meyering@redhat.com>
22839 sha256: do not artificially restrict buffer length to be < 2^32
22840 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22841 uint32_t to size_t.
22842 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22845 avoid unaligned access errors, e.g., on sparc
22846 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22847 direct access through a possibly-unaligned uint64* pointer.
22848 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22849 direct access through a possibly-unaligned uint32* pointer.
22850 Prompted by this patch from Tom "spot" Callaway:
22851 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22853 sha512.c: fix typo in comment
22854 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22856 2008-05-25 Bruno Haible <bruno@clisp.org>
22858 * lib/set-mode-acl.c: Renamed from lib/acl.c.
22859 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22860 (Makefile.am): Update lib_SOURCES.
22862 2008-05-25 Bruno Haible <bruno@clisp.org>
22864 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22866 2008-05-25 Jim Meyering <meyering@redhat.com>
22868 useless-if-before-free: freed expr may have white-space differences
22869 * build-aux/useless-if-before-free: Recognize cases in which the
22870 freed expression differs from the tested one in embedded white
22871 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
22872 $1 was used, so we can't make any regexp shy. Improved tests now
22875 useless-if-before-free: accept white space in the expression.
22876 * build-aux/useless-if-before-free: For now, any white space
22877 in the expression must be identical in the free argument.
22879 useless-if-before-free: efficiency tweak
22880 * build-aux/useless-if-before-free: Make the expression-matching
22882 Make the *outer* regexp shy, not the expr-matching one.
22884 update code-in-comment to accept cast of free arg
22885 * build-aux/useless-if-before-free: Update regexp.
22887 2008-05-25 Bruno Haible <bruno@clisp.org>
22889 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22890 * modules/copy-file-tests (Files, Makefile.am): Update.
22891 * tests/test-copy-file.c (func_test_copy): Update.
22893 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
22895 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22897 2008-05-23 Bruno Haible <bruno@clisp.org>
22899 Improve support for ACLs on OSF/1.
22900 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22901 Remove fallback for unknown flavors of ACLs.
22903 2008-05-22 Bruno Haible <bruno@clisp.org>
22905 Add support for ACLs on OSF/1.
22906 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22908 (acl_free_text): New macro fallback.
22909 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22911 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22912 acl_free_text function. Require AC_C_INLINE.
22914 2008-05-22 Bruno Haible <bruno@clisp.org>
22916 Make copy_acl work on MacOS X 10.5.
22917 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22918 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22919 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22920 If MODE_INSIDE_ACL, don't assume that every system has the same text
22921 representation for ACLs as FreeBSD.
22922 * lib/copy-acl.c (copy_acl): Add support for platforms with
22924 * lib/file-has-acl.c (file_has_acl): Likewise.
22925 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22926 FreeBSD, MacOS X, or IRIX, respectively.
22928 2008-05-22 Bruno Haible <bruno@clisp.org>
22930 * lib/acl.h: Don't include <sys/acl.h>.
22931 (GETACLCNT): Move fallback to lib/acl-internal.h.
22932 * lib/acl-internal.h: Include <sys/acl.h> here.
22933 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22935 2008-05-22 Bruno Haible <bruno@clisp.org>
22937 Split off copy_acl function to separate file.
22938 * lib/copy-acl.c: New file, extracted from lib/acl.c.
22939 * lib/acl.c (copy_acl): Moved function to separate file.
22940 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22941 * modules/acl (Files): Add lib/copy-acl.c.
22942 (Makefiles.am): Augment lib_SOURCES.
22944 2008-05-22 Bruno Haible <bruno@clisp.org>
22946 * modules/copy-file-tests: New file.
22947 * tests/test-copy-file.sh: New file.
22948 * tests/test-copy-file.c: New file.
22949 * tests/test-copy-file-sameacls.c: New file.
22951 2008-05-22 Eric Blake <ebb9@byu.net>
22954 * tests/test-memcmp.c (main): Pass NULL indirectly.
22956 2008-05-21 Bruno Haible <bruno@clisp.org>
22958 Add reference doc about ACLs.
22959 * doc/acl-resources.txt: New file.
22960 * doc/acl-cygwin.txt: New file.
22962 2008-05-21 Bruno Haible <bruno@clisp.org>
22964 Avoid one more warning from gcc.
22965 * lib/vasnprintf.c (IF_LINT): Update comments.
22966 (VASNPRINTF): Use it also for the 'prefix' array initializer.
22968 2008-05-21 Jim Meyering <meyering@redhat.com>
22970 avoid a warning from gcc
22971 * lib/vasnprintf.c (IF_LINT): Define.
22972 (scale10_round_decimal_long_double):
22973 Use it to avoid a "may be used uninitialized" warning.
22974 (scale10_round_decimal_double): Likewise.
22976 2008-05-21 Simon Josefsson <simon@josefsson.org>
22978 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22981 2008-05-20 Bruno Haible <bruno@clisp.org>
22983 * tests/test-memcmp.c (main): Test also the sign of the result. Test
22984 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22986 2008-05-20 Simon Josefsson <simon@josefsson.org>
22988 * modules/memcmp-tests: New file.
22989 * tests/test-memcmp.c: New file.
22991 2008-05-19 Bruno Haible <bruno@clisp.org>
22993 * modules/propername (Notice, configure.ac): Put quoted "..." into
22995 * lib/propername.h: Update comments accordingly.
22996 Reported by Eric Blake.
22998 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23000 * modules/getpass-gnu (Depends-on): Add fseeko.
23002 2008-05-19 Simon Josefsson <simon@josefsson.org>
23004 * modules/base64-tests: New file.
23006 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23008 * lib/base64.c (base64_decode_ctx): If a decode context structure
23009 was passed in use it to ignore newlines. If a context structure
23010 was _not_ passed in, continue to treat newlines as garbage (this
23011 is the historical behavior). Formerly base64_decode.
23012 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23013 takes a decode context structure.
23014 * lib/base64.h (base64_decode): Macro for four-argument calls.
23015 (base64_decode_alloc): Likewise.
23016 * lib/base64.c (base64_decode_ctx): If a decode context structure
23017 was passed in use it to ignore newlines. If a context structure
23018 was _not_ passed in, continue to treat newlines as garbage (this
23019 is the historical behavior). Formerly base64_decode.
23020 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23021 takes a decode context structure.
23022 * lib/base64.h (base64_decode): Macro for four-argument calls.
23023 (base64_decode_alloc): Likewise.
23025 2008-05-19 Jim Meyering <meyering@redhat.com>
23027 avoid a warning from gcc
23028 * lib/trim.c (IF_LINT): Define.
23029 (trim2): Use it to avoid a "may be used uninitialized" warning.
23032 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23034 2008-05-19 Bruno Haible <bruno@clisp.org>
23036 * doc/glibc-functions/getpass.texi: Document limits of other
23039 2008-05-19 Simon Josefsson <simon@josefsson.org>
23040 Bruno Haible <bruno@clisp.org>
23042 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23044 2008-05-18 Bruno Haible <bruno@clisp.org>
23046 * modules/propername: New file, from GNU gettext.
23047 * lib/propername.h: New file, from GNU gettext.
23048 * lib/propername.c: New file, from GNU gettext.
23049 * MODULES.html.sh (Internationalization functions): Add propername.
23051 2008-05-16 Jim Meyering <meyering@redhat.com>
23052 Bruno Haible <bruno@clisp.org>
23054 Avoid some warnings from "gcc -Wshadow".
23055 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23057 2008-05-15 Eric Blake <ebb9@byu.net>
23059 Extend previous patch to cygwin 1.7.0.
23060 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23061 fast implementation in cygwin >= 1.7.0.
23062 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23063 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23065 2008-05-15 Bruno Haible <bruno@clisp.org>
23067 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23068 implementation in glibc >= 2.9.
23069 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23070 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23072 2008-05-15 Bruno Haible <bruno@clisp.org>
23074 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23075 (Unicode string functions): Add unilbrk/*.
23076 Reported by Karl Berry.
23078 2008-05-15 Eric Blake <ebb9@byu.net>
23080 Fix violation of <stdbool.h> replacement in regex.
23081 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23082 * lib/regexec.c (re_search_internal): Likewise.
23083 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23085 2008-05-15 Jim Meyering <meyering@redhat.com>
23087 avoid distracting test output when git or cvs is not found
23088 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23089 * tests/test-vc-list-files-git.sh: Likewise.
23091 2008-05-15 Eric Blake <ebb9@byu.net>
23093 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23094 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23096 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23097 * doc/posix-functions/strstr.texi (strstr): Likewise.
23098 * lib/str-two-way.h (MAX): Sychronize with glibc.
23100 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23102 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23104 (calc_first): Initialize constraint field.
23105 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23107 (duplicate_node): Merge constraint field for all node types.
23108 (calc_eclosure_iter): Look at constraint field for all node types.
23109 * lib/regex_internal.c (create_cd_newstate): Don't look at
23112 2008-05-14 Bruno Haible <bruno@clisp.org>
23114 Help GCC to do better code generation.
23115 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23116 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23117 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23118 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23119 Declare with attribute 'malloc' if supported.
23121 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23123 use "echo STR|wc -c" rather than unportable "expr length STR"
23124 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23125 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23127 2008-05-14 Jim Meyering <meyering@redhat.com>
23129 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23130 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23131 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23132 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23135 2008-05-14 Eric Blake <ebb9@byu.net>
23137 Avoid quadratic growth in gl_LIBSOURCES.
23138 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23139 Suggested by Bruno Haible.
23142 * modules/xmemdup0-tests: New file.
23143 * tests/test-xmemdup0.c: Likewise.
23145 2008-05-13 Eric Blake <ebb9@byu.net>
23147 Split xmemdup0 into its own module.
23148 * modules/xmemdup0: New file.
23149 * lib/xmemdup0.h: Likewise.
23150 * lib/xmemdup0.c: Likewise.
23151 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23152 * lib/xalloc.h (xmemdup0): Remove.
23153 * lib/xmalloc.c (xmemdup0): Likewise.
23155 2008-05-13 Eric Blake <ebb9@byu.net>
23156 Bruno Haible <bruno@clisp.org>
23158 Reduce number of forks required during autoconf.
23159 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23160 and gl_LIBSOURCES_DIR.
23161 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23162 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23163 m4_syscmd per file.
23164 <m4_foreach_w>: Move...
23165 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23167 2008-05-13 Eric Blake <ebb9@byu.net>
23169 * gnulib-tool: Fix various comment typos.
23171 2008-05-12 Bruno Haible <bruno@clisp.org>
23173 Tailor the linebreaking algorithm.
23174 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23176 2008-05-12 Bruno Haible <bruno@clisp.org>
23178 Update to Unicode 5.0.0.
23179 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23180 LBP_JV, LBP_JT. Redistribute values.
23181 (unilbrk_table): Change size.
23182 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23183 Unicode TR#14 rev. 22.
23184 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23185 LBP_JV, LBP_JT. Redistribute values.
23186 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23187 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23189 * lib/unilbrk/lbrkprop1.h: Regenerated.
23190 * lib/unilbrk/lbrkprop2.h: Regenerated.
23191 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23192 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23193 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23195 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23197 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23199 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23200 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23201 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23202 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23203 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23204 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23206 2008-05-11 Bruno Haible <bruno@clisp.org>
23208 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23210 2008-05-11 Bruno Haible <bruno@clisp.org>
23212 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23213 * modules/unilbrk/gen-lbrk: New file.
23215 2008-05-11 Bruno Haible <bruno@clisp.org>
23217 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23218 * m4/sha512.m4 (gl_SHA512): Likewise.
23220 2008-05-11 Jim Meyering <meyering@redhat.com>
23222 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23223 * modules/crypto/sha256: New file.
23224 * modules/crypto/sha512: Likewise.
23225 * lib/sha256.c: Likewise.
23226 * lib/sha256.h: Likewise.
23227 * lib/sha512.c: Likewise.
23228 * lib/sha512.h: Likewise.
23229 * lib/u64.h: Likewise.
23230 * m4/sha256.m4: Likewise.
23231 * m4/sha512.m4: Likewise.
23232 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23234 2008-05-10 Bruno Haible <bruno@clisp.org>
23236 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23237 (Input/Output <stdio.h>): Add xprintf.
23238 (Signal handling <signal.h>): Add strsignal.
23239 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23240 (Core language properties): Add func.
23241 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23242 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23244 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23245 (Input/output): New section.
23246 (File system functions): Add openat-die, stat-macros.
23247 (Networking functions): Add sockets.
23248 (Unicode string functions): Add unictype/*.
23249 (Support for building libraries and executables): Add gperf.
23250 (Support for building documentation): Add agpl-3.0.
23251 (Misc): Add nocrash.
23253 2008-05-10 Bruno Haible <bruno@clisp.org>
23255 * modules/unictype/gen-ctype: New file.
23257 2008-05-10 Jim Meyering <meyering@redhat.com>
23259 Make chdir-safer.c more efficient on a system with no symlinks.
23260 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23261 also if ELOOP is zero. Suggested by Bruno Haible.
23263 Make chdir-safer.c slightly safer.
23264 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23265 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23267 Avoid compile failure on systems without ELOOP (like mingw).
23268 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23269 Reported by Bruno Haible.
23271 2008-05-10 Bruno Haible <bruno@clisp.org>
23273 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23274 (is_utf8_encoding): Use a case-insensitive comparison.
23275 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23278 2008-05-10 Bruno Haible <bruno@clisp.org>
23280 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23281 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23282 * lib/unilbrk/ulc-common.h (iconv_string_length,
23283 iconv_string_keeping_offsets): Remove declarations.
23284 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23285 Don't include <iconv.h>, streq.h, xsize.h.
23286 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23288 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23289 <iconv.h>, streq.h, xsize.h.
23290 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23292 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23293 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23294 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23295 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23297 2008-05-10 Bruno Haible <bruno@clisp.org>
23299 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23300 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23302 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23303 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23305 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23306 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23308 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23309 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23311 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23312 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23314 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23315 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23317 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23318 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23320 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23321 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23323 2008-05-10 Bruno Haible <bruno@clisp.org>
23325 Split up 'linebreak' module.
23326 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23327 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23328 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23330 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23331 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23332 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23334 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23336 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23338 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23339 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23340 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23342 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23344 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23346 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23348 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23350 * modules/unilbrk/base: New file.
23351 * modules/unilbrk/tables: New file.
23352 * modules/unilbrk/u8-possible-linebreaks: New file.
23353 * modules/unilbrk/u16-possible-linebreaks: New file.
23354 * modules/unilbrk/u32-possible-linebreaks: New file.
23355 * modules/unilbrk/ulc-common: New file.
23356 * modules/unilbrk/ulc-possible-linebreaks: New file.
23357 * modules/unilbrk/u8-width-linebreaks: New file.
23358 * modules/unilbrk/u16-width-linebreaks: New file.
23359 * modules/unilbrk/u32-width-linebreaks: New file.
23360 * modules/unilbrk/ulc-width-linebreaks: New file.
23361 * lib/linebreak.h: Remove file.
23362 * lib/linebreak.c: Remove file.
23363 * m4/linebreak.m4: Remove file.
23364 * modules/linebreak: Remove file.
23365 * NEWS: Mention the changes.
23367 2008-05-09 Eric Blake <ebb9@byu.net>
23370 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23372 * lib/xmalloc.c (xmemdup0): New C implementation.
23374 2008-05-08 Bruno Haible <bruno@clisp.org>
23376 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23378 2008-05-07 Eric Blake <ebb9@byu.net>
23380 Support cross-compilation of <wctype.h>.
23381 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23384 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23386 * build-aux/vc-list-files: Add support for bzr.
23388 2008-05-03 Jim Meyering <meyering@redhat.com>
23390 avoid failed assertion with tight malloc
23391 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23393 2008-05-03 Simon Josefsson <simon@josefsson.org>
23395 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23396 are needed from arpa/inet.h.
23397 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23398 Reported by Bruno Haible.
23400 2008-05-02 Jim Meyering <meyering@redhat.com>
23402 avoid compilation error on FreeBSD 6
23403 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23405 2008-05-01 Jim Meyering <meyering@redhat.com>
23407 useless-if-before-free: correct --help's exit status description
23408 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23409 for one or more matches, etc. Reported by Bruno Haible.
23411 vc-list-files: make the stand-alone gnulib test work
23412 * modules/vc-list-files-tests (configure.ac):
23413 Define and AC_SUBST abs_aux_dir.
23414 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23415 $(abs_top_srcdir) to each script and having each of them
23416 duplicate the work of setting PATH, set PATH here, using
23417 the new variable, abs_aux_dir instead.
23418 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23419 * tests/test-vc-list-files-git.sh: Likewise.
23420 Reported by Bruno Haible.
23422 2008-05-01 Bruno Haible <bruno@clisp.org>
23424 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23425 reallocation. Rename 'done' to 'found_delimiter'.
23427 2008-05-01 Jim Meyering <meyering@redhat.com>
23429 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23430 * build-aux/vc-list-files: Use `...`, not $(...).
23432 2008-04-30 Jim Meyering <meyering@redhat.com>
23434 add tests for vc-list-files
23435 * modules/vc-list-files-tests: New module.
23436 * tests/test-vc-list-files-cvs.sh: New file.
23437 * tests/test-vc-list-files-git.sh: New file.
23439 avoid a warning from gcc
23440 * lib/getndelim2.c (IF_LINT): Define.
23441 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23443 vc-list-files: work properly with build-aux/cvsu, too
23444 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23445 to all cvs-based clauses.
23447 vc-list-files: work properly in the CVS+awk case, too
23448 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23450 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23451 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23452 take more than one file argument, so . Add quotes, just in case $dir
23453 ever contains a shell meta-character. Prompted by Soren Hansen in
23454 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23456 2008-04-29 Eric Blake <ebb9@byu.net>
23458 Optimize getndelim2 to use block operations when possible.
23459 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23460 freadseek, and memchr2.
23461 * lib/getndelim2.c (getndelim2): Use them for block reads.
23463 2008-04-29 Bruno Haible <bruno@clisp.org>
23465 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23466 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23467 * modules/inet_ntop (Depends-on): Add extensions.
23468 * modules/inet_pton (Depends-on): Likewise.
23469 Reported by Simon Josefsson.
23471 2008-04-29 Jim Meyering <meyering@redhat.com>
23473 When the is more than one match in a block, match all of them.
23474 * build-aux/useless-if-before-free: Iterate through each block
23475 until there are no more matches.
23477 Fix broken useless-if-before-free script.
23478 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23479 the expression to match cast of argument to free-like function.
23481 2008-04-29 Eric Blake <ebb9@byu.net>
23484 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23486 2008-04-29 Jim Meyering <meyering@redhat.com>
23488 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23489 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23490 by gnulib to exist and to declare e.g., inet_ntop.
23491 Don't include "inet_ntop.h", now removed.
23493 * m4/arpa_inet_h.m4: Remove trailing blanks.
23495 2008-04-29 Eric Blake <ebb9@byu.net>
23497 Silence valgrind on safe reads beyond potential array bounds.
23498 * lib/rawmemchr.valgrind: New file.
23499 * lib/strchrnul.valgrind: Likewise.
23500 * modules/rawmemchr (Files): Distribute new file.
23501 * modules/strchrnul (Files): Likewise.
23502 Suggested by Bruno Haible.
23504 2008-04-29 Bruno Haible <bruno@clisp.org>
23506 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23507 (inet_ntop, inet_pton): Change portability warning's wording.
23508 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23509 Invoke gl_CHECK_NEXT_HEADERS.
23510 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23511 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23513 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23514 * modules/arpa_inet (Description): No longer only for systems that
23516 (Depends-on): Add include_next.
23517 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23520 2008-04-29 Jim Meyering <meyering@redhat.com>
23522 * modules/mkdir (License): Re-license as LGPLv2+.
23524 2008-04-29 Bruno Haible <bruno@clisp.org>
23526 * modules/rawmemchr (Maintainer): Set to Eric.
23527 * modules/strchrnul (Maintainer): Likewise.
23529 2008-04-29 Simon Josefsson <simon@josefsson.org>
23531 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23532 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23534 * modules/arpa_inet (arpa/inet.h): Use them.
23536 2008-04-28 Eric Blake <ebb9@byu.net>
23539 * modules/getndelim2-tests: New file.
23540 * tests/test-getndelim2.c: Likewise.
23541 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23543 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23545 * MODULES.html.sh: Document new module.
23547 2008-04-20 Bruno Haible <bruno@clisp.org>
23549 * lib/c-stack.c (die): Use raise.
23550 * modules/c-stack (Depends-on): Add raise.
23552 2008-04-28 Bruno Haible <bruno@clisp.org>
23554 Expect rpmatch to be declared.
23555 * lib/yesno.c (rpmatch): Remove declaration.
23558 * lib/stdlib.in.h (rpmatch): New declaration.
23559 * lib/rpmatch.c: Include <stdlib.h> first.
23560 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23561 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23562 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23564 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23565 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23566 (Include): Set to <stdlib.h>.
23567 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23569 * NEWS: Document the change.
23571 2008-04-28 Bruno Haible <bruno@clisp.org>
23573 Change rpmatch to use nl_langinfo when appropriate.
23574 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23576 (localized_pattern): New function/macro.
23577 (try): Remove match, nomatch arguments. Copy the pattern into safe
23578 memory before caching it.
23579 (rpmatch): Use localized_pattern. Add translator comments.
23580 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23581 Suggested by Eric Blake.
23582 * modules/rpmatch (Depends-on): Add stdbool.
23584 2008-04-28 Eric Blake <ebb9@byu.net>
23586 Add rawmemchr module, matching glibc.
23587 * modules/string (Makefile.am): New indicator.
23588 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23589 * lib/string.in.h (rawmemchr): Declare when appropriate.
23590 * modules/rawmemchr: New file.
23591 * m4/rawmemchr.m4: Likewise.
23592 * lib/rawmemchr.c: Likewise.
23593 * modules/rawmemchr-tests: Likewise.
23594 * tests/test-rawmemchr.c: Likewise.
23595 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23597 * modules/strchrnul (Depends-on): Add rawmemchr.
23598 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23600 Whitespace cleanup.
23601 * tests/test-strchrnul.c: Reindent.
23602 * lib/strchrnul.c: Likewise.
23604 Optimize and test strchrnul.
23605 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23606 * modules/strchrnul-tests: New file.
23607 * tests/test-strchrnul.c: Likewise.
23609 Remove intprops dependency.
23610 * modules/memchr (Depends-on): Remove intprops.
23611 * modules/memrchr (Depends-on): Likewise.
23612 * modules/memchr2 (Depends-on): Likewise.
23613 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23614 * lib/memrchr.c (__memrchr): Likewise.
23615 * lib/memrchr2.c (memchr2): Likewise.
23616 Reported by Simon Josefsson.
23618 2008-04-28 Simon Josefsson <simon@josefsson.org>
23620 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23621 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23623 2008-04-28 Simon Josefsson <simon@josefsson.org>
23625 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23627 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23629 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23631 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23633 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23635 * m4/inet_pton.m4: Don't check for header files.
23637 * m4/inet_ntop.m4: Don't check for header files.
23639 2008-04-28 Simon Josefsson <simon@josefsson.org>
23641 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23642 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23643 trigger for cygwin).
23644 Reported by Bruno Haible <bruno@clisp.org>.
23646 2008-04-28 Bruno Haible <bruno@clisp.org>
23648 * doc/posix-functions/strdup.texi: Mention mingw problem.
23650 2008-04-27 Bruno Haible <bruno@clisp.org>
23652 * modules/stat-time-tests (Depends-on): Add sleep.
23653 * tests/test-stat-time.c (force_unlink): New function.
23655 (test_mtime): Remove the ctime related tests.
23656 (test_ctime): New function, containing the ctime related tests.
23657 (main): Call test_ctime, except on native Windows platforms.
23659 2008-04-27 Bruno Haible <bruno@clisp.org>
23661 * lib/rpmatch.c (rpmatch): Add some comments.
23662 Reported by James Youngman <jay@gnu.org>.
23664 2008-04-27 Bruno Haible <bruno@clisp.org>
23666 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23669 2008-04-27 Bruno Haible <bruno@clisp.org>
23671 Make test-yesno.sh work on mingw.
23672 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23673 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23674 (main): Set stdin to binary mode.
23675 * modules/yesno-tests (Depends-on): Add binary-io.
23677 2008-04-27 Bruno Haible <bruno@clisp.org>
23679 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23680 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23681 argument that lie outside the IEEE 854 domain.
23682 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23683 (gl_ISFINITE): Use it.
23684 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23686 2008-04-27 Bruno Haible <bruno@clisp.org>
23688 Allow local renaming in config.h.
23689 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23691 2008-04-27 Bruno Haible <bruno@clisp.org>
23693 * lib/memchr.c (__memchr): Change type of 'i'.
23694 * lib/memchr2.c (memchr2): Likewise.
23696 2008-04-26 Eric Blake <ebb9@byu.net>
23697 and Bruno Haible <bruno@clisp.org>
23699 Optimize and test memrchr.
23700 * modules/memrchr (Depends-on): Add intprops.
23701 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23702 * modules/memrchr-tests: New file.
23703 * tests/test-memrchr.c: New file.
23705 2008-04-26 Bruno Haible <bruno@clisp.org>
23707 Add tentative support for DragonFly BSD.
23708 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23709 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23711 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23712 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23713 * lib/fpurge.c (fpurge): Likewise.
23714 * lib/freadable.c (freaadable): Likewise.
23715 * lib/freadahead.c (freadahead): Likewise.
23716 * lib/freading.c (freading): Likewise.
23717 * lib/freadptr.c (freadptr): Likewise.
23718 * lib/freadseek.c (freadptrinc): Likewise.
23719 * lib/fseeko.c (fseeko): Likewise.
23720 * lib/fseterr.c (fseterr): Likewise.
23721 * lib/fwritable.c (fwritable): Likewise.
23722 * lib/fwriting.c (fwriting): Likewise.
23724 2008-04-26 Bruno Haible <bruno@clisp.org>
23726 * lib/stdio-impl.h: New file.
23727 * lib/fbufmode.c: Include stdio-impl.h.
23728 (fbufmode): Use fp_, remove redundant #defines.
23729 * lib/fflush.c: Include stdio-impl.h.
23730 (clear_ungetc_buffer): Remove redundant #defines.
23731 * lib/fpurge.c: Include stdio-impl.h.
23732 (fpurge): Remove redundant #defines.
23733 * lib/freadable.c: Include stdio-impl.h.
23734 (freadable): Remove redundant #defines.
23735 * lib/freadahead.c: Include stdio-impl.h.
23736 (freadahead): Remove redundant #defines.
23737 * lib/freading.c: Include stdio-impl.h.
23738 (freading): Remove redundant #defines.
23739 * lib/freadptr.c: Include stdio-impl.h.
23740 (freadptr): Remove redundant #defines.
23741 * lib/freadseek.c: Include stdio-impl.h.
23742 (freadptrinc): Remove redundant #defines.
23743 * lib/fseeko.c: Include stdio-impl.h.
23744 (rpl_fseeko): Remove redundant #defines.
23745 * lib/fseterr.c: Include stdio-impl.h.
23746 (fseterr): Remove redundant #defines.
23747 * lib/fwritable.c: Include stdio-impl.h.
23748 (fwritable: Remove redundant #defines.
23749 * lib/fwriting.c: Include stdio-impl.h.
23750 (fwriting): Remove redundant #defines.
23751 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23752 * modules/fflush (Files): Likewise.
23753 * modules/fpurge (Files): Likewise.
23754 * modules/freadable (Files): Likewise.
23755 * modules/freadahead (Files): Likewise.
23756 * modules/freading (Files): Likewise.
23757 * modules/freadptr (Files): Likewise.
23758 * modules/freadseek (Files): Likewise.
23759 * modules/fseeko (Files): Likewise.
23760 * modules/fseterr (Files): Likewise.
23761 * modules/fwritable (Files): Likewise.
23762 * modules/fwriting (Files): Likewise.
23764 2008-04-26 Bruno Haible <bruno@clisp.org>
23766 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23767 restore_seek_optimization, update_fpos_cache): New functions, extracted
23769 (rpl_fflush): Use them.
23770 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23771 (gl_REPLACE_FFLUSH): Use it.
23773 2008-04-26 Bruno Haible <bruno@clisp.org>
23775 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23777 * tests/test-xstrtoimax.sh: Likewise.
23778 * tests/test-xstrtoumax.sh: Likewise.
23779 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23781 2008-04-26 Bruno Haible <bruno@clisp.org>
23783 * modules/memchr-tests: New file.
23784 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23786 2008-04-26 Eric Blake <ebb9@byu.net>
23787 Bruno Haible <bruno@clisp.org>
23789 * lib/memchr.c: Include intprops.h.
23790 (__memchr): Optimize parallel detection of matching bytes. Rename local
23791 variables. Add explanatory comments.
23793 2008-04-26 Bruno Haible <bruno@clisp.org>
23795 Fix module 'memchr', broken since 2000-10-28.
23796 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23798 2008-04-26 Bruno Haible <bruno@clisp.org>
23800 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23803 2008-04-25 Eric Blake <ebb9@byu.net>
23805 Use native fstatat on cygwin 1.7.0.
23806 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23809 2008-04-23 Eric Blake <ebb9@byu.net>
23811 Improve memchr2 performance.
23812 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23814 * modules/memchr2 (Depends-on): Use intprops.h.
23816 2008-04-23 Simon Josefsson <simon@josefsson.org>
23818 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23819 an inline function instead of a CPP macro. Patch by Ben Pfaff
23820 <blp@cs.stanford.edu>.
23822 2008-04-23 Simon Josefsson <simon@josefsson.org>
23824 * lib/arpa_inet.in.h: New file.
23826 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23827 (Makefile.am): Sed in substitute header file.
23829 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23830 gl_ARPA_INET_MODULE_INDICATOR. Use them.
23832 * modules/inet_ntop (configure.ac): Use
23833 gl_ARPA_INET_MODULE_INDICATOR.
23835 * modules/inet_pton (configure.ac): Use
23836 gl_ARPA_INET_MODULE_INDICATOR.
23838 2008-04-22 Jim Meyering <meyering@redhat.com>
23840 * modules/verify (License): Re-license as LGPLv2+.
23842 2008-04-22 Simon Josefsson <simon@josefsson.org>
23844 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23845 parameter to void* as per POSIX standard (MinGW uses char*).
23847 2008-04-21 Bruno Haible <bruno@clisp.org>
23849 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23850 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23851 Define to replacements if REPLACE_ISWCNTRL is 1.
23852 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23853 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23854 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23855 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23857 * doc/posix-functions/iswalpha.texi: Likewise.
23858 * doc/posix-functions/iswblank.texi: Likewise.
23859 * doc/posix-functions/iswcntrl.texi: Likewise.
23860 * doc/posix-functions/iswdigit.texi: Likewise.
23861 * doc/posix-functions/iswgraph.texi: Likewise.
23862 * doc/posix-functions/iswlower.texi: Likewise.
23863 * doc/posix-functions/iswprint.texi: Likewise.
23864 * doc/posix-functions/iswpunct.texi: Likewise.
23865 * doc/posix-functions/iswspace.texi: Likewise.
23866 * doc/posix-functions/iswupper.texi: Likewise.
23867 * doc/posix-functions/iswxdigit.texi: Likewise.
23868 Reported by Alain Guibert.
23870 2008-04-21 Bruno Haible <bruno@clisp.org>
23872 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23873 Patch by Alain Guibert.
23875 2008-04-21 Bruno Haible <bruno@clisp.org>
23877 Fix test failures on mingw.
23878 * tests/test-xstrtol.c (print_no_progname): New function.
23879 (main): Install it in error_print_progname hook.
23880 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23881 * tests/test-xstrtoimax.sh: Likewise.
23882 * tests/test-xstrtoumax.sh: Likewise.
23884 2008-04-21 Bruno Haible <bruno@clisp.org>
23886 Fix test failure on mingw.
23887 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23889 2008-04-21 Bruno Haible <bruno@clisp.org>
23891 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23892 Actually assign a value.
23894 2008-04-20 Bruno Haible <bruno@clisp.org>
23896 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23898 * lib/canonicalize.c (canonicalize_file_name): Elide if the
23899 'canonicalize-lgpl' module is also used.
23900 * lib/canonicalize-lgpl.c: Undo last change.
23901 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23903 2008-04-20 Bruno Haible <bruno@clisp.org>
23905 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23906 config.h. Provide _mkdir based fallback for mingw.
23907 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23908 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23909 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23910 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23911 rather than defining mkdir in config.h.
23912 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23913 (gl_SYS_STAT_H_DEFAULTS): New macro.
23914 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23915 HAVE_IO_H any more.
23916 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23917 HAVE_DECL_MKDIR and HAVE_IO_H.
23919 2008-04-20 Bruno Haible <bruno@clisp.org>
23921 * lib/isapipe.c: Port to native Windows platforms.
23923 2008-04-20 Bruno Haible <bruno@clisp.org>
23925 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23927 2008-04-21 Eric Blake <ebb9@byu.net>
23929 Work around preprocessors that don't handle UINTMAX_MAX.
23930 * lib/memchr2.c (memchr2): Avoid embedded #if.
23931 Reported by Alain Guibert, fix suggested by Bruno Haible.
23933 2008-04-21 Simon Josefsson <simon@josefsson.org>
23935 * doc/posix-functions/strftime.texi (strftime): Explain better
23936 Windows incompatibility. Suggested by Micah Cowan
23937 <micah@cowan.name>.
23939 2008-04-20 Bruno Haible <bruno@clisp.org>
23941 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23944 2008-04-20 Bruno Haible <bruno@clisp.org>
23946 Fix test failure on platforms with non-GNU iconv.
23947 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23948 (U_TO_U8): Use it, rather than u16_to_u8.
23949 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23950 units at the end of the input string.
23951 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23953 2008-04-20 Bruno Haible <bruno@clisp.org>
23955 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23956 when the resulting length is 0.
23957 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23959 2008-04-20 Bruno Haible <bruno@clisp.org>
23961 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23963 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23965 2008-04-20 Bruno Haible <bruno@clisp.org>
23967 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23968 * modules/tsearch-tests (configure.ac): Test for initstate function.
23970 2008-04-20 Bruno Haible <bruno@clisp.org>
23972 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23973 for nlink_t if missing.
23974 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23976 2008-04-19 Bruno Haible <bruno@clisp.org>
23978 Work around snprintf bug on Linux libc5.
23979 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23980 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23982 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23983 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23985 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23986 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23987 * modules/snprintf (Files): Add m4/printf.m4.
23988 * modules/vsnprintf (Files): Likewise.
23989 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23990 * doc/posix-functions/vsnprintf.texi: Likewise.
23992 2008-04-19 Bruno Haible <bruno@clisp.org>
23994 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23995 from 0.0058 to less than 10^-7.
23997 2008-04-19 Bruno Haible <bruno@clisp.org>
23999 Fix rounding when a precision is given.
24000 * lib/vasnprintf.c (is_borderline): New function.
24001 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24003 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24005 * tests/test-vasprintf-posix.c (test_function): Likewise.
24006 * tests/test-snprintf-posix.h (test_function): Likewise.
24007 * tests/test-sprintf-posix.h (test_function): Likewise.
24008 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24009 * tests/test-printf-posix.h (test_function): Likewise.
24010 * tests/test-printf-posix.output: Update.
24011 Reported by John Darrington <john@darrington.wattle.id.au> via
24012 Ben Pfaff <blp@cs.stanford.edu>.
24014 2008-04-18 Simon Josefsson <simon@josefsson.org>
24016 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24017 Suggested by Bruno Haible <bruno@clisp.org>.
24019 2008-04-17 Bruno Haible <bruno@clisp.org>
24021 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24022 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24024 Patch by Bruce Merry <bmerry@gmail.com>.
24026 2008-04-17 Simon Josefsson <simon@josefsson.org>
24028 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24029 doesn't work under Windows.
24031 2008-04-16 Bruno Haible <bruno@clisp.org>
24033 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24035 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24036 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24037 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24038 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24039 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24040 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24041 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24043 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24044 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24045 Northern Sotho, Uighur.
24047 2008-04-16 Bruno Haible <bruno@clisp.org>
24049 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24050 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24051 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24052 Reported by Daniel Bergström <daniel@octocode.com>.
24054 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24055 Bruno Haible <bruno@clisp.org>
24057 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24059 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24060 New functions, mostly extracted from gl_locale_name_default.
24061 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24063 2008-04-16 Eric Blake <ebb9@byu.net>
24065 Adjust strtod detection to catch glibc 2.7 bug.
24066 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24067 Reported by John Gatewood Ham.
24069 2008-04-16 Bruno Haible <bruno@clisp.org>
24071 Add tentative support for Linux libc5.
24072 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24073 * lib/fpurge.c (fpurge): Likewise.
24074 * lib/freadable.c (freadable): Likewise.
24075 * lib/freadahead.c (freadahead): Likewise.
24076 * lib/freading.c (freading): Likewise.
24077 * lib/freadptr.c (freadptr): Likewise.
24078 * lib/freadseek.c (freadptrinc): Likewise.
24079 * lib/fseeko.c (rpl_fseeko): Likewise.
24080 * lib/fseterr.c (fseterr): Likewise.
24081 * lib/fwritable.c (fwritable): Likewise.
24082 * lib/fwriting.c (fwriting): Likewise.
24083 Reported by Alain Guibert <alguibert+bts@free.fr>.
24085 2008-04-15 Bruno Haible <bruno@clisp.org>
24087 * modules/mathl (configure.ac): Define module indicator.
24089 2008-04-15 Bruno Haible <bruno@clisp.org>
24091 * lib/logl.c (logl): Remove unused variables.
24093 2008-04-15 Bruno Haible <bruno@clisp.org>
24095 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24098 2008-04-15 Bruno Haible <bruno@clisp.org>
24100 * lib/trim.c (trim2): Fix argument of isspace() macro.
24102 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24104 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24106 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24108 2008-04-14 Bruno Haible <bruno@clisp.org>
24110 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24111 AC_LANG_PROGRAM argument.
24112 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24113 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24114 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24115 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24116 * m4/math_h.m4 (gl_MATH_H): Likewise.
24117 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24118 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24119 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24120 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24121 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24122 * m4/regex.m4 (gl_REGEX): Likewise.
24123 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24124 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24125 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24126 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24127 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24128 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24129 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24130 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24132 2008-04-14 Jim Meyering <meyering@redhat.com>
24134 test-strtod: fix typos: s/abs/fabs/
24135 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24137 2008-04-13 Bruno Haible <bruno@clisp.org>
24139 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24140 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24141 module is also used and while not building the reloc-wrapper.
24143 2008-04-13 Bruno Haible <bruno@clisp.org>
24145 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24147 2008-04-13 Bruno Haible <bruno@clisp.org>
24149 Fix AIX compilation failure introduced on 2008-04-02.
24150 * tests/test-frexp.c (exp): Undefine before redefining.
24151 * tests/test-frexpl.c (exp): Likewise.
24153 2008-04-13 Bruno Haible <bruno@clisp.org>
24155 Work around a HP-UX stdio bug.
24156 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24157 * tests/test-ftello.c (main): Likewise.
24158 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24159 * doc/posix-functions/ftello.texi: Likewise.
24161 2008-04-13 Bruno Haible <bruno@clisp.org>
24163 Make test-signbit pass on HP-UX/hppa.
24164 * tests/test-signbit.c (minus_zerol): New variable.
24165 (test_signbitl): Use it.
24167 2008-04-13 Bruno Haible <bruno@clisp.org>
24169 Make truncl work on OSF/1 4.0.
24170 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24171 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24172 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24173 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24175 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24177 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24179 2008-04-13 Bruno Haible <bruno@clisp.org>
24181 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24183 2008-04-13 Bruno Haible <bruno@clisp.org>
24185 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24186 expression, so as to avoid HP-UX 11 cc compiler bug.
24188 2008-04-13 Bruno Haible <bruno@clisp.org>
24190 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24192 2008-04-13 Bruno Haible <bruno@clisp.org>
24194 * lib/git-merge-changelog.c: Remove empty declaration outside of
24197 2008-04-13 Bruno Haible <bruno@clisp.org>
24199 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24201 2008-04-13 Bruno Haible <bruno@clisp.org>
24203 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24204 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24205 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24206 also if it exists but lacks definitions of the SHUT_* macros.
24207 * modules/sys_socket (Description): Update.
24208 Reported by Elbert Pol <e.pol@chello.nl>.
24210 2008-04-13 Bruno Haible <bruno@clisp.org>
24212 * lib/localcharset.c (OS2): Don't redefine if already defined.
24213 Reported by Elbert Pol <e.pol@chello.nl>.
24215 2008-04-13 Bruno Haible <bruno@clisp.org>
24217 * lib/binary-io.h [__EMX__]: Include <io.h>.
24218 Reported by Elbert Pol <e.pol@chello.nl>.
24220 2008-04-12 Bruno Haible <bruno@clisp.org>
24222 * lib/fpucw.h: Enable the definitions also for x86_64.
24223 Needed for NetBSD/x86_64.
24224 Reported by Thomas Klausner <tk@giga.or.at>.
24226 2008-04-12 Bruno Haible <bruno@clisp.org>
24228 * tests/test-strtod.c: Include isnand.h.
24229 (main): Use isnand instead of isnan.
24230 Reported by Jim Meyering.
24232 2008-04-12 Bruno Haible <bruno@clisp.org>
24234 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24235 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24237 2008-04-12 Jim Meyering <meyering@redhat.com>
24239 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24241 2008-04-12 Bruno Haible <bruno@clisp.org>
24243 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24244 Reported by Elbert Pol <e.pol@chello.nl>.
24246 2008-04-12 Eric Blake <ebb9@byu.net>
24248 Work around Solaris 10 math.h bug.
24249 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24250 (gl_MATH_H_DEFAULTS): Set up default.
24251 * modules/math (Makefile.am): Replace new indicators.
24252 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24253 * tests/test-math.c (main): Test this.
24254 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24255 * doc/posix-headers/math.texi (math.h): Mention bug.
24256 Reported by Nelson H. F. Beebe and Jim Meyering.
24258 2008-04-11 Bruno Haible <bruno@clisp.org>
24260 Adapt to future versions of Apple GCC.
24261 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24262 Reported by Peter O'Gorman <peter@pogma.com>.
24264 2008-04-11 Bruno Haible <bruno@clisp.org>
24266 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24268 2008-04-11 Bruno Haible <bruno@clisp.org>
24270 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24272 * modules/getaddrinfo-tests (Makefile.am): Define
24273 test_getaddrinfo_LDADD.
24275 2008-04-11 Bruno Haible <bruno@clisp.org>
24277 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24278 (init): Fix syntax error.
24279 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24282 2008-04-11 Bruno Haible <bruno@clisp.org>
24284 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24285 * modules/glob (Depends-on): Add stdbool.
24287 2008-04-11 Bruno Haible <bruno@clisp.org>
24289 * lib/trim.c: Include <string.h>.
24291 2008-04-11 Eric Blake <ebb9@byu.net>
24293 Avoid compile failure on OS/2.
24294 * lib/regex_internal.h (internal_function): Disable optimization
24295 on OS/2 (__EMX__), where it caused compiler error.
24296 Reported by Elbert Pol.
24298 2008-04-11 Bruno Haible <bruno@clisp.org>
24300 Flush the standard error stream before aborting. Needed on mingw.
24301 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24302 * tests/test-array_list.c (ASSERT): Likewise.
24303 * tests/test-array_oset.c (ASSERT): Likewise.
24304 * tests/test-avltree_list.c (ASSERT): Likewise.
24305 * tests/test-avltree_oset.c (ASSERT): Likewise.
24306 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24307 * tests/test-binary-io.c (ASSERT): Likewise.
24308 * tests/test-byteswap.c (ASSERT): Likewise.
24309 * tests/test-c-ctype.c (ASSERT): Likewise.
24310 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24311 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24312 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24313 * tests/test-c-strstr.c (ASSERT): Likewise.
24314 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24315 * tests/test-canonicalize.c (ASSERT): Likewise.
24316 * tests/test-carray_list.c (ASSERT): Likewise.
24317 * tests/test-ceilf1.c (ASSERT): Likewise.
24318 * tests/test-ceilf2.c (ASSERT): Likewise.
24319 * tests/test-ceill.c (ASSERT): Likewise.
24320 * tests/test-count-one-bits.c (ASSERT): Likewise.
24321 * tests/test-fbufmode.c (ASSERT): Likewise.
24322 * tests/test-fflush2.c (ASSERT): Likewise.
24323 * tests/test-floorf1.c (ASSERT): Likewise.
24324 * tests/test-floorf2.c (ASSERT): Likewise.
24325 * tests/test-floorl.c (ASSERT): Likewise.
24326 * tests/test-fopen.c (ASSERT): Likewise.
24327 * tests/test-fpending.c (ASSERT): Likewise.
24328 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24329 * tests/test-fpurge.c (ASSERT): Likewise.
24330 * tests/test-freadable.c (ASSERT): Likewise.
24331 * tests/test-freadahead.c (ASSERT): Likewise.
24332 * tests/test-freading.c (ASSERT): Likewise.
24333 * tests/test-freadptr.c (ASSERT): Likewise.
24334 * tests/test-freadptr2.c (ASSERT): Likewise.
24335 * tests/test-freadseek.c (ASSERT): Likewise.
24336 * tests/test-freopen.c (ASSERT): Likewise.
24337 * tests/test-frexp.c (ASSERT): Likewise.
24338 * tests/test-frexpl.c (ASSERT): Likewise.
24339 * tests/test-fseek.c (ASSERT): Likewise.
24340 * tests/test-fseeko.c (ASSERT): Likewise.
24341 * tests/test-fstrcmp.c (ASSERT): Likewise.
24342 * tests/test-ftell.c (ASSERT): Likewise.
24343 * tests/test-ftello.c (ASSERT): Likewise.
24344 * tests/test-func.c (ASSERT): Likewise.
24345 * tests/test-fwritable.c (ASSERT): Likewise.
24346 * tests/test-fwriting.c (ASSERT): Likewise.
24347 * tests/test-getdelim.c (ASSERT): Likewise.
24348 * tests/test-getline.c (ASSERT): Likewise.
24349 * tests/test-i-ring.c (ASSERT): Likewise.
24350 * tests/test-iconv-utf.c (ASSERT): Likewise.
24351 * tests/test-iconv.c (ASSERT): Likewise.
24352 * tests/test-isfinite.c (ASSERT): Likewise.
24353 * tests/test-isnand.c (ASSERT): Likewise.
24354 * tests/test-isnanf.c (ASSERT): Likewise.
24355 * tests/test-isnanl.h (ASSERT): Likewise.
24356 * tests/test-ldexpl.c (ASSERT): Likewise.
24357 * tests/test-linked_list.c (ASSERT): Likewise.
24358 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24359 * tests/test-localename.c (ASSERT): Likewise.
24360 * tests/test-lseek.c (ASSERT): Likewise.
24361 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24362 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24363 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24364 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24365 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24366 * tests/test-mbschr.c (ASSERT): Likewise.
24367 * tests/test-mbscspn.c (ASSERT): Likewise.
24368 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24369 * tests/test-mbspbrk.c (ASSERT): Likewise.
24370 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24371 * tests/test-mbsrchr.c (ASSERT): Likewise.
24372 * tests/test-mbsspn.c (ASSERT): Likewise.
24373 * tests/test-mbsstr1.c (ASSERT): Likewise.
24374 * tests/test-mbsstr2.c (ASSERT): Likewise.
24375 * tests/test-mbsstr3.c (ASSERT): Likewise.
24376 * tests/test-memchr2.c (ASSERT): Likewise.
24377 * tests/test-memmem.c (ASSERT): Likewise.
24378 * tests/test-open.c (ASSERT): Likewise.
24379 * tests/test-printf-frexp.c (ASSERT): Likewise.
24380 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24381 * tests/test-printf-posix.c (ASSERT): Likewise.
24382 * tests/test-quotearg.c (ASSERT): Likewise.
24383 * tests/test-rbtree_list.c (ASSERT): Likewise.
24384 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24385 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24386 * tests/test-round1.c (ASSERT): Likewise.
24387 * tests/test-roundf1.c (ASSERT): Likewise.
24388 * tests/test-roundl.c (ASSERT): Likewise.
24389 * tests/test-signbit.c (ASSERT): Likewise.
24390 * tests/test-sleep.c (ASSERT): Likewise.
24391 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24392 * tests/test-snprintf.c (ASSERT): Likewise.
24393 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24394 * tests/test-stat-time.c (ASSERT): Likewise.
24395 * tests/test-strcasestr.c (ASSERT): Likewise.
24396 * tests/test-strerror.c (ASSERT): Likewise.
24397 * tests/test-striconv.c (ASSERT): Likewise.
24398 * tests/test-striconveh.c (ASSERT): Likewise.
24399 * tests/test-striconveha.c (ASSERT): Likewise.
24400 * tests/test-strsignal.c (ASSERT): Likewise.
24401 * tests/test-strstr.c (ASSERT): Likewise.
24402 * tests/test-strtod.c (ASSERT): Likewise.
24403 * tests/test-trunc1.c (ASSERT): Likewise.
24404 * tests/test-trunc2.c (ASSERT): Likewise.
24405 * tests/test-truncf1.c (ASSERT): Likewise.
24406 * tests/test-truncf2.c (ASSERT): Likewise.
24407 * tests/test-truncl.c (ASSERT): Likewise.
24408 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24409 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24410 * tests/test-vasnprintf.c (ASSERT): Likewise.
24411 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24412 * tests/test-vasprintf.c (ASSERT): Likewise.
24413 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24414 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24415 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24416 * tests/test-vsnprintf.c (ASSERT): Likewise.
24417 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24418 * tests/test-wcwidth.c (ASSERT): Likewise.
24419 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24420 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24421 * tests/test-xvasprintf.c (ASSERT): Likewise.
24422 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24423 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24424 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24425 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24426 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24427 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24428 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24429 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24430 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24431 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24432 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24433 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24434 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24435 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24436 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24437 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24438 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24439 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24440 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24441 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24442 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24443 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24444 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24445 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24446 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24447 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24448 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24449 * tests/unictype/test-combining.c (ASSERT): Likewise.
24450 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24451 * tests/unictype/test-digit.c (ASSERT): Likewise.
24452 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24453 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24454 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24455 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24456 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24457 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24458 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24459 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24460 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24461 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24462 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24463 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24464 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24465 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24466 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24467 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24468 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24469 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24470 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24471 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24472 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24473 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24474 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24475 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24476 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24477 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24478 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24479 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24480 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24481 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24482 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24483 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24484 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24485 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24486 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24487 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24488 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24489 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24490 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24491 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24492 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24493 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24494 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24495 Reported by Eric Blake.
24497 2008-04-11 Bruno Haible <bruno@clisp.org>
24499 * lib/wchar.in.h: Tweak comment.
24501 2008-04-11 Bruno Haible <bruno@clisp.org>
24503 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24504 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24506 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24508 2008-04-11 Bruno Haible <bruno@clisp.org>
24510 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24512 2008-04-11 Simon Josefsson <simon@josefsson.org>
24514 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24515 of attempting to use non-existing /dev/*random. Based on patch
24516 from Adam Strzelecki <ono@java.pl> in
24517 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24519 2008-04-08 Bruno Haible <bruno@clisp.org>
24521 Add tentative support for emx+gcc.
24522 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24523 * lib/fpurge.c (fpurge): Likewise.
24524 * lib/freadable.c (freadable): Likewise.
24525 * lib/freadahead.c (freadahead): Likewise.
24526 * lib/freading.c (freading): Likewise.
24527 * lib/freadptr.c (freadptr): Likewise.
24528 * lib/freadseek.c (freadptrinc): Likewise.
24529 * lib/fseeko.c (rpl_fseeko): Likewise.
24530 * lib/fseterr.c (fseterr): Likewise.
24531 * lib/fwritable.c (fwritable): Likewise.
24532 * lib/fwriting.c (fwriting): Likewise.
24533 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24535 2008-04-09 Eric Blake <ebb9@byu.net>
24537 Avoid some autoconf warnings.
24538 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24539 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24540 * m4/afs.m4 (gl_AFS): Likewise.
24541 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24542 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24543 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24544 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24545 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24546 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24547 (AC_CHECK_DECLS_ONCE): Likewise.
24549 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24550 gnulib-tool requires autoconf 2.59 or better.
24551 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24553 2008-04-08 Eric Blake <ebb9@byu.net>
24555 Use 'git describe --match' if present (added in git 1.5.5).
24556 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24559 2008-04-08 Bruno Haible <bruno@clisp.org>
24561 Add tentative support for OpenServer.
24562 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24564 * lib/fpurge.c (fpurge): Likewise.
24565 * lib/freadable.c (freadable): Likewise.
24566 * lib/freadahead.c (freadahead): Likewise.
24567 * lib/freading.c (freading): Likewise.
24568 * lib/freadptr.c (freadptr): Likewise.
24569 * lib/freadseek.c (freadptrinc): Likewise.
24570 * lib/fseeko.c (rpl_fseeko): Likewise.
24571 * lib/fseterr.c (fseterr): Likewise.
24572 * lib/fwritable.c (fwritable): Likewise.
24573 * lib/fwriting.c (fwriting): Likewise.
24574 Reported by Roger Cornelius <rac@tenzing.org> and
24575 Brian K. White <brian@aljex.com>.
24577 2008-04-06 Jim Meyering <meyering@redhat.com>
24579 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24581 2008-04-06 Bruno Haible <bruno@clisp.org>
24583 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24584 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24585 * tests/test-printf-posix.sh: Likewise.
24586 * tests/test-vfprintf-posix.sh: Likewise.
24587 * tests/test-vprintf-posix.sh: Likewise.
24588 * tests/test-xprintf-posix.sh: Likewise.
24590 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24592 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24593 hide error from 'ls', needed on OS/2.
24594 Report by Elbert Pol <elbert.pol@gmail.com>.
24596 2008-04-04 Eric Blake <ebb9@byu.net>
24598 Make test-fseeko.c failures meaningful.
24599 * tests/test-fseeko.c: Print line number on failure.
24600 * tests/test-fseek.c: Likewise.
24601 Reported by Nelson H. F. Beebe.
24603 Improve strtod bug detection check.
24604 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24605 required for Solaris 10.
24606 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24608 2008-04-04 Bruno Haible <bruno@clisp.org>
24610 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24613 2008-04-03 Eric Blake <ebb9@byu.net>
24615 Ensure sane .version contents.
24616 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24618 * build-aux/git-version-gen: Improve documentation.
24620 Make GNU make output nicer.
24621 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24622 MAKECMDGOALS to enforce message for all command line targets. Set
24623 srcdir for use in maint.mk.
24625 Another maintainer tweak.
24626 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24627 a target that regenerates version.
24629 2008-04-03 Jim Meyering <meyering@redhat.com>
24631 vc-list-files: don't cause coreutils "make po-check" failure
24632 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24634 2008-04-03 Eric Blake <ebb9@byu.net>
24636 Allow VPATH usage of vc-list-files.
24637 * build-aux/vc-list-files (scriptversion): Add timestamp.
24638 (options): Add --help, --version, -C.
24639 (CVS): Support installed cvsu.
24641 2008-04-02 Bruno Haible <bruno@clisp.org>
24643 Avoid some "statement with no effect" warnings from gcc.
24644 * tests/test-wctype.c (main): Explicitly ignore unused values.
24645 Reported by Jim Meyering.
24647 2008-04-02 Jim Meyering <meyering@redhat.com>
24649 Avoid some warnings from "gcc -Wshadow".
24650 * tests/test-frexp.c (exp): Define to a different identifier.
24651 * tests/test-frexpl.c (exp): Likewise.
24653 2008-04-03 Jim Meyering <meyering@redhat.com>
24655 bootstrap: remove dangling *.[ch] symlinks from lib
24656 * build-aux/bootstrap [dangling symlink removal]: Move find's
24657 -depth option to precede all others, to avoid a warning.
24658 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24660 2008-04-02 Bruno Haible <bruno@clisp.org>
24662 Avoid some warnings from "gcc -Wshadow".
24663 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24664 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24665 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24666 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24667 Reported by Jim Meyering.
24669 2008-04-01 Bruno Haible <bruno@clisp.org>
24671 Fix test to work on IRIX 6.5 with cc.
24672 * tests/test-math.c (numeric_equal): New function.
24675 2008-04-01 Bruno Haible <bruno@clisp.org>
24677 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24679 2008-04-01 Bruno Haible <bruno@clisp.org>
24681 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24682 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24683 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24684 (Depends-on): Remove math.
24686 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24687 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24688 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24689 (Depends-on): Remove math.
24691 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24692 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24693 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24694 (Depends-on): Remove math.
24695 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24696 (Depends-on): Remove math.
24698 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24699 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24700 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24701 (Depends-on): Remove math.
24702 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24703 (Depends-on): Remove math.
24705 * tests/test-round1.c: Include nan.h.
24706 (main): Use NaNd instead of NAN.
24707 * modules/round-tests (Files): Add tests/nan.h.
24709 * tests/test-trunc1.c: Include nan.h.
24710 (main): Use NaNd instead of NAN.
24711 * modules/trunc-tests (Files): Add tests/nan.h.
24713 * tests/test-roundf1.c: Include nan.h.
24714 (main): Use NaNf instead of NAN.
24715 * modules/roundf-tests (Files): Add tests/nan.h.
24717 * tests/test-truncf1.c: Include nan.h.
24718 (main): Use NaNf instead of NAN.
24719 * modules/truncf-tests (Files): Add tests/nan.h.
24721 * tests/test-ceilf1.c: Include nan.h.
24722 (main): Use NaNf instead of NAN.
24723 * modules/ceilf-tests (Files): Add tests/nan.h.
24725 * tests/test-floorf1.c: Include nan.h.
24726 (main): Use NaNf instead of NAN.
24727 * modules/floorf-tests (Files): Add tests/nan.h.
24729 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24730 (main): Use NaNf instead of NAN.
24731 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24733 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24734 (main): Use NaNd instead of NAN.
24735 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24737 * tests/test-frexp.c: Include nan.h.
24738 (main): Use NaNd instead of NAN.
24739 * modules/frexp-tests (Files): Add tests/nan.h.
24741 * lib/isnan.c: Don't include <math.h>.
24742 (FUNC): Don't use NAN macro.
24743 * modules/isnand-nolibm (Depends-on): Remove math.
24744 * modules/isnanf-nolibm (Depends-on): Remove math.
24745 * modules/isnanl (Depends-on): Remove math.
24746 * modules/isnanl-nolibm (Depends-on): Remove math.
24748 * tests/nan.h: New file.
24750 2008-04-01 Eric Blake <ebb9@byu.net>
24753 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24754 values to be the right type.
24756 For now, cater to gnulib strtod inaccuracies.
24757 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24758 fractional results. While not as nice from a QoI perspective, it
24759 is a quicker patch than correctly implementing decimal to binary
24762 2008-03-31 Eric Blake <ebb9@byu.net>
24764 Guarantee a definition of NAN.
24765 * lib/math.in.h (NAN): Define if missing.
24766 * tests/test-math.c (main): Test it.
24767 * doc/posix-headers/math.texi (math.h): Document this.
24768 * lib/isnan.c (rpl_isnand): Use it.
24769 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24770 * tests/test-floorf1.c (NaN): Likewise.
24771 * tests/test-frexp.c (NaN): Likewise.
24772 * tests/test-isnand.c (NaN): Likewise.
24773 * tests/test-isnanf.c (NaN): Likewise.
24774 * tests/test-round1.c (NaN): Likewise.
24775 * tests/test-roundf1.c (NaN): Likewise.
24776 * tests/test-snprintf-posix.h (NaN): Likewise.
24777 * tests/test-sprintf-posix.h (NaN): Likewise.
24778 * tests/test-trunc1.c (NaN): Likewise.
24779 * tests/test-truncf1.c (NaN): Likewise.
24780 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24781 * tests/test-vasprintf-posix.c (NaN): Likewise.
24782 * modules/isnand-nolibm (Depends-on): Add math.
24783 * modules/isnanf-nolibm (Depends-on): Likewise.
24784 * modules/isnanl (Depends-on): Likewise.
24785 * modules/isnanl-nolibm (Depends-on): Likewise.
24786 * modules/snprintf-posix-tests (Depends-on): Likewise.
24787 * modules/sprintf-posix-tests (Depends-on): Likewise.
24788 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24789 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24790 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24791 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24793 2008-03-31 Bruno Haible <bruno@clisp.org>
24795 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24796 * doc/posix-functions/strtod.texi: Likewise.
24798 2008-03-31 Bruno Haible <bruno@clisp.org>
24800 * tests/test-strtod.c (main): Don't use C99 syntax.
24802 2008-03-31 Bruno Haible <bruno@clisp.org>
24804 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24805 Reported by Eric Blake.
24807 2008-03-31 Jim Meyering <meyering@redhat.com>
24809 Don't compare actual signbit return values.
24810 * tests/test-strtod.c (main): Rather, compare only their
24811 zero/non-zero nature.
24813 2008-03-31 Eric Blake <ebb9@byu.net>
24815 More strtod documentation.
24816 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24817 failures as distinct bugs.
24819 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24821 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24822 Problem reported by Erik Benada in
24823 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24825 2008-03-30 Bruno Haible <bruno@clisp.org>
24827 * tests/test-strtod.c: Add comments about which assertion fails on which
24829 * doc/posix-functions/strtod.texi: Add info about many more platforms.
24831 2008-03-30 Eric Blake <ebb9@byu.net>
24833 Test signbit behavior on zeros.
24834 * tests/test-signbit.c (test_signbitf): Add tests for zero.
24835 (test_signbitd, test_signbitl): Likewise.
24837 More strtod touchups.
24838 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24839 sign of negative underflow, for now. Use .5, not .1.
24840 * doc/posix-functions/strtod.texi (strtod): Mention these
24842 Reported by Jim Meyering.
24844 2008-03-30 Bruno Haible <bruno@clisp.org>
24846 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24847 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24849 2008-03-30 Bruno Haible <bruno@clisp.org>
24851 Avoid failure when attempting to return empty iconv results on some
24853 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24854 allocation, don't report ENOMEM when the resulting string is empty.
24856 2008-03-30 Bruno Haible <bruno@clisp.org>
24858 Fix buffer overrun.
24859 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24860 Don't consider the width for tmp_length. Check count against tmp_length
24861 before doing the padding. Ensure enough allocation during padding.
24863 2008-03-30 Eric Blake <ebb9@byu.net>
24866 * lib/strtod.c (strtod): Avoid compiler warnings.
24867 Reported by Jim Meyering.
24869 2008-03-30 Bruno Haible <bruno@clisp.org>
24871 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24872 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24873 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24874 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24875 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24876 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24877 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24878 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24880 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24881 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24882 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24883 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24884 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24885 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24886 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24887 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24889 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24890 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24891 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24892 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24893 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24894 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24895 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24896 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24898 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24899 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24901 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24902 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24904 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24905 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24907 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24908 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24909 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24911 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24912 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24913 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24915 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24916 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24917 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24919 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24920 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24921 * modules/vasprintf (Depends-on): Add EOVERFLOW.
24923 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24924 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24925 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24926 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24927 (Depends-on): Add EOVERFLOW.
24928 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24929 (Depends-on): Add EOVERFLOW.
24930 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24931 (Depends-on): Add EOVERFLOW.
24932 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24933 (Depends-on): Add EOVERFLOW.
24934 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24935 (Depends-on): Add EOVERFLOW.
24936 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24937 (Depends-on): Add EOVERFLOW.
24938 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24939 (Depends-on): Add EOVERFLOW.
24940 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24941 (Depends-on): Add EOVERFLOW.
24943 * lib/sprintf.c (EOVERFLOW): Remove fallback.
24944 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24945 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24947 * lib/snprintf.c (EOVERFLOW): Remove fallback.
24948 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24949 * modules/snprintf (Depends-on): Add EOVERFLOW.
24951 * lib/poll.c (EOVERFLOW): Remove fallback.
24952 * modules/poll (Depends-on): Add EOVERFLOW.
24954 * lib/getugroups.c (EOVERFLOW): Remove fallback.
24955 * modules/getugroups (Depends-on): Add EOVERFLOW.
24957 * lib/getdelim.c (EOVERFLOW): Remove fallback.
24958 * modules/getdelim (Depends-on): Add EOVERFLOW.
24960 * lib/ftell.c (EOVERFLOW): Remove fallback.
24961 * modules/ftell (Depends-on): Add EOVERFLOW.
24963 * lib/fprintf.c (EOVERFLOW): Remove fallback.
24964 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24965 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24967 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24969 * modules/EOVERFLOW-tests: New file.
24970 * tests/test-EOVERFLOW.c: New file.
24972 * modules/EOVERFLOW: New file.
24973 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24975 2008-03-30 Bruno Haible <bruno@clisp.org>
24977 Fix bug introduced on 2007-06-10.
24978 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24979 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24981 2008-03-30 Bruno Haible <bruno@clisp.org>
24983 Improve freadseek's efficiency after ungetc.
24984 * lib/freadseek.c: Include freadahead.h.
24985 (freadptrinc): New function, extracted from freadseek.
24986 (freadseek): Use it in a loop. Use freadahead to determine the number
24987 of loop iterations.
24988 * modules/freadseek (Depends-on): Add freadahead.
24989 (configure.ac): Require AC_C_INLINE.
24991 2008-03-30 Bruno Haible <bruno@clisp.org>
24993 * lib/freadseek.c (freadseek): Don't ignore the return value of
24996 2008-03-29 Eric Blake <ebb9@byu.net>
24998 Add hex float support.
24999 * modules/strtod (Depends-on): Add c-ctype.
25000 (Link): Mention POW_LIB.
25001 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25002 whitespace between 'e' and exponent.
25003 * tests/test-strtod.c (main): Enable hex float tests.
25004 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25007 Document various strtod bugs, with some fixes.
25008 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25009 "-0x", "inf", "nan", and hex constants.
25010 * doc/posix-functions/atof.texi (atof): Likewise.
25011 * modules/stdlib (Makefile.am): Support strtod.
25012 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25013 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25014 detect additional strtod bugs.
25015 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25016 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25017 bool where appropriate. Parse 'inf' and 'nan'.
25018 * tests/test-strtod.c: New file.
25019 * modules/strtod (Depends-on): Add stdbool, stdlib.
25020 (configure.ac): Turn on module indicator.
25021 * modules/strtod-tests: New module.
25023 2008-03-29 Eric Blake <ebb9@byu.net>
25025 Fix ftell on mingw.
25026 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25027 * modules/ftell-tests (Depends-on): Add binary-io.
25028 * modules/ftello-tests (Depends-on): Likewise.
25029 * tests/test-ftell.c (main): Enhance test to cover behavior after
25030 ungetc. Enforce binary mode.
25031 * tests/test-ftello.c (main): Likewise.
25033 Pass test-freadseek on cygwin.
25034 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25035 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25038 * tests/test-fflush2.c (main): Fix typo.
25040 2008-03-29 Bruno Haible <bruno@clisp.org>
25042 * tests/test-fflush2.c (main): Temporarily disable the contents of
25044 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25045 Reported by Eric Blake.
25047 2008-03-28 Simon Josefsson <simon@josefsson.org>
25049 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25050 (GC_SHA224_DIGEST_SIZE): Add.
25052 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25053 (gc_hash_digest_length): Likewise.
25054 (gc_hash_buffer): Likewise.
25056 2008-03-25 Bruno Haible <bruno@clisp.org>
25058 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25059 detail which gettext release to use.
25060 Reported by Simon Josefsson.
25062 2008-03-26 Jim Meyering <meyering@redhat.com>
25064 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25065 * modules/gnumakefile (clean-GNUmakefile): Also, use
25066 test ... && ... || : syntax rather than if-then ... fi.
25068 gnumakefile: Don't double-quote-expand $(VPATH) value.
25069 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25071 2008-03-24 Eric Blake <ebb9@byu.net>
25073 Alter GNUmakefile to install into top directory.
25074 * modules/maintainer-makefile: Split, and add dependency...
25075 * modules/gnumakefile: to this new module.
25076 * build-aux/GNUmakefile: Move...
25077 * top/GNUmakefile: ...here.
25078 * build-aux/maint.mk: Move...
25079 * top/maint.mk: ...here.
25080 * MODULES.html.sh (Support for maintaining...): Document new
25083 2008-03-23 Bruno Haible <bruno@clisp.org>
25085 * gnulib-tool: New options --vc-files, --no-vc-files.
25086 (func_usage): Document them.
25087 (vc_files): New variable.
25088 (func_import): Consider vc_files.
25089 (func_create_testdir): Set vc_files to empty.
25090 Suggested by Jim Meyering and Karl Berry.
25092 2008-03-23 Bruno Haible <bruno@clisp.org>
25094 Fix regex compilation error on HP-UX 11.
25095 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25096 * modules/regex (Files): Add m4/mbstate_t.m4.
25097 Reported by Ton Voon <ton.voon@altinity.com>.
25099 2008-03-23 Bruno Haible <bruno@clisp.org>
25101 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25103 2008-03-23 Eric Blake <ebb9@byu.net>
25104 Bruno Haible <bruno@clisp.org>
25106 Install files from top/ in the destination directory.
25107 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25108 augmentation also for the files from top/.
25109 (func_import, func_create_testdir): Rewrite file names:
25110 top/filename -> filename.
25112 2008-03-23 Bruno Haible <bruno@clisp.org>
25114 Tweak "gnulib --version" output.
25115 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25117 2008-03-23 Bruno Haible <bruno@clisp.org>
25119 Tweak "gnulib --version" output.
25120 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25121 rather than contents of ChangeLog, when possible.
25123 2008-03-21 Eric Blake <ebb9@byu.net>
25125 More --version tweaks.
25126 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25127 date of last ChangeLog entry.
25129 2008-03-21 Jim Meyering <meyering@redhat.com>
25131 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25133 2008-03-20 Eric Blake <ebb9@byu.net>
25136 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25138 2008-03-20 Simon Josefsson <simon@josefsson.org>
25140 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25141 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25143 2008-03-20 Eric Blake <ebb9@byu.net>
25145 Sync GNUmakefile with coreutils.
25146 * build-aux/GNUmakefile (have-Makefile): Rename...
25147 (_have-Makefile): ...to this, for namespace consideration.
25148 (GNUmakefile.cfg): Include, if present.
25149 (_autoreconf): Define a default.
25150 (_is-dist-target): New rule for rebuilds to pick up intra-release
25152 (maint-cfg.mk): Rename...
25153 (cfg.mk): ...to this.
25155 2008-03-18 Jim Meyering <meyering@redhat.com>
25157 New script and module: mktempd
25158 * MODULES.html.sh (maint+release support): Add mktempd.
25159 * build-aux/mktempd: New file.
25160 * modules/mktempd: New file.
25162 2008-03-15 Jim Meyering <meyering@redhat.com>
25165 * lib/sha1.c, lib/md5.c: 63 != ~63.
25166 Reported by Andreas Schwab.
25168 sha1.c, md5.c: Hoist a redundant expression.
25169 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25170 "ctx->buflen" only once, before calling *_process_block.
25171 * lib/md5.c (md5_process_bytes): Likewise.
25173 2008-03-14 Eric Blake <ebb9@byu.net>
25175 Bump copyright year in files generated by gnulib-tool.
25176 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25177 gnulib-tool, rather than hard-coding it.
25179 Fix 'gnulib-tool --version' output to work with git.
25180 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25181 (startup): ...here.
25182 (func_version): Use it to invoke git-version-gen, rather than
25183 relying on CVS keyword expansion. Modernize wording.
25184 (cvsdatestamp, last_checkin_date, version): Kill unused
25187 2008-03-12 Jim Meyering <meyering@redhat.com>
25189 Recognize optional cast of the argument to free.
25190 * build-aux/useless-if-before-free: Update regexps.
25192 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25194 2008-03-11 Bruno Haible <bruno@clisp.org>
25196 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25197 by a single package.
25198 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25199 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25200 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25201 Reported by Sam Steingold <sds@gnu.org>.
25203 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25205 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25208 2008-03-11 Bruno Haible <bruno@clisp.org>
25210 Avoid conflicts between local macro definitions.
25211 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25212 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25214 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25215 Bruno Haible <bruno@clisp.org>
25217 Make va_copy work with some version of xlc on AIX 5.1.
25218 * lib/stdarg.in.h: New file.
25219 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25220 On AIX, use a <stdarg.h> file substitute.
25221 * modules/stdarg (Files): Add lib/stdarg.in.h.
25222 (Depends-on): Add include_next.
25223 (Makefile.am): Build a stdarg.h substitute if requested.
25224 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25226 2008-03-10 Bruno Haible <bruno@clisp.org>
25228 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25229 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25230 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25232 2008-03-10 Bruno Haible <bruno@clisp.org>
25234 * modules/stdlib (Depends-on): Add include_next, remove
25237 2008-03-09 Bruno Haible <bruno@clisp.org>
25239 * lib/freadahead.h (freadahead): Document more precisely.
25240 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25241 the sum of both buffer sizes.
25242 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25243 * NEWS: Document the change.
25245 2008-03-09 Bruno Haible <bruno@clisp.org>
25247 Extend freadptr to return also the buffer size.
25248 * lib/freadptr.h (freadptr): Add sizep argument.
25249 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25250 (freadptr): Add sizep argument. Determine buffer size like freadahead
25252 * tests/test-freadptr.c: Don't include freadahead.h.
25253 (main): Adapt for new calling convention of freadptr.
25254 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25255 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25256 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25257 tests/test-freadptr2.sh.
25258 (Depends): Remove freadahead.
25259 (TESTS): Add test-freadptr2.sh.
25260 (check_PROGRAMS): Add test-freadptr2.
25262 2008-03-09 Bruno Haible <bruno@clisp.org>
25264 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25265 Report and solution by Simon Josefsson.
25267 2008-03-06 Bruno Haible <bruno@clisp.org>
25269 Make fflush after ungetc work on BSD platforms.
25270 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25271 * tests/test-fflush2.c: New file.
25272 * tests/test-fflush2.sh: New file.
25273 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25274 tests/test-fflush2.c.
25275 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25276 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25278 2008-03-06 Eric Blake <ebb9@byu.net>
25280 Likewise for ftello.
25281 * modules/ftello (Dependencies): Add extensions.
25282 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25284 2008-03-06 Bruno Haible <bruno@clisp.org>
25286 * modules/fseeko (Dependencies): Add extensions.
25287 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25288 Needed on glibc systems.
25290 2008-03-06 Bruno Haible <bruno@clisp.org>
25292 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25294 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25296 2008-03-06 Bruno Haible <bruno@clisp.org>
25298 * users.txt: Add libgnupdf.
25300 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25302 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25303 (Header File Substitutes, Function Substitutes,
25304 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25305 (Build robot for gnulib): Fix typo.
25307 2008-03-06 Bruno Haible <bruno@clisp.org>
25309 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25310 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25312 2008-03-06 Bruno Haible <bruno@clisp.org>
25314 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25315 * doc/gnulib.texi: Include it.
25317 2008-03-06 Simon Josefsson <simon@josefsson.org>
25319 * modules/func (License): Change license to unlimited; there was
25320 no LGPL parts in the module anyway.
25322 2008-03-06 Simon Josefsson <simon@josefsson.org>
25324 * modules/__func__: Renamed to modules/func.
25325 * modules/__func__-tests: Renamed to modules/func-tests.
25326 * tests/test-__func__.c: Renamed to tests/test-func.c.
25327 * m4/__func__.m4: Renamed to m4/func.m4.
25328 * doc/gnulib.texi (__func__): Section renamed to func.
25329 Suggested by Eric Blake <ebb9@byu.net>.
25331 2008-03-06 Simon Josefsson <simon@josefsson.org>
25333 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25334 about __func__. Make example self-contained. Suggested by Eric
25335 Blake <ebb9@byu.net>.
25337 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25338 Suggested by Eric Blake <ebb9@byu.net>.
25340 2008-03-06 Simon Josefsson <simon@josefsson.org>
25342 * modules/__func__: New file.
25343 * modules/__func__-tests: New file.
25344 * tests/test-__func__.c: New file.
25345 * m4/__func__.m4: New file.
25346 * doc/gnulib.texi (__func__): Document __func__ module.
25348 2008-03-05 Simon Josefsson <simon@josefsson.org>
25350 * modules/byteswap (License): Re-license as LGPLv2+.
25352 2008-03-05 Simon Josefsson <simon@josefsson.org>
25354 * doc/Makefile: Add pdf target.
25356 2008-03-05 Simon Josefsson <simon@josefsson.org>
25358 * modules/inline (License): Use 'unlimited', since there are only
25359 *.m4 files in this module.
25361 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25362 Bruno Haible <bruno@clisp.org>
25364 Add support for HP C 7.1 on OpenVMS 8.3.
25365 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25367 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25369 Update VMS specifics.
25370 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25372 2008-03-02 Jim Meyering <meyering@redhat.com>
25374 Remove the last dependency on the "free" module.
25375 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25376 Reported by Bob Proulx.
25378 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25380 Remove useless "if" tests before free. Deprecate "free" module.
25381 * doc/posix-functions/free.texi: Mention that this
25382 module is no longer useful.
25383 * modules/free (Notice): Say this module is obsolete.
25384 * modules/readutmp (Depends-on): Remove free.
25385 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25386 * lib/putenv.c (putenv): Likewise.
25387 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25388 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25389 * tests/test-c-strcasestr.c (main): Likewise.
25390 * tests/test-c-strstr.c (main): Likewise.
25391 * tests/test-mbscasestr1.c (main): Likewise.
25392 * tests/test-mbscasestr2.c (main): Likewise.
25393 * tests/test-mbsstr1.c (main): Likewise.
25394 * tests/test-mbsstr2.c (main): Likewise.
25395 * tests/test-memmem.c (main): Likewise.
25396 * tests/test-strcasestr.c (main): Likewise.
25397 * tests/test-striconv.c (main): Likewise.
25398 * tests/test-striconveh.c (main): Likewise.
25399 * tests/test-striconveha.c (main): Likewise.
25400 * tests/test-strstr.c (main): Likewise.
25402 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25404 bootstrap: sync from coreutils again
25405 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25407 2008-03-01 Jim Meyering <meyering@redhat.com>
25409 bootstrap: sync from coreutils
25410 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25411 also when the target doesn't exist.
25413 2008-03-01 Eric Blake <ebb9@byu.net>
25415 Fix bugs in last patch.
25416 * lib/memchr2.c (memchr2): Fix typo.
25417 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25419 Reported by Bruce Korb.
25421 New module 'memchr2'.
25422 * modules/memchr2: New file.
25423 * modules/memchr2-tests: Likewise.
25424 * lib/memchr2.h: Likewise.
25425 * lib/memchr2.c: Likewise, based on memchr.c.
25426 * tests/test-memchr2.c: New test.
25427 * MODULES.html.sh (String handling): Add memchr2.
25429 2008-02-29 Bruno Haible <bruno@clisp.org>
25431 * modules/freadseek-tests: New file.
25432 * tests/test-freadseek.sh: New file.
25433 * tests/test-freadseek.c: New file.
25435 New module 'freadseek'.
25436 * modules/freadseek: New file.
25437 * lib/freadseek.h: New file.
25438 * lib/freadseek.c: New file.
25439 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25441 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25443 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25446 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25447 program_invocation_name and program_invocation_short_name are
25450 2008-02-28 Bruno Haible <bruno@clisp.org>
25452 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25453 * tests/test-freadptr.sh: Also test non-seekable stdin.
25455 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25457 * build-aux/bootstrap (source_base, m4_base)
25458 (doc_base, tests_base): New variables.
25459 (gnulib_tool_options): Do not hardcode base directories, use
25460 the above variables instead.
25462 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25464 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25466 2008-02-28 Bruno Haible <bruno@clisp.org>
25468 * modules/freadptr-tests: New file.
25469 * tests/test-freadptr.sh: New file.
25470 * tests/test-freadptr.c: New file.
25472 New module 'freadptr'.
25473 * modules/freadptr: New file.
25474 * lib/freadptr.h: New file.
25475 * lib/freadptr.c: New file.
25476 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25478 2008-02-26 Karl Berry <karl@freefriends.org>
25481 * libltdl/argz.c (argz_add, argz_count): New functions.
25482 * libltdl/argz.in.h: Declare them.
25483 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25485 2008-02-22 Bruno Haible <bruno@clisp.org>
25487 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25488 is a pointer type. Needed for HP-UX 10.
25489 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25490 * doc/posix-functions/gmtime_r.texi: Likewise.
25491 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25493 2008-02-24 Bruno Haible <bruno@clisp.org>
25495 * modules/environ-tests: New file.
25496 * tests/test-environ.c: New file.
25498 New module 'environ'.
25499 * modules/environ: New file.
25500 * lib/unistd.in.h (environ): New declaration.
25501 * m4/environ.m4: New file.
25502 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25504 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25506 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25508 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25509 wrong claim that 'environ' is missing on some systems.
25510 * modules/execute (Depends-on): Add environ.
25511 * lib/execute.c (environ): Remove fallback declaration.
25512 * modules/pipe (Depends-on): Add environ.
25513 * lib/pipe.c (environ): Remove fallback declaration.
25514 * modules/setenv (Depends-on): Add environ.
25515 * lib/setenv.c (environ): Remove fallback declaration.
25516 * modules/unsetenv (Depends-on): Add environ.
25517 * lib/unsetenv.c (environ): Remove fallback declaration.
25518 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25520 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25521 (gl_PREREQ_UNSETENV): Likewise.
25523 2008-02-24 Bruno Haible <bruno@clisp.org>
25525 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25527 2008-02-20 Bob Proulx <bob@proulx.com>
25529 Enable use of older two part flavor 'git describe'.
25530 * build-aux/git-version-gen: If using the older two part flavor of
25531 git version then recreate the third part now present in the
25532 newer three part flavor of git describe.
25534 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25536 * lib/fts.c (fts_build): Typo correction to comment.
25538 2008-02-17 Bruno Haible <bruno@clisp.org>
25540 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25541 generating no-op conflicts.
25543 2008-02-17 Bruno Haible <bruno@clisp.org>
25546 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25547 result_entries, rather than an index-based loop.
25549 2008-02-17 Bruno Haible <bruno@clisp.org>
25552 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25554 (entry_create): New function.
25555 (entry_hashcode): Use the cached hashcode if possible.
25556 (read_changelog_file, try_split_merged_entry): Use entry_create.
25558 2008-02-17 Bruno Haible <bruno@clisp.org>
25560 Speed up from O(n^2) to O(n) for long ChangeLog files.
25561 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25562 (read_changelog_file): Change implementation of entries_reversed list
25564 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25566 2008-02-17 Bruno Haible <bruno@clisp.org>
25568 New option --split-merged-entry.
25569 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25570 (find_paragraph_end, try_split_merged_entry): New functions.
25571 (long_options): Add option --split-merged-entry.
25572 (usage): Document option --split-merged-entry.
25573 (main): Implement option --split-merged-entry.
25574 Reported by Eric Blake.
25576 2008-02-17 Bruno Haible <bruno@clisp.org>
25578 * lib/git-merge-changelog.c: Include c-strstr.h.
25579 (main): Support the "git pull --rebase" situation.
25580 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25581 Reported by Eric Blake.
25583 2008-02-16 Eric Blake <ebb9@byu.net>
25585 Avoid doubling \ in common case of "c-maybe" quoting style.
25586 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25587 eliding outer quotes.
25588 * lib/quotearg.h: Document this.
25589 * tests/test-quotearg.c (result_strings, inputs, results_g)
25590 (flag_results, locale_results): Test it by adding a new string to
25592 (compare_strings): Test new string.
25594 2008-02-13 Eric Blake <ebb9@byu.net>
25596 Avoid trigraph quoting in default output.
25597 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25598 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25599 unless explicitly requested.
25600 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25602 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25604 Don't rely on signed integer overflowing to negative value.
25605 * lib/getugroups.c (getugroups): Include <limits.h>.
25606 Instead, compare against INT_MAX, and increment only if the test passes.
25608 2008-02-13 Jim Meyering <meyering@redhat.com>
25609 and Eric Blake <ebb9@byu.net>
25611 Avoid shadowing warning and compile errors on Linux.
25612 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25613 forwarding macros on Linux.
25614 (dcgettext): Define a stub, for Linux.
25615 (results_g, main): Avoid warnings.
25617 2008-02-12 Eric Blake <ebb9@byu.net>
25619 Silence warning in last patch.
25620 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25622 Quotearg part 4: add tests, fix c-maybe colon quoting.
25623 * lib/quotearg.h: Improve documentation.
25624 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25625 escapes when adding outer quotes. When quoting trigraphs, use
25626 valid C notation. When quoting NUL, omit extra characters if next
25627 character is not digit. Alter prototype.
25628 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25630 * modules/quotearg-tests: New module.
25631 * tests/test-quotearg.c: New test.
25633 2008-02-07 Eric Blake <ebb9@byu.net>
25635 Quotearg part 3: add flag to control outer quote elision.
25636 * lib/quotearg.h (c_maybe_quoting_style): New style.
25637 (enum quoting_flags): Better documentation of flags.
25638 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25640 (quotearg_buffer_restyled): Handle new flag to elide outer
25643 Quotearg part 2: add flag that can control NUL elision.
25644 * lib/quotearg.h (set_quoting_flags): New prototype.
25645 * lib/quotearg.c (struct quoting_options): Add flag field.
25646 (set_quoting_flags): New function.
25647 (quotearg_buffer_restyled): Add flags parameter.
25648 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25649 (quotearg_n_options): Set the flag, since length cannot be
25651 (quoting_options_from_style): Default flags correctly.
25653 Quotearg part 1: more wrappers, restore quotearg_char state.
25654 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25655 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25656 (quotearg_colon_mem): New wrappers.
25657 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25658 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25660 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25661 (quotearg_colon_mem): New functions.
25663 2008-02-11 Bruno Haible <bruno@clisp.org>
25665 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25666 library in the current directory: it does not work with parallel make.
25667 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25669 2008-02-11 Bruno Haible <bruno@clisp.org>
25671 * .gitattributes: New file.
25673 2008-02-11 Jim Meyering <meyering@redhat.com>
25675 useless-if-before-free: Fix reversed exit values.
25676 * build-aux/useless-if-before-free: Use correct values
25677 for EXIT_MATCH and EXIT_NO_MATCH.
25679 * build-aux/useless-if-before-free: Close stdout carefully.
25681 2008-02-10 Bruno Haible <bruno@clisp.org>
25683 New module 'git-merge-changelog'.
25684 * modules/git-merge-changelog: New file.
25685 * lib/git-merge-changelog.c: New file.
25687 2008-02-10 Jim Meyering <meyering@redhat.com>
25689 useless-if-before-free: New option: --list (-l).
25691 useless-if-before-free: Don't exit immediately upon open failure.
25692 * build-aux/useless-if-before-free: Exit 2 for errors.
25693 Upon failure to open a file, don't exit immediately.
25694 Rather, just warn and continue with any remaining files.
25696 2008-02-10 Bruno Haible <bruno@clisp.org>
25698 New abstract list operation 'node_set_value'.
25699 * lib/gl_list.h (gl_list_node_set_value): New function.
25700 (struct gl_list_implementation): New field node_set_value.
25701 * lib/gl_list.c (gl_list_node_set_value): New function.
25702 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25703 (gl_array_list_implementation): Update.
25704 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25705 (gl_carray_list_implementation): Update.
25706 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25707 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25708 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25709 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25710 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25711 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25712 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25714 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25715 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25716 (gl_sublist_list_implementation): Update.
25718 2008-02-10 Bruno Haible <bruno@clisp.org>
25720 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25721 Needed when ELEMENT is #defined to 'some_type *'.
25723 2008-02-10 Jim Meyering <meyering@redhat.com>
25725 New script and module: useless-if-before-free
25726 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25727 * build-aux/useless-if-before-free: New file.
25728 * modules/useless-if-before-free: New file.
25730 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25732 xstrtol_error: Fix typo.
25733 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25734 s/exit_failure/exit_status/.
25736 2008-02-09 Jim Meyering <meyering@redhat.com>
25738 New script and module: gitlog-to-changelog
25739 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25740 * modules/gitlog-to-changelog: New file.
25741 * build-aux/gitlog-to-changelog: New file.
25743 2008-02-08 Jim Meyering <meyering@redhat.com>
25745 Avoid two "parameter unused" warnings.
25746 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25749 Use "git COMMAND", not "git-COMMAND".
25750 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25751 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25752 * build-aux/git-version-gen: Use "git status", not "git-status".
25754 2008-02-07 Bruno Haible <bruno@clisp.org>
25756 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25757 Avoids a crash on Windows Vista.
25758 Reported by Adam Strzelecki <ono@java.pl> via
25759 Simon Josefsson <simon@josefsson.org>.
25761 2008-02-06 Bruno Haible <bruno@clisp.org>
25763 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25764 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25765 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25766 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25767 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25768 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25769 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25770 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25771 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25772 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25773 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25774 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25775 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25776 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25777 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25778 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25780 * tests/test-snprintf-posix.h (test_function): Likewise.
25781 * tests/test-sprintf-posix.h (test_function): Likewise.
25782 * tests/test-vasprintf-posix.c (test_function): Likewise.
25783 * doc/posix-functions/fprintf.texi: Update.
25784 * doc/posix-functions/printf.texi: Update.
25785 * doc/posix-functions/snprintf.texi: Update.
25786 * doc/posix-functions/sprintf.texi: Update.
25787 * doc/posix-functions/vfprintf.texi: Update.
25788 * doc/posix-functions/vprintf.texi: Update.
25789 * doc/posix-functions/vsnprintf.texi: Update.
25790 * doc/posix-functions/vsprintf.texi: Update.
25791 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25793 2008-02-06 Bruno Haible <bruno@clisp.org>
25795 Fix bug introduced on 2008-01-26.
25796 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25798 2008-02-06 Bruno Haible <bruno@clisp.org>
25800 Fix bug introduced on 2007-06-10.
25801 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25802 !NEED_PRINTF_FLAG_ZERO.
25804 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25806 getloadavg: use libperfstat on AIX5
25807 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25809 2008-02-03 Bruno Haible <bruno@clisp.org>
25811 * lib/diffseq.h: Add comments about required #includes.
25812 Reported by Michael Biggs <gnulib@doubleplum.net>.
25814 2008-02-01 Bruno Haible <bruno@clisp.org>
25816 * users.txt: Add gnuit.
25818 2008-01-31 Bruno Haible <bruno@clisp.org>
25820 * lib/md4.c (set_uint32): Mark as inline.
25821 * lib/md5.c (set_uint32): Likewise.
25822 * lib/sha1.c (set_uint32): Likewise.
25823 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25824 * m4/md5.m4 (gl_MD5): Likewise.
25825 * m4/sha1.m4 (gl_SHA1): Likewise.
25827 2008-01-31 Jim Meyering <meyering@redhat.com>
25829 Use "sizeof VAR", rather than a literal "4".
25830 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25831 * lib/md4.c (md4_read_ctx): Likewise.
25832 * lib/sha1.c (sha1_read_ctx): Likewise.
25834 2008-01-31 Simon Josefsson <simon@josefsson.org>
25836 * tests/test-sha1.c: New file, based on test-md5.c.
25838 * modules/crypto/sha1-tests: New file.
25840 2008-01-31 Simon Josefsson <simon@josefsson.org>
25842 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25844 2008-01-31 Jim Meyering <meyering@redhat.com>
25846 Prefer "sizeof v" over the equivalent "4".
25847 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25848 * lib/md5.c (set_uint32): Likewise.
25849 * lib/sha1.c (set_uint32): Likewise.
25851 2008-01-31 Simon Josefsson <simon@josefsson.org>
25853 * lib/sha1.c (set_uint32): Mark function as static.
25855 2008-01-31 Simon Josefsson <simon@josefsson.org>
25857 md2: clarify comments to say that alignment is not required.
25858 * lib/md2.h: Remove warning about alignment in comment.
25859 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25860 never been required.
25862 2008-01-31 Simon Josefsson <simon@josefsson.org>
25864 md4: adapt alignment constraint fix from sha1.
25865 * lib/md4.c (set_uint32): New function, from sha1.c
25866 (md4_read_ctx): Use it.
25867 (md4_finish_ctx): Doc fix.
25868 * lib/md4.h: Doc fix.
25870 2008-01-31 Simon Josefsson <simon@josefsson.org>
25872 md5: adapt alignment constraint fix from sha1.
25873 * lib/md5.c (set_uint32): New function, from sha1.c
25874 (md5_read_ctx): Use it.
25875 (md5_finish_ctx): Doc fix.
25876 * lib/md5.h: Doc fix.
25878 2008-01-30 Peter Palfrader <weasel@debian.org>
25880 sha1: remove the result buffer alignment constraint
25881 * lib/sha1.c (set_uint32): New function.
25882 (sha1_read_ctx): Rewrite to remove the result buffer alignment
25884 (sha1_finish_ctx): Remove comment warning about alignment constraint.
25885 * lib/sha1.h: Likewise.
25887 2008-01-30 Andreas Schwab <schwab@suse.de>
25888 Bruno Haible <bruno@clisp.org>
25890 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25891 correct definition of LDBL_MIN_EXP.
25893 2008-01-30 Karl Berry <karl@gnu.org>
25895 * config/srclist-update: try to preserve x bit on updates.
25896 * config/srclistvars.sh: update for karl.
25898 2008-01-29 Jim Meyering <meyering@redhat.com>
25900 vasnprintf.c: Avoid warning about unused label
25901 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25902 "overflow" label definition and associated code with the
25903 same cpp condition that guards the sole use of that label.
25905 2008-01-26 Bruno Haible <bruno@clisp.org>
25907 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25908 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25909 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25910 * lib/isnanl-nolibm.h (isnanl): Likewise.
25911 Reported by Paul Eggert <eggert@cs.ucla.edu>.
25913 2008-01-26 Bruno Haible <bruno@clisp.org>
25915 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25916 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25918 2008-01-26 Bruno Haible <bruno@clisp.org>
25920 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25921 GCC >= 4.0 built-in.
25922 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25924 2008-01-26 Bruno Haible <bruno@clisp.org>
25926 Rename isnan, applicable to 'double' only, to isnand.
25927 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25928 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25929 (configure.ac): Update.
25930 (Include): Replace "isnan.h" with "isnand.h".
25931 * m4/isnand.m4: Renamed from m4/isnan.m4.
25932 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25933 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25934 instead of isnan.c.
25935 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25936 instead of HAVE_ISNAN_IN_LIBC.
25937 (isnand): Renamed from isnan.
25938 * lib/isnand.c: New file.
25939 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25940 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25941 (Makefile.am): Update.
25942 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25943 Include isnand.h instead of isnan.h.
25944 (main): Test isnand instead of isnan.
25945 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25947 * modules/frexp (Depends-on): Likewise.
25948 * modules/frexp-tests (Depends-on): Likewise.
25949 * modules/frexp-nolibm (Depends-on): Likewise.
25950 * modules/frexp-nolibm-tests (Depends-on): Likewise.
25951 * modules/isfinite (Depends-on): Likewise.
25952 * modules/round-tests (Depends-on): Likewise.
25953 * modules/signbit (Depends-on): Likewise.
25954 * modules/signbit-tests (Depends-on): Likewise.
25955 * modules/snprintf-posix (Depends-on): Likewise.
25956 * modules/sprintf-posix (Depends-on): Likewise.
25957 * modules/trunc-tests (Depends-on): Likewise.
25958 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25959 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25960 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25961 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25962 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25963 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25964 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25965 * modules/vasnprintf-posix (Depends-on): Likewise.
25966 * modules/vasprintf-posix (Depends-on): Likewise.
25967 * modules/vfprintf-posix (Depends-on): Likewise.
25968 * modules/vsnprintf-posix (Depends-on): Likewise.
25969 * modules/vsprintf-posix (Depends-on): Likewise.
25970 * lib/frexp.c: Include isnand.h instead of isnan.h.
25971 (ISNAN): Set to isnand instead of isnan.
25972 * lib/isfinite.c: Include isnand.h instead of isnan.h.
25973 (gl_isfinited): Use isnand instead of isnan.
25974 * lib/signbitd.c: Include isnand.h instead of isnan.h.
25975 (gl_signbitd): Use isnand instead of isnan.
25976 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25977 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25978 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25979 (main): Use isnand instead of isnan.
25980 * tests/test-round1.c: Include isnand.h.
25981 (main): Use isnand instead of isnan.
25982 * tests/test-round2.c: Include isnand.h instead of isnan.h.
25983 (ISNAN): Set to isnand instead of isnan.
25984 * tests/test-trunc1.c: Include isnand.h.
25985 (main): Use isnand instead of isnan.
25986 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25987 (equal): Use isnand instead of isnan.
25988 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25990 * NEWS: Mention the change.
25992 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
25993 Bruno Haible <bruno@clisp.org>
25995 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25996 the GCC builtins for signbits are present and set
25997 REPLACE_SIGNBIT_USING_GCC if so.
25998 * lib/math.in.h (signbit): Define using GCC builtins if
25999 REPLACE_SIGNBIT_USING_GCC is set.
26000 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26001 REPLACE_SIGNBIT_USING_GCC.
26002 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26004 2008-01-25 Jim Meyering <meyering@redhat.com>
26006 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26007 * lib/poll.c: Include <config.h>, not "config.h".
26008 * tests/test-getaddrinfo.c: Likewise.
26010 2008-01-25 Simon Josefsson <simon@josefsson.org>
26012 * modules/sockets-tests: New file.
26014 2008-01-24 Simon Josefsson <simon@josefsson.org>
26016 * modules/sockets: New module, can be used to call WSA_Startup and
26017 WSA_Cleanup when needed.
26019 * lib/sockets.h, lib/sockets.c: New files.
26021 * m4/sockets.m4: New file.
26023 * tests/test-sockets.c: New file.
26025 2008-01-19 Bruno Haible <bruno@clisp.org>
26027 * doc/posix-headers: Renamed from doc/headers.
26028 * doc/posix-functions: Renamed from doc/functions.
26029 * doc/gnulib.texi: Update.
26031 2008-01-19 Bruno Haible <bruno@clisp.org>
26033 * doc/glibc-functions/strcasestr.texi: Include contents of
26034 doc/functions/strcasestr.texi, fixing the list of platforms.
26035 * doc/functions/strcasestr.texi: Remove file.
26037 2008-01-19 Bruno Haible <bruno@clisp.org>
26039 * doc/glibc-functions/memmem.texi: Include contents of
26040 doc/functions/memmem.texi.
26041 * doc/functions/memmem.texi: Remove file.
26043 2008-01-18 Bruno Haible <bruno@clisp.org>
26045 * doc/glibc-functions/*.texi: New files.
26046 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26047 to use the new files.
26049 2008-01-17 Bruno Haible <bruno@clisp.org>
26051 * tests/test-gethostname.c (main): Fix printf statement.
26053 2008-01-17 Simon Josefsson <simon@josefsson.org>
26055 * modules/gethostname-tests: New file.
26057 * tests/test-gethostname.c: New file.
26059 2008-01-17 Simon Josefsson <simon@josefsson.org>
26061 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26062 used by the UNAME case. Reported by Bruno Haible
26065 2008-01-17 Eric Blake <ebb9@byu.net>
26067 Convert c-strcasestr to be more efficient.
26068 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26069 (Depends-on): Add c-strcase, remove malloca, strnlen.
26070 * tests/test-c-strcasestr.c (main): Enhance test.
26071 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26073 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26075 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26076 Use it in creating po/Makevars.
26078 2008-01-15 Simon Josefsson <simon@josefsson.org>
26080 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26081 Applications that requires it should initialize libgcrypt
26084 2008-01-16 Simon Josefsson <simon@josefsson.org>
26086 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26088 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26090 Fix problem with getdate on mingw32 reported by Simon Josefsson
26091 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26092 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26093 tzname", when deciding whether to declare tzname.
26094 * lib/strftime.c (tzname): Likewise.
26096 2008-01-15 Bruno Haible <bruno@clisp.org>
26098 Work around a MacOS X 10.5 bug in frexpl().
26099 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26100 * doc/functions/frexpl.texi: Document the bug.
26101 Reported by Elias Pipping <pipping@gentoo.org>.
26103 2008-01-14 Eric Blake <ebb9@byu.net>
26105 Touch up previous patch.
26106 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26107 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26109 Convert strcasestr module to use Two-Way algorithm.
26110 * modules/strcasestr-simple: New module, based on the old
26111 strcasestr, but with Two-Way rather than KMP.
26112 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26113 * lib/string.in.h (rpl_strcasestr): Declare.
26114 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26116 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26117 * modules/string (Makefile.am): Support strcasestr.
26118 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26119 * modules/strcasestr-tests (Depends-on): Check for alarm.
26120 * tests/test-strcasestr.c: Augment test.
26121 * lib/str-two-way.h: Clean up stray macro.
26122 * NEWS: Document new module.
26123 * MODULES.html.sh (string handling): Likewise.
26124 * doc/functions/strcasestr.texi: New file.
26125 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26126 here, since it is not a POSIX function.
26128 2008-01-14 Colin Watson <cjwatson@debian.org>
26129 Bruno Haible <bruno@clisp.org>
26131 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26132 works fine; if not, set REPLACE_STRSIGNAL.
26133 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26134 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26136 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26137 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26138 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26140 2008-01-14 Bruno Haible <bruno@clisp.org>
26142 * modules/strsignal (Include): Change to <string.h>.
26144 2008-01-14 Colin Watson <cjwatson@debian.org>
26146 * modules/argp (Notice): Add a notice recommending to change
26148 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26150 2008-01-13 Colin Watson <cjwatson@debian.org>
26152 * modules/strsignal-tests: New file.
26153 * tests/test-strsignal.c: New file.
26155 * lib/strsignal.c: New file, from glibc with modifications.
26156 * lib/siglist.h: New file, from glibc with modifications.
26157 * lib/string.in.h (strsignal): New declaration.
26158 * m4/strsignal.m4: New file.
26159 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26160 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26161 * modules/strsignal: New file.
26162 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26163 HAVE_DECL_STRSIGNAL.
26165 2008-01-13 Bruno Haible <bruno@clisp.org>
26167 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26168 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26169 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26170 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26172 2008-01-13 Bruno Haible <bruno@clisp.org>
26174 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26175 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26176 * lib/argp.h (__attribute__): Likewise.
26177 * lib/c-stack.c (__attribute__): Likewise.
26178 * lib/error.h (__attribute__): Likewise.
26179 * lib/fts.c (__attribute__): Likewise.
26180 * lib/openat.h (__attribute__): Likewise.
26181 * lib/stdio.in.h (__attribute__): Likewise.
26182 * lib/string.in.h (__attribute__): Likewise.
26183 * lib/utimens.c (__attribute__): Likewise.
26184 * lib/vasnprintf.h (__attribute__): Likewise.
26185 * lib/xalloc.h (__attribute__): Likewise.
26186 * lib/xprintf.h (__attribute__): Likewise.
26187 * lib/xstrtol.h (__attribute__): Likewise.
26188 * lib/xvasprintf.h (__attribute__): Likewise.
26190 2008-01-12 Bruno Haible <bruno@clisp.org>
26192 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26193 * doc/glibc-headers/a.out.texi: New file.
26194 * doc/glibc-headers/aliases.texi: New file.
26195 * doc/glibc-headers/alloca.texi: New file.
26196 * doc/glibc-headers/ar.texi: New file.
26197 * doc/glibc-headers/argp.texi: New file.
26198 * doc/glibc-headers/argz.texi: New file.
26199 * doc/glibc-headers/byteswap.texi: New file.
26200 * doc/glibc-headers/crypt.texi: New file.
26201 * doc/glibc-headers/endian.texi: New file.
26202 * doc/glibc-headers/envz.texi: New file.
26203 * doc/glibc-headers/err.texi: New file.
26204 * doc/glibc-headers/error.texi: New file.
26205 * doc/glibc-headers/execinfo.texi: New file.
26206 * doc/glibc-headers/fpu_control.texi: New file.
26207 * doc/glibc-headers/fstab.texi: New file.
26208 * doc/glibc-headers/fts.texi: New file.
26209 * doc/glibc-headers/getopt.texi: New file.
26210 * doc/glibc-headers/ieee754.texi: New file.
26211 * doc/glibc-headers/ifaddrs.texi: New file.
26212 * doc/glibc-headers/libintl.texi: New file.
26213 * doc/glibc-headers/mcheck.texi: New file.
26214 * doc/glibc-headers/mntent.texi: New file.
26215 * doc/glibc-headers/obstack.texi: New file.
26216 * doc/glibc-headers/paths.texi: New file.
26217 * doc/glibc-headers/printf.texi: New file.
26218 * doc/glibc-headers/pty.texi: New file.
26219 * doc/glibc-headers/resolv.texi: New file.
26220 * doc/glibc-headers/shadow.texi: New file.
26221 * doc/glibc-headers/sysexits.texi: New file.
26222 * doc/glibc-headers/ttyent.texi: New file.
26224 2008-01-12 Jim Meyering <meyering@redhat.com>
26226 announce-gen: emit Gnulib's git-based version string.
26227 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26228 New option --gnulib-version=V, where V is expected to be
26229 the output of running git describe in the gnulib directory.
26230 (get_tool_versions): Request feedback on xdelta. I suspect it's
26231 not useful, and plan to stop publishing an xdelta file with each
26234 * build-aux/announce-gen: Also check for lzma-compressed files.
26236 2008-01-11 Bruno Haible <bruno@clisp.org>
26238 * tests/test-memmem.c (main): Increase maximum allowed time.
26239 * tests/test-strstr.c (main): Likewise.
26241 2008-01-11 Bruno Haible <bruno@clisp.org>
26243 * doc/functions/memmem.texi: Add more precisions about platforms.
26244 * doc/functions/strstr.texi: Likewise.
26246 2008-01-10 Eric Blake <ebb9@byu.net>
26248 * m4/strstr.m4: Delete cruft from copy-n-paste.
26249 Reported by Bruno Haible.
26251 2008-01-10 Bruno Haible <bruno@clisp.org>
26253 Make c-strstr rely on strstr.
26254 * lib/c-strstr.c: Don't include str-kmp.h.
26255 (c_strstr): Define in terms of strstr.
26256 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26257 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26259 2008-01-10 Bruno Haible <bruno@clisp.org>
26261 * doc/gnulib.texi (String Functions in C Locale): New section.
26262 * doc/c-ctype.texi: New file.
26263 * doc/c-strcase.texi: New file.
26264 * doc/c-strcaseeq.texi: New file.
26265 * doc/c-strcasestr.texi: New file.
26266 * doc/c-strstr.texi: New file.
26267 * doc/c-strtod.texi: New file.
26268 * doc/c-strtold.texi: New file.
26270 2008-01-10 Eric Blake <ebb9@byu.net>
26272 * lib/relocatable.h: Fix a comment.
26274 2008-01-10 Eric Blake <ebb9@byu.net>
26276 Share two-way algorithm.
26277 * lib/str-two-way.h: New file, merged from...
26278 * lib/memmem.c: ...here...
26279 * lib/strstr.c: ...and here.
26280 * modules/memmem (Files): Use it.
26281 * modules/strstr (Files): Likewise.
26283 Avoid quadratic strstr implementations.
26284 * lib/strstr.c: New file.
26285 * m4/strstr.m4: Likewise.
26286 * modules/strstr: Likewise.
26287 * modules/strstr-tests: Likewise.
26288 * tests/test-strstr.c: Likewise.
26289 * lib/string.in.h (rpl_strstr): Declare.
26290 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26291 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26292 * modules/string (Makefile.am): Likewise.
26293 * MODULES.html.sh (string handling): Mention new module.
26294 * doc/functions/strstr.texi (strstr): Document the bug.
26296 2008-01-10 Bruno Haible <bruno@clisp.org>
26298 * lib/relocatable.h (relocate): State whether result is freshly
26300 * lib/relocatable.c (relocate): Return a freshly allocated string
26301 instead of a pointer to a privately held string.
26302 Reported by Sylvain Beucler <beuc@gnu.org>.
26304 2008-01-10 Colin Watson <cjwatson@debian.org>
26306 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26307 s/S_ISNLK/S_ISLNK/.
26309 2008-01-09 Bruno Haible <bruno@clisp.org>
26311 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26313 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26314 if it's only a guess.
26315 * modules/memmem: Simplify by depending on memmem-simple.
26317 2008-01-09 Bruno Haible <bruno@clisp.org>
26319 Work around OpenBSD 4.0 tdelete() bug.
26320 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26321 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26322 macros and don't redefine the enum values.
26323 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26324 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26325 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26327 2008-01-09 Bruno Haible <bruno@clisp.org>
26329 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26330 (main): Don't perform the tests if setlocale did not install a UTF-8
26331 locale. Needed on OpenBSD 4.0.
26332 * modules/wcwidth-tests (Depends-on): Add localcharset.
26334 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26336 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26337 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26338 * NEWS: announce this.
26339 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26341 2008-01-09 Simon Josefsson <simon@josefsson.org>
26342 and Eric Blake <ebb9@byu.net>
26344 Add memmem-simple module.
26345 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26346 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26347 * modules/memmem-simple: New file.
26348 * modules/memmem (Description): Tweak.
26349 * MODULES.html.sh (string handling): Mention new module.
26350 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26351 addressed by memmem-simple.
26352 * NEWS: Document the difference.
26354 2008-01-09 Eric Blake <ebb9@byu.net>
26356 Give gcc some memmem optimization hints.
26357 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26358 (strcasestr): Declare as pure.
26359 * modules/memmem (Maintainer): Claim my implementation.
26361 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26363 Support AIX 6.1 and higher.
26364 * build-aux/config.libpath: Likewise.
26365 * build-aux/config.rpath: Likewise.
26367 2008-01-08 Jim Meyering <meyering@redhat.com>
26368 Bruno Haible <bruno@clisp.org>
26370 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26371 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26372 Reported by Peter Fales in
26373 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26375 2008-01-08 Bruno Haible <bruno@clisp.org>
26377 * modules/unictype/category-of (Depends-on): Add
26378 unictype/category-none.
26379 * modules/unictype/category-and-tests (Depends-on): Add
26380 unictype/category-{L,N,Lu,Nd}.
26381 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26382 * modules/unictype/category-or-tests (Depends-on): Add
26383 unictype/category-{L,N}.
26384 * modules/unictype/category-name-tests (Depends-on): Add
26385 unictype/category-{Z,Nl}.
26386 Reported by Simon Josefsson.
26388 2008-01-08 Bruno Haible <bruno@clisp.org>
26390 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26392 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26393 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26394 Reported by Peter Miller <millerp@canb.auug.org.au>.
26396 2008-01-08 Eric Blake <ebb9@byu.net>
26398 Rewrite memmem to guarantee linear complexity without malloc.
26399 * lib/memmem.c (memmem): Use Two-Way rather than
26400 Knuth-Morris-Pratt, to allow O(1) space usage.
26401 (critical_factorization, two_way_short_needle)
26402 (two_way_long_needle): New functions.
26403 (knuth_morris_pratt): Delete.
26404 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26406 * tests/test-memmem.c (main): Add tests for periodic needle and
26407 sublinear performance.
26408 * doc/functions/memmem.texi (memmem): Document other deficiencies
26409 in cygwin and older glibc.
26411 2008-01-08 Bruno Haible <bruno@clisp.org>
26413 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26416 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26418 Add a configure time option: --disable-acl.
26419 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26420 AC_ARG_ENABLE(acl).
26422 2008-01-06 Simon Josefsson <simon@josefsson.org>
26424 * tests/test-localename.c: Don't include obsolete "setenv.h".
26426 * modules/localename-tests (Depends-on): Need unsetenv.
26428 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26430 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26432 2008-01-06 Colin Watson <cjwatson@debian.org>
26434 * users.txt: Add man-db.
26436 2008-01-07 Bruno Haible <bruno@clisp.org>
26438 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26439 previous section name.
26441 2008-01-07 Bruno Haible <bruno@clisp.org>
26443 * lib/progname.c (set_program_name): Don't strip off a leading
26444 "lt-" prefix outside a .libs directory.
26445 Suggested by Paul Eggert.
26447 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26448 Bruno Haible <bruno@clisp.org>
26450 Improve memory cleanup in 'relocatable' module.
26451 * lib/relocatable.h (compute_curr_prefix): Change return type to
26453 * lib/relocatable.c (compute_curr_prefix): Change return type to
26454 'char *'. Free curr_installdir after use.
26455 (relocate): Free curr_prefix_better after use.
26456 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26458 2008-01-01 Bruno Haible <bruno@clisp.org>
26460 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26461 failure on older glibc systems.
26462 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26464 2008-01-05 Eric Blake <ebb9@byu.net>
26466 Avoid quadratic system memmem.
26467 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26468 Reported by Ralf Wildenhues.
26470 Fix memmem test for mingw.
26471 * modules/memmem-tests (configure.ac): Check for alarm.
26472 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26474 * doc/functions/memmem.texi: New file.
26475 * doc/gnulib.texi (Function Substitutes): Add memmem.
26476 Reported by Bruno Haible.
26478 2008-01-04 Bruno Haible <bruno@clisp.org>
26480 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26481 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26482 gl_HEADER_STRING_H_DEFAULTS.
26484 2008-01-04 Eric Blake <ebb9@byu.net>
26486 Shorten duration of memmem test.
26487 * tests/test-memmem.c (main): Use alarm to declare failure if test
26488 is taking too long.
26489 Reported by Ralf Wildenhues.
26491 2007-12-21 Simon Josefsson <simon@josefsson.org>
26493 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26494 string, needed by strerror.
26496 2008-01-03 Colin Watson <cjwatson@debian.org>
26497 Bruno Haible <bruno@clisp.org>
26499 * doc/gnulib-tool.texi (Localization): New section.
26501 2008-01-02 Bruno Haible <bruno@clisp.org>
26503 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26504 variables to 'unsigned char *' type.
26505 Reported by Paul Eggert.
26507 2008-01-02 Jim Meyering <jim@meyering.net>
26509 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26511 2007-12-31 Jim Meyering <jim@meyering.net>
26513 Avoid use of private FTS type name.
26514 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26516 2007-12-30 Karl Berry <karl@gnu.org>
26518 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26519 work around defect in Texinfo and/or the standalone Info browser.
26521 2007-12-30 Bruno Haible <bruno@clisp.org>
26523 Unify 5 copies of the KMP code.
26524 * lib/str-kmp.h: New file.
26525 * lib/c-strcasestr.c: Include str-kmp.h.
26526 (knuth_morris_pratt): Remove function.
26527 (c_strcasestr): Update.
26528 * lib/c-strstr.c: Include str-kmp.h.
26529 (knuth_morris_pratt): Remove function.
26530 (c_strcasestr): Update.
26531 * lib/mbscasestr.c: Include str-kmp.h.
26532 (knuth_morris_pratt_unibyte): Remove function.
26533 * lib/mbsstr.c: Include str-kmp.h.
26534 (knuth_morris_pratt_unibyte): Remove function.
26535 * lib/strcasestr.c: Include str-kmp.h.
26536 (knuth_morris_pratt): Remove function.
26537 (strcasestr): Update.
26538 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26539 * modules/c-strstr (Files): Likewise.
26540 * modules/mbscasestr (Files): Likewise.
26541 * modules/mbsstr (Files): Likewise.
26542 * modules/strcasestr (Files): Likewise.
26543 Suggested by Paul Eggert.
26545 2007-12-30 Bruno Haible <bruno@clisp.org>
26547 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26550 2007-12-30 Bruno Haible <bruno@clisp.org>
26552 * lib/xmalloca.h: Include xalloc.h.
26553 (xnmalloca): New macro.
26555 2007-12-30 Bruno Haible <bruno@clisp.org>
26557 * lib/malloca.h (nmalloca): New macro.
26558 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26559 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26560 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26561 knuth_morris_pratt_multibyte): Likewise.
26562 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26563 knuth_morris_pratt_multibyte): Likewise.
26564 * lib/memmem.c (knuth_morris_pratt): Likewise.
26565 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26567 2007-12-25 Bruno Haible <bruno@clisp.org>
26569 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26570 * lib/glob.c: Don't include openat.h.
26571 (link_exists2_p): Add back the code that deals with the
26572 !GLOB_ALTDIRFUNC case.
26573 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26574 let it do the filename concatenation.
26575 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26576 * modules/glob (Depends-on): Remove openat.
26578 2007-12-31 Bruno Haible <bruno@clisp.org>
26580 * modules/dirfd (License): Change to LGPLv2+.
26581 Approved by Jim Meyering.
26583 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26585 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26586 when multiplying M by sizeof (size_t).
26588 2007-12-10 Martin Lambers <marlam@marlam.de>
26590 Override getpagesize on mingw.
26591 * lib/getpagesize.c: New file.
26592 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26593 * modules/getpagesize (Files): Add lib/getpagesize.c.
26594 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26595 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26596 REPLACE_GETPAGESIZE.
26597 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26599 2007-12-25 Bruno Haible <bruno@clisp.org>
26601 * modules/localcharset (Notice): New field.
26602 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26603 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26605 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26606 Bruno Haible <bruno@clisp.org>
26608 Avoid using the syntax symbol() in formatted documentation.
26609 * MODULES.html.sh (func_module): When replacing symbol() with a
26610 hyperlink, remove the parentheses. Show an error if some remain.
26611 Recognize and render the '...' syntax.
26612 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26613 Rework. Add paragraph about GCC's inlining.
26614 * doc/alloca.texi: Likewise.
26615 * doc/error.texi: Remove parentheses from symbol reference.
26616 * doc/gnulib-intro.texi: Likewise.
26617 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26618 * modules/fnmatch (Description): Reword to say "the ... function".
26619 * modules/full-read (Description): Likewise.
26620 * modules/full-write (Description): Likewise.
26621 * modules/safe-read (Description): Likewise.
26622 * modules/safe-write (Description): Likewise.
26623 * modules/strchrnul (Description): Likewise.
26624 * modules/trim (Description): Likewise.
26625 * modules/error (Description): Remove parentheses from symbol
26627 * modules/verror (Description): Likewise.
26628 Reported by Karl Berry.
26630 2007-12-25 Bruno Haible <bruno@clisp.org>
26632 Fixup after 2007-10-16 commit.
26633 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26635 2007-12-24 Bruno Haible <bruno@clisp.org>
26637 Make --enable-relocatable work with DESTDIR.
26638 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26639 to compute installdir from destprog.
26640 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26641 also set the RELOC_DESTDIR variable.
26642 Reported by Левашев Иван <octagram@bluebottle.com>.
26644 2007-12-24 Bruno Haible <bruno@clisp.org>
26646 Fix link error due to xalloc_die().
26647 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26649 * lib/relocwrapper.c: Update comments.
26650 * build-aux/install-reloc: Remove xreadlink.c from file list.
26651 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26653 Reported by Левашев Иван <octagram@bluebottle.com>.
26655 2007-12-24 Bruno Haible <bruno@clisp.org>
26657 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26658 * lib/setenv.h: Remove file.
26659 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26661 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26662 (Depends-on): Add stdlib.
26663 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26665 (Include): Replace setenv.h with <stdlib.h>.
26666 * modules/unsetenv: New file.
26667 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26668 * lib/unsetenv.c: Include <stdlib.h> first.
26669 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26670 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26671 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26672 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26673 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26674 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26675 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26676 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26677 * doc/functions/unsetenv.texi: Update.
26678 * modules/xsetenv (Depends-on): Add unsetenv.
26679 * modules/getdate (Depends-on): Likewise.
26680 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26681 * lib/xsetenv.c: Don't include setenv.h.
26682 * lib/getdate.y: Likewise.
26683 * lib/relocwrapper.c: Likewise.
26684 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26685 (Depends-on): Add stdlib.
26686 * NEWS: Mention the changes.
26687 Reported by Левашев Иван <octagram@bluebottle.com>.
26689 2007-12-23 Bruno Haible <bruno@clisp.org>
26691 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26694 2007-12-23 Bruno Haible <bruno@clisp.org>
26696 * lib/c-strcasestr.c: Add more comments.
26697 * lib/c-strstr.c: Likewise.
26698 * lib/mbscasestr.c: Likewise.
26699 * lib/mbsstr.c: Likewise.
26700 * lib/strcasestr.c: Likewise.
26701 * lib/memmem.c: Likewise.
26703 2007-12-23 Bruno Haible <bruno@clisp.org>
26705 * tests/test-memmem.c: Include <string.h> first.
26707 2007-12-22 Bruno Haible <bruno@clisp.org>
26709 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26710 the contents of $testsbase.
26711 Reported by Ralf Wildenhues.
26713 2007-12-22 Bruno Haible <bruno@clisp.org>
26715 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26716 two variables local_ldadd_before, local_ldadd_last.
26718 2007-12-20 Eric Blake <ebb9@byu.net>
26720 Work around circular library issue when cross-compiling.
26721 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26722 that progname.o does not need to pull in rpl_memcmp.
26724 2007-12-19 Eric Blake <ebb9@byu.net>
26726 Fix memmem to avoid O(n^2) worst-case complexity.
26727 * lib/memmem.c (knuth_morris_pratt): New function.
26728 (memmem): Use it if first few naive iterations fail.
26729 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26730 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26731 * modules/memchr (License): Likewise.
26732 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26734 * tests/test-memmem.c: Rewrite, borrowing ideas from
26735 test-mbsstr1.c; the old version wouldn't even compile!
26736 * modules/memmem-tests: New file.
26737 * lib/string.in.h (rpl_memmem): Add declaration.
26738 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26739 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26742 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26744 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26745 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26746 before any system include files, and undef after them all. This
26747 should fix a problem on VMS reported by John E. Malmberg in
26748 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26750 2007-12-17 Eric Blake <ebb9@byu.net>
26752 Revert addition of verify, for BSD/OS.
26753 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26754 can't handle large files, for the sake of obsolete platforms.
26755 * modules/fseeko (Depends-on): Remove verify.
26756 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26757 * doc/functions/ftello.texi (ftello): Likewise.
26758 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26759 Reported by Larry Jones.
26761 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26763 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26764 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26766 2007-12-17 Jim Meyering <meyering@redhat.com>
26768 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26769 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26770 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26771 * modules/getcwd (Depends-on): Add openat.
26772 Reported by Petr Salinger.
26774 2007-12-17 Bruno Haible <bruno@clisp.org>
26776 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26777 avoid a segmentation fault of the configure test on x86_64 systems.
26779 2007-12-15 Jim Meyering <meyering@redhat.com>
26781 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26783 2007-12-13 Eric Blake <ebb9@byu.net>
26785 Another fseek test.
26786 * tests/test-fseek.c (main): Also test ungetc handling.
26787 * tests/test-fseeko.c (main): Likewise.
26788 * modules/fseeko (Depends-on): Add verify.
26789 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26791 Reported by Larry Jones.
26793 Fix fseeko on mingw.
26794 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26797 Beef up fseek tests.
26798 * tests/test-fseek.c (main): Also test eof handling.
26799 * tests/test-fseeko.c (main): Likewise.
26800 Reported by Larry Jones.
26802 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26804 Fix fseeko on BSD-based platforms.
26805 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26808 2007-12-12 Eric Blake <ebb9@byu.net>
26810 Allow circular dependency of separate libtests.a
26811 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26814 2007-12-11 Eric Blake <ebb9@byu.net>
26816 Fix bug with -0.0L in previous patch.
26817 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26818 * tests/test-isnan.c (main): Also test on zeroes.
26819 * tests/test-isnanf.c (main): Likewise.
26820 * tests/test-isnanl.h (main): Likewise.
26822 Detect pseudo-denormals on x86 even when cross-compiling.
26823 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26824 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26825 invalid bit patterns that happen to satisfy ==.
26827 Avoid link failures with separate libtests.a.
26828 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26829 last, to satisfy circular dependencies.
26831 2007-12-11 Eric Blake <ebb9@byu.net>
26832 and Bruno Haible <bruno@clisp.org>
26834 Fix OpenBSD 4.0 <float.h> handling of long double.
26835 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26836 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26837 * doc/headers/float.texi (float.h): Document OpenBSD bug.
26839 2007-12-11 Jim Meyering <meyering@redhat.com>
26841 * users.txt: Add libvirt.
26843 Support versions of autoconf prior to 2.59c.
26844 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26845 if it is not already defined.
26847 2007-12-09 Bruno Haible <bruno@clisp.org>
26849 Let 'gnulib-tool --import' collect sources needed for the tests in
26850 tests/ rather than in lib/.
26851 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26852 argument. If true, add rules to generate libtests.a, and put libtests.a
26853 into $(LDADD). Consider source files in subdirectories and set
26855 (func_emit_initmacro_start, func_emit_initmacro_end,
26856 func_emit_initmacro_done): Pass all arguments explicitly.
26857 (func_import): Determine two module lists main_modules,
26858 testsrelated_modules. Determine use_libtests. Determine two variables
26859 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26860 instead of just sed_transform_lib_file. Determine two variables
26861 main_files and testsrelated_files. Compute 'files' as the union of
26862 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26863 func_add_or_update. In the generated gnulib-comp.m4, collect the
26864 object files for tests/ in different variables than those for lib/.
26865 Substitute LIBTESTS_LIBDEPS.
26866 (func_create_testdir): Combine the uses_subdirs results from
26867 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26869 2007-12-09 Bruno Haible <bruno@clisp.org>
26871 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26872 the build-aux directory.
26874 2007-12-09 Bruno Haible <bruno@clisp.org>
26876 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26877 introduced on 2006-09-09.
26879 2007-12-07 Jim Meyering <meyering@redhat.com>
26881 Let these macros work also with autoconf-2.59.
26882 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
26883 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26884 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26886 2007-12-06 Jim Meyering <meyering@redhat.com>
26888 Avoid a configure-time syntax error in gl_FUNC_ACL.
26889 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26890 function in each branch, before testing the cache variable.
26892 2007-12-04 Eric Blake <ebb9@byu.net>
26894 Make scripts executable.
26895 * build-aux/config.guess: Add execute permissions.
26896 * build-aux/config.sub: Likewise.
26897 * build-aux/gendocs.sh: Likewise.
26899 Fix frexp on mingw.
26900 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26902 * doc/functions/frexp.texi (frexp): Document the bug.
26904 Make cygwin fseeko check more reliable.
26905 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26906 version numbers, rather than unrelated feature check.
26907 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26908 * doc/functions/ftello.texi (ftello): Likewise.
26909 Reported by Bruno Haible.
26911 * m4/strerror.m4: Bump version number.
26913 2007-12-03 Bruno Haible <bruno@clisp.org>
26915 * doc/functions/mprotect.texi: Mention the mingw problem.
26917 2007-12-03 Eric Blake <ebb9@byu.net>
26919 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26920 REPLACE_STRERROR is initialized before this macro.
26922 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
26924 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
26925 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26926 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
26927 put -lsec in even for programs other than 'ls'. This fixes a problem
26928 for gettext reported by Bruno Haible in
26929 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26930 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26931 Add support for Solaris 10. This isn't efficient, but should get the
26934 2007-12-03 James Youngman <jay@gnu.org>
26936 * doc/regexprops-generic.texi: change "an close-group" to "a
26937 close-group" and "illegal" to "not allowed".
26939 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26941 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26942 pr_byname.h. Needed for the rare case when the maintainer has done
26943 "make maintainer-clean" in the source directory and then attempts a
26944 build outside the source directory.
26945 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26948 2007-12-02 Martin Lambers <marlam@marlam.de>
26949 Bruno Haible <bruno@clisp.org>
26951 * lib/getpagesize.h: Remove file.
26952 * lib/unistd.in.h: Include declaration of getpagesize here.
26953 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26954 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26956 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26957 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26958 * modules/getpagesize (Files): Remove lib/getpagesize.h.
26959 (Depends-on): Add unistd.
26960 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26961 (Include): Use <unistd.h> instead of getpagesize.h.
26962 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26963 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26964 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26965 gl_GETPAGESIZE invocation, already handled by module dependency.
26966 * lib/pagealign_alloc.c: Don't include getpagesize.h.
26968 2007-12-02 Bruno Haible <bruno@clisp.org>
26970 * modules/strings-tests: New file.
26971 * tests/test-strings.c: New file.
26973 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26974 * lib/strings.in.h: New file.
26975 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26976 * m4/strings_h.m4: New file.
26977 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26978 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26979 * modules/strings: New file.
26980 * modules/string (Makefile.am): Update.
26981 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26982 Reported by Karl Berry.
26984 2007-12-01 Eric Blake <ebb9@byu.net>
26986 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26987 accomodate fix in cygwin 1.5.25.
26989 2007-12-01 Jim Meyering <meyering@redhat.com>
26991 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26992 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26993 that would inhibit utf8-optimization of a regexp containing line-
26994 or buffer-anchors, e.g., `^', `$'.
26996 2007-11-30 Bruno Haible <bruno@clisp.org>
26998 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26999 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27000 glthread_recursive_lock_init.
27001 * lib/lock.c (glthread_recursive_lock_init)
27002 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27003 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27005 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27007 New function qset_acl, like set_acl but with syscall semantics.
27008 * lib/acl.h (qset_acl): New decl.
27009 * lib/acl.c (qset_acl): New function.
27010 (set_acl): Use new function. Use more-consistent diagnostics.
27012 2007-11-28 Jim Meyering <meyering@redhat.com>
27014 * modules/physmem (License): Change from GPL to LGPLv2+.
27016 2007-11-26 Bruno Haible <bruno@clisp.org>
27018 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27019 'long double' type has excess precision.
27020 Reported by Jim Meyering in
27021 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27023 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27025 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27026 Sync from <http://gnu.org/licenses>.
27027 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27028 with license text from same location.
27029 * doc/maintain.texi, doc/standards.texi: Sync from
27030 <http://savannah.gnu.org/projects/gnustandards>.
27032 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
27033 and Jim Meyering <meyering@redhat.com>
27035 Adjust getdate' grammar to accept a slightly more regular language.
27036 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27037 Before, the former was rejected.
27038 * lib/getdate.y (digits_to_date_time): New function, factored
27040 (number): ...here. Just call digits_to_date_time.
27041 (hybrid): New non-terminal to handle an <unsigned number,
27042 signed relative offset> sequence consistently.
27044 2007-11-18 Jim Meyering <meyering@redhat.com>
27046 Pull my changes from coreutils:
27047 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27048 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27049 use of $gnulib_tool_option_extras, so that it's separated from the
27050 preceding argument.
27052 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27053 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27054 parent destination directories before copying a file into place.
27056 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27058 bootstrap: work also with 4-argument variant of AC_INIT
27059 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27061 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27063 Port test-getaddrinfo to Solaris.
27064 Problem reported by Bruno Haible in
27065 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27066 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27067 explanation of setting 'hints'.
27068 Don't reject an implementation merely because it returns EAI_SERVICE.
27069 (EAI_SERVICE): Define to 0 if not defined.
27071 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27073 The license of gnu-make and posix-shell is now "GPLed build tool".
27074 * modules/gnu-make (License): Likewise.
27075 * modules/posix-shell (License): Likewise.
27077 New module posix-shell, for determining a POSIX shell
27078 or perhaps something that is close enough to a POSIX shell.
27079 * m4/posix-shell.m4: New file.
27080 * modules/posix-shell: New file.
27082 * MODULES.html.sh: Mention new module.
27084 New module gnu-make, for determining whether we're using GNU Make.
27085 * m4/gnu-make.m4: New file.
27086 * modules/gnu-make: New file.
27087 * MODULES.html.sh: Mention new module.
27089 2007-11-14 Jim Meyering <meyering@redhat.com>
27091 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27092 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27093 use this macro to create a function _definition_.
27094 Remove useless "#undef ARGMATCH_DIE".
27096 2007-11-14 Bruno Haible <bruno@clisp.org>
27098 * lib/config.charset: Update for OpenBSD 4.1.
27099 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27101 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27103 Document 64-bit #if problems in stdint.texi.
27104 * doc/headers/stdint.texi (stdint.h): Mention problems with
27105 64-bit-#if, and how to work around them.
27107 Don't insist on 'long long int' support in the preprocessor. It
27108 breaks too many things. For example, PRIdMAX still uses a 'long
27109 long int' format with the latest Sun compiler, even though
27110 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27111 preprocessor problem. This causes the latest coreutils to dump
27112 core on Solaris 10 sparc with the Sun C compiler.
27113 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27114 the troublesome expressions at configure-time, not at #if-time.
27115 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27117 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27118 compile-time C checks, done at 'configure'-time.
27119 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27120 * modules/inttypes (Makefile): Substitute the new symbols that
27121 gl_INTTYPES_H now generates.
27122 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27124 2007-11-12 Bruno Haible <bruno@clisp.org>
27126 Tests for Unicode character classification functions.
27128 * modules/unictype/bidicategory-byname-tests: New file.
27129 * modules/unictype/bidicategory-name-tests: New file.
27130 * modules/unictype/bidicategory-of-tests: New file.
27131 * modules/unictype/bidicategory-test-tests: New file.
27132 * modules/unictype/block-list-tests: New file.
27133 * modules/unictype/block-of-tests: New file.
27134 * modules/unictype/block-test-tests: New file.
27135 * modules/unictype/category-C-tests: New file.
27136 * modules/unictype/category-Cc-tests: New file.
27137 * modules/unictype/category-Cf-tests: New file.
27138 * modules/unictype/category-Cn-tests: New file.
27139 * modules/unictype/category-Co-tests: New file.
27140 * modules/unictype/category-Cs-tests: New file.
27141 * modules/unictype/category-L-tests: New file.
27142 * modules/unictype/category-Ll-tests: New file.
27143 * modules/unictype/category-Lm-tests: New file.
27144 * modules/unictype/category-Lo-tests: New file.
27145 * modules/unictype/category-Lt-tests: New file.
27146 * modules/unictype/category-Lu-tests: New file.
27147 * modules/unictype/category-M-tests: New file.
27148 * modules/unictype/category-Mc-tests: New file.
27149 * modules/unictype/category-Me-tests: New file.
27150 * modules/unictype/category-Mn-tests: New file.
27151 * modules/unictype/category-N-tests: New file.
27152 * modules/unictype/category-Nd-tests: New file.
27153 * modules/unictype/category-Nl-tests: New file.
27154 * modules/unictype/category-No-tests: New file.
27155 * modules/unictype/category-P-tests: New file.
27156 * modules/unictype/category-Pc-tests: New file.
27157 * modules/unictype/category-Pd-tests: New file.
27158 * modules/unictype/category-Pe-tests: New file.
27159 * modules/unictype/category-Pf-tests: New file.
27160 * modules/unictype/category-Pi-tests: New file.
27161 * modules/unictype/category-Po-tests: New file.
27162 * modules/unictype/category-Ps-tests: New file.
27163 * modules/unictype/category-S-tests: New file.
27164 * modules/unictype/category-Sc-tests: New file.
27165 * modules/unictype/category-Sk-tests: New file.
27166 * modules/unictype/category-Sm-tests: New file.
27167 * modules/unictype/category-So-tests: New file.
27168 * modules/unictype/category-Z-tests: New file.
27169 * modules/unictype/category-Zl-tests: New file.
27170 * modules/unictype/category-Zp-tests: New file.
27171 * modules/unictype/category-Zs-tests: New file.
27172 * modules/unictype/category-and-not-tests: New file.
27173 * modules/unictype/category-and-tests: New file.
27174 * modules/unictype/category-byname-tests: New file.
27175 * modules/unictype/category-name-tests: New file.
27176 * modules/unictype/category-none-tests: New file.
27177 * modules/unictype/category-of-tests: New file.
27178 * modules/unictype/category-or-tests: New file.
27179 * modules/unictype/category-test-withtable-tests: New file.
27180 * modules/unictype/combining-class-tests: New file.
27181 * modules/unictype/ctype-alnum-tests: New file.
27182 * modules/unictype/ctype-alpha-tests: New file.
27183 * modules/unictype/ctype-blank-tests: New file.
27184 * modules/unictype/ctype-cntrl-tests: New file.
27185 * modules/unictype/ctype-digit-tests: New file.
27186 * modules/unictype/ctype-graph-tests: New file.
27187 * modules/unictype/ctype-lower-tests: New file.
27188 * modules/unictype/ctype-print-tests: New file.
27189 * modules/unictype/ctype-punct-tests: New file.
27190 * modules/unictype/ctype-space-tests: New file.
27191 * modules/unictype/ctype-upper-tests: New file.
27192 * modules/unictype/ctype-xdigit-tests: New file.
27193 * modules/unictype/decimal-digit-tests: New file.
27194 * modules/unictype/digit-tests: New file.
27195 * modules/unictype/mirror-tests: New file.
27196 * modules/unictype/numeric-tests: New file.
27197 * modules/unictype/property-alphabetic-tests: New file.
27198 * modules/unictype/property-ascii-hex-digit-tests: New file.
27199 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27200 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27201 * modules/unictype/property-bidi-block-separator-tests: New file.
27202 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27203 * modules/unictype/property-bidi-common-separator-tests: New file.
27204 * modules/unictype/property-bidi-control-tests: New file.
27205 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27206 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27207 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27208 * modules/unictype/property-bidi-european-digit-tests: New file.
27209 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27210 * modules/unictype/property-bidi-left-to-right-tests: New file.
27211 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27212 * modules/unictype/property-bidi-other-neutral-tests: New file.
27213 * modules/unictype/property-bidi-pdf-tests: New file.
27214 * modules/unictype/property-bidi-segment-separator-tests: New file.
27215 * modules/unictype/property-bidi-whitespace-tests: New file.
27216 * modules/unictype/property-byname-tests: New file.
27217 * modules/unictype/property-combining-tests: New file.
27218 * modules/unictype/property-composite-tests: New file.
27219 * modules/unictype/property-currency-symbol-tests: New file.
27220 * modules/unictype/property-dash-tests: New file.
27221 * modules/unictype/property-decimal-digit-tests: New file.
27222 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27223 * modules/unictype/property-deprecated-tests: New file.
27224 * modules/unictype/property-diacritic-tests: New file.
27225 * modules/unictype/property-extender-tests: New file.
27226 * modules/unictype/property-format-control-tests: New file.
27227 * modules/unictype/property-grapheme-base-tests: New file.
27228 * modules/unictype/property-grapheme-extend-tests: New file.
27229 * modules/unictype/property-grapheme-link-tests: New file.
27230 * modules/unictype/property-hex-digit-tests: New file.
27231 * modules/unictype/property-hyphen-tests: New file.
27232 * modules/unictype/property-id-continue-tests: New file.
27233 * modules/unictype/property-id-start-tests: New file.
27234 * modules/unictype/property-ideographic-tests: New file.
27235 * modules/unictype/property-ids-binary-operator-tests: New file.
27236 * modules/unictype/property-ids-trinary-operator-tests: New file.
27237 * modules/unictype/property-ignorable-control-tests: New file.
27238 * modules/unictype/property-iso-control-tests: New file.
27239 * modules/unictype/property-join-control-tests: New file.
27240 * modules/unictype/property-left-of-pair-tests: New file.
27241 * modules/unictype/property-line-separator-tests: New file.
27242 * modules/unictype/property-logical-order-exception-tests: New file.
27243 * modules/unictype/property-lowercase-tests: New file.
27244 * modules/unictype/property-math-tests: New file.
27245 * modules/unictype/property-non-break-tests: New file.
27246 * modules/unictype/property-not-a-character-tests: New file.
27247 * modules/unictype/property-numeric-tests: New file.
27248 * modules/unictype/property-other-alphabetic-tests: New file.
27249 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27250 * modules/unictype/property-other-grapheme-extend-tests: New file.
27251 * modules/unictype/property-other-id-continue-tests: New file.
27252 * modules/unictype/property-other-id-start-tests: New file.
27253 * modules/unictype/property-other-lowercase-tests: New file.
27254 * modules/unictype/property-other-math-tests: New file.
27255 * modules/unictype/property-other-uppercase-tests: New file.
27256 * modules/unictype/property-paired-punctuation-tests: New file.
27257 * modules/unictype/property-paragraph-separator-tests: New file.
27258 * modules/unictype/property-pattern-syntax-tests: New file.
27259 * modules/unictype/property-pattern-white-space-tests: New file.
27260 * modules/unictype/property-private-use-tests: New file.
27261 * modules/unictype/property-punctuation-tests: New file.
27262 * modules/unictype/property-quotation-mark-tests: New file.
27263 * modules/unictype/property-radical-tests: New file.
27264 * modules/unictype/property-sentence-terminal-tests: New file.
27265 * modules/unictype/property-soft-dotted-tests: New file.
27266 * modules/unictype/property-space-tests: New file.
27267 * modules/unictype/property-terminal-punctuation-tests: New file.
27268 * modules/unictype/property-test-tests: New file.
27269 * modules/unictype/property-titlecase-tests: New file.
27270 * modules/unictype/property-unassigned-code-value-tests: New file.
27271 * modules/unictype/property-unified-ideograph-tests: New file.
27272 * modules/unictype/property-uppercase-tests: New file.
27273 * modules/unictype/property-variation-selector-tests: New file.
27274 * modules/unictype/property-white-space-tests: New file.
27275 * modules/unictype/property-xid-continue-tests: New file.
27276 * modules/unictype/property-xid-start-tests: New file.
27277 * modules/unictype/property-zero-width-tests: New file.
27278 * modules/unictype/scripts-tests: New file.
27279 * modules/unictype/syntax-c-ident-tests: New file.
27280 * modules/unictype/syntax-c-whitespace-tests: New file.
27281 * modules/unictype/syntax-java-ident-tests: New file.
27282 * modules/unictype/syntax-java-whitespace-tests: New file.
27283 * tests/unictype/test-bidi_byname.c: New file.
27284 * tests/unictype/test-bidi_name.c: New file.
27285 * tests/unictype/test-bidi_of.c: New file.
27286 * tests/unictype/test-bidi_test.c: New file.
27287 * tests/unictype/test-block_list.c: New file.
27288 * tests/unictype/test-block_of.c: New file.
27289 * tests/unictype/test-block_test.c: New file.
27290 * tests/unictype/test-categ_and.c: New file.
27291 * tests/unictype/test-categ_and_not.c: New file.
27292 * tests/unictype/test-categ_byname.c: New file.
27293 * tests/unictype/test-categ_name.c: New file.
27294 * tests/unictype/test-categ_none.c: New file.
27295 * tests/unictype/test-categ_of.c: New file.
27296 * tests/unictype/test-categ_or.c: New file.
27297 * tests/unictype/test-categ_test_withtable.c: New file.
27298 * tests/unictype/test-combining.c: New file.
27299 * tests/unictype/test-decdigit.c: New file.
27300 * tests/unictype/test-digit.c: New file.
27301 * tests/unictype/test-mirror.c: New file.
27302 * tests/unictype/test-numeric.c: New file.
27303 * tests/unictype/test-pr_byname.c: New file.
27304 * tests/unictype/test-pr_test.c: New file.
27305 * tests/unictype/test-predicate-part1.h: New file.
27306 * tests/unictype/test-predicate-part2.h: New file.
27307 * tests/unictype/test-scripts.c: New file.
27308 * tests/unictype/test-sy_c_ident.c: New file.
27309 * tests/unictype/test-sy_java_ident.c: New file.
27311 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27313 * tests/unictype/test-categ_Cc.c: Likewise.
27314 * tests/unictype/test-categ_Cf.c: Likewise.
27315 * tests/unictype/test-categ_Cn.c: Likewise.
27316 * tests/unictype/test-categ_Co.c: Likewise.
27317 * tests/unictype/test-categ_Cs.c: Likewise.
27318 * tests/unictype/test-categ_L.c: Likewise.
27319 * tests/unictype/test-categ_Ll.c: Likewise.
27320 * tests/unictype/test-categ_Lm.c: Likewise.
27321 * tests/unictype/test-categ_Lo.c: Likewise.
27322 * tests/unictype/test-categ_Lt.c: Likewise.
27323 * tests/unictype/test-categ_Lu.c: Likewise.
27324 * tests/unictype/test-categ_M.c: Likewise.
27325 * tests/unictype/test-categ_Mc.c: Likewise.
27326 * tests/unictype/test-categ_Me.c: Likewise.
27327 * tests/unictype/test-categ_Mn.c: Likewise.
27328 * tests/unictype/test-categ_N.c: Likewise.
27329 * tests/unictype/test-categ_Nd.c: Likewise.
27330 * tests/unictype/test-categ_Nl.c: Likewise.
27331 * tests/unictype/test-categ_No.c: Likewise.
27332 * tests/unictype/test-categ_P.c: Likewise.
27333 * tests/unictype/test-categ_Pc.c: Likewise.
27334 * tests/unictype/test-categ_Pd.c: Likewise.
27335 * tests/unictype/test-categ_Pe.c: Likewise.
27336 * tests/unictype/test-categ_Pf.c: Likewise.
27337 * tests/unictype/test-categ_Pi.c: Likewise.
27338 * tests/unictype/test-categ_Po.c: Likewise.
27339 * tests/unictype/test-categ_Ps.c: Likewise.
27340 * tests/unictype/test-categ_S.c: Likewise.
27341 * tests/unictype/test-categ_Sc.c: Likewise.
27342 * tests/unictype/test-categ_Sk.c: Likewise.
27343 * tests/unictype/test-categ_Sm.c: Likewise.
27344 * tests/unictype/test-categ_So.c: Likewise.
27345 * tests/unictype/test-categ_Z.c: Likewise.
27346 * tests/unictype/test-categ_Zl.c: Likewise.
27347 * tests/unictype/test-categ_Zp.c: Likewise.
27348 * tests/unictype/test-categ_Zs.c: Likewise.
27349 * tests/unictype/test-ctype_alnum.c: Likewise.
27350 * tests/unictype/test-ctype_alpha.c: Likewise.
27351 * tests/unictype/test-ctype_blank.c: Likewise.
27352 * tests/unictype/test-ctype_cntrl.c: Likewise.
27353 * tests/unictype/test-ctype_digit.c: Likewise.
27354 * tests/unictype/test-ctype_graph.c: Likewise.
27355 * tests/unictype/test-ctype_lower.c: Likewise.
27356 * tests/unictype/test-ctype_print.c: Likewise.
27357 * tests/unictype/test-ctype_punct.c: Likewise.
27358 * tests/unictype/test-ctype_space.c: Likewise.
27359 * tests/unictype/test-ctype_upper.c: Likewise.
27360 * tests/unictype/test-ctype_xdigit.c: Likewise.
27361 * tests/unictype/test-decdigit.h: Likewise.
27362 * tests/unictype/test-digit.h: Likewise.
27363 * tests/unictype/test-numeric.h: Likewise.
27364 * tests/unictype/test-pr_alphabetic.c: Likewise.
27365 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27366 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27367 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27368 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27369 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27370 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27371 * tests/unictype/test-pr_bidi_control.c: Likewise.
27372 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27373 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27374 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27375 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27376 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27377 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27378 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27379 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27380 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27381 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27382 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27383 * tests/unictype/test-pr_combining.c: Likewise.
27384 * tests/unictype/test-pr_composite.c: Likewise.
27385 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27386 * tests/unictype/test-pr_dash.c: Likewise.
27387 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27388 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27389 * tests/unictype/test-pr_deprecated.c: Likewise.
27390 * tests/unictype/test-pr_diacritic.c: Likewise.
27391 * tests/unictype/test-pr_extender.c: Likewise.
27392 * tests/unictype/test-pr_format_control.c: Likewise.
27393 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27394 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27395 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27396 * tests/unictype/test-pr_hex_digit.c: Likewise.
27397 * tests/unictype/test-pr_hyphen.c: Likewise.
27398 * tests/unictype/test-pr_id_continue.c: Likewise.
27399 * tests/unictype/test-pr_id_start.c: Likewise.
27400 * tests/unictype/test-pr_ideographic.c: Likewise.
27401 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27402 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27403 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27404 * tests/unictype/test-pr_iso_control.c: Likewise.
27405 * tests/unictype/test-pr_join_control.c: Likewise.
27406 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27407 * tests/unictype/test-pr_line_separator.c: Likewise.
27408 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27409 * tests/unictype/test-pr_lowercase.c: Likewise.
27410 * tests/unictype/test-pr_math.c: Likewise.
27411 * tests/unictype/test-pr_non_break.c: Likewise.
27412 * tests/unictype/test-pr_not_a_character.c: Likewise.
27413 * tests/unictype/test-pr_numeric.c: Likewise.
27414 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27415 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27416 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27417 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27418 * tests/unictype/test-pr_other_id_start.c: Likewise.
27419 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27420 * tests/unictype/test-pr_other_math.c: Likewise.
27421 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27422 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27423 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27424 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27425 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27426 * tests/unictype/test-pr_private_use.c: Likewise.
27427 * tests/unictype/test-pr_punctuation.c: Likewise.
27428 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27429 * tests/unictype/test-pr_radical.c: Likewise.
27430 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27431 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27432 * tests/unictype/test-pr_space.c: Likewise.
27433 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27434 * tests/unictype/test-pr_titlecase.c: Likewise.
27435 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27436 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27437 * tests/unictype/test-pr_uppercase.c: Likewise.
27438 * tests/unictype/test-pr_variation_selector.c: Likewise.
27439 * tests/unictype/test-pr_white_space.c: Likewise.
27440 * tests/unictype/test-pr_xid_continue.c: Likewise.
27441 * tests/unictype/test-pr_xid_start.c: Likewise.
27442 * tests/unictype/test-pr_zero_width.c: Likewise.
27443 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27444 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27446 2007-11-12 Bruno Haible <bruno@clisp.org>
27448 Unicode character classification functions.
27449 * lib/unictype.h: New file.
27450 * modules/unictype/base: New file.
27451 * modules/unictype/category-L: New file.
27452 * modules/unictype/category-Lu: New file.
27453 * modules/unictype/category-Ll: New file.
27454 * modules/unictype/category-Lt: New file.
27455 * modules/unictype/category-Lm: New file.
27456 * modules/unictype/category-Lo: New file.
27457 * modules/unictype/category-M: New file.
27458 * modules/unictype/category-Mn: New file.
27459 * modules/unictype/category-Mc: New file.
27460 * modules/unictype/category-Me: New file.
27461 * modules/unictype/category-N: New file.
27462 * modules/unictype/category-Nd: New file.
27463 * modules/unictype/category-Nl: New file.
27464 * modules/unictype/category-No: New file.
27465 * modules/unictype/category-P: New file.
27466 * modules/unictype/category-Pc: New file.
27467 * modules/unictype/category-Pd: New file.
27468 * modules/unictype/category-Ps: New file.
27469 * modules/unictype/category-Pe: New file.
27470 * modules/unictype/category-Pi: New file.
27471 * modules/unictype/category-Pf: New file.
27472 * modules/unictype/category-Po: New file.
27473 * modules/unictype/category-S: New file.
27474 * modules/unictype/category-Sm: New file.
27475 * modules/unictype/category-Sc: New file.
27476 * modules/unictype/category-Sk: New file.
27477 * modules/unictype/category-So: New file.
27478 * modules/unictype/category-Z: New file.
27479 * modules/unictype/category-Zs: New file.
27480 * modules/unictype/category-Zl: New file.
27481 * modules/unictype/category-Zp: New file.
27482 * modules/unictype/category-C: New file.
27483 * modules/unictype/category-Cc: New file.
27484 * modules/unictype/category-Cf: New file.
27485 * modules/unictype/category-Cs: New file.
27486 * modules/unictype/category-Co: New file.
27487 * modules/unictype/category-Cn: New file.
27488 * modules/unictype/category-or: New file.
27489 * modules/unictype/category-of: New file.
27490 * modules/unictype/category-test: New file.
27491 * modules/unictype/category-test-withtable: New file.
27492 * modules/unictype/category-byname: New file.
27493 * modules/unictype/category-none: New file.
27494 * modules/unictype/category-and: New file.
27495 * modules/unictype/category-and-not: New file.
27496 * modules/unictype/category-name: New file.
27497 * modules/unictype/combining-class: New file.
27498 * modules/unictype/category-all: New file.
27499 * modules/unictype/bidicategory-all: New file.
27500 * modules/unictype/bidicategory-byname: New file.
27501 * modules/unictype/bidicategory-name: New file.
27502 * modules/unictype/bidicategory-of: New file.
27503 * modules/unictype/bidicategory-test: New file.
27504 * modules/unictype/decimal-digit: New file.
27505 * modules/unictype/digit: New file.
27506 * modules/unictype/numeric: New file.
27507 * modules/unictype/mirror: New file.
27508 * modules/unictype/property-white-space: New file.
27509 * modules/unictype/property-alphabetic: New file.
27510 * modules/unictype/property-other-alphabetic: New file.
27511 * modules/unictype/property-not-a-character: New file.
27512 * modules/unictype/property-default-ignorable-code-point: New file.
27513 * modules/unictype/property-other-default-ignorable-code-point: New
27515 * modules/unictype/property-deprecated: New file.
27516 * modules/unictype/property-logical-order-exception: New file.
27517 * modules/unictype/property-variation-selector: New file.
27518 * modules/unictype/property-private-use: New file.
27519 * modules/unictype/property-unassigned-code-value: New file.
27520 * modules/unictype/property-uppercase: New file.
27521 * modules/unictype/property-other-uppercase: New file.
27522 * modules/unictype/property-lowercase: New file.
27523 * modules/unictype/property-other-lowercase: New file.
27524 * modules/unictype/property-titlecase: New file.
27525 * modules/unictype/property-soft-dotted: New file.
27526 * modules/unictype/property-id-start: New file.
27527 * modules/unictype/property-other-id-start: New file.
27528 * modules/unictype/property-id-continue: New file.
27529 * modules/unictype/property-other-id-continue: New file.
27530 * modules/unictype/property-xid-start: New file.
27531 * modules/unictype/property-xid-continue: New file.
27532 * modules/unictype/property-pattern-white-space: New file.
27533 * modules/unictype/property-pattern-syntax: New file.
27534 * modules/unictype/property-join-control: New file.
27535 * modules/unictype/property-grapheme-base: New file.
27536 * modules/unictype/property-grapheme-extend: New file.
27537 * modules/unictype/property-other-grapheme-extend: New file.
27538 * modules/unictype/property-grapheme-link: New file.
27539 * modules/unictype/property-bidi-control: New file.
27540 * modules/unictype/property-bidi-left-to-right: New file.
27541 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27542 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27543 * modules/unictype/property-bidi-european-digit: New file.
27544 * modules/unictype/property-bidi-eur-num-separator: New file.
27545 * modules/unictype/property-bidi-eur-num-terminator: New file.
27546 * modules/unictype/property-bidi-arabic-digit: New file.
27547 * modules/unictype/property-bidi-common-separator: New file.
27548 * modules/unictype/property-bidi-block-separator: New file.
27549 * modules/unictype/property-bidi-segment-separator: New file.
27550 * modules/unictype/property-bidi-whitespace: New file.
27551 * modules/unictype/property-bidi-non-spacing-mark: New file.
27552 * modules/unictype/property-bidi-boundary-neutral: New file.
27553 * modules/unictype/property-bidi-pdf: New file.
27554 * modules/unictype/property-bidi-embedding-or-override: New file.
27555 * modules/unictype/property-bidi-other-neutral: New file.
27556 * modules/unictype/property-hex-digit: New file.
27557 * modules/unictype/property-ascii-hex-digit: New file.
27558 * modules/unictype/property-ideographic: New file.
27559 * modules/unictype/property-unified-ideograph: New file.
27560 * modules/unictype/property-radical: New file.
27561 * modules/unictype/property-ids-binary-operator: New file.
27562 * modules/unictype/property-ids-trinary-operator: New file.
27563 * modules/unictype/property-zero-width: New file.
27564 * modules/unictype/property-space: New file.
27565 * modules/unictype/property-non-break: New file.
27566 * modules/unictype/property-iso-control: New file.
27567 * modules/unictype/property-format-control: New file.
27568 * modules/unictype/property-dash: New file.
27569 * modules/unictype/property-hyphen: New file.
27570 * modules/unictype/property-punctuation: New file.
27571 * modules/unictype/property-line-separator: New file.
27572 * modules/unictype/property-paragraph-separator: New file.
27573 * modules/unictype/property-quotation-mark: New file.
27574 * modules/unictype/property-sentence-terminal: New file.
27575 * modules/unictype/property-terminal-punctuation: New file.
27576 * modules/unictype/property-currency-symbol: New file.
27577 * modules/unictype/property-math: New file.
27578 * modules/unictype/property-other-math: New file.
27579 * modules/unictype/property-paired-punctuation: New file.
27580 * modules/unictype/property-left-of-pair: New file.
27581 * modules/unictype/property-combining: New file.
27582 * modules/unictype/property-composite: New file.
27583 * modules/unictype/property-decimal-digit: New file.
27584 * modules/unictype/property-numeric: New file.
27585 * modules/unictype/property-diacritic: New file.
27586 * modules/unictype/property-extender: New file.
27587 * modules/unictype/property-ignorable-control: New file.
27588 * modules/unictype/property-test: New file.
27589 * modules/unictype/property-byname: New file.
27590 * modules/unictype/property-all: New file.
27591 * modules/unictype/scripts: New file.
27592 * modules/unictype/scripts-all: New file.
27593 * modules/unictype/block-of: New file.
27594 * modules/unictype/block-test: New file.
27595 * modules/unictype/block-list: New file.
27596 * modules/unictype/block-all: New file.
27597 * modules/unictype/syntax-c-whitespace: New file.
27598 * modules/unictype/syntax-java-whitespace: New file.
27599 * modules/unictype/syntax-c-ident: New file.
27600 * modules/unictype/syntax-java-ident: New file.
27601 * modules/unictype/ctype-alnum: New file.
27602 * modules/unictype/ctype-alpha: New file.
27603 * modules/unictype/ctype-cntrl: New file.
27604 * modules/unictype/ctype-digit: New file.
27605 * modules/unictype/ctype-graph: New file.
27606 * modules/unictype/ctype-lower: New file.
27607 * modules/unictype/ctype-print: New file.
27608 * modules/unictype/ctype-punct: New file.
27609 * modules/unictype/ctype-space: New file.
27610 * modules/unictype/ctype-upper: New file.
27611 * modules/unictype/ctype-xdigit: New file.
27612 * modules/unictype/ctype-blank: New file.
27613 * lib/unictype/bidi_byname.c: New file.
27614 * lib/unictype/bidi_name.c: New file.
27615 * lib/unictype/bidi_of.c: New file.
27616 * lib/unictype/bidi_test.c: New file.
27617 * lib/unictype/bitmap.h: New file.
27618 * lib/unictype/block_test.c: New file.
27619 * lib/unictype/blocks.c: New file.
27620 * lib/unictype/categ_C.c: New file.
27621 * lib/unictype/categ_Cc.c: New file.
27622 * lib/unictype/categ_Cf.c: New file.
27623 * lib/unictype/categ_Cn.c: New file.
27624 * lib/unictype/categ_Co.c: New file.
27625 * lib/unictype/categ_Cs.c: New file.
27626 * lib/unictype/categ_L.c: New file.
27627 * lib/unictype/categ_Ll.c: New file.
27628 * lib/unictype/categ_Lm.c: New file.
27629 * lib/unictype/categ_Lo.c: New file.
27630 * lib/unictype/categ_Lt.c: New file.
27631 * lib/unictype/categ_Lu.c: New file.
27632 * lib/unictype/categ_M.c: New file.
27633 * lib/unictype/categ_Mc.c: New file.
27634 * lib/unictype/categ_Me.c: New file.
27635 * lib/unictype/categ_Mn.c: New file.
27636 * lib/unictype/categ_N.c: New file.
27637 * lib/unictype/categ_Nd.c: New file.
27638 * lib/unictype/categ_Nl.c: New file.
27639 * lib/unictype/categ_No.c: New file.
27640 * lib/unictype/categ_P.c: New file.
27641 * lib/unictype/categ_Pc.c: New file.
27642 * lib/unictype/categ_Pd.c: New file.
27643 * lib/unictype/categ_Pe.c: New file.
27644 * lib/unictype/categ_Pf.c: New file.
27645 * lib/unictype/categ_Pi.c: New file.
27646 * lib/unictype/categ_Po.c: New file.
27647 * lib/unictype/categ_Ps.c: New file.
27648 * lib/unictype/categ_S.c: New file.
27649 * lib/unictype/categ_Sc.c: New file.
27650 * lib/unictype/categ_Sk.c: New file.
27651 * lib/unictype/categ_Sm.c: New file.
27652 * lib/unictype/categ_So.c: New file.
27653 * lib/unictype/categ_Z.c: New file.
27654 * lib/unictype/categ_Zl.c: New file.
27655 * lib/unictype/categ_Zp.c: New file.
27656 * lib/unictype/categ_Zs.c: New file.
27657 * lib/unictype/categ_and.c: New file.
27658 * lib/unictype/categ_and_not.c: New file.
27659 * lib/unictype/categ_byname.c: New file.
27660 * lib/unictype/categ_name.c: New file.
27661 * lib/unictype/categ_none.c: New file.
27662 * lib/unictype/categ_of.c: New file.
27663 * lib/unictype/categ_or.c: New file.
27664 * lib/unictype/categ_test.c: New file.
27665 * lib/unictype/combining.c: New file.
27666 * lib/unictype/ctype_alnum.c: New file.
27667 * lib/unictype/ctype_alpha.c: New file.
27668 * lib/unictype/ctype_blank.c: New file.
27669 * lib/unictype/ctype_cntrl.c: New file.
27670 * lib/unictype/ctype_digit.c: New file.
27671 * lib/unictype/ctype_graph.c: New file.
27672 * lib/unictype/ctype_lower.c: New file.
27673 * lib/unictype/ctype_print.c: New file.
27674 * lib/unictype/ctype_punct.c: New file.
27675 * lib/unictype/ctype_space.c: New file.
27676 * lib/unictype/ctype_upper.c: New file.
27677 * lib/unictype/ctype_xdigit.c: New file.
27678 * lib/unictype/decdigit.c: New file.
27679 * lib/unictype/digit.c: New file.
27680 * lib/unictype/identsyntaxmap.h: New file.
27681 * lib/unictype/mirror.c: New file.
27682 * lib/unictype/numeric.c: New file.
27683 * lib/unictype/pr_alphabetic.c: New file.
27684 * lib/unictype/pr_ascii_hex_digit.c: New file.
27685 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27686 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27687 * lib/unictype/pr_bidi_block_separator.c: New file.
27688 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27689 * lib/unictype/pr_bidi_common_separator.c: New file.
27690 * lib/unictype/pr_bidi_control.c: New file.
27691 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27692 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27693 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27694 * lib/unictype/pr_bidi_european_digit.c: New file.
27695 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27696 * lib/unictype/pr_bidi_left_to_right.c: New file.
27697 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27698 * lib/unictype/pr_bidi_other_neutral.c: New file.
27699 * lib/unictype/pr_bidi_pdf.c: New file.
27700 * lib/unictype/pr_bidi_segment_separator.c: New file.
27701 * lib/unictype/pr_bidi_whitespace.c: New file.
27702 * lib/unictype/pr_byname.c: New file.
27703 * lib/unictype/pr_byname.gperf: New file.
27704 * lib/unictype/pr_combining.c: New file.
27705 * lib/unictype/pr_composite.c: New file.
27706 * lib/unictype/pr_currency_symbol.c: New file.
27707 * lib/unictype/pr_dash.c: New file.
27708 * lib/unictype/pr_decimal_digit.c: New file.
27709 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27710 * lib/unictype/pr_deprecated.c: New file.
27711 * lib/unictype/pr_diacritic.c: New file.
27712 * lib/unictype/pr_extender.c: New file.
27713 * lib/unictype/pr_format_control.c: New file.
27714 * lib/unictype/pr_grapheme_base.c: New file.
27715 * lib/unictype/pr_grapheme_extend.c: New file.
27716 * lib/unictype/pr_grapheme_link.c: New file.
27717 * lib/unictype/pr_hex_digit.c: New file.
27718 * lib/unictype/pr_hyphen.c: New file.
27719 * lib/unictype/pr_id_continue.c: New file.
27720 * lib/unictype/pr_id_start.c: New file.
27721 * lib/unictype/pr_ideographic.c: New file.
27722 * lib/unictype/pr_ids_binary_operator.c: New file.
27723 * lib/unictype/pr_ids_trinary_operator.c: New file.
27724 * lib/unictype/pr_ignorable_control.c: New file.
27725 * lib/unictype/pr_iso_control.c: New file.
27726 * lib/unictype/pr_join_control.c: New file.
27727 * lib/unictype/pr_left_of_pair.c: New file.
27728 * lib/unictype/pr_line_separator.c: New file.
27729 * lib/unictype/pr_logical_order_exception.c: New file.
27730 * lib/unictype/pr_lowercase.c: New file.
27731 * lib/unictype/pr_math.c: New file.
27732 * lib/unictype/pr_non_break.c: New file.
27733 * lib/unictype/pr_not_a_character.c: New file.
27734 * lib/unictype/pr_numeric.c: New file.
27735 * lib/unictype/pr_other_alphabetic.c: New file.
27736 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27737 * lib/unictype/pr_other_grapheme_extend.c: New file.
27738 * lib/unictype/pr_other_id_continue.c: New file.
27739 * lib/unictype/pr_other_id_start.c: New file.
27740 * lib/unictype/pr_other_lowercase.c: New file.
27741 * lib/unictype/pr_other_math.c: New file.
27742 * lib/unictype/pr_other_uppercase.c: New file.
27743 * lib/unictype/pr_paired_punctuation.c: New file.
27744 * lib/unictype/pr_paragraph_separator.c: New file.
27745 * lib/unictype/pr_pattern_syntax.c: New file.
27746 * lib/unictype/pr_pattern_white_space.c: New file.
27747 * lib/unictype/pr_private_use.c: New file.
27748 * lib/unictype/pr_punctuation.c: New file.
27749 * lib/unictype/pr_quotation_mark.c: New file.
27750 * lib/unictype/pr_radical.c: New file.
27751 * lib/unictype/pr_sentence_terminal.c: New file.
27752 * lib/unictype/pr_soft_dotted.c: New file.
27753 * lib/unictype/pr_space.c: New file.
27754 * lib/unictype/pr_terminal_punctuation.c: New file.
27755 * lib/unictype/pr_test.c: New file.
27756 * lib/unictype/pr_titlecase.c: New file.
27757 * lib/unictype/pr_unassigned_code_value.c: New file.
27758 * lib/unictype/pr_unified_ideograph.c: New file.
27759 * lib/unictype/pr_uppercase.c: New file.
27760 * lib/unictype/pr_variation_selector.c: New file.
27761 * lib/unictype/pr_white_space.c: New file.
27762 * lib/unictype/pr_xid_continue.c: New file.
27763 * lib/unictype/pr_xid_start.c: New file.
27764 * lib/unictype/pr_zero_width.c: New file.
27765 * lib/unictype/scripts.c: New file.
27766 * lib/unictype/sy_c_ident.c: New file.
27767 * lib/unictype/sy_c_whitespace.c: New file.
27768 * lib/unictype/sy_java_ident.c: New file.
27769 * lib/unictype/sy_java_whitespace.c: New file.
27771 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27773 * lib/unictype/blocks.h: Likewise.
27774 * lib/unictype/categ_C.h: Likewise.
27775 * lib/unictype/categ_Cc.h: Likewise.
27776 * lib/unictype/categ_Cf.h: Likewise.
27777 * lib/unictype/categ_Cn.h: Likewise.
27778 * lib/unictype/categ_Co.h: Likewise.
27779 * lib/unictype/categ_Cs.h: Likewise.
27780 * lib/unictype/categ_L.h: Likewise.
27781 * lib/unictype/categ_Ll.h: Likewise.
27782 * lib/unictype/categ_Lm.h: Likewise.
27783 * lib/unictype/categ_Lo.h: Likewise.
27784 * lib/unictype/categ_Lt.h: Likewise.
27785 * lib/unictype/categ_Lu.h: Likewise.
27786 * lib/unictype/categ_M.h: Likewise.
27787 * lib/unictype/categ_Mc.h: Likewise.
27788 * lib/unictype/categ_Me.h: Likewise.
27789 * lib/unictype/categ_Mn.h: Likewise.
27790 * lib/unictype/categ_N.h: Likewise.
27791 * lib/unictype/categ_Nd.h: Likewise.
27792 * lib/unictype/categ_Nl.h: Likewise.
27793 * lib/unictype/categ_No.h: Likewise.
27794 * lib/unictype/categ_P.h: Likewise.
27795 * lib/unictype/categ_Pc.h: Likewise.
27796 * lib/unictype/categ_Pd.h: Likewise.
27797 * lib/unictype/categ_Pe.h: Likewise.
27798 * lib/unictype/categ_Pf.h: Likewise.
27799 * lib/unictype/categ_Pi.h: Likewise.
27800 * lib/unictype/categ_Po.h: Likewise.
27801 * lib/unictype/categ_Ps.h: Likewise.
27802 * lib/unictype/categ_S.h: Likewise.
27803 * lib/unictype/categ_Sc.h: Likewise.
27804 * lib/unictype/categ_Sk.h: Likewise.
27805 * lib/unictype/categ_Sm.h: Likewise.
27806 * lib/unictype/categ_So.h: Likewise.
27807 * lib/unictype/categ_Z.h: Likewise.
27808 * lib/unictype/categ_Zl.h: Likewise.
27809 * lib/unictype/categ_Zp.h: Likewise.
27810 * lib/unictype/categ_Zs.h: Likewise.
27811 * lib/unictype/categ_of.h: Likewise.
27812 * lib/unictype/combining.h: Likewise.
27813 * lib/unictype/ctype_alnum.h: Likewise.
27814 * lib/unictype/ctype_alpha.h: Likewise.
27815 * lib/unictype/ctype_blank.h: Likewise.
27816 * lib/unictype/ctype_cntrl.h: Likewise.
27817 * lib/unictype/ctype_digit.h: Likewise.
27818 * lib/unictype/ctype_graph.h: Likewise.
27819 * lib/unictype/ctype_lower.h: Likewise.
27820 * lib/unictype/ctype_print.h: Likewise.
27821 * lib/unictype/ctype_punct.h: Likewise.
27822 * lib/unictype/ctype_space.h: Likewise.
27823 * lib/unictype/ctype_upper.h: Likewise.
27824 * lib/unictype/ctype_xdigit.h: Likewise.
27825 * lib/unictype/decdigit.h: Likewise.
27826 * lib/unictype/digit.h: Likewise.
27827 * lib/unictype/mirror.h: Likewise.
27828 * lib/unictype/numeric.h: Likewise.
27829 * lib/unictype/pr_alphabetic.h: Likewise.
27830 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27831 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27832 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27833 * lib/unictype/pr_bidi_block_separator.h: Likewise.
27834 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27835 * lib/unictype/pr_bidi_common_separator.h: Likewise.
27836 * lib/unictype/pr_bidi_control.h: Likewise.
27837 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27838 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27839 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27840 * lib/unictype/pr_bidi_european_digit.h: Likewise.
27841 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27842 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27843 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27844 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27845 * lib/unictype/pr_bidi_pdf.h: Likewise.
27846 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27847 * lib/unictype/pr_bidi_whitespace.h: Likewise.
27848 * lib/unictype/pr_combining.h: Likewise.
27849 * lib/unictype/pr_composite.h: Likewise.
27850 * lib/unictype/pr_currency_symbol.h: Likewise.
27851 * lib/unictype/pr_dash.h: Likewise.
27852 * lib/unictype/pr_decimal_digit.h: Likewise.
27853 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27854 * lib/unictype/pr_deprecated.h: Likewise.
27855 * lib/unictype/pr_diacritic.h: Likewise.
27856 * lib/unictype/pr_extender.h: Likewise.
27857 * lib/unictype/pr_format_control.h: Likewise.
27858 * lib/unictype/pr_grapheme_base.h: Likewise.
27859 * lib/unictype/pr_grapheme_extend.h: Likewise.
27860 * lib/unictype/pr_grapheme_link.h: Likewise.
27861 * lib/unictype/pr_hex_digit.h: Likewise.
27862 * lib/unictype/pr_hyphen.h: Likewise.
27863 * lib/unictype/pr_id_continue.h: Likewise.
27864 * lib/unictype/pr_id_start.h: Likewise.
27865 * lib/unictype/pr_ideographic.h: Likewise.
27866 * lib/unictype/pr_ids_binary_operator.h: Likewise.
27867 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27868 * lib/unictype/pr_ignorable_control.h: Likewise.
27869 * lib/unictype/pr_iso_control.h: Likewise.
27870 * lib/unictype/pr_join_control.h: Likewise.
27871 * lib/unictype/pr_left_of_pair.h: Likewise.
27872 * lib/unictype/pr_line_separator.h: Likewise.
27873 * lib/unictype/pr_logical_order_exception.h: Likewise.
27874 * lib/unictype/pr_lowercase.h: Likewise.
27875 * lib/unictype/pr_math.h: Likewise.
27876 * lib/unictype/pr_non_break.h: Likewise.
27877 * lib/unictype/pr_not_a_character.h: Likewise.
27878 * lib/unictype/pr_numeric.h: Likewise.
27879 * lib/unictype/pr_other_alphabetic.h: Likewise.
27880 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27881 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27882 * lib/unictype/pr_other_id_continue.h: Likewise.
27883 * lib/unictype/pr_other_id_start.h: Likewise.
27884 * lib/unictype/pr_other_lowercase.h: Likewise.
27885 * lib/unictype/pr_other_math.h: Likewise.
27886 * lib/unictype/pr_other_uppercase.h: Likewise.
27887 * lib/unictype/pr_paired_punctuation.h: Likewise.
27888 * lib/unictype/pr_paragraph_separator.h: Likewise.
27889 * lib/unictype/pr_pattern_syntax.h: Likewise.
27890 * lib/unictype/pr_pattern_white_space.h: Likewise.
27891 * lib/unictype/pr_private_use.h: Likewise.
27892 * lib/unictype/pr_punctuation.h: Likewise.
27893 * lib/unictype/pr_quotation_mark.h: Likewise.
27894 * lib/unictype/pr_radical.h: Likewise.
27895 * lib/unictype/pr_sentence_terminal.h: Likewise.
27896 * lib/unictype/pr_soft_dotted.h: Likewise.
27897 * lib/unictype/pr_space.h: Likewise.
27898 * lib/unictype/pr_terminal_punctuation.h: Likewise.
27899 * lib/unictype/pr_titlecase.h: Likewise.
27900 * lib/unictype/pr_unassigned_code_value.h: Likewise.
27901 * lib/unictype/pr_unified_ideograph.h: Likewise.
27902 * lib/unictype/pr_uppercase.h: Likewise.
27903 * lib/unictype/pr_variation_selector.h: Likewise.
27904 * lib/unictype/pr_white_space.h: Likewise.
27905 * lib/unictype/pr_xid_continue.h: Likewise.
27906 * lib/unictype/pr_xid_start.h: Likewise.
27907 * lib/unictype/pr_zero_width.h: Likewise.
27908 * lib/unictype/scripts.h: Likewise.
27909 * lib/unictype/scripts_byname.gperf: Likewise.
27910 * lib/unictype/sy_c_ident.h: Likewise.
27911 * lib/unictype/sy_c_whitespace.h: Likewise.
27912 * lib/unictype/sy_java_ident.h: Likewise.
27913 * lib/unictype/sy_java_whitespace.h: Likewise.
27915 * lib/unictype/Makefile: New file.
27916 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27918 * lib/unictype/3level.h: New file, copied from glibc.
27919 * lib/unictype/3levelbit.h: New file.
27921 2007-11-11 Bruno Haible <bruno@clisp.org>
27923 * modules/gperf: New file.
27924 * modules/iconv_open (Depends-on): Add it.
27925 (Makefile.am): Remove the GPERF definition.
27927 2007-11-11 Bruno Haible <bruno@clisp.org>
27929 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27930 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27932 2007-11-11 Bruno Haible <bruno@clisp.org>
27934 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27935 (usage): Remove function.
27937 2007-11-11 Bruno Haible <bruno@clisp.org>
27939 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27940 gl_FUNC_CEILF_LIBS.
27941 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27943 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27944 gl_FUNC_CEILL_LIBS.
27945 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27946 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27947 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27949 2007-11-11 Bruno Haible <bruno@clisp.org>
27951 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27952 roundf were declared but do not exist on functions.
27953 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27954 roundl were declared but do not exist on functions.
27955 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27956 HAVE_FLOORL_AND_CEILL, respectively.
27957 Needed for Sun C on Solaris 10.
27959 2007-11-11 Bruno Haible <bruno@clisp.org>
27961 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27962 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27963 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27964 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27965 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27966 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27967 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27969 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27970 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27971 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27972 of HAVE_DECL_ROUND*.
27973 * modules/math (Makefile.am): Update.
27975 2007-11-10 Bruno Haible <bruno@clisp.org>
27977 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27978 ptrdiff_t as m4/intl.m4.
27980 2007-11-10 Jim Meyering <meyering@redhat.com>
27982 Avoid link failure for the argmatch test.
27983 * tests/test-argmatch.c (usage): Define function to avoid a link
27984 failure: argmatch_die requires a usage function.
27986 2007-11-09 Bruno Haible <bruno@clisp.org>
27988 * doc/functions/snprintf.texi: Mention BeOS deficiency.
27989 * doc/functions/vsnprintf.texi: Likewise.
27990 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27991 with a size argument < 2.
27993 2007-11-09 Bruno Haible <bruno@clisp.org>
27995 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27996 buffer. Fixes an inefficiency introduced on 2007-11-03.
27998 2007-11-09 Bruno Haible <bruno@clisp.org>
28000 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28001 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28003 2007-11-08 Jim Meyering <meyering@redhat.com>
28005 Change cache variable name prefix "jm_" to "gl_" everywhere.
28006 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28007 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28008 * m4/uptime.m4: s/gl_/jm_/
28010 2007-11-07 Bruno Haible <bruno@clisp.org>
28012 Update to GNU gettext 0.17.
28013 * m4/intl.m4: Update to GNU gettext 0.17.
28014 * m4/po.m4: Likewise.
28015 * modules/gettext (Files): Remove m4/ulonglong.m4.
28016 (configure.ac): Require gettext infrastructure from version 0.17.
28018 2007-11-06 Bruno Haible <bruno@clisp.org>
28020 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28021 symbolic values are not defined in a public header.
28022 * lib/freadable.c (freadable) [QNX]: Likewise.
28023 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28024 * lib/freading.c (freading) [QNX]: Likewise.
28025 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28026 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28027 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28028 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28029 Reported by Alain Magloire.
28031 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28033 2007-11-05 Bruno Haible <bruno@clisp.org>
28035 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28036 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28037 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28038 Reported by Eric Blake.
28040 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28041 Bruno Haible <bruno@clisp.org>
28043 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28044 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28045 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28046 (malloc): Undefine also before including <stdlib.h>.
28047 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28048 Needed on OSF/1 4.0.
28050 2007-11-05 Jim Meyering <meyering@redhat.com>
28052 git-version-gen: sync from coreutils.
28053 * build-aux/git-version-gen: Add comments.
28054 Change the first '-' to '.' in the snapshot version string,
28055 e.g., 6.9-377-08144 -> 6.9.377-08144
28056 Remove first parameter.
28057 Don't declare a version "-dirty" merely because a time
28060 2007-11-04 Bruno Haible <bruno@clisp.org>
28062 * lib/lock.h: Protect all macro definitions containing an 'if'
28063 statement through a "do { ... } while (0)".
28064 * lib/tls.h: Likewise.
28066 2007-11-04 Bruno Haible <bruno@clisp.org>
28068 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28070 2007-11-04 Bruno Haible <bruno@clisp.org>
28072 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28073 * modules/fprintf-posix (Depends-on): Add nocrash.
28074 * modules/snprintf-posix (Depends-on): Likewise.
28075 * modules/sprintf-posix (Depends-on): Likewise.
28076 * modules/vasnprintf-posix (Depends-on): Likewise.
28077 * modules/vasprintf-posix (Depends-on): Likewise.
28078 * modules/vfprintf-posix (Depends-on): Likewise.
28079 * modules/vsnprintf-posix (Depends-on): Likewise.
28080 * modules/vsprintf-posix (Depends-on): Likewise.
28081 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28082 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28083 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28084 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28085 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28086 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28087 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28089 2007-11-04 Bruno Haible <bruno@clisp.org>
28091 * modules/nocrash: New file.
28092 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28093 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28095 2007-11-04 Bruno Haible <bruno@clisp.org>
28097 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28098 precision handling.
28099 * tests/test-vasprintf-posix.c (test_function): Likewise.
28100 * tests/test-snprintf-posix.h (test_function): Likewise.
28101 * tests/test-sprintf-posix.h (test_function): Likewise.
28103 Fix *printf behaviour for large precisions on mingw and BeOS.
28104 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28105 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28106 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28107 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28108 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28109 gl_PRINTF_PRECISION and test its result. Invoke
28110 gl_PREREQ_VASNPRINTF_PRECISION.
28111 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28112 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28113 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28114 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28115 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28116 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28117 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28118 * doc/functions/fprintf.texi: Update.
28119 * doc/functions/printf.texi: Update.
28120 * doc/functions/snprintf.texi: Update.
28121 * doc/functions/sprintf.texi: Update.
28122 * doc/functions/vfprintf.texi: Update.
28123 * doc/functions/vprintf.texi: Update.
28124 * doc/functions/vsnprintf.texi: Update.
28125 * doc/functions/vsprintf.texi: Update.
28127 2007-11-04 Bruno Haible <bruno@clisp.org>
28129 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28131 2007-11-04 Bruno Haible <bruno@clisp.org>
28133 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28134 Reported by Sylvain Beucler <beuc@gnu.org>.
28136 2007-11-03 Bruno Haible <bruno@clisp.org>
28138 * tests/test-fprintf-posix2.sh: New file.
28139 * tests/test-fprintf-posix2.c: New file.
28140 * modules/fprintf-posix-tests (Files): Add them.
28141 (TESTS): Add test-fprintf-posix2.sh.
28142 (configure.ac): Check for getrlimit and setrlimit.
28143 (check_PROGRAMS): Add test-fprintf-posix2.
28145 * tests/test-printf-posix2.sh: New file.
28146 * tests/test-printf-posix2.c: New file.
28147 * modules/printf-posix-tests (Files): Add them.
28148 (TESTS): Add test-printf-posix2.sh.
28149 (configure.ac): Check for getrlimit and setrlimit.
28150 (check_PROGRAMS): Add test-printf-posix2.
28152 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28153 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28154 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28155 (decode_double): New function, copied from decode_long_double.
28156 (scale10_round_decimal_decoded): New function, extracted from
28157 scale10_round_decimal_long_double.
28158 (scale10_round_decimal_long_double): Use it.
28159 (scale10_round_decimal_double): New function.
28160 (floorlog10): New function.
28161 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28162 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28163 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28164 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28165 gl_PRINTF_ENOMEM and test its result. Invoke
28166 gl_PREREQ_VASNPRINTF_ENOMEM.
28167 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28168 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28169 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28170 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28171 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28172 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28173 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28174 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28175 * modules/snprintf-posix (Depends-on): Likewise.
28176 * modules/sprintf-posix (Depends-on): Likewise.
28177 * modules/vasnprintf-posix (Depends-on): Likewise.
28178 * modules/vasprintf-posix (Depends-on): Likewise.
28179 * modules/vfprintf-posix (Depends-on): Likewise.
28180 * modules/vsnprintf-posix (Depends-on): Likewise.
28181 * modules/vsprintf-posix (Depends-on): Likewise.
28182 * doc/functions/fprintf.texi: Update.
28183 * doc/functions/printf.texi: Update.
28184 * doc/functions/snprintf.texi: Update.
28185 * doc/functions/sprintf.texi: Update.
28186 * doc/functions/vfprintf.texi: Update.
28187 * doc/functions/vprintf.texi: Update.
28188 * doc/functions/vsnprintf.texi: Update.
28189 * doc/functions/vsprintf.texi: Update.
28191 2007-11-03 Bruno Haible <bruno@clisp.org>
28193 * modules/frexp-nolibm-tests: New file.
28195 * modules/frexp-nolibm: New file.
28196 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28198 2007-11-03 Bruno Haible <bruno@clisp.org>
28200 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28201 value is C99 compliant.
28202 Needed for OSF/1 5.1.
28204 2007-11-03 Bruno Haible <bruno@clisp.org>
28206 Fix out-of-memory handling of vasnprintf.
28207 * lib/printf-parse.c: Include <errno.h>.
28208 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28209 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28212 2007-11-02 Eric Blake <ebb9@byu.net>
28214 Fix tests on cygwin.
28215 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28217 2007-11-01 Bruno Haible <bruno@clisp.org>
28219 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28221 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28222 needed for POSIX compatibility.
28224 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28226 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28227 for compatibility with GNU.
28229 2007-11-01 Bruno Haible <bruno@clisp.org>
28231 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28232 (putenv): Renamed from rpl_putenv. Change argument type from
28233 'const char *' to 'char *'.
28234 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28235 of defining putenv in config.h, just set REPLACE_PUTENV.
28236 * modules/putenv (Depends-on): Add stdlib.
28237 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28238 (Include): Use <stdlib.h>.
28239 * lib/stdlib.in.h (putenv): New declaration.
28240 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28242 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28244 Needed for MacOS X 10.5.0.
28245 Reported by Peter O'Gorman <peter@pogma.com>.
28247 2007-11-01 Jim Meyering <meyering@redhat.com>
28249 Treat an empty date string exactly like "0".
28250 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28251 if the remaining date string (to be parsed) is empty, use "0".
28252 Reported by Mischa Molhoek and discussed in this thread:
28253 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28255 2007-10-31 Bruno Haible <bruno@clisp.org>
28257 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28258 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28259 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28260 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28261 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28262 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28264 2007-10-31 Bruno Haible <bruno@clisp.org>
28266 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28267 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28268 (AC_TYPE_LONG_LONG_INT): Use it.
28269 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28271 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28273 * modules/stdint (Files): Remove m4/ulonglong.m4.
28274 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28276 * modules/strtoumax (Files): Likewise.
28278 2007-10-30 Bruno Haible <bruno@clisp.org>
28280 * modules/xvasprintf-posix: New file.
28281 Suggested by Eric Blake.
28283 2007-10-30 Bruno Haible <bruno@clisp.org>
28285 * modules/xprintf-posix-tests: New file.
28286 * tests/test-xprintf-posix.sh: New file.
28287 * tests/test-xprintf-posix.c: New file.
28288 * tests/test-xfprintf-posix.c: New file.
28290 * modules/xprintf-posix: New file.
28292 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28294 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28295 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28296 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28298 2007-10-29 Bruno Haible <bruno@clisp.org>
28300 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28301 contain the special marker '_cv_'.
28302 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28303 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28304 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28305 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28306 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28307 Reported by Ralf Wildenhues.
28309 2007-10-29 Bruno Haible <bruno@clisp.org>
28311 * gnulib-tool (func_import): When --lgpl is not specified, set
28312 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28314 Reported by Simon Josefsson.
28316 2007-10-28 Bruno Haible <bruno@clisp.org>
28318 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28319 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28320 HAVE_DECL_ISFINITE.
28321 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28322 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28323 HAVE_DECL_ISFINITE.
28325 2007-10-28 Bruno Haible <bruno@clisp.org>
28327 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28328 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28330 2007-10-28 Bruno Haible <bruno@clisp.org>
28332 Fix link errors with Sun C 5.0 on Solaris 10.
28333 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28334 function is declared but not present in the compiler's libm.
28335 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28336 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28337 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28338 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28339 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28340 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28341 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28342 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28343 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28344 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28345 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28348 2007-10-28 Bruno Haible <bruno@clisp.org>
28350 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28351 gl_FUNC_FLOORL. Cache the result.
28352 (gl_FUNC_FLOORL): Use it.
28353 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28354 gl_FUNC_CEILL. Cache the result.
28355 (gl_FUNC_CEILL): Use it.
28357 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28358 gl_FUNC_FLOOR. Cache the result.
28359 (gl_FUNC_FLOOR): Use it.
28360 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28361 gl_FUNC_CEIL. Cache the result.
28362 (gl_FUNC_CEIL): Use it.
28364 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28365 gl_FUNC_FLOORF. Cache the result.
28366 (gl_FUNC_FLOORF): Use it.
28367 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28368 gl_FUNC_CEILF. Cache the result.
28369 (gl_FUNC_CEILF): Use it.
28371 2007-10-28 Bruno Haible <bruno@clisp.org>
28373 * gnulib-tool: Allow specifying the LGPL version number through
28374 --lgpl=2 or --lgpl=3.
28375 (func_usage): Document --lgpl with argument.
28376 Handle --lgpl=... arguments.
28377 (func_import): Recognize also gl_LGPL calls with an argument. When
28378 --lgpl=2 is used and the module's license is just LGPL, report an
28379 error. Set sed_transform_lib_file according to the lgpl variable. In
28380 the generated files, use --lgpl or gl_LGPL invocations with argument,
28382 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28384 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28387 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28388 Bruno Haible <bruno@clisp.org>
28390 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28391 (u16_uctomb_aux): Likewise.
28392 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28394 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28396 2007-10-28 Bruno Haible <bruno@clisp.org>
28398 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28399 Invoke AM_GETTEXT_OPTION if it exists.
28400 * modules/vasprintf: Likewise.
28401 * modules/verror: Likewise.
28402 * modules/xprintf: Likewise.
28403 * modules/xvasprintf: Likewise.
28405 2007-10-27 Ben Pfaff <blp@gnu.org>
28407 * lib/math.in.h: Define isfinite macro and prototypes for
28408 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28410 * m4/math_h.m4: New substitutions for isfinite module.
28411 * lib/isfinite.c: New file.
28412 * m4/isfinite.m4: New file.
28413 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28414 * modules/isfinite: New file.
28415 * modules/isfinite-tests: New file.
28416 * tests/tests-isfinite.c: New file.
28417 * doc/functions/isfinite.texi: Mention isfinite module.
28418 * MODULES.html.sh: Mention new module.
28420 2007-10-27 Ben Pfaff <blp@gnu.org>
28422 Ralf Wildenhues reported that Tru64 4.0D declares the round
28423 functions but does not have definitions.
28424 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28425 cannot be found in any library, set the output variable to
28426 "missing" instead of "".
28427 * m4/round.m4: Also use our substitute if we cannot find round in
28428 any library, even if it is declared.
28429 * m4/roundf.m4: Likewise for roundf.
28430 * m4/roundl.m4: Likewise for roundl.
28431 * lib/math.in.h: Undefine roundf, round, roundl before defining
28432 their replacements, to allow for hypothetical systems where these
28433 may be defined as macros but not available in libraries.
28435 2007-10-27 Bruno Haible <bruno@clisp.org>
28437 * doc/gnulib.texi: Invoke @firstparagraphindent.
28438 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28440 (Source changes): New section.
28442 2007-10-26 Bruno Haible <bruno@clisp.org>
28444 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28445 borrowed from autoconf.
28447 2007-10-26 Bruno Haible <bruno@clisp.org>
28449 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28450 strerror returned the empty string. Needed on HP-UX 11.00.
28452 2007-10-24 Micah Cowan <micah@cowan.name>
28454 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28455 * build-aux/bootstrap: Remove support for now-unnecessary option,
28456 --cvs-user, and envvars CVS_USER, CVS_RSH.
28458 2007-10-24 Jim Meyering <meyering@redhat.com>
28460 Avoid diagnostics from sha1sum when there is no cached checksum.
28461 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28462 if the po.s1 file hasn't been created yet.
28464 * build-aux/bootstrap: Sync from coreutils:
28465 2007-10-24 Jim Meyering <meyering@redhat.com>
28466 Get gnulib from the git repository, not from an obsolete cvs one.
28467 * build-aux/bootstrap: Suggestion from Micah Cowan.
28468 2007-10-04 Jim Meyering <jim@meyering.net>
28469 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28470 (update_po_files): Work also when there are no .po files in po/.
28472 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28474 * README: Append ".git" to git and cg examples.
28475 Problem reported by Benoit Sigoure.
28477 2007-10-23 Micah Cowan <micah@cowan.name>
28479 * users.txt: Add wget.
28481 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28483 Fix linking of some unistdio tests on FreeBSD.
28484 * modules/unistdio/u16-vsnprintf-tests
28485 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28486 * modules/unistdio/u16-vsprintf-tests
28487 (test_u16_vsnprintf1_LDADD): Likewise.
28488 * modules/unistdio/u32-vsnprintf-tests
28489 (test_u32_vsnprintf1_LDADD): Likewise.
28490 * modules/unistdio/u32-vsprintf-tests
28491 (test_u32_vsprintf1_LDADD): Likewise.
28492 * modules/unistdio/u8-vsnprintf-tests
28493 (test_u8_vsnprintf1_LDADD): Likewise.
28494 * modules/unistdio/u8-vsprintf-tests
28495 (test_u8_vsprintf1_LDADD): Likewise.
28496 * modules/unistdio/ulc-vsnprintf-tests
28497 (test_ulc_vsnprintf1_LDADD): Likewise.
28498 * modules/unistdio/ulc-vsprintf-tests
28499 (test_ulc_vsprintf1_LDADD): Likewise.
28501 Fix linking of some uniconv tests on FreeBSD.
28502 * modules/uniconv/u16-conv-from-enc-tests
28503 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28504 * modules/uniconv/u16-conv-to-enc-tests
28505 (test_u16_conv_to_enc_LDADD): Likewise.
28506 * modules/uniconv/u16-strconv-from-enc-tests
28507 (test_u16_strconv_from_enc_LDADD): Likewise.
28508 * modules/uniconv/u16-strconv-to-enc-tests
28509 (test_u16_strconv_to_enc_LDADD): Likewise.
28510 * modules/uniconv/u32-conv-from-enc-tests
28511 (test_u32_conv_from_enc_LDADD): Likewise.
28512 * modules/uniconv/u32-conv-to-enc-tests
28513 (test_u32_conv_to_enc_LDADD): Likewise.
28514 * modules/uniconv/u32-strconv-from-enc-tests
28515 (test_u32_strconv_from_enc_LDADD): Likewise.
28516 * modules/uniconv/u32-strconv-to-enc-tests
28517 (test_u32_strconv_to_enc_LDADD): Likewise.
28518 * modules/uniconv/u8-conv-from-enc-tests
28519 (test_u8_conv_from_enc_LDADD): Likewise.
28520 * modules/uniconv/u8-conv-to-enc-tests
28521 (test_u8_conv_to_enc_LDADD): Likewise.
28522 * modules/uniconv/u8-strconv-from-enc-tests
28523 (test_u8_strconv_from_enc_LDADD): Likewise.
28524 * modules/uniconv/u8-strconv-to-enc-tests
28525 (test_u8_strconv_to_enc_LDADD): Likewise.
28527 2007-10-22 Bruno Haible <bruno@clisp.org>
28529 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28532 2007-10-22 Eric Blake <ebb9@byu.net>
28534 Tweak x*printf documentation.
28535 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28536 variable name and comments.
28537 Suggested by Bruno Haible.
28539 2007-10-22 Bruno Haible <bruno@clisp.org>
28541 * lib/acl.c (copy_acl): Fix file name in comment.
28543 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28545 Fix Tru64 problem with stdbool.h.
28546 * lib/stdbool.in.h (false, true):
28547 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28548 Don't declare as an enum in this situation; it runs afoul of Tru64.
28549 Problem reported by Steven M. Schweda in
28550 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28552 2007-10-22 Eric Blake <ebb9@byu.net>
28554 Also wrap vf?printf.
28555 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28556 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28557 (xvprintf, xvfprintf): New functions.
28559 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28561 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28562 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28564 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28565 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28567 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28569 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28572 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28575 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28576 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28578 * tests/test-i-ring.c: Work for C89.
28580 2007-10-22 Bruno Haible <bruno@clisp.org>
28582 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28583 -1u, in preprocessor expression, so that we don't test for the bug
28584 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28585 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28587 2007-10-22 Eric Blake <ebb9@byu.net>
28589 * tests/test-yesno.sh: Silence stderr during test.
28591 2007-10-22 Simon Josefsson <simon@josefsson.org>
28593 * modules/crypto/gc-camellia: New file.
28595 * m4/gc-camellia.m4: New file.
28597 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28599 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28601 2007-10-22 Simon Josefsson <simon@josefsson.org>
28603 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28604 --help to stdout. Reported by sms@antinode.org (Steven
28607 2007-10-22 Simon Josefsson <simon@josefsson.org>
28609 * users.txt: Fix link to libksba.
28611 2007-10-21 Ben Pfaff <blp@gnu.org>
28613 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28614 round.c roundf implementation that depends on floorf and ceilf to
28615 be tested unconditionally.
28617 2007-10-21 Ben Pfaff <blp@gnu.org>
28619 * m4/check-libm-func.m4: Removed.
28620 * m4/check-math-lib.m4: New file.
28621 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28622 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28623 definition and lack of AC_LIBOBJ([roundf]).
28624 * m4/roundl.m4: Ditto, and similarly for roundl.
28625 * modules/round: Reference new m4 file.
28626 * modules/roundf: Ditto.
28627 * modules/roundl: Ditto.
28628 * tests/test-round2.c (main): Use ROUND instead of round.
28629 Bug report from Bruno Haible.
28631 2007-10-21 Bruno Haible <bruno@clisp.org>
28633 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28636 2007-10-21 Bruno Haible <bruno@clisp.org>
28638 * tests/test-wcwidth.c (main): Allow negative result for some control
28641 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28642 Needed on OSF/1 5.1.
28644 2007-10-21 Bruno Haible <bruno@clisp.org>
28646 * tests/test-floorf1.c: Include isnanf.h.
28647 (main): Use isnanf() instead of isnan().
28648 * tests/test-ceilf1.c: Include isnanf.h.
28649 (main): Use isnanf() instead of isnan().
28650 * tests/test-truncf1.c: Include isnanf.h.
28651 (main): Use isnanf() instead of isnan().
28652 * tests/test-roundf1.c: Include isnanf.h.
28653 (main): Use isnanf() instead of isnan().
28655 2007-10-21 Eric Blake <ebb9@byu.net>
28657 * users.txt: Update URL for m4.
28659 2007-10-21 Bruno Haible <bruno@clisp.org>
28661 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28663 2007-10-21 Bruno Haible <bruno@clisp.org>
28665 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28666 Git's management files if the CVS files are not present.
28668 2007-10-20 Bruno Haible <bruno@clisp.org>
28670 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28673 2007-10-20 Ben Pfaff <blp@gnu.org>
28675 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28677 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28678 * lib/round.c: New file.
28679 * lib/roundf.c: New file.
28680 * lib/roundl.c: New file.
28681 * m4/round.m4: New file.
28682 * m4/roundf.m4: New file.
28683 * m4/roundl.m4: New file.
28684 * m4/check-libm-func-m4: New file.
28685 * modules/math: Replace round, roundf, roundl related @VARS@ in
28687 * modules/round: New file.
28688 * modules/round-tests: New file.
28689 * modules/roundf: New file.
28690 * modules/roundf-tests: New file.
28691 * modules/roundl: New file.
28692 * modules/roundl-tests: New file.
28693 * tests/test-round1.c: New file.
28694 * tests/test-round2.c: New file.
28695 * tests/test-roundf1.c: New file.
28696 * tests/test-roundf2.c: New file.
28697 * tests/test-roundl.c: New file.
28698 * doc/functions/round.texi: Mention round module.
28699 * doc/functions/roundf.texi: Mention roundf module.
28700 * doc/functions/roundl.texi: Mention roundl module.
28701 * MODULES.html.sh: Mention new modules.
28702 Thanks to Bruno Haible for suggestions.
28704 2007-10-20 Jim Meyering <meyering@redhat.com>
28706 * lib/xprintf.c: Include <config.h> unconditionally.
28708 Change xprintf's license to GPL.
28709 * modules/xprintf (License): s/LGPL/GPL/, since this module
28710 depends on modules (exit and exitfail) which are GPL.
28711 Suggestion from Bruno Haible.
28714 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28715 Use a clearer diagnostic.
28716 Patch from Bruno Haible.
28718 2007-10-20 Bruno Haible <bruno@clisp.org>
28720 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28721 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28722 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28724 2007-10-20 Bruno Haible <bruno@clisp.org>
28726 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28727 precision in the comparison result > x - 1 or similar.
28728 * tests/test-ceilf2.c (correct_result_p): Likewise.
28729 * tests/test-truncf2.c (correct_result_p): Likewise.
28730 * tests/test-trunc2.c (correct_result_p): Likewise.
28731 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28733 2007-10-20 Bruno Haible <bruno@clisp.org>
28735 * modules/ceil: New file.
28736 * m4/ceil.m4: New file.
28737 * doc/functions/ceil.texi: Mention the 'ceil' module.
28739 2007-10-20 Bruno Haible <bruno@clisp.org>
28741 * modules/floor: New file.
28742 * m4/floor.m4: New file.
28743 * doc/functions/floor.texi: Mention the 'floor' module.
28745 2007-10-20 Bruno Haible <bruno@clisp.org>
28747 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28749 * modules/floorf-tests (Depends-on): Likewise.
28750 * modules/truncf-tests (Depends-on): Likewise.
28751 * modules/trunc-tests (Depends-on): Likewise.
28752 Reported by Ben Pfaff.
28754 2007-10-19 Jim Meyering <meyering@redhat.com>
28756 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28757 Don't bother testing specific errno values. Just test ferror.
28759 New module: xprintf
28760 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28762 2007-10-19 Bruno Haible <bruno@clisp.org>
28764 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28766 * modules/javaexec (Makefile.am): Likewise.
28767 * modules/relocatable-prog (Makefile.am): Likewise.
28768 Suggested by Jim Meyering.
28770 2007-10-18 Bruno Haible <bruno@clisp.org>
28772 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28773 Reported by Jim Meyering.
28775 2007-10-18 Eric Blake <ebb9@byu.net>
28777 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28779 2007-10-18 Bruno Haible <bruno@clisp.org>
28781 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28782 the format string into writable memory. Needed in Fortify conditions.
28784 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28785 Bruno Haible <bruno@clisp.org>
28787 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28788 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28789 * modules/trim (Depends-on): Add mbchar.
28790 (configure.ac): Add gl_FUNC_MBRTOWC.
28791 (Makefile.am): Augment lib_SOURCES.
28793 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28795 Modify glob.c to use fstatat and dirfd, to simplify it.
28796 Suggested by Eric Blake.
28797 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28798 Don't include <stdbool.h>; not used.
28799 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28800 (link_exists_p): Simplify implementation, since we can now assume
28802 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28804 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28806 * gnulib-tool (func_get_dependencies): Fix sed script to
28809 2007-10-17 Bruno Haible <bruno@clisp.org>
28811 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28812 allow locale names without encoding suffix.
28813 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28814 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28816 2007-10-16 Bruno Haible <bruno@clisp.org>
28818 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28819 * lib/getgroups.c (getgroups): Likewise.
28820 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28822 2007-10-16 Bruno Haible <bruno@clisp.org>
28824 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28825 * modules/malloc-posix (License): Likewise.
28826 * modules/realloc-posix (License): Likewise.
28827 * modules/calloc-posix (License): Likewise.
28828 * modules/intprops (License): Change from GPL to LGPL, with
28829 Paul Eggert's approval.
28831 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28833 Merge glibc changes into lib/glob.c.
28835 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28836 2007-10-15 04:59:03 UTC. Here are the changes:
28838 2007-10-14 Ulrich Drepper <drepper@redhat.com>
28840 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28842 * lib/glob.c: Add some branch prediction throughout.
28844 2007-10-07 Ulrich Drepper <drepper@redhat.com>
28847 * lib/glob.c (glob): Recognize patterns starting \/.
28849 2007-02-14 Jakub Jelinek <jakub@redhat.com>
28852 * lib/glob.c (attribute_hidden): Define if not defined.
28853 (glob): Unescape dirname, filename or username when needed and not
28854 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
28855 is NULL. Handle unescaped [ in pattern without closing ].
28856 Don't pass GLOB_CHECK down to recursive glob for directories.
28857 (__glob_pattern_type): New function.
28858 (__glob_pattern_p): Implement using __glob_pattern_type.
28859 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28860 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28861 Remove unreachable code.
28863 2006-09-30 Ulrich Drepper <drepper@redhat.com>
28865 * lib/glob.c (glob_in_dir): Add some comments and asserts to
28866 explain why there are no leaks.
28868 2006-09-25 Jakub Jelinek <jakub@redhat.com>
28871 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28872 time, rather allocate increasingly bigger arrays of pointers, if
28873 possible with alloca, if too large with malloc.
28875 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28877 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28878 Problem reported by H.Merijn Brand in
28879 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28880 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28881 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28883 2007-10-15 Bruno Haible <bruno@clisp.org>
28885 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28886 with explicit rpl_ prefix.
28887 * lib/fopen.c (fopen): Likewise.
28888 * lib/freopen.c (freopen): Likewise.
28889 * lib/iconv.c (iconv): Likewise.
28890 * lib/iconv_close.c (iconv_close): Likewise.
28892 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28894 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28896 2007-10-15 Bruno Haible <bruno@clisp.org>
28898 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28899 <stddef.h> instead of <stdlib.h> since we only need NULL.
28900 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28902 2007-10-15 Bruno Haible <bruno@clisp.org>
28904 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28905 Replace paragraph talking about LIBOBJS.
28906 Reported by Colin Watson <cjwatson@debian.org>.
28908 2007-10-15 Bruno Haible <bruno@clisp.org>
28910 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28911 <stdlib.h> before using NULL.
28913 2007-10-15 Simon Josefsson <simon@josefsson.org>
28915 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28916 Reported by Albert Chin <china@thewrittenword.com>.
28918 2007-10-14 Bruno Haible <bruno@clisp.org>
28920 * modules/iconv_open-utf-tests: New file.
28921 * tests/test-iconv-utf.c: New file.
28923 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28924 * modules/iconv_open-utf: New file.
28925 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28926 (iconv, iconv_close): New declarations.
28927 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28929 (iconv_open): Add special handling of conversion between UTF-8 and
28930 UTF-{16,32}{BE,LE}.
28931 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28932 * lib/iconv_close.c: New file.
28933 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28934 gl_FUNC_ICONV_OPEN.
28935 (gl_FUNC_ICONV_OPEN): Use it.
28936 (gl_FUNC_ICONV_OPEN_UTF): New macro.
28937 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28938 and REPLACE_ICONV_UTF.
28939 * modules/iconv_open (Depends-on): Add c-strcase.
28940 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28942 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28944 2007-10-13 Albert Chin <china@thewrittenword.com>
28945 Bruno Haible <bruno@clisp.org>
28947 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28948 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28950 2007-10-13 Bruno Haible <bruno@clisp.org>
28952 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28953 defined, use the ISO C99 inline semantics.
28954 * lib/argp.h (ARGP_EI): Likewise.
28956 2007-10-13 Bruno Haible <bruno@clisp.org>
28958 Handle 'inline' change in gcc 4.3.0.
28959 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28960 argp_fmtstream_write, argp_fmtstream_set_lmargin,
28961 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28962 argp_fmtstream_point): Disable 'extern' declaration if the function
28963 definition is going to be provided inline.
28964 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28965 semantics, not the ISO C99 inline semantics.
28966 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28967 'extern' declaration if the function definition is going to be provided
28969 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28970 the GNU C inline semantics, not the ISO C99 inline semantics. With
28971 GCC 4.2, avoid a warning.
28973 2007-10-13 Bruno Haible <bruno@clisp.org>
28975 * lib/freading.h (freading): Enable the use of __freading for
28977 * lib/freading.c (freading): Likewise.
28979 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
28981 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28982 "warning: C99 inline functions are not supported; using GNU89".
28984 2007-10-12 Bruno Haible <bruno@clisp.org>
28986 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28988 * tests/test-ceilf2.c: New file.
28989 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28991 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28992 * modules/ceilf-tests: Update.
28994 2007-10-12 Bruno Haible <bruno@clisp.org>
28996 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28998 * tests/test-floorf2.c: New file.
28999 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29001 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29002 * modules/floorf-tests: Update.
29004 2007-10-12 Bruno Haible <bruno@clisp.org>
29006 * tests/test-trunc2.c: New file.
29007 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29009 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29010 * modules/trunc-tests: Update.
29012 2007-10-12 Bruno Haible <bruno@clisp.org>
29014 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29016 * tests/test-truncf2.c: New file.
29017 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29019 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29020 * modules/truncf-tests: Update.
29022 2007-10-11 Eric Blake <ebb9@byu.net>
29024 Don't claim strerror is broken on Interix.
29025 * doc/functions/strerror.texi (strerror): Known broken systems are
29026 now Solaris 8, and not Interix.
29027 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29028 Interix on cross-compile.
29029 Reported by Martin Koeppe in
29030 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29032 2007-10-11 Bruno Haible <bruno@clisp.org>
29034 * modules/i-ring-tests: New file.
29035 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29038 2007-10-11 Bruno Haible <bruno@clisp.org>
29040 * modules/filenamecat-tests: New file.
29041 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29042 * lib/filenamecat.c: Remove test code.
29044 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29046 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29048 * lib/strerror.c: Include <string.h> always, to test interface,
29049 and to remove the need for the dummy.
29050 Include intprops.h to compute width instead of doing it ourselves
29051 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29052 (strerror): Define it to return NULL if there's no system strerror.
29053 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29054 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29055 ancient pre-strerror Unix systems well any more. Saying "unknown
29056 system error" is enough.
29057 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29058 simpler strerror.c implementation.
29059 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29060 Simplify the tests to reflect the simpler strerror implementation.
29061 * modules/strerror (Depends-on): Add intprops.
29063 2007-10-09 Eric Blake <ebb9@byu.net>
29065 Silence test-fpending.
29066 * modules/fpending-tests (Files): Add wrapper script.
29067 * tests/test-fpending.sh: New file.
29069 2007-10-09 Bruno Haible <bruno@clisp.org>
29071 * MODULES.html.sh (func_module): Don't create a hyperlink for
29072 function names like 'printf_frexp'.
29073 (Misc): Add crc, memxor.
29074 (Characteristics of floating types): New section.
29075 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29076 isnanf-nolibm, signbit, trunc, truncf, truncl.
29077 (Enhancements for ISO C 99 functions): New subsection Input/output.
29078 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29079 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29080 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29081 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29082 (Enhancements for POSIX:2001 functions): Add chdir-long.
29083 (File system functions): Add areadlink, chdir-safer, read-file.
29084 Remove cycle-check.
29085 (File system as inode set): New section.
29086 (Date and time): Add gethrxtime.
29087 (Multithreading): Add openmp.
29088 (Internationalization functions): Add localename.
29089 (Unicode string functions): Add unistr/u*-mbsnlen.
29090 (Support for maintaining and releasing projects): Add git-version-gen.
29091 (Lone files): Remove directories.
29093 2007-10-08 Ben Pfaff <blp@gnu.org>
29095 * lib/xmalloca.h: Fix typo in comment.
29097 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29099 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29100 when avoiding problems with integer overflow. Use a portable test
29103 2007-10-08 Simon Josefsson <simon@josefsson.org>
29105 * modules/dummy (License): Change to LGPLv2+.
29106 * modules/float (License): Likewise
29107 * modules/realloc (License): Likewise
29108 * modules/stdlib (License): Likewise
29110 2007-10-07 Bruno Haible <bruno@clisp.org>
29112 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29113 * floor.c (TWO_MANT_DIG): Likewise.
29114 * ceil.c (TWO_MANT_DIG): Likewise.
29115 Reported by Ben Pfaff.
29117 2007-10-07 Bruno Haible <bruno@clisp.org>
29119 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29120 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29121 * lib/frexp.c (FUNC): Likewise.
29122 * lib/printf-frexp.h (printf_frexp): Likewise.
29123 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29124 * lib/printf-frexp.c (FUNC): Likewise.
29125 Suggested by Jim Meyering.
29127 2007-10-07 Jim Meyering <meyering@redhat.com>
29129 Make xnanosleep's integer overflow test more robust.
29130 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29131 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29133 2007-10-07 Bruno Haible <bruno@clisp.org>
29135 * NEWS: Mention the license change.
29137 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29138 abbreviations in the modules files.
29140 Change copyright notice from GPLv2+ to GPLv3+.
29141 * README: Change copyright notice.
29142 * MODULES.html.sh: Likewise.
29143 * build-aux/bootstrap.conf: Likewise.
29144 * build-aux/config.libpath: Likewise.
29145 * build-aux/csharpcomp.sh.in: Likewise.
29146 * build-aux/csharpexec.sh.in: Likewise.
29147 * build-aux/install-reloc: Likewise.
29148 * build-aux/javacomp.sh.in: Likewise.
29149 * build-aux/javaexec.sh.in: Likewise.
29150 * build-aux/ldd.sh.in: Likewise.
29151 * build-aux/reloc-ldflags: Likewise.
29152 * build-aux/relocatable.sh.in: Likewise.
29153 * build-aux/x-to-1.in: Likewise.
29154 * check-module: Likewise.
29155 * config/srclistvars.sh: Likewise.
29156 * gnulib-tool: Likewise.
29157 * lib/acl-internal.h: Likewise.
29158 * lib/acl.c: Likewise.
29159 * lib/acl.h: Likewise.
29160 * lib/acl_entries.c: Likewise.
29161 * lib/areadlink-with-size.c: Likewise.
29162 * lib/areadlink.c: Likewise.
29163 * lib/areadlink.h: Likewise.
29164 * lib/argmatch.c: Likewise.
29165 * lib/argmatch.h: Likewise.
29166 * lib/argp-ba.c: Likewise.
29167 * lib/argp-eexst.c: Likewise.
29168 * lib/argp-fmtstream.c: Likewise.
29169 * lib/argp-fmtstream.h: Likewise.
29170 * lib/argp-fs-xinl.c: Likewise.
29171 * lib/argp-help.c: Likewise.
29172 * lib/argp-namefrob.h: Likewise.
29173 * lib/argp-parse.c: Likewise.
29174 * lib/argp-pin.c: Likewise.
29175 * lib/argp-pv.c: Likewise.
29176 * lib/argp-pvh.c: Likewise.
29177 * lib/argp-xinl.c: Likewise.
29178 * lib/argp.h: Likewise.
29179 * lib/at-func.c: Likewise.
29180 * lib/atanl.c: Likewise.
29181 * lib/backupfile.c: Likewise.
29182 * lib/backupfile.h: Likewise.
29183 * lib/basename.c: Likewise.
29184 * lib/binary-io.h: Likewise.
29185 * lib/byteswap.in.h: Likewise.
29186 * lib/c-stack.c: Likewise.
29187 * lib/c-stack.h: Likewise.
29188 * lib/c-strcasestr.c: Likewise.
29189 * lib/c-strcasestr.h: Likewise.
29190 * lib/c-strstr.c: Likewise.
29191 * lib/c-strstr.h: Likewise.
29192 * lib/c-strtod.c: Likewise.
29193 * lib/calloc.c: Likewise.
29194 * lib/canon-host.c: Likewise.
29195 * lib/canon-host.h: Likewise.
29196 * lib/canonicalize-lgpl.c: Likewise.
29197 * lib/canonicalize.c: Likewise.
29198 * lib/canonicalize.h: Likewise.
29199 * lib/ceil.c: Likewise.
29200 * lib/ceilf.c: Likewise.
29201 * lib/ceill.c: Likewise.
29202 * lib/chdir-long.c: Likewise.
29203 * lib/chdir-long.h: Likewise.
29204 * lib/chdir-safer.c: Likewise.
29205 * lib/chdir-safer.h: Likewise.
29206 * lib/chown.c: Likewise.
29207 * lib/classpath.c: Likewise.
29208 * lib/classpath.h: Likewise.
29209 * lib/clean-temp.c: Likewise.
29210 * lib/clean-temp.h: Likewise.
29211 * lib/cloexec.c: Likewise.
29212 * lib/close-stream.c: Likewise.
29213 * lib/closein.c: Likewise.
29214 * lib/closein.h: Likewise.
29215 * lib/closeout.c: Likewise.
29216 * lib/closeout.h: Likewise.
29217 * lib/concat-filename.c: Likewise.
29218 * lib/copy-file.c: Likewise.
29219 * lib/copy-file.h: Likewise.
29220 * lib/count-one-bits.h: Likewise.
29221 * lib/crc.c: Likewise.
29222 * lib/crc.h: Likewise.
29223 * lib/creat-safer.c: Likewise.
29224 * lib/csharpcomp.c: Likewise.
29225 * lib/csharpcomp.h: Likewise.
29226 * lib/csharpexec.c: Likewise.
29227 * lib/csharpexec.h: Likewise.
29228 * lib/cycle-check.c: Likewise.
29229 * lib/cycle-check.h: Likewise.
29230 * lib/diacrit.c: Likewise.
29231 * lib/diacrit.h: Likewise.
29232 * lib/diffseq.h: Likewise.
29233 * lib/dirchownmod.c: Likewise.
29234 * lib/dirent.in.h: Likewise.
29235 * lib/dirfd.c: Likewise.
29236 * lib/dirfd.h: Likewise.
29237 * lib/dirname.c: Likewise.
29238 * lib/dirname.h: Likewise.
29239 * lib/dummy.c: Likewise.
29240 * lib/dup-safer.c: Likewise.
29241 * lib/dup2.c: Likewise.
29242 * lib/eealloc.h: Likewise.
29243 * lib/error.c: Likewise.
29244 * lib/error.h: Likewise.
29245 * lib/euidaccess.c: Likewise.
29246 * lib/exclude.c: Likewise.
29247 * lib/exclude.h: Likewise.
29248 * lib/execute.c: Likewise.
29249 * lib/execute.h: Likewise.
29250 * lib/exitfail.c: Likewise.
29251 * lib/exitfail.h: Likewise.
29252 * lib/expl.c: Likewise.
29253 * lib/fatal-signal.c: Likewise.
29254 * lib/fatal-signal.h: Likewise.
29255 * lib/fbufmode.c: Likewise.
29256 * lib/fbufmode.h: Likewise.
29257 * lib/fchdir.c: Likewise.
29258 * lib/fchmodat.c: Likewise.
29259 * lib/fchownat.c: Likewise.
29260 * lib/fcntl--.h: Likewise.
29261 * lib/fcntl-safer.h: Likewise.
29262 * lib/fcntl.in.h: Likewise.
29263 * lib/fd-safer.c: Likewise.
29264 * lib/fflush.c: Likewise.
29265 * lib/file-has-acl.c: Likewise.
29266 * lib/file-set.c: Likewise.
29267 * lib/file-type.c: Likewise.
29268 * lib/file-type.h: Likewise.
29269 * lib/fileblocks.c: Likewise.
29270 * lib/filemode.c: Likewise.
29271 * lib/filemode.h: Likewise.
29272 * lib/filename.h: Likewise.
29273 * lib/filenamecat.c: Likewise.
29274 * lib/filenamecat.h: Likewise.
29275 * lib/findprog.c: Likewise.
29276 * lib/findprog.h: Likewise.
29277 * lib/float.in.h: Likewise.
29278 * lib/floor.c: Likewise.
29279 * lib/floorf.c: Likewise.
29280 * lib/floorl.c: Likewise.
29281 * lib/fopen-safer.c: Likewise.
29282 * lib/fopen.c: Likewise.
29283 * lib/fpending.c: Likewise.
29284 * lib/fpending.h: Likewise.
29285 * lib/fprintf.c: Likewise.
29286 * lib/fprintftime.h: Likewise.
29287 * lib/fpucw.h: Likewise.
29288 * lib/fpurge.c: Likewise.
29289 * lib/fpurge.h: Likewise.
29290 * lib/freadable.c: Likewise.
29291 * lib/freadable.h: Likewise.
29292 * lib/freadahead.c: Likewise.
29293 * lib/freadahead.h: Likewise.
29294 * lib/freading.c: Likewise.
29295 * lib/freading.h: Likewise.
29296 * lib/free.c: Likewise.
29297 * lib/freopen.c: Likewise.
29298 * lib/frexp.c: Likewise.
29299 * lib/frexpl.c: Likewise.
29300 * lib/fseek.c: Likewise.
29301 * lib/fseterr.c: Likewise.
29302 * lib/fseterr.h: Likewise.
29303 * lib/fstatat.c: Likewise.
29304 * lib/fstrcmp.c: Likewise.
29305 * lib/fstrcmp.h: Likewise.
29306 * lib/fsusage.c: Likewise.
29307 * lib/fsusage.h: Likewise.
29308 * lib/ftell.c: Likewise.
29309 * lib/ftello.c: Likewise.
29310 * lib/fts-cycle.c: Likewise.
29311 * lib/fts.c: Likewise.
29312 * lib/fts_.h: Likewise.
29313 * lib/full-read.c: Likewise.
29314 * lib/full-read.h: Likewise.
29315 * lib/full-write.c: Likewise.
29316 * lib/full-write.h: Likewise.
29317 * lib/fwritable.c: Likewise.
29318 * lib/fwritable.h: Likewise.
29319 * lib/fwriteerror.c: Likewise.
29320 * lib/fwriteerror.h: Likewise.
29321 * lib/fwriting.c: Likewise.
29322 * lib/fwriting.h: Likewise.
29323 * lib/gcd.c: Likewise.
29324 * lib/gcd.h: Likewise.
29325 * lib/getcwd.c: Likewise.
29326 * lib/getdate.h: Likewise.
29327 * lib/getdate.y: Likewise.
29328 * lib/getdomainname.c: Likewise.
29329 * lib/getdomainname.h: Likewise.
29330 * lib/getgroups.c: Likewise.
29331 * lib/gethostname.c: Likewise.
29332 * lib/gethrxtime.c: Likewise.
29333 * lib/gethrxtime.h: Likewise.
29334 * lib/getloadavg.c: Likewise.
29335 * lib/getndelim2.c: Likewise.
29336 * lib/getndelim2.h: Likewise.
29337 * lib/getnline.c: Likewise.
29338 * lib/getnline.h: Likewise.
29339 * lib/getopt.c: Likewise.
29340 * lib/getopt.in.h: Likewise.
29341 * lib/getopt1.c: Likewise.
29342 * lib/getopt_int.h: Likewise.
29343 * lib/getpagesize.h: Likewise.
29344 * lib/getsubopt.c: Likewise.
29345 * lib/gettime.c: Likewise.
29346 * lib/getugroups.c: Likewise.
29347 * lib/getugroups.h: Likewise.
29348 * lib/getusershell.c: Likewise.
29349 * lib/gl_anyavltree_list1.h: Likewise.
29350 * lib/gl_anyavltree_list2.h: Likewise.
29351 * lib/gl_anyhash_list1.h: Likewise.
29352 * lib/gl_anyhash_list2.h: Likewise.
29353 * lib/gl_anylinked_list1.h: Likewise.
29354 * lib/gl_anylinked_list2.h: Likewise.
29355 * lib/gl_anyrbtree_list1.h: Likewise.
29356 * lib/gl_anyrbtree_list2.h: Likewise.
29357 * lib/gl_anytree_list1.h: Likewise.
29358 * lib/gl_anytree_list2.h: Likewise.
29359 * lib/gl_anytree_oset.h: Likewise.
29360 * lib/gl_anytreehash_list1.h: Likewise.
29361 * lib/gl_anytreehash_list2.h: Likewise.
29362 * lib/gl_array_list.c: Likewise.
29363 * lib/gl_array_list.h: Likewise.
29364 * lib/gl_array_oset.c: Likewise.
29365 * lib/gl_array_oset.h: Likewise.
29366 * lib/gl_avltree_list.c: Likewise.
29367 * lib/gl_avltree_list.h: Likewise.
29368 * lib/gl_avltree_oset.c: Likewise.
29369 * lib/gl_avltree_oset.h: Likewise.
29370 * lib/gl_avltreehash_list.c: Likewise.
29371 * lib/gl_avltreehash_list.h: Likewise.
29372 * lib/gl_carray_list.c: Likewise.
29373 * lib/gl_carray_list.h: Likewise.
29374 * lib/gl_linked_list.c: Likewise.
29375 * lib/gl_linked_list.h: Likewise.
29376 * lib/gl_linkedhash_list.c: Likewise.
29377 * lib/gl_linkedhash_list.h: Likewise.
29378 * lib/gl_list.c: Likewise.
29379 * lib/gl_list.h: Likewise.
29380 * lib/gl_oset.c: Likewise.
29381 * lib/gl_oset.h: Likewise.
29382 * lib/gl_rbtree_list.c: Likewise.
29383 * lib/gl_rbtree_list.h: Likewise.
29384 * lib/gl_rbtree_oset.c: Likewise.
29385 * lib/gl_rbtree_oset.h: Likewise.
29386 * lib/gl_rbtreehash_list.c: Likewise.
29387 * lib/gl_rbtreehash_list.h: Likewise.
29388 * lib/gl_sublist.c: Likewise.
29389 * lib/gl_sublist.h: Likewise.
29390 * lib/group-member.c: Likewise.
29391 * lib/group-member.h: Likewise.
29392 * lib/hard-locale.c: Likewise.
29393 * lib/hard-locale.h: Likewise.
29394 * lib/hash-pjw.c: Likewise.
29395 * lib/hash-pjw.h: Likewise.
29396 * lib/hash-triple.c: Likewise.
29397 * lib/hash.c: Likewise.
29398 * lib/hash.h: Likewise.
29399 * lib/human.c: Likewise.
29400 * lib/human.h: Likewise.
29401 * lib/i-ring.c: Likewise.
29402 * lib/i-ring.h: Likewise.
29403 * lib/idcache.c: Likewise.
29404 * lib/imaxabs.c: Likewise.
29405 * lib/imaxdiv.c: Likewise.
29406 * lib/inet_pton.c: Likewise.
29407 * lib/inet_pton.h: Likewise.
29408 * lib/intprops.h: Likewise.
29409 * lib/inttostr.c: Likewise.
29410 * lib/inttostr.h: Likewise.
29411 * lib/inttypes.in.h: Likewise.
29412 * lib/isapipe.c: Likewise.
29413 * lib/isdir.c: Likewise.
29414 * lib/isnan.c: Likewise.
29415 * lib/isnan.h: Likewise.
29416 * lib/isnanf.c: Likewise.
29417 * lib/isnanf.h: Likewise.
29418 * lib/isnanl-nolibm.h: Likewise.
29419 * lib/isnanl.c: Likewise.
29420 * lib/isnanl.h: Likewise.
29421 * lib/javacomp.c: Likewise.
29422 * lib/javacomp.h: Likewise.
29423 * lib/javaexec.c: Likewise.
29424 * lib/javaexec.h: Likewise.
29425 * lib/javaversion.c: Likewise.
29426 * lib/javaversion.h: Likewise.
29427 * lib/javaversion.java: Likewise.
29428 * lib/lbrkprop.h: Likewise.
29429 * lib/lchmod.h: Likewise.
29430 * lib/lchown.c: Likewise.
29431 * lib/ldexpl.c: Likewise.
29432 * lib/linebreak.c: Likewise.
29433 * lib/linebreak.h: Likewise.
29434 * lib/linebuffer.c: Likewise.
29435 * lib/linebuffer.h: Likewise.
29436 * lib/locale.in.h: Likewise.
29437 * lib/logl.c: Likewise.
29438 * lib/long-options.c: Likewise.
29439 * lib/long-options.h: Likewise.
29440 * lib/lstat.c: Likewise.
29441 * lib/lstat.h: Likewise.
29442 * lib/math.in.h: Likewise.
29443 * lib/mbchar.c: Likewise.
29444 * lib/mbchar.h: Likewise.
29445 * lib/mbfile.h: Likewise.
29446 * lib/mbiter.h: Likewise.
29447 * lib/mbscasecmp.c: Likewise.
29448 * lib/mbscasestr.c: Likewise.
29449 * lib/mbschr.c: Likewise.
29450 * lib/mbscspn.c: Likewise.
29451 * lib/mbslen.c: Likewise.
29452 * lib/mbsncasecmp.c: Likewise.
29453 * lib/mbsnlen.c: Likewise.
29454 * lib/mbspbrk.c: Likewise.
29455 * lib/mbspcasecmp.c: Likewise.
29456 * lib/mbsrchr.c: Likewise.
29457 * lib/mbssep.c: Likewise.
29458 * lib/mbsspn.c: Likewise.
29459 * lib/mbsstr.c: Likewise.
29460 * lib/mbstok_r.c: Likewise.
29461 * lib/mbswidth.c: Likewise.
29462 * lib/mbswidth.h: Likewise.
29463 * lib/mbuiter.h: Likewise.
29464 * lib/memcasecmp.c: Likewise.
29465 * lib/memcasecmp.h: Likewise.
29466 * lib/memchr.c: Likewise.
29467 * lib/memcmp.c: Likewise.
29468 * lib/memcoll.c: Likewise.
29469 * lib/memcoll.h: Likewise.
29470 * lib/memcpy.c: Likewise.
29471 * lib/memrchr.c: Likewise.
29472 * lib/mkancesdirs.c: Likewise.
29473 * lib/mkdir-p.c: Likewise.
29474 * lib/mkdir-p.h: Likewise.
29475 * lib/mkdir.c: Likewise.
29476 * lib/mkdirat.c: Likewise.
29477 * lib/mkdtemp.c: Likewise.
29478 * lib/mkstemp-safer.c: Likewise.
29479 * lib/mkstemp.c: Likewise.
29480 * lib/modechange.c: Likewise.
29481 * lib/modechange.h: Likewise.
29482 * lib/mountlist.c: Likewise.
29483 * lib/mountlist.h: Likewise.
29484 * lib/mpsort.c: Likewise.
29485 * lib/nanosleep.c: Likewise.
29486 * lib/obstack.c: Likewise.
29487 * lib/obstack.h: Likewise.
29488 * lib/open-safer.c: Likewise.
29489 * lib/open.c: Likewise.
29490 * lib/openat-die.c: Likewise.
29491 * lib/openat-priv.h: Likewise.
29492 * lib/openat-proc.c: Likewise.
29493 * lib/openat.c: Likewise.
29494 * lib/openat.h: Likewise.
29495 * lib/pagealign_alloc.c: Likewise.
29496 * lib/pagealign_alloc.h: Likewise.
29497 * lib/physmem.c: Likewise.
29498 * lib/physmem.h: Likewise.
29499 * lib/pipe-safer.c: Likewise.
29500 * lib/pipe.c: Likewise.
29501 * lib/pipe.h: Likewise.
29502 * lib/posixtm.c: Likewise.
29503 * lib/posixtm.h: Likewise.
29504 * lib/posixver.c: Likewise.
29505 * lib/printf-frexp.c: Likewise.
29506 * lib/printf-frexp.h: Likewise.
29507 * lib/printf-frexpl.c: Likewise.
29508 * lib/printf-frexpl.h: Likewise.
29509 * lib/printf.c: Likewise.
29510 * lib/progname.c: Likewise.
29511 * lib/progname.h: Likewise.
29512 * lib/progreloc.c: Likewise.
29513 * lib/putenv.c: Likewise.
29514 * lib/quote.c: Likewise.
29515 * lib/quote.h: Likewise.
29516 * lib/quotearg.c: Likewise.
29517 * lib/quotearg.h: Likewise.
29518 * lib/raise.c: Likewise.
29519 * lib/readline.c: Likewise.
29520 * lib/readline.h: Likewise.
29521 * lib/readlink.c: Likewise.
29522 * lib/readtokens.c: Likewise.
29523 * lib/readtokens.h: Likewise.
29524 * lib/readtokens0.c: Likewise.
29525 * lib/readtokens0.h: Likewise.
29526 * lib/readutmp.c: Likewise.
29527 * lib/readutmp.h: Likewise.
29528 * lib/realloc.c: Likewise.
29529 * lib/relocwrapper.c: Likewise.
29530 * lib/rename-dest-slash.c: Likewise.
29531 * lib/rename.c: Likewise.
29532 * lib/rmdir.c: Likewise.
29533 * lib/rpmatch.c: Likewise.
29534 * lib/safe-read.c: Likewise.
29535 * lib/safe-read.h: Likewise.
29536 * lib/safe-write.c: Likewise.
29537 * lib/safe-write.h: Likewise.
29538 * lib/same-inode.h: Likewise.
29539 * lib/same.c: Likewise.
29540 * lib/same.h: Likewise.
29541 * lib/save-cwd.c: Likewise.
29542 * lib/save-cwd.h: Likewise.
29543 * lib/savedir.c: Likewise.
29544 * lib/savedir.h: Likewise.
29545 * lib/savewd.c: Likewise.
29546 * lib/savewd.h: Likewise.
29547 * lib/search.in.h: Likewise.
29548 * lib/setenv.c: Likewise.
29549 * lib/setenv.h: Likewise.
29550 * lib/settime.c: Likewise.
29551 * lib/sh-quote.c: Likewise.
29552 * lib/sh-quote.h: Likewise.
29553 * lib/sig2str.c: Likewise.
29554 * lib/sig2str.h: Likewise.
29555 * lib/signal.in.h: Likewise.
29556 * lib/signbitd.c: Likewise.
29557 * lib/signbitf.c: Likewise.
29558 * lib/signbitl.c: Likewise.
29559 * lib/sigprocmask.c: Likewise.
29560 * lib/sincosl.c: Likewise.
29561 * lib/sleep.c: Likewise.
29562 * lib/sprintf.c: Likewise.
29563 * lib/sqrtl.c: Likewise.
29564 * lib/stat-time.h: Likewise.
29565 * lib/stdio--.h: Likewise.
29566 * lib/stdio-safer.h: Likewise.
29567 * lib/stdlib--.h: Likewise.
29568 * lib/stdlib-safer.h: Likewise.
29569 * lib/stdlib.in.h: Likewise.
29570 * lib/stpcpy.c: Likewise.
29571 * lib/stpncpy.c: Likewise.
29572 * lib/strchrnul.c: Likewise.
29573 * lib/strcspn.c: Likewise.
29574 * lib/strerror.c: Likewise.
29575 * lib/strftime.c: Likewise.
29576 * lib/strftime.h: Likewise.
29577 * lib/striconveh.c: Likewise.
29578 * lib/striconveh.h: Likewise.
29579 * lib/striconveha.c: Likewise.
29580 * lib/striconveha.h: Likewise.
29581 * lib/stripslash.c: Likewise.
29582 * lib/strnlen1.c: Likewise.
29583 * lib/strnlen1.h: Likewise.
29584 * lib/strtod.c: Likewise.
29585 * lib/strtoimax.c: Likewise.
29586 * lib/strtok_r.c: Likewise.
29587 * lib/strtol.c: Likewise.
29588 * lib/strtoll.c: Likewise.
29589 * lib/strtoul.c: Likewise.
29590 * lib/strtoull.c: Likewise.
29591 * lib/sysexits.in.h: Likewise.
29592 * lib/tempname.c: Likewise.
29593 * lib/tempname.h: Likewise.
29594 * lib/timespec.h: Likewise.
29595 * lib/tls.c: Likewise.
29596 * lib/tls.h: Likewise.
29597 * lib/tmpdir.c: Likewise.
29598 * lib/tmpdir.h: Likewise.
29599 * lib/tmpfile-safer.c: Likewise.
29600 * lib/tmpfile.c: Likewise.
29601 * lib/trigl.c: Likewise.
29602 * lib/trigl.h: Likewise.
29603 * lib/trim.c: Likewise.
29604 * lib/trim.h: Likewise.
29605 * lib/trunc.c: Likewise.
29606 * lib/truncf.c: Likewise.
29607 * lib/truncl.c: Likewise.
29608 * lib/tsearch.c: Likewise.
29609 * lib/unicodeio.c: Likewise.
29610 * lib/unicodeio.h: Likewise.
29611 * lib/unistd--.h: Likewise.
29612 * lib/unistd-safer.h: Likewise.
29613 * lib/unistdio/ulc-fprintf.c: Likewise.
29614 * lib/unistdio/ulc-vfprintf.c: Likewise.
29615 * lib/unlinkdir.c: Likewise.
29616 * lib/unlinkdir.h: Likewise.
29617 * lib/unlocked-io.h: Likewise.
29618 * lib/unsetenv.c: Likewise.
29619 * lib/userspec.c: Likewise.
29620 * lib/utime.c: Likewise.
29621 * lib/utimecmp.c: Likewise.
29622 * lib/utimecmp.h: Likewise.
29623 * lib/utimens.c: Likewise.
29624 * lib/verify.h: Likewise.
29625 * lib/verror.c: Likewise.
29626 * lib/verror.h: Likewise.
29627 * lib/version-etc-fsf.c: Likewise.
29628 * lib/version-etc.c: Likewise.
29629 * lib/version-etc.h: Likewise.
29630 * lib/vfprintf.c: Likewise.
29631 * lib/vprintf.c: Likewise.
29632 * lib/vsprintf.c: Likewise.
29633 * lib/w32spawn.h: Likewise.
29634 * lib/wait-process.c: Likewise.
29635 * lib/wait-process.h: Likewise.
29636 * lib/wcwidth.c: Likewise.
29637 * lib/write-any-file.c: Likewise.
29638 * lib/xalloc-die.c: Likewise.
29639 * lib/xalloc.h: Likewise.
29640 * lib/xasprintf.c: Likewise.
29641 * lib/xgetcwd.c: Likewise.
29642 * lib/xgetcwd.h: Likewise.
29643 * lib/xgetdomainname.c: Likewise.
29644 * lib/xgetdomainname.h: Likewise.
29645 * lib/xgethostname.c: Likewise.
29646 * lib/xmalloc.c: Likewise.
29647 * lib/xmalloca.c: Likewise.
29648 * lib/xmalloca.h: Likewise.
29649 * lib/xmemcoll.c: Likewise.
29650 * lib/xnanosleep.c: Likewise.
29651 * lib/xreadlink.c: Likewise.
29652 * lib/xreadlink.h: Likewise.
29653 * lib/xsetenv.c: Likewise.
29654 * lib/xsetenv.h: Likewise.
29655 * lib/xstriconv.c: Likewise.
29656 * lib/xstriconv.h: Likewise.
29657 * lib/xstrndup.c: Likewise.
29658 * lib/xstrndup.h: Likewise.
29659 * lib/xstrtod.c: Likewise.
29660 * lib/xstrtod.h: Likewise.
29661 * lib/xstrtol-error.c: Likewise.
29662 * lib/xstrtol.c: Likewise.
29663 * lib/xstrtol.h: Likewise.
29664 * lib/xtime.h: Likewise.
29665 * lib/xvasprintf.c: Likewise.
29666 * lib/xvasprintf.h: Likewise.
29667 * lib/yesno.c: Likewise.
29668 * lib/yesno.h: Likewise.
29669 * posix-modules: Likewise.
29670 * tests/test-alloca-opt.c: Likewise.
29671 * tests/test-arcfour.c: Likewise.
29672 * tests/test-arctwo.c: Likewise.
29673 * tests/test-argmatch.c: Likewise.
29674 * tests/test-argp-2.sh: Likewise.
29675 * tests/test-argp.c: Likewise.
29676 * tests/test-arpa_inet.c: Likewise.
29677 * tests/test-array_list.c: Likewise.
29678 * tests/test-array_oset.c: Likewise.
29679 * tests/test-atexit.c: Likewise.
29680 * tests/test-avltree_list.c: Likewise.
29681 * tests/test-avltree_oset.c: Likewise.
29682 * tests/test-avltreehash_list.c: Likewise.
29683 * tests/test-base64.c: Likewise.
29684 * tests/test-binary-io.c: Likewise.
29685 * tests/test-byteswap.c: Likewise.
29686 * tests/test-c-ctype.c: Likewise.
29687 * tests/test-c-strcasecmp.c: Likewise.
29688 * tests/test-c-strcasestr.c: Likewise.
29689 * tests/test-c-strncasecmp.c: Likewise.
29690 * tests/test-c-strstr.c: Likewise.
29691 * tests/test-canonicalize-lgpl.c: Likewise.
29692 * tests/test-canonicalize.c: Likewise.
29693 * tests/test-carray_list.c: Likewise.
29694 * tests/test-ceilf.c: Likewise.
29695 * tests/test-ceill.c: Likewise.
29696 * tests/test-count-one-bits.c: Likewise.
29697 * tests/test-crc.c: Likewise.
29698 * tests/test-dirname.c: Likewise.
29699 * tests/test-fbufmode.c: Likewise.
29700 * tests/test-fcntl.c: Likewise.
29701 * tests/test-fflush.c: Likewise.
29702 * tests/test-floorf.c: Likewise.
29703 * tests/test-floorl.c: Likewise.
29704 * tests/test-fopen.c: Likewise.
29705 * tests/test-fprintf-posix.c: Likewise.
29706 * tests/test-fprintf-posix.h: Likewise.
29707 * tests/test-fpurge.c: Likewise.
29708 * tests/test-freadable.c: Likewise.
29709 * tests/test-freadahead.c: Likewise.
29710 * tests/test-freading.c: Likewise.
29711 * tests/test-freopen.c: Likewise.
29712 * tests/test-frexp.c: Likewise.
29713 * tests/test-frexpl.c: Likewise.
29714 * tests/test-fseek.c: Likewise.
29715 * tests/test-fseeko.c: Likewise.
29716 * tests/test-fseterr.c: Likewise.
29717 * tests/test-fstrcmp.c: Likewise.
29718 * tests/test-ftell.c: Likewise.
29719 * tests/test-ftello.c: Likewise.
29720 * tests/test-fwritable.c: Likewise.
29721 * tests/test-fwriting.c: Likewise.
29722 * tests/test-getaddrinfo.c: Likewise.
29723 * tests/test-getpass.c: Likewise.
29724 * tests/test-gettimeofday.c: Likewise.
29725 * tests/test-hmac-md5.c: Likewise.
29726 * tests/test-hmac-sha1.c: Likewise.
29727 * tests/test-iconv.c: Likewise.
29728 * tests/test-iconvme.c: Likewise.
29729 * tests/test-inttypes.c: Likewise.
29730 * tests/test-isnan.c: Likewise.
29731 * tests/test-isnanf.c: Likewise.
29732 * tests/test-isnanl-nolibm.c: Likewise.
29733 * tests/test-isnanl.c: Likewise.
29734 * tests/test-isnanl.h: Likewise.
29735 * tests/test-ldexpl.c: Likewise.
29736 * tests/test-linked_list.c: Likewise.
29737 * tests/test-linkedhash_list.c: Likewise.
29738 * tests/test-locale.c: Likewise.
29739 * tests/test-localename.c: Likewise.
29740 * tests/test-lock.c: Likewise.
29741 * tests/test-lseek.c: Likewise.
29742 * tests/test-malloca.c: Likewise.
29743 * tests/test-math.c: Likewise.
29744 * tests/test-mbscasecmp.c: Likewise.
29745 * tests/test-mbscasestr1.c: Likewise.
29746 * tests/test-mbscasestr2.c: Likewise.
29747 * tests/test-mbscasestr3.c: Likewise.
29748 * tests/test-mbscasestr4.c: Likewise.
29749 * tests/test-mbschr.c: Likewise.
29750 * tests/test-mbscspn.c: Likewise.
29751 * tests/test-mbsncasecmp.c: Likewise.
29752 * tests/test-mbspbrk.c: Likewise.
29753 * tests/test-mbspcasecmp.c: Likewise.
29754 * tests/test-mbsrchr.c: Likewise.
29755 * tests/test-mbsspn.c: Likewise.
29756 * tests/test-mbsstr1.c: Likewise.
29757 * tests/test-mbsstr2.c: Likewise.
29758 * tests/test-mbsstr3.c: Likewise.
29759 * tests/test-md5.c: Likewise.
29760 * tests/test-memmem.c: Likewise.
29761 * tests/test-netinet_in.c: Likewise.
29762 * tests/test-open.c: Likewise.
29763 * tests/test-printf-frexp.c: Likewise.
29764 * tests/test-printf-frexpl.c: Likewise.
29765 * tests/test-printf-posix.c: Likewise.
29766 * tests/test-printf-posix.h: Likewise.
29767 * tests/test-rbtree_list.c: Likewise.
29768 * tests/test-rbtree_oset.c: Likewise.
29769 * tests/test-rbtreehash_list.c: Likewise.
29770 * tests/test-read-file.c: Likewise.
29771 * tests/test-rijndael.c: Likewise.
29772 * tests/test-search.c: Likewise.
29773 * tests/test-signbit.c: Likewise.
29774 * tests/test-sleep.c: Likewise.
29775 * tests/test-snprintf-posix.c: Likewise.
29776 * tests/test-snprintf-posix.h: Likewise.
29777 * tests/test-snprintf.c: Likewise.
29778 * tests/test-sprintf-posix.c: Likewise.
29779 * tests/test-sprintf-posix.h: Likewise.
29780 * tests/test-stat-time.c: Likewise.
29781 * tests/test-stdbool.c: Likewise.
29782 * tests/test-stdint.c: Likewise.
29783 * tests/test-stdio.c: Likewise.
29784 * tests/test-stdlib.c: Likewise.
29785 * tests/test-stpncpy.c: Likewise.
29786 * tests/test-strcasestr.c: Likewise.
29787 * tests/test-striconv.c: Likewise.
29788 * tests/test-striconveh.c: Likewise.
29789 * tests/test-striconveha.c: Likewise.
29790 * tests/test-string.c: Likewise.
29791 * tests/test-sys_select.c: Likewise.
29792 * tests/test-sys_socket.c: Likewise.
29793 * tests/test-sys_stat.c: Likewise.
29794 * tests/test-sys_time.c: Likewise.
29795 * tests/test-sysexits.c: Likewise.
29796 * tests/test-time.c: Likewise.
29797 * tests/test-tls.c: Likewise.
29798 * tests/test-trunc.c: Likewise.
29799 * tests/test-truncf.c: Likewise.
29800 * tests/test-truncl.c: Likewise.
29801 * tests/test-unistd.c: Likewise.
29802 * tests/test-vasnprintf-posix.c: Likewise.
29803 * tests/test-vasnprintf-posix2.c: Likewise.
29804 * tests/test-vasnprintf.c: Likewise.
29805 * tests/test-vasprintf-posix.c: Likewise.
29806 * tests/test-vasprintf.c: Likewise.
29807 * tests/test-verify.c: Likewise.
29808 * tests/test-vfprintf-posix.c: Likewise.
29809 * tests/test-vprintf-posix.c: Likewise.
29810 * tests/test-vsnprintf-posix.c: Likewise.
29811 * tests/test-vsnprintf.c: Likewise.
29812 * tests/test-vsprintf-posix.c: Likewise.
29813 * tests/test-wchar.c: Likewise.
29814 * tests/test-wctype.c: Likewise.
29815 * tests/test-wcwidth.c: Likewise.
29816 * tests/test-xstrtol.c: Likewise.
29817 * tests/test-xvasprintf.c: Likewise.
29818 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29819 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29820 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29821 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29822 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29823 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29824 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29825 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29826 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29827 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29828 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29829 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29830 * tests/uniname/test-uninames.c: Likewise.
29831 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29832 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29833 * tests/unistdio/test-u16-printf1.h: Likewise.
29834 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29835 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29836 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29837 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29838 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29839 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29840 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29841 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29842 * tests/unistdio/test-u32-printf1.h: Likewise.
29843 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29844 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29845 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29846 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29847 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29848 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29849 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29850 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29851 * tests/unistdio/test-u8-printf1.h: Likewise.
29852 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29853 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29854 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29855 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29856 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29857 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29858 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29859 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29860 * tests/unistdio/test-ulc-printf1.h: Likewise.
29861 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29862 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29863 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29864 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29865 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29866 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29867 * tests/uniwidth/test-u16-strwidth.c: Likewise.
29868 * tests/uniwidth/test-u16-width.c: Likewise.
29869 * tests/uniwidth/test-u32-strwidth.c: Likewise.
29870 * tests/uniwidth/test-u32-width.c: Likewise.
29871 * tests/uniwidth/test-u8-strwidth.c: Likewise.
29872 * tests/uniwidth/test-u8-width.c: Likewise.
29873 * tests/uniwidth/test-uc_width.c: Likewise.
29874 * config/srclist-update: Likewise.
29875 (fixlicense): Update to GPLv3+.
29877 Change copyright notice from LGPLv2.1+ to LGPLv3+.
29878 * tests/test-tsearch.c: Change copyright notice.
29880 Change copyright notice from LGPLv2.0+ to LGPLv3+.
29881 * lib/c-strcaseeq.h: Change copyright notice.
29882 * lib/streq.h: Likewise.
29883 * lib/uniconv.h: Likewise.
29884 * lib/uniconv/u-conv-from-enc.h: Likewise.
29885 * lib/uniconv/u-conv-to-enc.h: Likewise.
29886 * lib/uniconv/u-strconv-from-enc.h: Likewise.
29887 * lib/uniconv/u-strconv-to-enc.h: Likewise.
29888 * lib/uniconv/u16-conv-from-enc.c: Likewise.
29889 * lib/uniconv/u16-conv-to-enc.c: Likewise.
29890 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29891 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29892 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29893 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29894 * lib/uniconv/u32-conv-from-enc.c: Likewise.
29895 * lib/uniconv/u32-conv-to-enc.c: Likewise.
29896 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29897 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29898 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29899 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29900 * lib/uniconv/u8-conv-from-enc.c: Likewise.
29901 * lib/uniconv/u8-conv-to-enc.c: Likewise.
29902 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29903 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29904 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29905 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29906 * lib/uniname.h: Likewise.
29907 * lib/uniname/uniname.c: Likewise.
29908 * lib/unistdio.h: Likewise.
29909 * lib/unistdio/u-asnprintf.h: Likewise.
29910 * lib/unistdio/u-asprintf.h: Likewise.
29911 * lib/unistdio/u-printf-args.c: Likewise.
29912 * lib/unistdio/u-printf-args.h: Likewise.
29913 * lib/unistdio/u-printf-parse.h: Likewise.
29914 * lib/unistdio/u-snprintf.h: Likewise.
29915 * lib/unistdio/u-sprintf.h: Likewise.
29916 * lib/unistdio/u-vasprintf.h: Likewise.
29917 * lib/unistdio/u-vsnprintf.h: Likewise.
29918 * lib/unistdio/u-vsprintf.h: Likewise.
29919 * lib/unistdio/u16-asnprintf.c: Likewise.
29920 * lib/unistdio/u16-asprintf.c: Likewise.
29921 * lib/unistdio/u16-printf-parse.c: Likewise.
29922 * lib/unistdio/u16-snprintf.c: Likewise.
29923 * lib/unistdio/u16-sprintf.c: Likewise.
29924 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29925 * lib/unistdio/u16-u16-asprintf.c: Likewise.
29926 * lib/unistdio/u16-u16-snprintf.c: Likewise.
29927 * lib/unistdio/u16-u16-sprintf.c: Likewise.
29928 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29929 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29930 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29931 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29932 * lib/unistdio/u16-vasnprintf.c: Likewise.
29933 * lib/unistdio/u16-vasprintf.c: Likewise.
29934 * lib/unistdio/u16-vsnprintf.c: Likewise.
29935 * lib/unistdio/u16-vsprintf.c: Likewise.
29936 * lib/unistdio/u32-asnprintf.c: Likewise.
29937 * lib/unistdio/u32-asprintf.c: Likewise.
29938 * lib/unistdio/u32-printf-parse.c: Likewise.
29939 * lib/unistdio/u32-snprintf.c: Likewise.
29940 * lib/unistdio/u32-sprintf.c: Likewise.
29941 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29942 * lib/unistdio/u32-u32-asprintf.c: Likewise.
29943 * lib/unistdio/u32-u32-snprintf.c: Likewise.
29944 * lib/unistdio/u32-u32-sprintf.c: Likewise.
29945 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29946 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29947 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29948 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29949 * lib/unistdio/u32-vasnprintf.c: Likewise.
29950 * lib/unistdio/u32-vasprintf.c: Likewise.
29951 * lib/unistdio/u32-vsnprintf.c: Likewise.
29952 * lib/unistdio/u32-vsprintf.c: Likewise.
29953 * lib/unistdio/u8-asnprintf.c: Likewise.
29954 * lib/unistdio/u8-asprintf.c: Likewise.
29955 * lib/unistdio/u8-printf-parse.c: Likewise.
29956 * lib/unistdio/u8-snprintf.c: Likewise.
29957 * lib/unistdio/u8-sprintf.c: Likewise.
29958 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29959 * lib/unistdio/u8-u8-asprintf.c: Likewise.
29960 * lib/unistdio/u8-u8-snprintf.c: Likewise.
29961 * lib/unistdio/u8-u8-sprintf.c: Likewise.
29962 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29963 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29964 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29965 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29966 * lib/unistdio/u8-vasnprintf.c: Likewise.
29967 * lib/unistdio/u8-vasprintf.c: Likewise.
29968 * lib/unistdio/u8-vsnprintf.c: Likewise.
29969 * lib/unistdio/u8-vsprintf.c: Likewise.
29970 * lib/unistdio/ulc-asnprintf.c: Likewise.
29971 * lib/unistdio/ulc-asprintf.c: Likewise.
29972 * lib/unistdio/ulc-printf-parse.c: Likewise.
29973 * lib/unistdio/ulc-snprintf.c: Likewise.
29974 * lib/unistdio/ulc-sprintf.c: Likewise.
29975 * lib/unistdio/ulc-vasnprintf.c: Likewise.
29976 * lib/unistdio/ulc-vasprintf.c: Likewise.
29977 * lib/unistdio/ulc-vsnprintf.c: Likewise.
29978 * lib/unistdio/ulc-vsprintf.c: Likewise.
29979 * lib/unistr.h: Likewise.
29980 * lib/unistr/u-cpy-alloc.h: Likewise.
29981 * lib/unistr/u-cpy.h: Likewise.
29982 * lib/unistr/u-endswith.h: Likewise.
29983 * lib/unistr/u-move.h: Likewise.
29984 * lib/unistr/u-set.h: Likewise.
29985 * lib/unistr/u-startswith.h: Likewise.
29986 * lib/unistr/u-stpcpy.h: Likewise.
29987 * lib/unistr/u-stpncpy.h: Likewise.
29988 * lib/unistr/u-strcat.h: Likewise.
29989 * lib/unistr/u-strcpy.h: Likewise.
29990 * lib/unistr/u-strcspn.h: Likewise.
29991 * lib/unistr/u-strdup.h: Likewise.
29992 * lib/unistr/u-strlen.h: Likewise.
29993 * lib/unistr/u-strncat.h: Likewise.
29994 * lib/unistr/u-strncpy.h: Likewise.
29995 * lib/unistr/u-strnlen.h: Likewise.
29996 * lib/unistr/u-strpbrk.h: Likewise.
29997 * lib/unistr/u-strspn.h: Likewise.
29998 * lib/unistr/u-strstr.h: Likewise.
29999 * lib/unistr/u-strtok.h: Likewise.
30000 * lib/unistr/u16-check.c: Likewise.
30001 * lib/unistr/u16-chr.c: Likewise.
30002 * lib/unistr/u16-cmp.c: Likewise.
30003 * lib/unistr/u16-cpy-alloc.c: Likewise.
30004 * lib/unistr/u16-cpy.c: Likewise.
30005 * lib/unistr/u16-endswith.c: Likewise.
30006 * lib/unistr/u16-mblen.c: Likewise.
30007 * lib/unistr/u16-mbsnlen.c: Likewise.
30008 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30009 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30010 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30011 * lib/unistr/u16-mbtouc.c: Likewise.
30012 * lib/unistr/u16-mbtoucr.c: Likewise.
30013 * lib/unistr/u16-move.c: Likewise.
30014 * lib/unistr/u16-next.c: Likewise.
30015 * lib/unistr/u16-prev.c: Likewise.
30016 * lib/unistr/u16-set.c: Likewise.
30017 * lib/unistr/u16-startswith.c: Likewise.
30018 * lib/unistr/u16-stpcpy.c: Likewise.
30019 * lib/unistr/u16-stpncpy.c: Likewise.
30020 * lib/unistr/u16-strcat.c: Likewise.
30021 * lib/unistr/u16-strchr.c: Likewise.
30022 * lib/unistr/u16-strcmp.c: Likewise.
30023 * lib/unistr/u16-strcpy.c: Likewise.
30024 * lib/unistr/u16-strcspn.c: Likewise.
30025 * lib/unistr/u16-strdup.c: Likewise.
30026 * lib/unistr/u16-strlen.c: Likewise.
30027 * lib/unistr/u16-strmblen.c: Likewise.
30028 * lib/unistr/u16-strmbtouc.c: Likewise.
30029 * lib/unistr/u16-strncat.c: Likewise.
30030 * lib/unistr/u16-strncmp.c: Likewise.
30031 * lib/unistr/u16-strncpy.c: Likewise.
30032 * lib/unistr/u16-strnlen.c: Likewise.
30033 * lib/unistr/u16-strpbrk.c: Likewise.
30034 * lib/unistr/u16-strrchr.c: Likewise.
30035 * lib/unistr/u16-strspn.c: Likewise.
30036 * lib/unistr/u16-strstr.c: Likewise.
30037 * lib/unistr/u16-strtok.c: Likewise.
30038 * lib/unistr/u16-to-u32.c: Likewise.
30039 * lib/unistr/u16-to-u8.c: Likewise.
30040 * lib/unistr/u16-uctomb-aux.c: Likewise.
30041 * lib/unistr/u16-uctomb.c: Likewise.
30042 * lib/unistr/u32-check.c: Likewise.
30043 * lib/unistr/u32-chr.c: Likewise.
30044 * lib/unistr/u32-cmp.c: Likewise.
30045 * lib/unistr/u32-cpy-alloc.c: Likewise.
30046 * lib/unistr/u32-cpy.c: Likewise.
30047 * lib/unistr/u32-endswith.c: Likewise.
30048 * lib/unistr/u32-mblen.c: Likewise.
30049 * lib/unistr/u32-mbsnlen.c: Likewise.
30050 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30051 * lib/unistr/u32-mbtouc.c: Likewise.
30052 * lib/unistr/u32-mbtoucr.c: Likewise.
30053 * lib/unistr/u32-move.c: Likewise.
30054 * lib/unistr/u32-next.c: Likewise.
30055 * lib/unistr/u32-prev.c: Likewise.
30056 * lib/unistr/u32-set.c: Likewise.
30057 * lib/unistr/u32-startswith.c: Likewise.
30058 * lib/unistr/u32-stpcpy.c: Likewise.
30059 * lib/unistr/u32-stpncpy.c: Likewise.
30060 * lib/unistr/u32-strcat.c: Likewise.
30061 * lib/unistr/u32-strchr.c: Likewise.
30062 * lib/unistr/u32-strcmp.c: Likewise.
30063 * lib/unistr/u32-strcpy.c: Likewise.
30064 * lib/unistr/u32-strcspn.c: Likewise.
30065 * lib/unistr/u32-strdup.c: Likewise.
30066 * lib/unistr/u32-strlen.c: Likewise.
30067 * lib/unistr/u32-strmblen.c: Likewise.
30068 * lib/unistr/u32-strmbtouc.c: Likewise.
30069 * lib/unistr/u32-strncat.c: Likewise.
30070 * lib/unistr/u32-strncmp.c: Likewise.
30071 * lib/unistr/u32-strncpy.c: Likewise.
30072 * lib/unistr/u32-strnlen.c: Likewise.
30073 * lib/unistr/u32-strpbrk.c: Likewise.
30074 * lib/unistr/u32-strrchr.c: Likewise.
30075 * lib/unistr/u32-strspn.c: Likewise.
30076 * lib/unistr/u32-strstr.c: Likewise.
30077 * lib/unistr/u32-strtok.c: Likewise.
30078 * lib/unistr/u32-to-u16.c: Likewise.
30079 * lib/unistr/u32-to-u8.c: Likewise.
30080 * lib/unistr/u32-uctomb.c: Likewise.
30081 * lib/unistr/u8-check.c: Likewise.
30082 * lib/unistr/u8-chr.c: Likewise.
30083 * lib/unistr/u8-cmp.c: Likewise.
30084 * lib/unistr/u8-cpy-alloc.c: Likewise.
30085 * lib/unistr/u8-cpy.c: Likewise.
30086 * lib/unistr/u8-endswith.c: Likewise.
30087 * lib/unistr/u8-mblen.c: Likewise.
30088 * lib/unistr/u8-mbsnlen.c: Likewise.
30089 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30090 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30091 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30092 * lib/unistr/u8-mbtouc.c: Likewise.
30093 * lib/unistr/u8-mbtoucr.c: Likewise.
30094 * lib/unistr/u8-move.c: Likewise.
30095 * lib/unistr/u8-next.c: Likewise.
30096 * lib/unistr/u8-prev.c: Likewise.
30097 * lib/unistr/u8-set.c: Likewise.
30098 * lib/unistr/u8-startswith.c: Likewise.
30099 * lib/unistr/u8-stpcpy.c: Likewise.
30100 * lib/unistr/u8-stpncpy.c: Likewise.
30101 * lib/unistr/u8-strcat.c: Likewise.
30102 * lib/unistr/u8-strchr.c: Likewise.
30103 * lib/unistr/u8-strcmp.c: Likewise.
30104 * lib/unistr/u8-strcpy.c: Likewise.
30105 * lib/unistr/u8-strcspn.c: Likewise.
30106 * lib/unistr/u8-strdup.c: Likewise.
30107 * lib/unistr/u8-strlen.c: Likewise.
30108 * lib/unistr/u8-strmblen.c: Likewise.
30109 * lib/unistr/u8-strmbtouc.c: Likewise.
30110 * lib/unistr/u8-strncat.c: Likewise.
30111 * lib/unistr/u8-strncmp.c: Likewise.
30112 * lib/unistr/u8-strncpy.c: Likewise.
30113 * lib/unistr/u8-strnlen.c: Likewise.
30114 * lib/unistr/u8-strpbrk.c: Likewise.
30115 * lib/unistr/u8-strrchr.c: Likewise.
30116 * lib/unistr/u8-strspn.c: Likewise.
30117 * lib/unistr/u8-strstr.c: Likewise.
30118 * lib/unistr/u8-strtok.c: Likewise.
30119 * lib/unistr/u8-to-u16.c: Likewise.
30120 * lib/unistr/u8-to-u32.c: Likewise.
30121 * lib/unistr/u8-uctomb-aux.c: Likewise.
30122 * lib/unistr/u8-uctomb.c: Likewise.
30123 * lib/unitypes.h: Likewise.
30124 * lib/uniwidth.h: Likewise.
30125 * lib/uniwidth/cjk.h: Likewise.
30126 * lib/uniwidth/u16-strwidth.c: Likewise.
30127 * lib/uniwidth/u16-width.c: Likewise.
30128 * lib/uniwidth/u32-strwidth.c: Likewise.
30129 * lib/uniwidth/u32-width.c: Likewise.
30130 * lib/uniwidth/u8-strwidth.c: Likewise.
30131 * lib/uniwidth/u8-width.c: Likewise.
30132 * lib/uniwidth/width.c: Likewise.
30134 2007-10-07 Bruno Haible <bruno@clisp.org>
30136 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30137 The file is still under LGPL (see modules/inttypes).
30139 2007-10-06 Bruno Haible <bruno@clisp.org>
30141 * modules/trunc (Dependencies): Add 'extensions'.
30142 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30143 Reported by Ben Pfaff <blp@gnu.org>.
30145 2007-10-06 Bruno Haible <bruno@clisp.org>
30147 * modules/freopen-tests: New file.
30148 * tests/test-freopen.c: New file.
30150 * modules/fopen-tests: New file.
30151 * tests/test-fopen.c: New file.
30153 * modules/fopen: New file.
30154 * lib/fopen.c: New file.
30155 * m4/fopen.m4: New file.
30156 * modules/freopen: New file.
30157 * lib/freopen.c: New file.
30158 * m4/freopen.m4: New file.
30159 * lib/stdio.in.h (fopen, freopen): New declarations.
30160 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30161 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30162 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30163 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30164 * doc/functions/fopen.texi: Mention the 'fopen' module.
30165 * doc/functions/freopen.texi: Mention the 'freopen' module.
30167 2007-10-06 Bruno Haible <bruno@clisp.org>
30169 * modules/open-tests: New file.
30170 * tests/test-open.c: New file.
30172 * modules/open: New file.
30173 * lib/open.c: New file.
30174 * m4/open.m4: New file.
30175 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30177 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30178 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30180 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30181 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30183 * doc/functions/open.texi: Mention the 'open' module.
30185 2007-10-04 Bruno Haible <bruno@clisp.org>
30187 * modules/ceill-tests: New file.
30188 * tests/test-ceill.c: New file.
30190 * modules/ceill: New file.
30191 * lib/ceill.c: Replace entire file.
30192 * m4/ceill.m4: New file.
30193 * lib/math.in.h (ceill): Replace declaration.
30194 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30195 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30196 * doc/functions/ceill.texi: Mention the 'ceill' module.
30197 * modules/mathl (Files): Remove lib/ceill.c.
30198 (Depends-on): Add ceill.
30200 2007-10-04 Bruno Haible <bruno@clisp.org>
30202 * modules/ceilf-tests: New file.
30203 * tests/test-ceilf.c: New file.
30205 * modules/ceilf: New file.
30206 * lib/ceil.c: New file.
30207 * lib/ceilf.c: New file.
30208 * m4/ceilf.m4: New file.
30209 * lib/math.in.h (ceilf): New declaration.
30210 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30212 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30214 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30216 2007-10-04 Bruno Haible <bruno@clisp.org>
30218 * modules/floorl-tests: New file.
30219 * tests/test-floorl.c: New file.
30221 * modules/floorl: New file.
30222 * lib/floorl.c: Replace entire file.
30223 * m4/floorl.m4: New file.
30224 * lib/math.in.h (floorl): Replace declaration.
30225 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30226 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30227 * doc/functions/floorl.texi: Mention the 'floorl' module.
30228 * modules/mathl (Files): Remove lib/floorl.c.
30229 (Depends-on): Add floorl.
30231 2007-10-04 Bruno Haible <bruno@clisp.org>
30233 * modules/floorf-tests: New file.
30234 * tests/test-floorf.c: New file.
30236 * modules/floorf: New file.
30237 * lib/floor.c: New file.
30238 * lib/floorf.c: New file.
30239 * m4/floorf.m4: New file.
30240 * lib/math.in.h (floorf): New declaration.
30241 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30243 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30245 * doc/functions/floorf.texi: Mention the 'floorf' module.
30247 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30248 Bruno Haible <bruno@clisp.org>
30250 Advertise for the Git server instead of the CVS server.
30251 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30252 repository instead of the CVS one.
30253 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30254 about all VCS systems generically.
30255 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30257 2007-10-04 Bruno Haible <bruno@clisp.org>
30259 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30261 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30263 2007-10-04 Bruno Haible <bruno@clisp.org>
30265 * modules/truncl-tests: New file.
30266 * tests/test-truncl.c: New file.
30268 * modules/truncl: New file.
30269 * lib/truncl.c: New file.
30270 * m4/truncl.m4: New file.
30271 * lib/math.in.h (truncl): New declaration.
30272 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30274 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30276 * doc/functions/truncl.texi: Mention the 'truncl' module.
30278 2007-10-04 Bruno Haible <bruno@clisp.org>
30280 * modules/truncf-tests: New file.
30281 * tests/test-truncf.c: New file.
30283 * modules/truncf: New file.
30284 * lib/trunc.c: Make paramerizable through USE_* macros.
30285 * lib/truncf.c: New file.
30286 * m4/truncf.m4: New file.
30287 * lib/math.in.h (truncf): New declaration.
30288 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30290 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30292 * doc/functions/truncf.texi: Mention the 'truncf' module.
30294 2007-10-03 Bruno Haible <bruno@clisp.org>
30296 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30297 augmentation also for tests modules.
30298 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30299 * modules/atexit-tests (Makefile.am): Likewise.
30300 * modules/binary-io-tests (Makefile.am): Likewise.
30301 * modules/c-strcase-tests (Makefile.am): Likewise.
30302 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30303 * modules/canonicalize-tests (Makefile.am): Likewise.
30304 * modules/closein-tests (Makefile.am): Likewise.
30305 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30306 * modules/freadahead-tests (Makefile.am): Likewise.
30307 * modules/fseek-tests (Makefile.am): Likewise.
30308 * modules/fseeko-tests (Makefile.am): Likewise.
30309 * modules/ftell-tests (Makefile.am): Likewise.
30310 * modules/ftello-tests (Makefile.am): Likewise.
30311 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30312 * modules/isnanl-tests (Makefile.am): Likewise.
30313 * modules/lseek-tests (Makefile.am): Likewise.
30314 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30315 * modules/mbscasestr-tests (Makefile.am): Likewise.
30316 * modules/mbschr-tests (Makefile.am): Likewise.
30317 * modules/mbscspn-tests (Makefile.am): Likewise.
30318 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30319 * modules/mbspbrk-tests (Makefile.am): Likewise.
30320 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30321 * modules/mbsrchr-tests (Makefile.am): Likewise.
30322 * modules/mbsspn-tests (Makefile.am): Likewise.
30323 * modules/mbsstr-tests (Makefile.am): Likewise.
30324 * modules/printf-posix-tests (Makefile.am): Likewise.
30325 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30326 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30327 * modules/tsearch-tests (Makefile.am): Likewise.
30328 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30329 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30330 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30331 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30332 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30333 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30334 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30335 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30336 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30337 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30338 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30339 * modules/xstrtol-tests (Makefile.am): Likewise.
30340 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30341 * modules/yesno-tests (Makefile.am): Likewise.
30343 2007-10-03 Bruno Haible <bruno@clisp.org>
30345 * modules/trunc-tests: New file.
30346 * tests/test-trunc.c: New file.
30348 * modules/trunc: New file.
30349 * lib/trunc.c: New file.
30350 * m4/trunc.m4: New file.
30351 * lib/math.in.h (trunc): New declaration.
30352 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30354 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30356 * doc/functions/trunc.texi: Mention the 'trunc' module.
30358 2007-10-03 Bruno Haible <bruno@clisp.org>
30360 * tests/test-fpending.c: New file, mostly copied
30361 from coreutils/lib/t-fpending.c.
30362 * modules/fpending-tests: New file.
30364 2007-10-03 Bruno Haible <bruno@clisp.org>
30366 Port the stdio extensions to QNX (untested).
30367 * lib/fseterr.c (fseterr): Add support for QNX.
30368 * lib/fbufmode.c (fbufmode): Likewise.
30369 * lib/freadable.c (freadable): Likewise.
30370 * lib/fwritable.c (fwritable): Likewise.
30371 * lib/freading.c (freading): Likewise.
30372 * lib/fwriting.c (fwriting): Likewise.
30373 * lib/freadahead.c (freadahed): Likewise.
30374 * lib/fpurge.c (fpurge): Likewise.
30375 * lib/fseeko.c (rpl_fseeko): Likewise.
30377 2007-10-03 Bruno Haible <bruno@clisp.org>
30378 Jim Meyering <jim@meyering.net>
30379 Eric Blake <ebb9@byu.net>
30381 * doc/relocatable.texi: Use @command instead of @program.
30383 2007-10-02 Jim Meyering <jim@meyering.net>
30385 Perform one more "_.h" -> ".in.h" substitution.
30386 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30387 instead of unistd_.h here, too.
30389 2007-10-01 Bruno Haible <bruno@clisp.org>
30391 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30392 Needed for the alloca-opt module.
30394 2007-09-30 Bruno Haible <bruno@clisp.org>
30396 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30397 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30399 * lib/argz.in.h: Renamed from lib/argz_.h.
30400 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30401 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30402 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30404 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30405 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30407 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30408 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30410 * lib/float.in.h: Renamed from lib/float_.h.
30411 * modules/float (Files, Makefile.am): Use float.in.h instead of
30413 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30414 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30416 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30417 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30419 * lib/glob.in.h: Renamed from lib/glob_.h.
30420 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30421 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30422 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30424 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30425 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30427 * lib/locale.in.h: Renamed from lib/locale_.h.
30428 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30430 * lib/math.in.h: Renamed from lib/math_.h.
30431 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30432 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30433 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30434 of netinet_in_.h. Add dependency.
30435 * lib/poll.in.h: Renamed from lib/poll_.h.
30436 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30437 * lib/search.in.h: Renamed from lib/search_.h.
30438 * modules/search (Files, Makefile.am): Use search.in.h instead of
30440 * lib/signal.in.h: Renamed from lib/signal_.h.
30441 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30443 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30444 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30446 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30447 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30449 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30450 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30452 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30453 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30455 * lib/string.in.h: Renamed from lib/string_.h.
30456 * modules/string (Files, Makefile.am): Use string.in.h instead of
30458 * doc/gnulib-tool.texi (Initial import): Update.
30459 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30460 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30461 of sys_select_.h. Add dependency.
30462 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30463 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30465 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30466 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30468 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30469 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30471 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30472 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30474 * lib/time.in.h: Renamed from lib/time_.h.
30475 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30476 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30477 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30479 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30480 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30482 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30483 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30485 * build-aux/bootstrap (slurp): Update.
30486 * lib/.cppi-disable: Update.
30488 2007-09-30 Bruno Haible <bruno@clisp.org>
30490 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30493 2007-09-30 Bruno Haible <bruno@clisp.org>
30495 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30497 2007-09-29 Bruno Haible <bruno@clisp.org>
30499 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30501 2007-09-29 Bruno Haible <bruno@clisp.org>
30503 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30504 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30505 * build-aux/install-reloc: Compile also areadlink.c.
30506 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30508 2007-09-29 Bruno Haible <bruno@clisp.org>
30510 * gnulib-tool (func_emit_initmacro_done): Indentation.
30512 2007-09-29 Bruno Haible <bruno@clisp.org>
30514 * README: Add CVS checkout update instructions.
30515 Info from Bob Proulx <bob@proulx.com>.
30517 2007-09-28 Eric Blake <ebb9@byu.net>
30519 Provide move-if-change.
30520 * build-aux/move-if-change: New file, based on best practice
30521 rather than any canonical upstream location.
30523 2007-09-28 Jim Meyering <jim@meyering.net>
30525 Fix canonicalize loop-detection corner case.
30526 Do not attempt to stat the symlink values stored via seen_triple.
30527 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30528 on linux-2.6.18, (but not 2.6.22).
30529 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30530 triple_compare. The former compares dev,ino,filename, while the latter
30531 would actually stat dirname(filename) when dev and ino were equal.
30532 * lib/hash-triple.c: Install <string.h>.
30534 (triple_compare_ino_str): New function.
30535 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30537 2007-09-28 Eric Blake <ebb9@byu.net>
30539 Enforce that AC_REPLACE_FUNCS files exist.
30540 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30541 override check for typos.
30543 Fix test-closein on Solaris 10.
30544 * tests/test-closein.c (main): Don't assume stdin can be inherited
30545 closed on all systems.
30546 * tests/test-closein.sh: Likewise.
30547 Reported by Piotr Tarnowski.
30549 2007-09-28 Jim Meyering <jim@meyering.net>
30551 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30553 2007-09-27 Jim Meyering <jim@meyering.net>
30555 canonicalize: Avoid a false-positive cycle failure.
30556 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30557 Sort. Remove cycle-check.
30558 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30560 (seen_triple): New function.
30561 (canonicalize_filename_mode): Use it instead of cycle-check.
30562 * tests/test-canonicalize.c: Add a test for this bug.
30563 * tests/test-canonicalize.sh: Set up and run the test.
30565 New module, file-set, from coreutils.
30566 * modules/file-set: Define it.
30567 * lib/file-set.c, lib/file-set.h: Implement.
30569 New module, hash-triple, from coreutils.
30570 * modules/hash-triple: Define it.
30571 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30573 2007-09-25 Eric Blake <ebb9@byu.net>
30575 Fix strerror on Interix.
30576 * lib/string_.h (strerror): Declare replacement.
30577 * doc/functions/strerror.texi (strerror): Document the Interix
30579 * modules/string (Makefile.am): Support new hooks.
30580 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30581 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30582 gl_FUNC_STRERROR_SEPARATE.
30583 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30584 * lib/strerror.c (rpl_strerror): Provide replacement.
30585 * modules/strerror (Depends-on): Add string.
30586 (configure.ac): Detect use of module.
30587 * tests/test-strerror.c: New file.
30588 * modules/strerror-tests: New test module.
30589 * modules/argp (Depends-on): Add strerror.
30590 * modules/error (Depends-on): Likewise.
30591 Reported by Martin Koeppe.
30593 2007-09-24 Bruno Haible <bruno@clisp.org>
30595 * README: Update git instructions.
30597 2007-09-24 Eric Blake <ebb9@byu.net>
30599 Revert fpending breakage from 2007-09-08.
30600 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30603 2007-09-24 Jim Meyering <jim@meyering.net>
30605 filenamecat.c: Add a test.
30606 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30607 showing how the function works when DIR is the empty string.
30609 2007-09-21 Simon Josefsson <simon@josefsson.org>
30611 * tests/test-canonicalize.sh: Turn on executable bit.
30613 2007-09-19 Eric Blake <ebb9@byu.net>
30615 * README: Update CVS instructions.
30617 2007-09-18 Bruno Haible <bruno@clisp.org>
30619 * modules/areadlink: New file.
30620 * lib/areadlink.h (areadlink): New declaration.
30621 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30623 2007-09-17 Jim Meyering <jim@meyering.net>
30625 * lib/savewd.c (ESTALE) [!defined]: Define.
30626 Reported to be required on Interix by Martin Koeppe.
30628 2007-09-17 Bruno Haible <bruno@clisp.org>
30630 * gnulib-tool (func_version): Use $version.
30632 2007-09-16 Bruno Haible <bruno@clisp.org>
30634 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30635 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30636 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30637 Reported by Greg Schafer <gschafer@zip.com.au>.
30639 2007-09-15 Bruno Haible <bruno@clisp.org>
30641 * gnulib-tool (sed): Try a little harder to make bash understand the
30643 Reported by Bruce Korb <bruce.korb@gmail.com>.
30645 2007-09-13 Eric Blake <ebb9@byu.net>
30647 * ChangeLog: Remove conflict markers.
30649 2007-09-13 Simon Josefsson <simon@josefsson.org>
30651 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30652 Reported by Bruno Haible <bruno@clisp.org>.
30654 2007-09-12 Bruno Haible <bruno@clisp.org>
30656 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30657 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30660 2007-09-12 Eric Blake <ebb9@byu.net>
30662 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30663 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30664 Autoconf definition.
30665 * modules/euidaccess (Depends-on): Add extensions, for
30666 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30667 * modules/fnmatch (Depends-on): Likewise.
30668 * modules/getaddrinfo (Depends-on): Likewise.
30669 * modules/getdelim (Depends-on): Likewise.
30670 * modules/getline (Depends-on): Likewise.
30671 * modules/getsubopt (Depends-on): Likewise.
30672 * modules/gettext (Depends-on): Likewise.
30673 * modules/group-member (Depends-on): Likewise.
30674 * modules/mbchar (Depends-on): Likewise.
30675 * modules/memmem (Depends-on): Likewise.
30676 * modules/mempcpy (Depends-on): Likewise.
30677 * modules/memrchr (Depends-on): Likewise.
30678 * modules/pagealign_alloc (Depends-on): Likewise.
30679 * modules/readutmp (Depends-on): Likewise.
30680 * modules/stpcpy (Depends-on): Likewise.
30681 * modules/stpncpy (Depends-on): Likewise.
30682 * modules/strchrnul (Depends-on): Likewise.
30683 * modules/strndup (Depends-on): Likewise.
30684 * modules/strsep (Depends-on): Likewise.
30685 * modules/strverscmp (Depends-on): Likewise.
30686 * modules/vasprintf (Depends-on): Likewise.
30687 * modules/wcwidth (Depends-on): Likewise.
30688 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30689 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30690 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30691 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30692 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30693 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30694 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30695 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30696 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30697 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30698 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30699 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30700 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30701 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30702 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30703 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30704 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30705 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30706 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30707 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30708 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30709 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30710 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30711 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30712 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30713 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30714 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30715 so that lock.m4 can be used in gettext without extensions module.
30717 2007-09-11 Bruno Haible <bruno@clisp.org>
30719 * m4/isc-posix.m4: Remove file.
30720 Suggested by Eric Blake.
30722 2007-09-11 Eric Blake <ebb9@byu.net>
30724 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30726 2007-09-10 Bruno Haible <bruno@clisp.org>
30728 * posix-modules: Fix typo in error message.
30729 Reported by Matt <mkraai@beckman.com>.
30731 2007-09-09 Bruno Haible <bruno@clisp.org>
30733 * doc/functions/getdelim.texi: Update list of platforms lacking the
30735 * doc/functions/getline.texi: Likewise.
30737 2007-09-09 Jim Meyering <jim@meyering.net>
30739 * lib/hash.c (hash_initialize): Detect calloc failure.
30740 Reported by Bruno Haible.
30742 2007-09-09 Bruno Haible <bruno@clisp.org>
30744 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30745 malloc or realloc fails.
30747 2007-09-09 Bruno Haible <bruno@clisp.org>
30749 * modules/getcwd (Depends-on): Add malloc-posix.
30750 * modules/glob (Depends-on): Likewise.
30751 * modules/putenv (Depends-on): Likewise.
30752 * modules/strdup (Depends-on): Likewise.
30753 * modules/getdelim (Depends-on): Add realloc-posix.
30754 * modules/read-file (Depends-on): Likewise.
30756 2007-09-09 Bruno Haible <bruno@clisp.org>
30758 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30759 (gl_FUNC_MALLOC_POSIX): Require it.
30760 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30761 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30762 * modules/realloc (Files): Add m4/malloc.m4.
30763 * modules/calloc (Files): Likewise.
30765 2007-09-09 Bruno Haible <bruno@clisp.org>
30767 * modules/malloc-posix: New file.
30768 * modules/malloc (Depends-on): Add malloc-posix.
30769 * lib/malloc.c: Include errno.h.
30770 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30771 and a POSIX-compatible malloc into a single function. Set ENOMEM
30772 when returning NULL.
30773 * m4/malloc.m4: New file.
30774 * doc/functions/malloc.texi: Mention the malloc-posix module.
30775 * lib/stdlib_.h (malloc): New declaration.
30776 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30777 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30778 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30779 and HAVE_MALLOC_POSIX.
30781 2007-09-09 Bruno Haible <bruno@clisp.org>
30783 * modules/realloc-posix: New file.
30784 * modules/realloc (Depends-on): Add realloc-posix.
30785 * lib/realloc.c: Include errno.h.
30786 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30787 and a POSIX-compatible realloc into a single function. Set ENOMEM
30788 when returning NULL.
30789 * m4/realloc.m4: New file.
30790 * doc/functions/realloc.texi: Mention the realloc-posix module.
30791 * lib/stdlib_.h (realloc): New declaration.
30792 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30793 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30794 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30795 and HAVE_REALLOC_POSIX.
30797 2007-09-09 Bruno Haible <bruno@clisp.org>
30799 * modules/calloc-posix: New file.
30800 * modules/calloc (Depends-on): Add calloc-posix.
30801 * lib/calloc.c: Include errno.h.
30802 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30803 and a POSIX-compatible calloc into a single function. Set ENOMEM
30804 when returning NULL.
30805 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30806 * doc/functions/calloc.texi: Mention the calloc-posix module.
30807 * lib/stdlib_.h (calloc): New declaration.
30808 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30809 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30810 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30811 and HAVE_CALLOC_POSIX.
30813 2007-09-09 Bruno Haible <bruno@clisp.org>
30815 Allow for modules to show an arbitrary notice.
30816 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30817 * gnulib-tool: New option --extract-notice.
30818 (func_usage): Document it.
30819 (sed_extract_prog): Update.
30820 (func_get_notice): New function.
30821 (func_modules_notice): New function.
30822 (func_import, func_create_testdir): Invoke it.
30823 Suggested by Jim Meyering.
30825 2007-09-09 Bruno Haible <bruno@clisp.org>
30827 * gnulib-tool: New options --verbose, --quiet.
30828 (func_usage): Document them.
30829 (verbose): New variable.
30830 (func_execute_command): New function.
30831 (func_import): Don't show the module list and the file list if
30833 (func_create_testdir): Likewise. Use func_execute_command.
30834 (func_create_megatestdir): Use func_execute_command.
30836 2007-09-08 Bruno Haible <bruno@clisp.org>
30838 * gnulib-tool (func_import): Prefer rsync over wget when available,
30839 for fetching the PO files.
30841 2007-09-08 Bruno Haible <bruno@clisp.org>
30843 * posix-modules: New file. Portions copied from gnulib-tool.
30844 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30846 2007-09-08 Jim Meyering <jim@meyering.net>
30848 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30849 * lib/fpending.h: Rename from __fpending.h.
30850 * lib/fpending.c: Rename from __fpending.c.
30851 Include "fpending.h", not "__fpending.h".
30852 * lib/__fpending.h, lib/__fpending.c: Remove files.
30853 * modules/fpending (Files): Reflect new file names.
30854 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30856 2007-09-08 Bruno Haible <bruno@clisp.org>
30858 * m4/inttypes-h.m4: Remove stub file.
30860 2007-09-07 Simon Josefsson <simon@josefsson.org>
30862 * doc/headers/stdint.texi: Discuss #include_next issue.
30864 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
30866 * build-aux/bootstrap: Remove obsolete comment about wget --help.
30868 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30870 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30873 2007-09-03 Jim Meyering <jim@meyering.net>
30875 New module: git-version-gen.
30876 * modules/git-version-gen: New file.
30878 Import changes from coreutils for bootstrap script.
30880 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30882 bootstrap: uses rsync to download the .po files
30883 * build-aux/bootstrap (po_download_command_format): New global.
30884 (download_po_files): Use rsync.
30885 (update_po_files): Don't remove .po files after download,
30886 so future rsync runs can take advantage of the copies.
30888 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30890 Solve the unnecessary-.po-file-regeneration problem once and for all.
30891 * build-aux/bootstrap (download_po_files): New function, renamed from
30892 get_translations. Now, downloads, but doesn't update LINGUAS.
30893 (update_po_files): New function.
30895 bootstrap: Ignore more.
30896 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30897 uniwidth to e.g., lib/.gitignore.
30898 (slurp): Handle the sys_stat_.h -> sys mapping, too.
30900 * build-aux/bootstrap: New setting: vc_ignore.
30901 (insert_sorted_if_absent): Create $file if absent.
30902 Adapt to new, possibly empty, list: $vc_ignore.
30904 bootstrap: generate more ignorable names
30905 * build-aux/bootstrap (slurp): When generating ignorable names,
30906 also map .sin to .sed, .gperf to .c, and .y to .c.
30908 2007-09-03 Jim Meyering <jim@meyering.net>
30910 * build-aux/git-version-gen: New file, from coreutils. For details, see
30911 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30913 2007-09-02 Bruno Haible <bruno@clisp.org>
30915 Fix mis-recognition of 'mcs' on QNX 6.
30916 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30917 output contains the string "Mono".
30918 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30919 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30921 2007-09-01 Bruno Haible <bruno@clisp.org>
30923 Fix collision between uniwidth/* and linebreak modules.
30924 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30925 u32_width): Remove declarations.
30926 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30927 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30928 streq3, streq2, streq1, streq0): Remove functions.
30929 (STREQ): Remove macro.
30930 (is_cjk_encoding): Remove function.
30931 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30932 (uc_width, u8_width, u16_width, u32_width): Remove functions.
30933 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30934 * NEWS: Document the change.
30936 2007-09-01 Bruno Haible <bruno@clisp.org>
30938 * lib/streq.h: Add double-inclusion guard.
30940 2007-09-01 Karl Berry <karl@gnu.org>
30942 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30944 2007-08-28 Jim Meyering <jim@meyering.net>
30946 Rename mreadlink_with_size to areadlink_with_size.
30947 * NEWS: Document the change.
30948 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30949 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30950 * lib/mreadlink.h: Rename this to...
30951 * lib/areadlink.h: ...this.
30952 * modules/mreadlink-with-size: Rename this to...
30953 * modules/areadlink-with-size: ...this.
30954 * lib/canonicalize.c: Reflect the renaming.
30955 * modules/canonicalize: Likewise.
30957 2007-08-26 Bruno Haible <bruno@clisp.org>
30959 * gnulib-tool (func_import): When deciding which files to remove,
30960 consider also dangling symbolic links.
30961 Reported by Eric Blake.
30963 2007-08-26 Bruno Haible <bruno@clisp.org>
30965 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30967 2007-08-23 Simon Josefsson <simon@josefsson.org>
30969 * lib/readline.c: Don't include getline.h, the prototype is now
30972 2007-08-23 Jim Meyering <jim@meyering.net>
30975 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30976 around the funlockfile call, since funlockfile never sets errno.
30977 Don't set errno upon failed realloc.
30979 2007-08-22 Eric Blake <ebb9@byu.net>
30982 * lib/getdelim.c (getdelim): Revert regression that required *n to
30983 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
30984 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30985 getdelim, rather than whether implementation is missing.
30986 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30987 * lib/stdio_.h (getline): Also declare if replacement is
30989 * doc/functions/getdelim.texi: New file.
30990 * doc/functions/getline.texi: Likewise.
30991 * doc/gnulib.texi (Function Substitutes): Add new files.
30992 Reported by Bruno Haible.
30994 2007-08-22 Ludovic Courtès <ludo@gnu.org>
30996 * users.txt: Add Guile.
30998 2007-08-22 Eric Blake <ebb9@byu.net>
31000 * tests/test-getdelim.c (main): Use remove, not unlink.
31001 * tests/test-getline.c (main): Likewise.
31003 Move getline and getdelim into stdio.h, per POSIX 200x.
31004 * modules/getline (Files): Remove getline.h.
31005 (Depends-on): Add stdio.
31006 (configure.ac): Add module indicator.
31007 * modules/getdelim (Files): Remove getdelim.h.
31008 (Depends-on): Add stdio.
31009 (configure.ac): Add module indicator.
31010 * modules/stdio (Makefile.am): Work with new indicators.
31011 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31012 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31013 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31014 * lib/getdelim.h: Delete.
31015 * lib/getline.h: Delete.
31016 * lib/stdio_.h (getdelim, getline): Declare.
31017 * modules/getdelim-tests: New module.
31018 * modules/getline-tests: Likewise.
31019 * tests/test-getdelim.c: New file.
31020 * tests/test-getline.c: Likewise.
31021 * NEWS: Document the change.
31022 * lib/getline.c: Update choice of header.
31023 * lib/csharpcomp.c: Likewise.
31024 * lib/getpass.c: Likewise.
31025 * lib/javacomp.c: Likewise.
31026 * lib/javaversion.c: Likewise.
31027 * lib/yesno.c: Likewise.
31028 * lib/getdelim.c: Likewise.
31029 (getdelim): Set errno on failure, and avoid memory leak.
31031 2007-08-19 Bruno Haible <bruno@clisp.org>
31033 * modules/closein (Depends-on): Add freadahead.
31034 * lib/closein.c: Include freadahead.h.
31035 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31038 2007-08-19 Bruno Haible <bruno@clisp.org>
31040 * modules/freadahead-tests: New file.
31041 * tests/test-freadahead.sh: New file.
31042 * tests/test-freadahead.c: New file.
31044 * modules/freadahead: New file.
31045 * lib/freadahead.h: New file.
31046 * lib/freadahead.c: New file.
31047 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31048 fbufmode, fpurge, freadable, fwritable.
31050 2007-08-19 Eric Blake <ebb9@byu.net>
31052 Test yesno in combination with closein.
31053 * lib/yesno.c (yesno): Document use of stdin.
31054 * modules/yesno-tests (Files): New module.
31055 * tests/test-yesno.c (main): New file.
31056 * tests/test-yesno.sh: Likewise.
31058 2007-08-19 Bruno Haible <bruno@clisp.org>
31060 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31061 * lib/fseeko.c (rpl_fseeko): Likewise.
31062 * lib/fseterr.c (fseterr): Likewise.
31064 2007-08-19 Bruno Haible <bruno@clisp.org>
31066 * tests/test-lseek.c (main): Disable a test for BeOS.
31067 * doc/functions/lseek.texi: Document the BeOS bug.
31069 2007-08-19 Bruno Haible <bruno@clisp.org>
31070 Eric Blake <ebb9@byu.net>
31072 * lib/lseek.c: Include <sys/stat.h>.
31073 (rpl_lseek): Add workaround code also for Unix platforms.
31075 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31076 * doc/functions/lseek.texi: Document BeOS definiency.
31078 2007-08-18 Bruno Haible <bruno@clisp.org>
31080 * modules/fstrcmp-tests: New file.
31081 * tests/test-fstrcmp.c: New file.
31083 2007-08-18 Bruno Haible <bruno@clisp.org>
31085 * modules/fstrcmp: New file, from GNU gettext with modifications.
31086 * lib/fstrcmp.h: New file, from GNU gettext.
31087 * lib/fstrcmp.c: New file, from GNU gettext.
31088 * MODULES.html.sh (String handling): Add fstrcmp.
31090 2007-08-18 Bruno Haible <bruno@clisp.org>
31092 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31094 (diag, compareseq): Remove const from the ctxt argument.
31095 (USE_HEURISTIC): Undefine at the end.
31097 2007-08-18 Jim Meyering <jim@meyering.net>
31099 New file: lib/idcache.h
31100 * NEWS: Mention the addition.
31101 * modules/idcache (Files): Add lib/idcache.h
31102 * lib/idcache.c: Include "idcache.h".
31103 Don't include <sys/types.h>.
31104 Add a FIXME comment.
31105 Move file-scoped "static" declarations to the top.
31106 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31108 2007-08-17 Bruno Haible <bruno@clisp.org>
31109 and Paul Eggert <eggert@cs.ucla.edu>
31111 * MODULES.html.sh: Add diffseq.
31112 * modules/diffseq: New file.
31113 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31114 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31116 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31118 Import changes from coreutils for bootstrap script.
31120 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31122 * build-aux/bootstrap (slurp): Work even in environments where
31123 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31124 current code does not slurp files whose names start with ".", and
31125 this looks like it might be a troublesome area.
31127 2007-07-11 Jim Meyering <jim@meyering.net>
31129 If there's a GPL vN copyright comment, require that N == 3.
31131 2007-07-08 Jim Meyering <jim@meyering.net>
31133 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31134 * build-aux/bootstrap (mam_template): Move definition out of loop.
31136 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31138 * build-aux/bootstrap (symlink_to_dir): Rename function from
31139 symlink_to_gnulib. Add a directory parameter. Update all
31141 (cp_mark_as_generated): Also check for -- and link to -- files in
31144 2007-07-08 Jim Meyering <jim@meyering.net>
31146 Adapt to deeper hierarchy in gnulib.
31147 * build-aux/bootstrap (symlink_to_dir): If the destination
31148 directory doesn't exist, create it. This is required at least for
31149 "lib/uniwidth/cjk.h".
31151 2007-05-15 Jim Meyering <jim@meyering.net>
31153 * build-aux/bootstrap: Now that generated Makefile.am files
31154 are no longer under version control, they must be created at
31157 2007-08-14 Ben Pfaff <blp@gnu.org>
31159 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31161 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31163 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31164 given the changes below.
31165 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31166 even on hosts that have padding bits beyond the supported 64.
31168 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31170 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31171 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31172 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31174 (xstrtol_error): Remove.
31175 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31176 but with a different signature.
31177 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31178 * lib/xstrtol-error.c: Include exitfail.h.
31179 (xstrtol_fatal): New function, with a different signature from the
31180 old xstrtol_error, so that the caller need not worry about passing
31181 in an exit status, or about storage management of the option argument.
31182 (xstrtol_error): Now a static function. Redo signature to
31183 implement xstrtol_fatal. Output the correct number of hyphens in
31184 front of the option so that the caller need not worry about
31185 storage management.
31187 (_): Remove; not used now.
31188 * modules/xstrtol: Depend on getopt.
31189 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31190 of old STRTOL_FATAL_ERROR macro.
31191 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31193 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31194 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31196 2007-08-08 Eric Blake <ebb9@byu.net>
31198 * lib/xstrtol-error.c: Add missing include.
31200 Move xstrtol messages into gnulib domain, when --pobase is used.
31201 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31202 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31203 * modules/xstrtol (Files): Distribute new file.
31204 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31205 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31206 * tests/test-xstrtol.c: ...into new file.
31207 * tests/test-xstrtoul.c: Also test xstrtoul.
31208 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31209 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31210 * tests/test-xstrtol.sh: Drive the tests.
31211 * tests/test-xstrtoimax.sh: Likewise.
31212 * tests/test-xstrtoumax.sh: Likewise.
31213 * modules/xstrtol-tests: New module.
31214 * modules/xstrtoimax-tests: Likewise.
31215 * modules/xstrtoumax-tests: Likewise.
31217 2007-08-08 Jim Meyering <jim@meyering.net>
31219 New function: mfile_name_concat.
31220 * lib/filenamecat.c (mfile_name_concat): New function, just like
31221 file_name_concat, but return NULL upon failure rather than exiting
31223 * lib/filenamecat.h: Declare it.
31225 2007-08-07 Bruno Haible <bruno@clisp.org>
31227 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31228 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31230 Reported by Eric Blake.
31232 2007-08-07 Simon Josefsson <simon@josefsson.org>
31234 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31235 * modules/crypto/arcfour (License): Likewise.
31236 * modules/crypto/des-tests (License): Likewise.
31237 * modules/crypto/gc-arctwo-tests (License): Likewise.
31238 * modules/crypto/gc-des-tests (License): Likewise.
31239 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31240 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31241 * modules/crypto/gc-md2-tests (License): Likewise.
31242 * modules/crypto/gc-md4-tests (License): Likewise.
31243 * modules/crypto/gc-md5-tests (License): Likewise.
31244 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31245 * modules/crypto/gc-rijndael-tests (License): Likewise.
31246 * modules/crypto/gc-sha1-tests (License): Likewise.
31247 * modules/crypto/gc-tests (License): Likewise.
31248 * modules/crypto/hmac-md5 (License): Likewise.
31249 * modules/crypto/hmac-sha1 (License): Likewise.
31250 * modules/crypto/md2-tests (License): Likewise.
31251 * modules/crypto/md4-tests (License): Likewise.
31252 * modules/crypto/md5 (License): Likewise.
31253 * modules/crypto/rijndael (License): Likewise.
31254 * modules/crypto/sha1 (License): Likewise.
31255 * modules/memxor (License): Likewise.
31257 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31258 and Bruno Haible <bruno@clisp.org>
31260 * NEWS: Describe interface changes to human, xstrtol.
31261 * lib/human.h: Include <xstrtol.h>.
31262 (human_options): Return enum strtol_error, not int. Remove
31263 bool arg; take int * instead.
31264 * lib/human.c: Don't include "gettext.h".
31265 (_): Remove; no longer used.
31266 Don't include <xstrtol.h>, since human.h does it.
31267 (human_options): Adjust to abovementioned interface changes.
31268 Do not report error to stderr; that's now the caller's
31270 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31272 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31273 Str, Argument_type_string. All uses changed. Put " argument"
31274 in diagnostics to make them clearer. Change wording of suffix
31275 message for clarity.
31276 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31277 Argument_type_string.
31278 (STRTOL_FATAL_WARN): Remove; no longer used.
31279 * modules/human (Depends-on): Remove gettext-h.
31281 2007-08-06 Simon Josefsson <simon@josefsson.org>
31283 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31285 2007-07-31 Bruno Haible <bruno@clisp.org>
31287 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31288 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31289 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31291 2007-07-31 Bruno Haible <bruno@clisp.org>
31293 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31294 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31296 2007-07-30 Bruno Haible <bruno@clisp.org>
31298 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31299 * modules/c-ctype (License): Likewise.
31300 * modules/c-strcase (License): Likewise.
31301 * modules/check-version (License): Likewise.
31302 * modules/iconv (License): Likewise.
31303 * modules/iconv_open (License): Likewise.
31304 * modules/read-file (License): Likewise.
31305 * modules/striconv (License): Likewise.
31306 * modules/strverscmp (License): Likewise.
31307 * modules/vasprintf (License): Likewise.
31308 * modules/crypto/des (License): Likewise.
31309 * modules/crypto/gc (License): Likewise.
31310 * modules/crypto/gc-arcfour (License): Likewise.
31311 * modules/crypto/gc-arctwo (License): Likewise.
31312 * modules/crypto/gc-des (License): Likewise.
31313 * modules/crypto/gc-hmac-md5 (License): Likewise.
31314 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31315 * modules/crypto/gc-md2 (License): Likewise.
31316 * modules/crypto/gc-md4 (License): Likewise.
31317 * modules/crypto/gc-md5 (License): Likewise.
31318 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31319 * modules/crypto/gc-random (License): Likewise.
31320 * modules/crypto/gc-rijndael (License): Likewise.
31321 * modules/crypto/gc-sha1 (License): Likewise.
31322 * modules/crypto/md2 (License): Likewise.
31323 * modules/crypto/md4 (License): Likewise.
31325 2007-07-30 Jim Meyering <jim@meyering.net>
31327 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31328 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31329 it has valid stat data. This bug would cause du not to count the
31330 sizes of inaccessible directories.
31331 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31332 in <http://bugzilla.redhat.com/250077>.
31334 2007-07-25 Peter O'Gorman <peter@pogma.com>
31335 Bruno Haible <bruno@clisp.org>
31337 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31338 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31339 #include_next, gives a diagnostic about it, but reports no error in
31341 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31343 2007-07-24 Ben Pfaff <blp@gnu.org>
31345 Improve name: "count-one-bits" is better than "popcount".
31346 * MODULES.html.sh: Update name.
31347 * lib/popcount.h: Renamed lib/count-one-bits.h.
31348 (popcount): Renamed count_one_bits.
31349 (popcountl): Renamed count_one_bits_l.
31350 (popcountll): Renamed count_one_bits_ll.
31351 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31352 * modules/popcount: Renamed module/count-one-bits.
31353 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31354 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31356 2007-07-23 Ben Pfaff <blp@gnu.org>
31358 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31359 better code generation, and add U to large constants to avoid
31360 warnings, in non-GCC case.
31361 Suggested by Bruno Haible.
31363 2007-07-23 Ben Pfaff <blp@gnu.org>
31365 * lib/popcount.h: Use verify_true instead of if...abort.
31366 * modules/popcount: Depend on verify module.
31367 Suggested by Jim Meyering.
31369 2007-07-23 Bruno Haible <bruno@clisp.org>
31371 * gnulib-tool (func_import): Create a .cvsignore file also when the
31372 directory is not yet in CVS but the toplevel directory is. When
31373 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31374 Reported by Karl Berry.
31376 2007-07-22 Ben Pfaff <blp@gnu.org>
31378 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31380 Suggested by Eric Blake.
31382 2007-07-22 Ben Pfaff <blp@gnu.org>
31384 New module: popcount.
31385 * MODULES.html.sh: Add popcount.
31386 * modules/popcount: New file.
31387 * modules/popcount-tests: New file.
31388 * tests/test-popcount.c: New file.
31389 * lib/popcount.h: New file.
31390 * m4/popcount.m4: New file.
31392 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31394 * build-aux/announce-gen: Update to GPLv3.
31396 * build-aux/config.guess: Update from config.
31398 2007-07-21 Bruno Haible <bruno@clisp.org>
31400 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31401 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31403 2007-07-20 Jim Meyering <jim@meyering.net>
31405 * check-module: Diagnose a self-dependency.
31407 2007-07-19 Bruno Haible <bruno@clisp.org>
31409 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31411 Reported by Eric Blake.
31413 2007-07-18 Bruno Haible <bruno@clisp.org>
31415 * gnulib-tool: New options --po-base, --po-domain.
31416 (func_usage): Document them.
31417 (pobase, po_domain): New variables.
31418 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31419 DEFAULT_TEXT_DOMAIN.
31420 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31421 (func_import): Consider pobase and po_domain. Create a po/ directory.
31422 (func_create_testdir): Set pobase and po_domain to empty.
31423 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31424 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31426 2007-07-18 Bruno Haible <bruno@clisp.org>
31428 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31429 EXTRA_DIST augmentation for files in build-aux/.
31431 2007-07-16 Bruno Haible <bruno@clisp.org>
31433 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31434 * modules/getdelim (License): Likewise.
31436 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31438 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31439 * modules/d-type (License): Likewise.
31440 * modules/extensions (License): Likewise.
31441 * modules/fnmatch (License): Likewise.
31442 * modules/fseeko (License): Likewise.
31443 * modules/getaddrinfo (License): Likewise.
31444 * modules/getline (License): Likewise.
31445 * modules/getlogin_r (License): Likewise.
31446 * modules/getpass (License): Likewise.
31447 * modules/gettimeofday (License): Likewise.
31448 * modules/glob (License): Likewise.
31449 * modules/inet_ntop (License): Likewise.
31450 * modules/malloc (License): Likewise.
31451 * modules/malloca (License): Likewise.
31452 * modules/memmem (License): Likewise.
31453 * modules/mempcpy (License): Likewise.
31454 * modules/memset (License): Likewise.
31455 * modules/minmax (License): Likewise.
31456 * modules/mktime (License): Likewise.
31457 * modules/netinet_in (License): Likewise.
31458 * modules/pathmax (License): Likewise.
31459 * modules/poll (License): Likewise.
31460 * modules/regex (License): Likewise.
31461 * modules/snprintf (License): Likewise.
31462 * modules/stdbool (License): Likewise.
31463 * modules/stdint (License): Likewise.
31464 * modules/stdio (License): Likewise.
31465 * modules/strcase (License): Likewise.
31466 * modules/strcasestr (License): Likewise.
31467 * modules/strdup (License): Likewise.
31468 * modules/string (License): Likewise.
31469 * modules/strndup (License): Likewise.
31470 * modules/strnlen (License): Likewise.
31471 * modules/strpbrk (License): Likewise.
31472 * modules/strptime (License): Likewise.
31473 * modules/strsep (License): Likewise.
31474 * modules/sys_select (License): Likewise.
31475 * modules/sys_socket (License): Likewise.
31476 * modules/sys_stat (License): Likewise.
31477 * modules/sys_time (License): Likewise.
31478 * modules/time (License): Likewise.
31479 * modules/time_r (License): Likewise.
31480 * modules/timegm (License): Likewise.
31481 * modules/unistd (License): Likewise.
31482 * modules/vsnprintf (License): Likewise.
31483 * modules/wctype (License): Likewise.
31485 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31487 * modules/argz (License): LGPLv2+.
31489 2007-07-15 Karl Berry <karl@gnu.org>
31491 * doc/gnulib.texi: revise node structure per new fdl.texi.
31493 2007-07-14 Bruno Haible <bruno@clisp.org>
31495 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31497 * lib/uniname/uninames.h: Regenerated.
31499 2007-07-14 Karl Berry <karl@gnu.org>
31501 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31502 omitting sectioning and index commands.
31504 2007-07-13 Bruno Haible <bruno@clisp.org>
31506 New gnulib-tool option --more-symlinks.
31507 * gnulib-tool (func_usage): Document --more-symlinks.
31508 (do_copyrights): New variable.
31509 Recognize option --more-symlinks.
31510 (func_import): Don't add a copyright notice transform to
31511 sed_transform_lib_file if do_copyrights is empty.
31513 2007-07-13 Bruno Haible <bruno@clisp.org>
31515 * lib/vasnprintf.c (decimal_point_char): Define also if
31516 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31517 && !NEED_PRINTF_DIRECTIVE_A.
31518 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31519 Gary V. Vaughan <gary@gnu.org>.
31521 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31523 * lib/inttypes_.h: Undo previous change, since it was fixed
31524 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31526 2007-07-13 Bruno Haible <bruno@clisp.org>
31528 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31529 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31531 2007-07-13 Jim Meyering <jim@meyering.net>
31533 df: Don't fail for Tru64's "file-on-file mount".
31534 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31535 so we fall through and use statfs instead. Details here:
31536 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31537 Reported by Albert Chin.
31539 2007-07-13 Bruno Haible <bruno@clisp.org>
31541 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31542 * modules/configmake (License): Likewise.
31543 * modules/gettext (License): Likewise.
31544 * modules/gettext-h (License): Likewise.
31545 * modules/include_next (License): Likewise.
31546 * modules/link-warning (License): Likewise.
31547 * modules/localcharset (License): Likewise.
31548 * modules/localename (License): Likewise.
31549 * modules/lock (License): Likewise.
31550 * modules/relocatable-lib-lgpl (License): Likewise.
31551 * modules/size_max (License): Likewise.
31552 * modules/vasnprintf (License): Likewise.
31553 * modules/wchar (License): Likewise.
31554 * modules/xsize (License): Likewise.
31556 2007-07-13 Bruno Haible <bruno@clisp.org>
31558 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31559 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31561 2007-07-12 Bruno Haible <bruno@clisp.org>
31563 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31564 in the modules files.
31566 2007-07-11 Karl Berry <karl@gnu.org>
31568 * MODULES.html.sh (func_module): use
31569 sed -e '\|^'"${includefile}"'$|d'
31570 instead of /.../d, to avoid errors on $includefile's containing /.
31572 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31574 * gnulib-tool (func_import): Avoid duplication of --avoid
31576 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31577 names to `_' in variable names.
31579 2007-07-10 Eric Blake <ebb9@byu.net>
31581 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31582 * NEWS: Document this change.
31584 2007-07-08 Bruno Haible <bruno@clisp.org>
31586 Update to Unicode 5.0.
31587 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31588 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31589 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31590 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31591 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31592 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31593 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31594 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31595 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31596 U+10A3F, U+1D242..U+1D244.
31597 (nonspacing_table_ind): Update.
31598 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31599 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31601 2007-07-08 Bruno Haible <bruno@clisp.org>
31603 Update to Unicode 5.0.
31604 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31605 code transform. Extend the name index field of unicode_name_to_code and
31606 unicode_code_to_name from 16 to 24 bits.
31607 * lib/uniname/uniname.c (unicode_character_name,
31608 unicode_name_character): Add the range 0x12xxx to the code transform.
31609 * lib/uniname/uninames.h: Regenerated.
31610 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31612 2007-07-07 Bruno Haible <bruno@clisp.org>
31614 * modules/wcwidth-tests: New file.
31615 * tests/test-wcwidth.c: New file.
31617 Work around MacOS X wcwidth() bug.
31618 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31619 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31620 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31621 original wcwidth in non-UTF-8 locales.
31622 * modules/wcwidth (Depends-on): Add localcharset, streq,
31624 * doc/functions/wcwidth.texi: Update.
31626 2007-07-07 Bruno Haible <bruno@clisp.org>
31628 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31629 (wcwidth): New declaration.
31630 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31632 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31633 here. Prepare for creating <wchar.h> unconditionally.
31634 * modules/wchar (Depends-on): Add link-warning.
31635 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31636 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31637 * lib/wcwidth.h: Remove file.
31638 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31639 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31640 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31641 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31642 (Include): Replace wcwidth.h with <wchar.h>.
31643 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31644 * lib/mbchar.h: Don't include wcwidth.h.
31645 * lib/mbswidth.c: Likewise.
31646 * NEWS: Mention the change.
31648 2007-07-07 Bruno Haible <bruno@clisp.org>
31650 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31651 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31652 definition with an external declaration.
31653 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31654 defined as a function. Remove AC_C_INLINE requirement.
31655 * modules/wcwidth (Files): Add lib/wcwidth.c.
31656 (Makefile.am): Remove redundant statement.
31658 2007-07-07 Bruno Haible <bruno@clisp.org>
31660 * MODULES.html.sh (Unicode string functions): Add the new modules.
31662 * tests/uniwidth/test-u32-strwidth.c: New file.
31663 * modules/uniwidth/u32-strwidth-tests: New file.
31665 * lib/uniwidth/u32-strwidth.c: New file.
31666 * modules/uniwidth/u32-strwidth: New file.
31668 * tests/uniwidth/test-u16-strwidth.c: New file.
31669 * modules/uniwidth/u16-strwidth-tests: New file.
31671 * lib/uniwidth/u16-strwidth.c: New file.
31672 * modules/uniwidth/u16-strwidth: New file.
31674 * tests/uniwidth/test-u8-strwidth.c: New file.
31675 * modules/uniwidth/u8-strwidth-tests: New file.
31677 * lib/uniwidth/u8-strwidth.c: New file.
31678 * modules/uniwidth/u8-strwidth: New file.
31680 * tests/uniwidth/test-u32-width.c: New file.
31681 * modules/uniwidth/u32-width-tests: New file.
31683 * lib/uniwidth/u32-width.c: New file.
31684 * modules/uniwidth/u32-width: New file.
31686 * tests/uniwidth/test-u16-width.c: New file.
31687 * modules/uniwidth/u16-width-tests: New file.
31689 * lib/uniwidth/u16-width.c: New file.
31690 * modules/uniwidth/u16-width: New file.
31692 * tests/uniwidth/test-u8-width.c: New file.
31693 * modules/uniwidth/u8-width-tests: New file.
31695 * lib/uniwidth/u8-width.c: New file.
31696 * modules/uniwidth/u8-width: New file.
31698 * tests/uniwidth/test-uc_width.c: New file.
31699 * modules/uniwidth/width-tests: New file.
31701 * lib/uniwidth/width.c: New file, from GNU libiconv.
31702 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31703 * modules/uniwidth/width: New file.
31705 * lib/uniwidth.h: New file, from GNU libiconv.
31706 * modules/uniwidth/base: New file.
31708 2007-07-07 Bruno Haible <bruno@clisp.org>
31710 * lib/uniname.h: New file, from GNU gettext.
31711 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31712 * lib/uniname/uninames.h: New file, from GNU gettext.
31713 * lib/uniname/uniname.c: New file, from GNU gettext.
31714 * tests/uniname/test-uninames.sh: New file.
31715 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31716 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31717 * modules/uniname/base: New file.
31718 * modules/uniname/uniname: New file.
31719 * modules/uniname/uniname-tests: New file.
31720 * MODULES.html.sh (Unicode string functions): Add the new modules.
31722 2007-07-06 Bruno Haible <bruno@clisp.org>
31724 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31726 2007-07-06 Bruno Haible <bruno@clisp.org>
31728 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31729 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31730 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31731 include <sys/time.h>.
31732 Reported by Eric Blake.
31734 2007-07-06 Eric Blake <ebb9@byu.net>
31736 Fix testing canonicalize on cygwin.
31737 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31738 Revert patch from 2007-06-19.
31739 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31740 canonicalize module is also in use.
31741 * tests/test-canonicalize.c: New file.
31742 * tests/test-canonicalize.sh: Likewise.
31743 * modules/canonicalize-tests: Likewise.
31745 2007-07-06 Jim Meyering <jim@meyering.net>
31747 * lib/getugroups.c (getugroups): Detect getgrent failure.
31748 Adjust comment to reflect reality: this function may return -1.
31750 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31752 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31753 the new TP address.
31755 (gnulib_mk): New variable.
31757 2007-07-05 Jim Meyering <jim@meyering.net>
31759 Don't let endgrent clobber errno, no matter how improbable.
31760 * lib/getugroups.c (getugroups): Save and restore errno around
31763 Close the group DB even when failing with 2^31 or more members.
31764 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31766 2007-07-04 Jim Meyering <jim@meyering.net>
31768 * lib/getugroups.h: New file.
31769 * lib/getugroups.c: Include "getugroups.h".
31770 Remove uses of "register" keyword.
31771 Move local variable, "cp", down into scope where used.
31772 Give "username" parameter the "const" attribute.
31773 * modules/getugroups (Files): Add lib/getugroups.h
31775 2007-07-04 Karl Berry <karl@gnu.org>
31777 * MODULES.html.sh (func_all_modules): Complete rename of
31778 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31780 2007-07-02 Bruno Haible <bruno@clisp.org>
31782 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31783 mode, when inttypes.h comes from gnulib.
31784 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31786 2007-07-02 Simon Josefsson <simon@josefsson.org>
31788 * NEWS: Mention lgpl module name change.
31790 * modules/lgpl-2.1: Renamed from lgpl.
31792 * NEWS: Mention gpl module name change.
31794 * modules/gpl-3.0: New file, based on gpl-2.0.
31796 * modules/gpl-2.0: Renamed from gpl.
31798 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31801 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31803 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31804 #define __STDC_LIMIT_MACROS temporarily while including
31805 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31806 Problem reported by Joel E. Denny in
31807 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31809 2007-07-01 Bruno Haible <bruno@clisp.org>
31811 * lib/unistdio.h: New file.
31812 * lib/unistdio/u-asnprintf.h: New file.
31813 * lib/unistdio/u-asprintf.h: New file.
31814 * lib/unistdio/u-printf-args.c: New file.
31815 * lib/unistdio/u-printf-args.h: New file.
31816 * lib/unistdio/u-printf-parse.h: New file.
31817 * lib/unistdio/u-snprintf.h: New file.
31818 * lib/unistdio/u-sprintf.h: New file.
31819 * lib/unistdio/u-vasprintf.h: New file.
31820 * lib/unistdio/u-vsnprintf.h: New file.
31821 * lib/unistdio/u-vsprintf.h: New file.
31822 * lib/unistdio/ulc-asnprintf.c: New file.
31823 * lib/unistdio/ulc-asprintf.c: New file.
31824 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31825 * lib/unistdio/ulc-printf-parse.c: New file.
31826 * lib/unistdio/ulc-snprintf.c: New file.
31827 * lib/unistdio/ulc-sprintf.c: New file.
31828 * lib/unistdio/ulc-vasnprintf.c: New file.
31829 * lib/unistdio/ulc-vasprintf.c: New file.
31830 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31831 * lib/unistdio/ulc-vsnprintf.c: New file.
31832 * lib/unistdio/ulc-vsprintf.c: New file.
31833 * lib/unistdio/u8-asnprintf.c: New file.
31834 * lib/unistdio/u8-asprintf.c: New file.
31835 * lib/unistdio/u8-printf-parse.c: New file.
31836 * lib/unistdio/u8-snprintf.c: New file.
31837 * lib/unistdio/u8-sprintf.c: New file.
31838 * lib/unistdio/u8-vasnprintf.c: New file.
31839 * lib/unistdio/u8-vasprintf.c: New file.
31840 * lib/unistdio/u8-vsnprintf.c: New file.
31841 * lib/unistdio/u8-vsprintf.c: New file.
31842 * lib/unistdio/u8-u8-asnprintf.c: New file.
31843 * lib/unistdio/u8-u8-asprintf.c: New file.
31844 * lib/unistdio/u8-u8-snprintf.c: New file.
31845 * lib/unistdio/u8-u8-sprintf.c: New file.
31846 * lib/unistdio/u8-u8-vasnprintf.c: New file.
31847 * lib/unistdio/u8-u8-vasprintf.c: New file.
31848 * lib/unistdio/u8-u8-vsnprintf.c: New file.
31849 * lib/unistdio/u8-u8-vsprintf.c: New file.
31850 * lib/unistdio/u16-asnprintf.c: New file.
31851 * lib/unistdio/u16-asprintf.c: New file.
31852 * lib/unistdio/u16-printf-parse.c: New file.
31853 * lib/unistdio/u16-snprintf.c: New file.
31854 * lib/unistdio/u16-sprintf.c: New file.
31855 * lib/unistdio/u16-vasnprintf.c: New file.
31856 * lib/unistdio/u16-vasprintf.c: New file.
31857 * lib/unistdio/u16-vsnprintf.c: New file.
31858 * lib/unistdio/u16-vsprintf.c: New file.
31859 * lib/unistdio/u16-u16-asnprintf.c: New file.
31860 * lib/unistdio/u16-u16-asprintf.c: New file.
31861 * lib/unistdio/u16-u16-snprintf.c: New file.
31862 * lib/unistdio/u16-u16-sprintf.c: New file.
31863 * lib/unistdio/u16-u16-vasnprintf.c: New file.
31864 * lib/unistdio/u16-u16-vasprintf.c: New file.
31865 * lib/unistdio/u16-u16-vsnprintf.c: New file.
31866 * lib/unistdio/u16-u16-vsprintf.c: New file.
31867 * lib/unistdio/u32-asnprintf.c: New file.
31868 * lib/unistdio/u32-asprintf.c: New file.
31869 * lib/unistdio/u32-printf-parse.c: New file.
31870 * lib/unistdio/u32-snprintf.c: New file.
31871 * lib/unistdio/u32-sprintf.c: New file.
31872 * lib/unistdio/u32-vasnprintf.c: New file.
31873 * lib/unistdio/u32-vasprintf.c: New file.
31874 * lib/unistdio/u32-vsnprintf.c: New file.
31875 * lib/unistdio/u32-vsprintf.c: New file.
31876 * lib/unistdio/u32-u32-asnprintf.c: New file.
31877 * lib/unistdio/u32-u32-asprintf.c: New file.
31878 * lib/unistdio/u32-u32-snprintf.c: New file.
31879 * lib/unistdio/u32-u32-sprintf.c: New file.
31880 * lib/unistdio/u32-u32-vasnprintf.c: New file.
31881 * lib/unistdio/u32-u32-vasprintf.c: New file.
31882 * lib/unistdio/u32-u32-vsnprintf.c: New file.
31883 * lib/unistdio/u32-u32-vsprintf.c: New file.
31884 * tests/unistdio/test-ulc-asnprintf1.c: New file.
31885 * tests/unistdio/test-ulc-asnprintf1.h: New file.
31886 * tests/unistdio/test-ulc-printf1.h: New file.
31887 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31888 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31889 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31890 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31891 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31892 * tests/unistdio/test-ulc-vasprintf1.c: New file.
31893 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31894 * tests/unistdio/test-ulc-vsprintf1.c: New file.
31895 * tests/unistdio/test-u8-asnprintf1.c: New file.
31896 * tests/unistdio/test-u8-asnprintf1.h: New file.
31897 * tests/unistdio/test-u8-printf1.h: New file.
31898 * tests/unistdio/test-u8-vasnprintf1.c: New file.
31899 * tests/unistdio/test-u8-vasnprintf2.c: New file.
31900 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31901 * tests/unistdio/test-u8-vasnprintf3.c: New file.
31902 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31903 * tests/unistdio/test-u8-vasprintf1.c: New file.
31904 * tests/unistdio/test-u8-vsnprintf1.c: New file.
31905 * tests/unistdio/test-u8-vsprintf1.c: New file.
31906 * tests/unistdio/test-u16-asnprintf1.c: New file.
31907 * tests/unistdio/test-u16-asnprintf1.h: New file.
31908 * tests/unistdio/test-u16-printf1.h: New file.
31909 * tests/unistdio/test-u16-vasnprintf1.c: New file.
31910 * tests/unistdio/test-u16-vasnprintf2.c: New file.
31911 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31912 * tests/unistdio/test-u16-vasnprintf3.c: New file.
31913 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31914 * tests/unistdio/test-u16-vasprintf1.c: New file.
31915 * tests/unistdio/test-u16-vsnprintf1.c: New file.
31916 * tests/unistdio/test-u16-vsprintf1.c: New file.
31917 * tests/unistdio/test-u32-asnprintf1.c: New file.
31918 * tests/unistdio/test-u32-asnprintf1.h: New file.
31919 * tests/unistdio/test-u32-printf1.h: New file.
31920 * tests/unistdio/test-u32-vasnprintf1.c: New file.
31921 * tests/unistdio/test-u32-vasnprintf2.c: New file.
31922 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31923 * tests/unistdio/test-u32-vasnprintf3.c: New file.
31924 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31925 * tests/unistdio/test-u32-vasprintf1.c: New file.
31926 * tests/unistdio/test-u32-vsnprintf1.c: New file.
31927 * tests/unistdio/test-u32-vsprintf1.c: New file.
31928 * modules/unistdio/base: New file.
31929 * modules/unistdio/u-printf-args: New file.
31930 * modules/unistdio/ulc-asnprintf: New file.
31931 * modules/unistdio/ulc-asprintf: New file.
31932 * modules/unistdio/ulc-fprintf: New file.
31933 * modules/unistdio/ulc-printf-parse: New file.
31934 * modules/unistdio/ulc-snprintf: New file.
31935 * modules/unistdio/ulc-sprintf: New file.
31936 * modules/unistdio/ulc-vasnprintf: New file.
31937 * modules/unistdio/ulc-vasprintf: New file.
31938 * modules/unistdio/ulc-vfprintf: New file.
31939 * modules/unistdio/ulc-vsnprintf: New file.
31940 * modules/unistdio/ulc-vsprintf: New file.
31941 * modules/unistdio/u8-asnprintf: New file.
31942 * modules/unistdio/u8-asprintf: New file.
31943 * modules/unistdio/u8-printf-parse: New file.
31944 * modules/unistdio/u8-snprintf: New file.
31945 * modules/unistdio/u8-sprintf: New file.
31946 * modules/unistdio/u8-vasnprintf: New file.
31947 * modules/unistdio/u8-vasprintf: New file.
31948 * modules/unistdio/u8-vsnprintf: New file.
31949 * modules/unistdio/u8-vsprintf: New file.
31950 * modules/unistdio/u8-u8-asnprintf: New file.
31951 * modules/unistdio/u8-u8-asprintf: New file.
31952 * modules/unistdio/u8-u8-snprintf: New file.
31953 * modules/unistdio/u8-u8-sprintf: New file.
31954 * modules/unistdio/u8-u8-vasnprintf: New file.
31955 * modules/unistdio/u8-u8-vasprintf: New file.
31956 * modules/unistdio/u8-u8-vsnprintf: New file.
31957 * modules/unistdio/u8-u8-vsprintf: New file.
31958 * modules/unistdio/u16-asnprintf: New file.
31959 * modules/unistdio/u16-asprintf: New file.
31960 * modules/unistdio/u16-printf-parse: New file.
31961 * modules/unistdio/u16-snprintf: New file.
31962 * modules/unistdio/u16-sprintf: New file.
31963 * modules/unistdio/u16-vasnprintf: New file.
31964 * modules/unistdio/u16-vasprintf: New file.
31965 * modules/unistdio/u16-vsnprintf: New file.
31966 * modules/unistdio/u16-vsprintf: New file.
31967 * modules/unistdio/u16-u16-asnprintf: New file.
31968 * modules/unistdio/u16-u16-asprintf: New file.
31969 * modules/unistdio/u16-u16-snprintf: New file.
31970 * modules/unistdio/u16-u16-sprintf: New file.
31971 * modules/unistdio/u16-u16-vasnprintf: New file.
31972 * modules/unistdio/u16-u16-vasprintf: New file.
31973 * modules/unistdio/u16-u16-vsnprintf: New file.
31974 * modules/unistdio/u16-u16-vsprintf: New file.
31975 * modules/unistdio/u32-asnprintf: New file.
31976 * modules/unistdio/u32-asprintf: New file.
31977 * modules/unistdio/u32-printf-parse: New file.
31978 * modules/unistdio/u32-snprintf: New file.
31979 * modules/unistdio/u32-sprintf: New file.
31980 * modules/unistdio/u32-vasnprintf: New file.
31981 * modules/unistdio/u32-vasprintf: New file.
31982 * modules/unistdio/u32-vsnprintf: New file.
31983 * modules/unistdio/u32-vsprintf: New file.
31984 * modules/unistdio/u32-u32-asnprintf: New file.
31985 * modules/unistdio/u32-u32-asprintf: New file.
31986 * modules/unistdio/u32-u32-snprintf: New file.
31987 * modules/unistdio/u32-u32-sprintf: New file.
31988 * modules/unistdio/u32-u32-vasnprintf: New file.
31989 * modules/unistdio/u32-u32-vasprintf: New file.
31990 * modules/unistdio/u32-u32-vsnprintf: New file.
31991 * modules/unistdio/u32-u32-vsprintf: New file.
31992 * modules/unistdio/ulc-asnprintf-tests: New file.
31993 * modules/unistdio/ulc-vasnprintf-tests: New file.
31994 * modules/unistdio/ulc-vasprintf-tests: New file.
31995 * modules/unistdio/ulc-vsnprintf-tests: New file.
31996 * modules/unistdio/ulc-vsprintf-tests: New file.
31997 * modules/unistdio/u8-asnprintf-tests: New file.
31998 * modules/unistdio/u8-vasnprintf-tests: New file.
31999 * modules/unistdio/u8-vasprintf-tests: New file.
32000 * modules/unistdio/u8-vsnprintf-tests: New file.
32001 * modules/unistdio/u8-vsprintf-tests: New file.
32002 * modules/unistdio/u16-asnprintf-tests: New file.
32003 * modules/unistdio/u16-vasnprintf-tests: New file.
32004 * modules/unistdio/u16-vasprintf-tests: New file.
32005 * modules/unistdio/u16-vsnprintf-tests: New file.
32006 * modules/unistdio/u16-vsprintf-tests: New file.
32007 * modules/unistdio/u32-asnprintf-tests: New file.
32008 * modules/unistdio/u32-vasnprintf-tests: New file.
32009 * modules/unistdio/u32-vasprintf-tests: New file.
32010 * modules/unistdio/u32-vsnprintf-tests: New file.
32011 * modules/unistdio/u32-vsprintf-tests: New file.
32012 * MODULES.html.sh (Unicode string functions): Add the new modules.
32014 2007-07-01 Bruno Haible <bruno@clisp.org>
32016 * lib/sprintf.c (sprintf): Limit the available length estimation,
32017 to avoid address wraparound.
32018 * lib/vsprintf.c (vsprintf): Likewise.
32019 * modules/sprintf-posix (Dependencies): Add stdint.
32020 * modules/vsprintf-posix (Dependencies): Likewise.
32022 2007-07-01 Bruno Haible <bruno@clisp.org>
32024 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32025 Windows PATH as well. Conservative double-quoting. Comments.
32027 2007-07-01 Bruno Haible <bruno@clisp.org>
32028 Eric Blake <ebb9@byu.net>
32029 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32031 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32032 empty components in $PATH, denoting '.'.
32034 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32036 * gnulib-tool: Fix indentation.
32037 (func_create_megatestdir): Likewise.
32038 Report by Bruno Haible.
32040 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32042 Sync from Automake.
32043 * build-aux/gnupload: Fix shell portability issues with for loops.
32044 Report by Karl Berry.
32046 2007-06-29 Simon Josefsson <simon@josefsson.org>
32048 * build-aux/maint.mk (POURL): Use translationproject.org.
32050 2007-06-27 Simon Josefsson <simon@josefsson.org>
32051 Bruno Haible <bruno@clisp.org>
32053 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32054 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32055 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32056 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32057 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32059 2007-06-27 Bruno Haible <bruno@clisp.org>
32061 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32062 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32064 2007-06-26 Karl Berry <karl@gnu.org>
32066 * MODULES.html.sh: remove xreadlink-with-size.
32068 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32070 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32071 method that I hope also handles the double-include problem noted
32073 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32075 2007-06-23 Bruno Haible <bruno@clisp.org>
32077 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32078 Don't let the 'mostlyclean' target fail if the last subdirectory could
32080 Reported by Karl Berry.
32082 2007-06-23 Bruno Haible <bruno@clisp.org>
32084 * gnulib-tool (echo): Add a speedier workaround for ksh.
32085 * tests/test-echo.sh: Likewise.
32087 2007-06-23 Bruno Haible <bruno@clisp.org>
32089 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32090 * tests/test-echo.sh: Likewise.
32092 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32094 * gnulib-tool (IFS): Initialize early, so we don't set it to
32096 (self_abspathname): Rewrite algorithm to set it, reindent.
32097 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32098 (func_create_megatestdir): Merge some sed scripts.
32100 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32102 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32103 exposed by Sun Studio 11 cc on Solaris 8.
32105 2007-06-22 Bruno Haible <bruno@clisp.org>
32107 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32109 * tests/test-echo.sh: New file.
32111 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32113 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32114 simplify `sed_replace_build_aux' scripts, they are portable but
32115 echoing them with `echo' is not.
32116 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32118 2007-06-21 Karl Berry <karl@gnu.org>
32120 * config/srclist.txt: guess we can't handle the licenses via
32121 srclist at the moment.
32123 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32125 * MODULES.html.sh: Add include_next.
32126 * modules/include_next: New file.
32128 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32130 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32132 (gl_CHECK_NEXT_HEADERS): New macro.
32133 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32134 the obsolescent gl_ABSOLUTE_HEADER.
32135 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32136 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32137 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32138 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32139 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32140 * m4/math_h.m4 (gl_MATH_H): Likewise.
32141 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32142 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32143 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32144 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32145 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32146 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32147 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32148 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32149 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32150 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32151 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32152 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32153 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32154 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32155 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32156 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32157 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32158 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32159 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32160 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32161 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32162 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32163 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32164 * lib/float_.h: Likewise.
32165 * lib/inttypes_.h: Likewise.
32166 * lib/math_.h: Likewise.
32167 * lib/search_.h: Likewise.
32168 * lib/signal_.h: Likewise.
32169 * lib/stdint_.h: Likewise.
32170 * lib/stdio_.h: Likewise.
32171 * lib/stdlib_.h: Likewise.
32172 * lib/string_.h: Likewise.
32173 * lib/sys_stat_.h: Likewise.
32174 * lib/sys_time_.h: Likewise.
32175 * lib/time_.h: Likewise.
32176 * lib/unistd_.h: Likewise.
32177 * lib/wchar_.h: Likewise.
32178 * lib/wctype_.h: Likewise.
32179 * lib/dirent_.h: Likewise.
32180 * lib/iconv_.h: Likewise.
32181 * lib/locale_.h: Likewise.
32182 * lib/netinet_in_.h: Likewise.
32183 * lib/sys_select_.h: Likewise.
32184 * lib/sys_socket_.h: Likewise.
32185 * lib/sysexits_.h: Likewise.
32186 * modules/fcntl (Depends-on): Depend on include_next, not
32188 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32189 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32190 * modules/fchdir: Likewise.
32191 * modules/float: Likewise.
32192 * modules/iconv_open: Likewise.
32193 * modules/inttypes: Likewise.
32194 * modules/locale: Likewise.
32195 * modules/math: Likewise.
32196 * modules/netinet_in: Likewise.
32197 * modules/search: Likewise.
32198 * modules/signal: Likewise.
32199 * modules/stdint: Likewise.
32200 * modules/stdio: Likewise.
32201 * modules/stdlib: Likewise.
32202 * modules/string: Likewise.
32203 * modules/sys_select: Likewise.
32204 * modules/sys_socket: Likewise.
32205 * modules/sys_stat: Likewise.
32206 * modules/sys_time: Likewise.
32207 * modules/sysexits: Likewise.
32208 * modules/time: Likewise.
32209 * modules/unistd: Likewise.
32210 * modules/wchar: Likewise.
32211 * modules/wctype: Likewise.
32212 * modules/sys_stat: Change maintainer to "all".
32213 * modules/unistd: Likewise.
32215 2007-06-20 Karl Berry <karl@gnu.org>
32217 * config/srclist.txt: track www changes in license files.
32219 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32221 * build-aux/bootstrap: Remove stray dot.
32222 Make sure build_aux settings are honored when linking
32223 gnulib_extra_files.
32225 2007-06-19 Eric Blake <ebb9@byu.net>
32227 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32228 Allow compilation on cygwin.
32230 2007-06-19 Jim Meyering <jim@meyering.net>
32232 xreadlink-with-size: Remove module. No longer used.
32233 Ex-callers now use xreadlink or mreadlink-with-size.
32234 * modules/xreadlink-with-size: Remove module.
32235 * lib/xreadlink-with-size.c: Remove file.
32236 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32237 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32238 just before the function definition *is* accurate.
32240 Eliminate one way canonicalize_filename_mode could exit.
32241 * lib/canonicalize.c (canonicalize_filename_mode):
32242 Use mreadlink_with_size, not xreadlink_with_size.
32244 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32246 Detect porting problems to FreeBSD/arm, which has time_t wider than
32247 long int. Original problem reported for GNU diff by Xin Li in
32248 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32249 * modules/getdate (Depends-on): Add intprops, verify.
32250 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32251 is an integer type no wider than long int.
32253 2007-06-18 Jim Meyering <jim@meyering.net>
32255 New module: mreadlink-with-size.
32256 * MODULES.html.sh: Add mreadlink-with-size.
32257 * modules/mreadlink-with-size: New module
32258 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32259 not xreadlink-with-size.
32260 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32262 2007-06-16 Bruno Haible <bruno@clisp.org>
32264 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32265 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32266 Reported by Gary V. Vaughan <gary@gnu.org>.
32268 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32270 Revamp lchown so that it lives in unistd.h where it belongs.
32271 * lib/lchown.h: Remove.
32272 * lib/dirchownmod.c: Don't include lib/lchown.h.
32273 * lib/fchownat.c: Likewise.
32274 * lib/openat.c: Likewise.
32275 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32276 does not follow symlinks.
32277 (EOPNOTSUPP): Define if not defined.
32278 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32280 (lchown): New decl.
32281 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32282 Do not check for lchown decl.
32283 Set REPLACE_LCHOWN.
32284 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32286 * modules/chown: Make it clear it follows symlinks.
32287 * modules/lchown: Make it clear it doesn't follow symlinks.
32288 (Files): Remove lib/lchown.h
32289 (Depends-on): Add unistd.
32290 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32291 (Include): Include <unistd.h>, not "lchown.h".
32292 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32295 2007-06-15 Jim Meyering <jim@meyering.net>
32297 Change license (GPL to LGPL) of fsusage and dependents.
32298 * modules/fsusage (License): Change to LGPL.
32299 * modules/full-read (License): Likewise.
32300 * modules/full-write (License): Likewise.
32301 * modules/safe-read (License): Likewise.
32302 * modules/safe-write (License): Likewise.
32304 2007-06-14 Ben Pfaff <blp@gnu.org>
32306 Missing part of allocsa -> malloca transition.
32307 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32310 2007-06-12 Bruno Haible <bruno@clisp.org>
32312 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32313 to ia64, x86_64, i386.
32314 Reported by Eric Blake.
32316 2007-06-12 Bruno Haible <bruno@clisp.org>
32318 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32319 cross-compiling to x86_64.
32321 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32323 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32324 glitch reported by Ralf Wildenhues in
32325 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32327 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32330 2007-06-11 Bruno Haible <bruno@clisp.org>
32332 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32333 replacement string.
32334 Reported by Eric Blake.
32336 2007-06-10 Bruno Haible <bruno@clisp.org>
32338 Prepare vasnprintf code for use with Unicode strings.
32339 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32340 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32342 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32343 a_u32_string variants.
32344 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32345 * lib/printf-args.c: Don't include config.h and the specification
32346 header if PRINTF_FETCHARGS is already defined.
32347 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32348 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32349 TYPE_U16_STRING, TYPE_U32_STRING.
32350 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32351 u16_directive, u16_directives, u32_directive, u32_directives): New
32353 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32355 * lib/printf-parse.c: Don't include config.h and the specification
32356 header if PRINTF_PARSE is already defined. Eliminate the set of
32357 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32358 them now. Include c-ctype.h.
32359 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32360 directive and CHAR_T_ONLY_ASCII.
32361 * lib/vasnprintf.c: Don't include config.h and the specification header
32362 if VASNPRINTF is already defined.
32363 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32364 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32365 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32366 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32367 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32368 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32370 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32371 pad_ourselves also in this case, with the 'c' and 's' directives, and
32372 with a different notion of "width".
32373 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32375 2007-06-10 Bruno Haible <bruno@clisp.org>
32377 * modules/unistr/u32-mbsnlen: New file.
32378 * lib/unistr/u32-mbsnlen.c: New file.
32380 * modules/unistr/u16-mbsnlen: New file.
32381 * lib/unistr/u16-mbsnlen.c: New file.
32383 * modules/unistr/u8-mbsnlen: New file.
32384 * lib/unistr/u8-mbsnlen.c: New file.
32386 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32389 2007-06-10 Bruno Haible <bruno@clisp.org>
32391 * lib/string_.h (mbsnlen): New declaration.
32392 * lib/mbsnlen.c: New file.
32393 * m4/mbsnlen.m4: New file.
32394 * modules/mbsnlen: New file.
32395 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32396 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32397 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32399 2007-06-10 Bruno Haible <bruno@clisp.org>
32401 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32403 2007-06-10 Bruno Haible <bruno@clisp.org>
32405 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32406 * lib/mbuiter.h: Likewise.
32408 2007-06-10 Bruno Haible <bruno@clisp.org>
32410 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32413 2007-06-10 Karl Berry <karl@gnu.org>
32415 * config/srclist.txt: remove gettext entries, Bruno prefers
32416 to update individually.
32418 2007-06-10 Bruno Haible <bruno@clisp.org>
32420 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32421 'maxlen'. Ensure only length + width bytes are allocated, not
32422 length + 1 + width.
32424 2007-06-09 Bruno Haible <bruno@clisp.org>
32426 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32427 (CHAR_T): Remove macro.
32428 (VASNPRINTF): Update.
32430 2007-06-09 Bruno Haible <bruno@clisp.org>
32432 * MODULES.html.sh (Unicode string functions): Add the new modules.
32434 * modules/uniconv/u32-conv-to-enc: New file.
32435 * lib/uniconv/u32-conv-to-enc.c: New file.
32436 * modules/uniconv/u32-conv-to-enc-tests: New file.
32437 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32439 * modules/uniconv/u16-conv-to-enc: New file.
32440 * lib/uniconv/u16-conv-to-enc.c: New file.
32441 * lib/uniconv/u-conv-to-enc.h: New file.
32442 * modules/uniconv/u16-conv-to-enc-tests: New file.
32443 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32445 * modules/uniconv/u8-conv-to-enc: New file.
32446 * lib/uniconv/u8-conv-to-enc.c: New file.
32447 * modules/uniconv/u8-conv-to-enc-tests: New file.
32448 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32450 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32451 u32_conv_to_encoding): New declarations.
32453 2007-06-09 Bruno Haible <bruno@clisp.org>
32455 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32457 2007-06-09 Bruno Haible <bruno@clisp.org>
32459 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32460 * modules/malloca: Renamed from modules/allocsa, updated.
32461 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32462 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32463 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32464 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32465 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32466 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32467 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32468 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32469 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32470 * modules/c-strcasestr (Depends-on): Update.
32471 * lib/c-strcasestr.c: Update.
32472 * modules/c-strstr (Depends-on): Update.
32473 * lib/c-strstr.c: Update.
32474 * modules/canonicalize-lgpl (Depends-on): Update.
32475 * lib/canonicalize-lgpl.c: Update.
32476 * modules/clean-temp (Depends-on): Update.
32477 * lib/clean-temp.c: Update.
32478 * modules/csharpcomp (Depends-on): Update.
32479 * lib/csharpcomp.c: Update.
32480 * modules/csharpexec (Depends-on): Update.
32481 * lib/csharpexec.c: Update.
32482 * modules/javacomp (Depends-on): Update.
32483 * lib/javacomp.c: Update.
32484 * modules/javaexec (Depends-on): Update.
32485 * lib/javaexec.c: Update.
32486 * modules/mbscasestr (Depends-on): Update.
32487 * lib/mbscasestr.c: Update.
32488 * modules/mbsstr (Depends-on): Update.
32489 * lib/mbsstr.c: Update.
32490 * modules/setenv (Depends-on): Update.
32491 * lib/setenv.c: Update.
32492 * modules/strcasestr (Depends-on): Update.
32493 * lib/strcasestr.c: Update.
32494 * modules/striconveha (Depends-on): Update.
32495 * lib/striconveha.c: Update.
32496 * modules/relocatable-prog-wrapper (Files): Update.
32497 * lib/relocwrapper.c: Update.
32498 * build-aux/install-reloc: Update.
32499 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32501 2007-06-08 Bruno Haible <bruno@clisp.org>
32504 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32505 * lib/fpurge.c (fpurge): Likewise.
32506 * lib/freading.c (freading): Likewise.
32507 * lib/fseeko.c (rpl_fseeko): Likewise.
32508 * lib/fseterr.c (fseterr): Likewise.
32509 * lib/fwriting.c (fwriting): Likewise.
32510 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32512 2007-06-08 Bruno Haible <bruno@clisp.org>
32514 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32515 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32516 * modules/gettext (Files): Add m4/intlmacosx.m4.
32518 2007-06-07 Bruno Haible <bruno@clisp.org>
32520 * modules/localename-tests: New file.
32521 * tests/test-localename.c: New file.
32523 New module 'localename'.
32524 * lib/localename.h: New file.
32525 * lib/localename.c: New file, from GNU gettext.
32526 * m4/localename.m4: New file.
32527 * modules/localename: New file.
32529 2007-06-07 Bruno Haible <bruno@clisp.org>
32531 Work around the lack of <wchar.h> on some builds of uClibc.
32532 * doc/headers/wchar.texi: Update.
32533 * lib/wchar_.h: Include <wchar.h> only if it exists.
32534 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32535 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32536 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32538 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32539 * modules/mbfile (Depends-on): Add wchar.
32540 * modules/mbiter (Depends-on): Likewise.
32541 * modules/mbuiter (Depends-on): Likewise.
32542 Reported by Simon Josefsson.
32544 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32546 Work around problem reported by Steven M. Schweda in
32547 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32548 Tru64 5.1B with the Compaq compiler environment installed declares
32549 an 'isblank' function but does not define it in the C library.
32550 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32551 * lib/regex_internal.h (isblank): Likewise.
32552 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32553 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32555 2007-06-05 Bruno Haible <bruno@clisp.org>
32557 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32559 * modules/printf-safe: New file.
32560 * modules/fprintf-posix (Depends-on): Add printf-safe.
32561 * modules/printf-posix (Depends-on): Likewise.
32562 * modules/snprintf-posix (Depends-on): Likewise.
32563 * modules/sprintf-posix (Depends-on): Likewise.
32564 * modules/vasnprintf-posix (Depends-on): Likewise.
32565 * modules/vasprintf-posix (Depends-on): Likewise.
32566 * modules/vfprintf-posix (Depends-on): Likewise.
32567 * modules/vprintf-posix (Depends-on): Likewise.
32568 * modules/vsnprintf-posix (Depends-on): Likewise.
32569 * modules/vsprintf-posix (Depends-on): Likewise.
32570 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32571 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32572 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32573 "no" on i386, x86_64, ia64.
32574 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32575 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32576 on i386, x86_64, ia64.
32577 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32578 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32579 on i386, x86_64, ia64.
32580 * tests/test-vasnprintf-posix.c: Include float.h.
32581 (LDBL80_WORDS): New macro.
32582 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32583 on i386, x86_64, ia64.
32584 * tests/test-vasprintf-posix.c: Include float.h.
32585 (LDBL80_WORDS): New macro.
32586 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32587 on i386, x86_64, ia64.
32588 * tests/test-snprintf-posix.c: Include float.h.
32589 * tests/test-sprintf-posix.c: Likewise.
32590 * tests/test-vsnprintf-posix.c: Likewise.
32591 * tests/test-vsprintf-posix.c: Likewise.
32593 2007-06-05 Bruno Haible <bruno@clisp.org>
32595 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32596 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32597 non-IEEE numbers on i386, x86_64, ia64.
32598 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32599 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32600 * tests/test-isnanl.h: Include float.h.
32601 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32603 2007-06-05 Bruno Haible <bruno@clisp.org>
32605 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32606 also the %a / %A. Handle the %a / %A code before this extra handling.
32608 2007-06-05 Bruno Haible <bruno@clisp.org>
32610 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32611 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32613 2007-06-05 Bruno Haible <bruno@clisp.org>
32615 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32616 typo in variable name.
32618 2007-06-05 Eric Blake <ebb9@byu.net>
32620 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32621 Reported by Simon Josefsson.
32623 2007-06-04 Bruno Haible <bruno@clisp.org>
32625 Avoid test failures on some PowerPC platforms.
32626 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32627 Define differently for PowerPC.
32628 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32629 Reported by Gary V. Vaughan <gary@gnu.org>.
32631 2007-06-02 Bruno Haible <bruno@clisp.org>
32633 Fix test-stdint failure on FreeBSD/ia64.
32634 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32635 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32636 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32637 * doc/headers/stdint.texi: Update.
32639 2007-06-01 Bruno Haible <bruno@clisp.org>
32641 * tests/test-binary-io.c (main): Pass a third argument to open().
32642 Reported by Gary V. Vaughan <gary@gnu.org>.
32644 2007-06-01 Bruno Haible <bruno@clisp.org>
32646 * doc/functions/frexpl.texi: Update for mingw.
32648 2007-06-01 Bruno Haible <bruno@clisp.org>
32650 * tests/test-lseek.c (main): Disable test of errno for invalid third
32652 * doc/functions/lseek.texi: Update.
32653 Reported by Gary V. Vaughan <gary@gnu.org>.
32655 2007-05-28 Bruno Haible <bruno@clisp.org>
32657 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32659 2007-05-31 Eric Blake <ebb9@byu.net>
32661 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32664 2007-05-30 Eric Blake <ebb9@byu.net>
32665 and Bruno Haible <bruno@clisp.org>
32667 Work around mingw test failures exposed by m4-1.4.9b.
32668 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32669 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32672 2007-05-30 Bruno Haible <bruno@clisp.org>
32674 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32675 assuming that they are closed. Needed on HP-UX 11.
32677 2007-05-29 Bruno Haible <bruno@clisp.org>
32679 Fix a problem with #include_next.
32680 * lib/dirent_.h: Split the double-inclusion guard.
32681 * lib/fcntl_.h: Likewise.
32682 * lib/float_.h: Likewise.
32683 * lib/iconv_.h: Likewise.
32684 * lib/inttypes_.h: Likewise.
32685 * lib/locale_.h: Likewise.
32686 * lib/math_.h: Likewise.
32687 * lib/netinet_in_.h: Likewise.
32688 * lib/search_.h: Likewise.
32689 * lib/signal_.h: Likewise.
32690 * lib/stdint_.h: Likewise.
32691 * lib/stdio_.h: Likewise.
32692 * lib/stdlib_.h: Likewise.
32693 * lib/string_.h: Likewise.
32694 * lib/sys_select_.h: Likewise.
32695 * lib/sys_socket_.h: Likewise.
32696 * lib/sys_stat_.h: Likewise.
32697 * lib/sys_time_.h: Likewise.
32698 * lib/sysexits_.h: Likewise.
32699 * lib/time_.h: Likewise.
32700 * lib/unistd_.h: Likewise.
32701 * lib/wchar_.h: Likewise.
32702 * lib/wctype_.h: Likewise.
32704 2007-05-29 Bruno Haible <bruno@clisp.org>
32706 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32709 2007-05-29 Bruno Haible <bruno@clisp.org>
32711 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32713 Reported by Eric Blake.
32715 2007-05-29 Bruno Haible <bruno@clisp.org>
32717 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32720 2007-05-29 Eric Blake <ebb9@byu.net>
32721 Bruno Haible <bruno@clisp.org>
32723 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32726 2007-05-28 Eric Blake <ebb9@byu.net>
32728 * modules/closein-tests (test_closein_LDADD): Support test on
32729 cygwin with libtool.
32731 2007-05-28 Bruno Haible <bruno@clisp.org>
32733 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32734 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32735 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32736 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32737 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32738 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32739 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32740 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32741 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32743 2007-05-28 Eric Blake <ebb9@byu.net>
32745 Unconditionally include <config.h> in unit tests.
32746 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32747 * tests/test-allocsa.c, tests/test-arcfour.c,
32748 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32749 tests/test-array_list.c, tests/test-array_oset.c,
32750 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32751 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32752 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32753 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32754 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32755 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32756 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32757 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32758 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32759 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32760 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32761 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32762 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32763 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32764 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32765 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32766 test-md5.c, test-memmem.c, test-printf-posix.c,
32767 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32768 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32769 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32770 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32771 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32772 test-vasnprintf-posix2.c, test-vasnprintf.c,
32773 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32774 test-vfprintf-posix.c, test-vprintf-posix.c,
32775 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32776 test-xvasprintf.c: Likewise.
32778 2007-05-28 Bruno Haible <bruno@clisp.org>
32780 * gnulib-tool (func_import): Remember the --with-tests command-line
32781 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32782 Reported by Eric Blake.
32784 2007-05-28 Bruno Haible <bruno@clisp.org>
32786 * modules/ftell-tests: New file.
32787 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32788 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32790 * lib/ftell.c: New file.
32791 * modules/ftell: New file.
32792 * m4/ftell.m4: New file.
32793 * doc/functions/ftell.texi: Update.
32794 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32796 * lib/stdio_.h (rpl_ftell): New declaration.
32797 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32800 2007-05-28 Eric Blake <ebb9@byu.net>
32802 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32804 2007-05-28 Bruno Haible <bruno@clisp.org>
32806 * modules/fseek-tests: New file.
32807 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32808 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32810 * lib/fseek.c: New file.
32811 * modules/fseek: New file.
32812 * m4/fseek.m4: New file.
32813 * doc/functions/fseek.texi: Update.
32814 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32816 * lib/stdio_.h (rpl_fseek): New declaration.
32817 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32820 2007-05-28 Bruno Haible <bruno@clisp.org>
32822 * lib/stdio_.h (fflush): More comments.
32824 2007-05-28 Bruno Haible <bruno@clisp.org>
32826 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32829 2007-05-28 Eric Blake <ebb9@byu.net>
32831 Improve lseek module.
32832 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32833 * lib/unistd_.h (lseek): Scale back link warning message.
32834 * tests/test-lseek.c: Beef up test.
32835 * tests/test-lseek.sh: Exercise more facets of lseek.
32836 Reported by Bruno Haible.
32838 2007-05-28 Bruno Haible <bruno@clisp.org>
32840 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32843 2007-05-27 Bruno Haible <bruno@clisp.org>
32845 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32847 2007-05-27 Bruno Haible <bruno@clisp.org>
32849 * modules/openmp: New file.
32850 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32853 2007-05-26 Bruno Haible <bruno@clisp.org>
32855 * modules/chdir-long (Depends-on): Add fchdir.
32856 * modules/chdir-safer (Depends-on): Likewise.
32857 * modules/fts (Depends-on): Likewise.
32858 * modules/fts-lgpl (Depends-on): Likewise.
32859 * modules/openat (Depends-on): Likewise.
32860 * modules/savewd (Depends-on): Likewise.
32862 2007-05-24 Eric Blake <ebb9@byu.net>
32864 Fix lseek on mingw.
32865 * modules/lseek: New module.
32866 * m4/lseek.m4: New file.
32867 * lib/lseek.c: New file.
32868 * modules/lseek-tests: New file.
32869 * tests/test-lseek.c: New file.
32870 * tests/test-lseek.sh: New file.
32871 * MODULES.html.sh: Document lseek module.
32872 * modules/fflush (Depends-on): Add lseek, fseeko.
32873 * modules/fseeko (Depends-on): Likewise.
32874 * modules/ftello (Depends-on): Likewise.
32875 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32877 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32879 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32880 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32881 * lib/ftello.c (rpl_ftello): Likewise.
32882 * tests/test-fseeko.c (main): Test this.
32883 * tests/test-fseeko.sh: Likewise.
32884 * tests/test-ftello.c (main): Likewise.
32885 * tests/test-ftello.sh: Likewise.
32886 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32887 implies replacing fseek.
32888 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32890 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32891 * modules/unistd (Makefile.am): Likewise.
32892 * lib/unistd_.h (lseek): Declare a replacement.
32893 * doc/functions/lseek.texi (lseek): Document this fix.
32894 * doc/functions/fseek.texi (fseek): Likewise.
32895 * doc/functions/ftell.texi (ftell): Likewise.
32897 2007-05-24 Bruno Haible <bruno@clisp.org>
32899 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32900 in the printed representation of a NaN.
32901 * tests/test-vasprintf-posix.c (test_function): Likewise.
32902 * tests/test-snprintf-posix.h (test_function): Likewise.
32903 * tests/test-sprintf-posix.h (test_function): Likewise.
32904 Reported by Eric Blake.
32906 2007-05-23 Eric Blake <ebb9@byu.net>
32908 Fix fseeko/ftello on cygwin 1.5.24.
32909 * doc/functions/fseeko.texi (fseeko): Document the fix.
32910 * doc/functions/ftello.texi (ftello): Document the fix.
32911 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32912 * doc/functions/stdout.text (stdout): New file.
32913 * doc/functions/stderr.text (stderr): New file.
32914 * doc/gnulib.texi (Function Substitutes): Use new files.
32915 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32917 * tests/test-ftello.c (main): Likewise for ftello.
32918 * tests/test-fseeko.sh: New file.
32919 * tests/test-ftello.sh: New file.
32920 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32921 with seekable stdin.
32922 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32923 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32924 (gl_REPLACE_FSEEKO): New macro.
32925 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32926 * modules/fseeko (Files): Distribute fseeko.c.
32927 * modules/ftello (Files): Distribute ftello.c.
32928 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32930 * lib/ftello.c (rpl_ftello): New file.
32931 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32933 (gl_STDIN_LARGE_OFFSET): New macro.
32934 * modules/stdio (Makefile.am): Perform the replacement.
32935 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32937 2007-05-23 Bruno Haible <bruno@clisp.org>
32939 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32940 GNULIB_POSIXCHECK is defined.
32942 2007-05-21 Bruno Haible <bruno@clisp.org>
32944 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32945 Check also the output for NaN arguments. When cross-compiling, guess
32947 * lib/vasnprintf.c: Update comments.
32948 * tests/test-vasnprintf-posix.c (strisnan): New function.
32949 (test_function): Use it.
32950 * tests/test-vasprintf-posix.c (strisnan): New function.
32951 (test_function): Use it.
32952 * tests/test-snprintf-posix.h (strisnan): New function.
32953 (test_function): Use it.
32954 * tests/test-sprintf-posix.h (strisnan): New function.
32955 (test_function): Use it.
32956 Reported by Eric Blake.
32958 2007-05-20 Bruno Haible <bruno@clisp.org>
32960 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32961 numbers that fails on BeOS.
32962 * doc/functions/frexpl.texi: Update.
32964 2007-05-20 Jim Meyering <jim@meyering.net>
32966 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32967 forced upon us by glibc-2.6.
32969 2007-05-20 Bruno Haible <bruno@clisp.org>
32971 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32972 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32973 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32974 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32975 NEED_PRINTF_INFINITE.
32976 (is_infinitel): New function.
32977 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32978 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32979 gl_PREREQ_VASNPRINTF_INFINITE.
32980 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32981 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32982 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32983 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32984 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32985 gl_PREREQ_VASNPRINTF_INFINITE.
32986 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32987 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32988 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32989 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32990 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32991 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32992 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32993 * doc/functions/fprintf.texi: Update.
32994 * doc/functions/printf.texi: Update.
32995 * doc/functions/snprintf.texi: Update.
32996 * doc/functions/sprintf.texi: Update.
32997 * doc/functions/vfprintf.texi: Update.
32998 * doc/functions/vprintf.texi: Update.
32999 * doc/functions/vsnprintf.texi: Update.
33000 * doc/functions/vsprintf.texi: Update.
33002 2007-05-20 Bruno Haible <bruno@clisp.org>
33004 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33005 was not found in libc.
33006 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33008 2007-05-20 Bruno Haible <bruno@clisp.org>
33010 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33011 printed as "-nan" instead of "nan".
33012 * tests/test-vasprintf-posix.c (test_function): Likewise.
33013 * tests/test-snprintf-posix.h (test_function): Likewise.
33014 * tests/test-sprintf-posix.h (test_function): Likewise.
33015 Needed for HP-UX 11.
33017 2007-05-20 Jim Meyering <jim@meyering.net>
33019 Fix buggy test for the fchownat-deref bug.
33020 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33021 symlink required for the run-test. Without it, this test would
33022 always declare that fchownat doesn't work, and client code would
33023 unnecessarily use the replacement function with fixed libc.
33024 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33025 Reported by Greg Schafer.
33027 2007-05-19 Bruno Haible <bruno@clisp.org>
33029 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33030 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33031 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33032 Needed for IRIX 6.5 and Solaris 2.5.1.
33034 2007-05-19 Bruno Haible <bruno@clisp.org>
33036 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33037 (test_function): Skip tests involving -0.0 on platforms where
33039 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33040 (test_function): Skip tests involving -0.0 on platforms where
33042 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33043 (test_function): Skip tests involving -0.0 on platforms where
33045 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33046 (test_function): Skip tests involving -0.0 on platforms where
33048 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33050 * tests/test-printf-posix.h (test_function): Likewise.
33051 * tests/test-printf-posix.output: Remove all -0.0 related results.
33052 Needed for IRIX 6.5.
33054 2007-05-19 Bruno Haible <bruno@clisp.org>
33056 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33057 printed as "nan0x7fffffff" instead of "nan".
33058 * tests/test-vasprintf-posix.c (test_function): Likewise.
33059 * tests/test-snprintf-posix.h (test_function): Likewise.
33060 * tests/test-sprintf-posix.h (test_function): Likewise.
33061 * tests/test-fprintf-posix.h (NaN): Remove macro.
33062 (test_function): Remove all NaN related tests.
33063 * tests/test-printf-posix.h (NaN): Remove macro.
33064 (test_function): Remove all NaN related tests.
33065 * tests/test-printf-posix.output: Remove all NaN related results.
33066 Needed for IRIX 6.5.
33068 2007-05-19 Bruno Haible <bruno@clisp.org>
33070 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33071 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33073 2007-05-19 Bruno Haible <bruno@clisp.org>
33075 * lib/float_.h: New file.
33076 * m4/float_h.m4: New file.
33077 * modules/float: New file.
33078 * modules/isnanl (Dependencies): Add float.
33079 * modules/isnanl-nolibm (Dependencies): Likewise.
33080 * modules/mathl (Dependencies): Likewise.
33081 * modules/printf-frexpl (Dependencies): Likewise.
33082 * modules/signbit (Dependencies): Likewise.
33083 * modules/vasnprintf (Dependencies): Likewise.
33084 * doc/headers/float.texi: Update.
33086 2007-05-19 Jim Meyering <jim@meyering.net>
33088 * lib/utimens.c (gl_futimens): Rename from futimens,
33089 now that glibc-2.6 declares futimens.
33090 * lib/utimens.h: Likewise.
33092 2007-05-19 Bruno Haible <bruno@clisp.org>
33094 Avoid test failures on mingw.
33095 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33096 * tests/test-printf-posix.sh: Likewise.
33097 * tests/test-vfprintf-posix.sh: Likewise.
33098 * tests/test-vprintf-posix.sh: Likewise.
33100 2007-05-19 Bruno Haible <bruno@clisp.org>
33102 Fix *printf result for NaN, Inf, -0.0 on mingw.
33103 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33104 * lib/vasnprintf.c: Include math.h and isnan.h.
33105 (is_infinite_or_zero): New function.
33106 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33107 values in the %f, %F, %e, %E, %g, %G directives.
33108 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33109 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33110 gl_PRINTF_INFINITE and test its result. Invoke
33111 gl_PREREQ_VASNPRINTF_INFINITE.
33112 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33113 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33114 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33115 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33116 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33117 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33118 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33119 * doc/functions/fprintf.texi: Update.
33120 * doc/functions/printf.texi: Update.
33121 * doc/functions/snprintf.texi: Update.
33122 * doc/functions/sprintf.texi: Update.
33123 * doc/functions/vfprintf.texi: Update.
33124 * doc/functions/vprintf.texi: Update.
33125 * doc/functions/vsnprintf.texi: Update.
33126 * doc/functions/vsprintf.texi: Update.
33128 2007-05-19 Bruno Haible <bruno@clisp.org>
33130 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33131 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33132 Instead of multiplying with 10^k, set extra_zeroes to k.
33133 (scale10_round_long_double): Remove function.
33135 2007-05-18 Bruno Haible <bruno@clisp.org>
33137 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33138 introduced on 2007-05-06.
33140 2007-05-18 Bruno Haible <bruno@clisp.org>
33142 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33144 * tests/test-vasprintf-posix.c (test_function): Likewise.
33145 * tests/test-snprintf-posix.h (test_function): Likewise.
33146 * tests/test-sprintf-posix.h (test_function): Likewise.
33148 2007-05-18 Bruno Haible <bruno@clisp.org>
33150 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33151 (strmatch): New function.
33152 (test_function): Test the %f directive on numbers of various exponents.
33153 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33154 (strmatch): New function.
33155 (test_function): Test the %f directive on numbers of various exponents.
33156 * tests/test-snprintf-posix.h (strmatch): New function.
33157 (test_function): Test the %f directive on numbers of various exponents.
33158 * tests/test-sprintf-posix.h (strmatch): New function.
33159 (test_function): Test the %f directive on numbers of various exponents.
33160 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33161 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33162 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33163 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33165 2007-05-18 Bruno Haible <bruno@clisp.org>
33167 Add support for 'long double' number output.
33168 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33169 * lib/vasnprintf.c: Include math.h and float+.h.
33170 (mp_limb_t): New type.
33171 (GMP_LIMB_BITS): New macro.
33172 (mp_twolimb_t): New type.
33173 (GMP_TWOLIMB_BITS): New macro.
33175 (multiply, divide, convert_to_decimal, decode_long_double,
33176 scale10_round_long_double, scale10_round_decimal_long_double,
33177 floorlog10l): New functions.
33178 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33179 for the %f, %F, %e, %E, %g, %G directives.
33180 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33181 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33182 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33183 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33184 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33185 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33186 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33187 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33188 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33189 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33190 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33191 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33192 * modules/snprintf-posix (Depends-on): Likewise.
33193 * modules/sprintf-posix (Depends-on): Likewise.
33194 * modules/vasnprintf-posix (Depends-on): Likewise.
33195 * modules/vasprintf-posix (Depends-on): Likewise.
33196 * modules/vfprintf-posix (Depends-on): Likewise.
33197 * modules/vsnprintf-posix (Depends-on): Likewise.
33198 * modules/vsprintf-posix (Depends-on): Likewise.
33199 * modules/vasnprintf (Files): Add lib/float+.h.
33200 * doc/functions/fprintf.texi: Update.
33201 * doc/functions/printf.texi: Update.
33202 * doc/functions/snprintf.texi: Update.
33203 * doc/functions/sprintf.texi: Update.
33204 * doc/functions/vfprintf.texi: Update.
33205 * doc/functions/vprintf.texi: Update.
33206 * doc/functions/vsnprintf.texi: Update.
33207 * doc/functions/vsprintf.texi: Update.
33209 2007-05-18 Bruno Haible <bruno@clisp.org>
33211 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33213 2007-05-18 Bruno Haible <bruno@clisp.org>
33215 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33216 for printing 64-bit integers. Needed for mingw.
33218 2007-05-18 Bruno Haible <bruno@clisp.org>
33220 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33221 gl_FUNC_FREXPL_WORKS.
33222 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33224 2007-05-18 Bruno Haible <bruno@clisp.org>
33226 * modules/frexpl-nolibm-tests: New file.
33228 * modules/frexpl-nolibm: New file.
33229 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33231 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33233 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33234 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33235 GCC 4.2, which otherwise issues a lot of warnings.
33236 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33237 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33239 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33240 * modules/iconv_open (iconv.h): Likewise.
33241 * modules/locale (locale.h): Likewise.
33242 * modules/netinet_in (netinet/in.h): Likewise.
33243 * modules/sys_select (sys_select.h): Likewise.
33244 * modules/sys_socket (sys/socket.h): Likewise.
33245 * modules/sys_stat (sys/stat.h): Likewise.
33246 * modules/sysexits (sysexits.h): Likewise.
33247 * modules/unistd (unistd.h): Likewise.
33249 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33251 * modules/closein-tests (Makefile.am): Distribute
33254 2007-05-17 Bruno Haible <bruno@clisp.org>
33256 * tests/test-printf-posix.output: Renamed from
33257 tests/test-fprintf-posix.out.
33258 * modules/fprintf-posix-tests: Update.
33259 * modules/printf-posix-tests: Update.
33260 * modules/vfprintf-posix-tests: Update.
33261 * modules/vprintf-posix-tests: Update.
33262 * tests/test-fprintf-posix.sh: Update.
33263 * tests/test-printf-posix.sh: Update.
33264 * tests/test-vfprintf-posix.sh: Update.
33265 * tests/test-vprintf-posix.sh: Update.
33266 Reported by Ralf Wildenhues.
33268 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33270 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33271 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33272 GCC 4.2, which otherwise issues a lot of warnings.
33273 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33274 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33275 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33276 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33277 it should no longer be needed.
33278 * lib/string_.h: Likewise.
33279 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33280 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33281 * modules/inttypes (inttypes.h): Likewise.
33282 * modules/math (math.h): Likewise.
33283 * modules/search (search.h): Likewise.
33284 * modules/signal (signal.h): Likewise.
33285 * modules/stdint (stdint.h): Likewise.
33286 * modules/stdio (stdio.h): Likewise.
33287 * modules/stdlib (stdlib.h): Likewise.
33288 * modules/string (string.h): Likewise.
33289 * modules/sys_time (sys/time.h): Likewise.
33290 * modules/time (time.h): Likewise.
33291 * modules/wchar (wchar.h): Likewise.
33292 * modules/wctype (wtype.h): Likewise.
33294 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33296 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33298 2007-05-13 Bruno Haible <bruno@clisp.org>
33300 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33301 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33302 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33303 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33304 (gl_PREREQ_STRTOK_R): Don't require it here.
33306 2007-05-13 Bruno Haible <bruno@clisp.org>
33308 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33309 when used in C++ mode.
33311 2007-05-12 Bruno Haible <bruno@clisp.org>
33313 * lib/linebuffer.h: Tweak doc.
33314 * lib/linebuffer.c: Likewise.
33316 2007-05-12 James Youngman <jay@gnu.org>
33318 * lib/linebuffer.c (readlinebuffer_delim): New function,
33319 like readlinebuffer, but use a caller-specified delimiter.
33320 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33322 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33324 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33326 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33327 * modules/openat (Files): Remove openat-die.c.
33328 (Depends-on): Add openat-die.
33329 * modules/openat-die: New module.
33331 2007-05-06 Bruno Haible <bruno@clisp.org>
33333 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33334 Update with info about Cygwin.
33335 * doc/functions/fprintf.texi: Update.
33336 * doc/functions/printf.texi: Update.
33337 * doc/functions/snprintf.texi: Update.
33338 * doc/functions/sprintf.texi: Update.
33339 * doc/functions/vfprintf.texi: Update.
33340 * doc/functions/vprintf.texi: Update.
33341 * doc/functions/vsnprintf.texi: Update.
33342 * doc/functions/vsprintf.texi: Update.
33343 Reported by Eric Blake.
33345 2007-05-06 Bruno Haible <bruno@clisp.org>
33347 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33348 padding ourselves for the floating-point directives.
33349 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33350 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33351 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33352 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33353 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33354 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33355 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33356 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33357 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33358 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33359 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33360 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33361 * tests/test-snprintf-posix.h (test_function): Also check the width
33362 and some flags in the %f directive.
33363 * tests/test-sprintf-posix.h (test_function): Likewise.
33364 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33365 * tests/test-vasprintf-posix.c (test_function): Likewise.
33366 * doc/functions/fprintf.texi: Update.
33367 * doc/functions/printf.texi: Update.
33368 * doc/functions/snprintf.texi: Update.
33369 * doc/functions/sprintf.texi: Update.
33370 * doc/functions/vfprintf.texi: Update.
33371 * doc/functions/vprintf.texi: Update.
33372 * doc/functions/vsnprintf.texi: Update.
33373 * doc/functions/vsprintf.texi: Update.
33375 2007-05-06 Bruno Haible <bruno@clisp.org>
33377 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33378 pass the ' flag character to sprintf or snprintf.
33379 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33380 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33381 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33382 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33383 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33384 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33385 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33386 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33387 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33388 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33389 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33390 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33391 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33393 * tests/test-sprintf-posix.h (test_function): Likewise.
33394 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33395 * tests/test-vasprintf-posix.c (test_function): Likewise.
33396 * doc/functions/fprintf.texi: Update.
33397 * doc/functions/printf.texi: Update.
33398 * doc/functions/snprintf.texi: Update.
33399 * doc/functions/sprintf.texi: Update.
33400 * doc/functions/vfprintf.texi: Update.
33401 * doc/functions/vprintf.texi: Update.
33402 * doc/functions/vsnprintf.texi: Update.
33403 * doc/functions/vsprintf.texi: Update.
33405 2007-05-01 Bruno Haible <bruno@clisp.org>
33407 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33409 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33411 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33412 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33414 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33416 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33417 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33418 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33420 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33422 * lib/argp-help.c (struct hol_entry): New member `ord'.
33423 (HOL_ENTRY_PTRCMP): Use ord for comparison
33424 (hol_sort): Initialize ord.
33426 2007-05-01 Bruno Haible <bruno@clisp.org>
33428 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33429 Reported by Eric Blake.
33430 * doc/gnulib.texi (Function Substitutes): Update.
33432 2007-05-01 Bruno Haible <bruno@clisp.org>
33434 * doc/functions.texi: Remove file, now redundant through
33435 doc/functions/*.texi.
33437 2007-05-01 Bruno Haible <bruno@clisp.org>
33439 * modules/argp (Depends-on): Add sleep.
33441 2007-05-01 Bruno Haible <bruno@clisp.org>
33443 * modules/sleep-tests: New file.
33444 * tests/test-sleep.c: New file.
33446 * modules/sleep: New file.
33447 * lib/sleep.c: New file.
33448 * m4/sleep.m4: New file.
33449 * lib/unistd_.h (sleep): New declaration.
33450 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33452 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33453 * doc/functions/sleep.texi: Document the sleep module.
33455 2007-05-01 Bruno Haible <bruno@clisp.org>
33457 * lib/sigprocmask.h: Remove file.
33458 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33459 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33460 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33461 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33462 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33463 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33464 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33465 HAVE_SIGSET_T as a shell variable.
33466 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33467 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33468 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33469 (Depends-on): Add signal. Remove verify.
33470 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33471 (Include): Mention <signal.h> instead of sigprocmask.h.
33472 * NEWS: Mention the change.
33473 * lib/fatal-signal.c: Don't include sigprocmask.h.
33475 2007-05-01 Bruno Haible <bruno@clisp.org>
33477 * modules/signal: New file.
33478 * lib/signal_.h: New file.
33479 * m4/signal_h.m4: New file.
33481 2007-05-01 Bruno Haible <bruno@clisp.org>
33483 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33484 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33485 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33486 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33488 2007-05-01 Bruno Haible <bruno@clisp.org>
33490 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33492 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33493 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33494 * modules/sys_stat (Makefile.am): Substitute their values into
33497 2007-05-01 Bruno Haible <bruno@clisp.org>
33499 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33500 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33501 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33503 2007-05-01 Bruno Haible <bruno@clisp.org>
33505 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33506 'assert' module here.
33508 2007-05-01 Bruno Haible <bruno@clisp.org>
33510 * doc/functions/*.texi: New files.
33511 * doc/functions/google-ranking.txt: New file.
33512 * doc/gnulib.texi (Function Substitutes): New chapter.
33513 (ctime, inet_ntoa): Remove sections.
33514 * doc/ctime.texi: Remove file.
33515 * doc/inet_ntoa.texi: Remove file.
33516 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33518 (%.info): New rule, specifying a --reference-limit.
33520 2007-05-01 Bruno Haible <bruno@clisp.org>
33522 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33524 2007-05-01 Bruno Haible <bruno@clisp.org>
33526 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33527 the portability of 'mkdir' to mingw systems.
33529 2007-05-01 Bruno Haible <bruno@clisp.org>
33531 * doc/headers/google-ranking.txt: New file.
33533 2007-04-30 Eric Blake <ebb9@byu.net>
33535 Prefer fseeko to fseek.
33536 * modules/getpass (Depends-on): Add fseeko.
33537 * lib/getpass.c (getpass): Use fseeko, not fseek.
33539 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33541 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33542 assumes the sorting is stable, while most qsort implementations
33543 are not. Use argument addresses to ensure they never compare as
33546 * tests/test-argp-2.sh (usage-indent test): Fix output
33547 (func_compare): Restore diff options
33548 * tests/test-argp.c: Restore #include "progname.h"
33550 2007-04-29 Bruno Haible <bruno@clisp.org>
33552 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33553 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33554 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33555 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33556 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33557 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33558 (TESTS, check_PROGRAMS): Add test-snprintf.
33559 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33560 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33561 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33562 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33563 assertions that fail on HP-UX, OSF/1, or IRIX.
33564 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33566 2007-04-29 Bruno Haible <bruno@clisp.org>
33568 * MODULES.html.sh (posix_functions): Remove 'contents'.
33570 2007-04-29 Karl Berry <karl@gnu.org>
33572 * config/srclist.txt (gendocs_template_min): new entry.
33574 2007-04-29 Bruno Haible <bruno@clisp.org>
33576 Work around fpurge bug on BSD systems.
33577 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33578 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33579 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33580 fpurge to rpl_fpurge if the system already has this function.
33581 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33582 the case where the system already has this function. Correct invariants
33584 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33587 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33589 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33590 proposed by Sven Verdoolaege.
33592 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33594 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33595 (usage and help tests): Update
33597 2007-04-29 Bruno Haible <bruno@clisp.org>
33599 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33600 Print more information in case of failure. Disable a test on BeOS.
33602 2007-04-29 Bruno Haible <bruno@clisp.org>
33604 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33605 This helps debugging on systems on which no gdb is available.
33607 2007-04-29 Bruno Haible <bruno@clisp.org>
33609 * lib/freading.h: Improve comments.
33610 * lib/fwriting.h: Likewise.
33611 * tests/test-freading.c (main): Don't check freading immediately after
33612 repositioning. Needed for glibc.
33614 2007-04-29 Bruno Haible <bruno@clisp.org>
33616 * lib/freading.c (freading): Trivial simplification.
33618 2007-04-28 Bruno Haible <bruno@clisp.org>
33620 * tests/test-fwriting.c (main): Also test the interaction between
33621 fflush and fwriting.
33622 * modules/fwriting-tests (Depends-on): Add fflush.
33624 * tests/test-freading.c (main): Also test the interaction between
33625 fflush and freading.
33626 * modules/freading-tests (Depends-on): Add fflush.
33628 2007-04-28 Bruno Haible <bruno@clisp.org>
33630 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33632 Suggested by Eric Blake.
33634 2007-04-28 Jim Meyering <jim@meyering.net>
33636 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33637 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33638 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33640 2007-04-27 Eric Blake <ebb9@byu.net>
33642 * doc/headers/assert.texi (assert.h): Document assert module use.
33644 2007-04-27 Bruno Haible <bruno@clisp.org>
33646 * doc/headers/*.texi: New files.
33647 * doc/gnulib.texi (Header File Substitutes): New chapter.
33648 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33650 (standards.info ,standards.html, standards.dvi): Update dependencies.
33651 (mostlyclean, clean): New targets.
33653 2007-04-27 Bruno Haible <bruno@clisp.org>
33655 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33656 * modules/sysexits (Files, Makefile.am): Update.
33658 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33659 * modules/sys_socket (Files, Makefile.am): Update.
33661 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33662 * modules/sys_stat (Files, Makefile.am): Update.
33664 2007-04-27 Eric Blake <ebb9@byu.net>
33666 * lib/freading.h: Improve comments.
33667 * lib/fwriting.h: Likewise.
33668 * lib/fflush.c: Likewise.
33670 Fix closein for mingw.
33671 * modules/closein-tests: Add tests for closein.
33672 * tests/test-closein.c: New file.
33673 * tests/test-closein.sh: Likewise.
33674 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33675 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33677 2007-04-27 Bruno Haible <bruno@clisp.org>
33679 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33681 * lib/math_.h [__DECC]: Likewise.
33682 * lib/stdio_.h [__DECC]: Likewise.
33683 * lib/stdlib_.h [__DECC]: Likewise.
33684 * lib/string_.h [__DECC]: Likewise.
33685 * lib/time_.h [__DECC]: Likewise.
33686 * lib/wchar_.h [__DECC]: Likewise.
33687 * lib/wctype_.h [__DECC]: Likewise.
33689 2007-04-27 Bruno Haible <bruno@clisp.org>
33691 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33693 2007-04-27 Bruno Haible <bruno@clisp.org>
33695 * lib/fflush.c: Add comments.
33696 * modules/fpurge-tests (Depends-on): Add fflush.
33697 * modules/freadable-tests (Depends-on): Likewise.
33698 * modules/fwritable-tests (Depends-on): Likewise.
33700 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33702 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33703 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33704 Report by Bruno Haible <bruno@clisp.org>.
33706 2007-04-26 Eric Blake <ebb9@byu.net>
33708 Fix fflush on mingw.
33709 * modules/fflush (Depends-on): Add freading.
33710 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33713 2007-04-26 Eric Blake <ebb9@byu.net>
33714 and Bruno Haible <bruno@clisp.org>
33716 Implement freading and fwriting.
33717 * lib/freading.c: New file.
33718 * lib/freading.h: Likewise.
33719 * m4/freading.m4: Likewise.
33720 * modules/freading: Likewise.
33721 * modules/freading-tests: Likewise.
33722 * tests/test-freading.c: Likewise.
33723 * lib/fwriting.c: New file.
33724 * lib/fwriting.h: Likewise.
33725 * m4/fwriting.m4: Likewise.
33726 * modules/fwriting: Likewise.
33727 * modules/fwriting-tests: Likewise.
33728 * tests/test-fwriting.c: Likewise.
33729 * MODULES.html.sh (File stream based Input/Output): Mention them.
33731 2007-04-26 Bruno Haible <bruno@clisp.org>
33733 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33734 'long' when we assume it.
33735 Suggested by Eric Blake.
33737 2007-04-26 Bruno Haible <bruno@clisp.org>
33739 Ensure fseeko, ftello are declared on glibc systems.
33740 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33741 * modules/fseeko (configure.ac-early): Likewise.
33742 * modules/ftello (configure.ac-early): Likewise.
33743 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33744 AC_FUNC_FSEEKO for this.
33745 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33746 (gl_CHECK_FSEEKO): Remove macro.
33748 2007-04-26 Bruno Haible <bruno@clisp.org>
33750 * tests/test-fflush.c (main): Also check the ftell result after
33751 fflush and fseek/fseeko.
33752 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33753 file descriptor position cache in the stream.
33754 * lib/fseeko.c (rpl_fseeko): Likewise.
33756 2007-04-26 Bruno Haible <bruno@clisp.org>
33758 * modules/fflush-tests (Depends-on): Add fseeko.
33760 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33761 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33763 * lib/argz_.h: ensure error_t definition is obtained in same
33764 mechanism system argz.h would have.
33765 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33766 argz facilities are known bad. Err on the side of caution if
33769 2007-04-25 Eric Blake <ebb9@byu.net>
33771 * lib/fpurge.c (includes): Use stdlib.h for free.
33772 * tests/test-fflush.c (main): Also test fflush-fseeko.
33774 2007-04-25 Bruno Haible <bruno@clisp.org>
33776 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33777 * lib/fseeko.c: New file.
33778 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33779 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33780 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33782 (gl_FUNC_FSEEKO): Invoke it.
33783 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33784 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33785 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33787 2007-04-25 Bruno Haible <bruno@clisp.org>
33789 * modules/fflush (Depends-on): Add ftello.
33791 2007-04-25 Bruno Haible <bruno@clisp.org>
33793 * modules/ftello-tests: New file.
33794 * tests/test-ftello.c: New file.
33796 * modules/ftello: New file.
33797 * m4/ftello.m4: New file.
33798 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33800 * lib/stdio_.h (ftello): New declaration.
33801 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33804 2007-04-25 Bruno Haible <bruno@clisp.org>
33806 * modules/fseeko-tests: New file.
33807 * tests/test-fseeko.c: New file.
33809 * modules/fseeko: New file.
33810 * m4/fseeko.m4: New file.
33811 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33813 * lib/stdio_.h (fseeko): New declaration.
33814 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33817 2007-04-25 Bruno Haible <bruno@clisp.org>
33819 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33821 2007-04-25 Bruno Haible <bruno@clisp.org>
33823 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33824 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33825 * tests/test-unistd.c: Likewise.
33826 * tests/test-fcntl.c: Likewise.
33828 2007-04-23 Eric Blake <ebb9@byu.net>
33830 * lib/fflush.c: Fix missing include.
33831 Reported by Bruno Haible.
33833 2007-04-23 Bruno Haible <bruno@clisp.org>
33835 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33836 Reported by Eric Blake.
33838 2007-04-23 Bruno Haible <bruno@clisp.org>
33840 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33842 2007-04-23 Bruno Haible <bruno@clisp.org>
33844 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33846 2007-04-23 Bruno Haible <bruno@clisp.org>
33848 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33849 Needed on HP-UX 11.
33851 2007-04-16 Eric Blake <ebb9@byu.net>
33853 Make fflush rely on fpurge.
33854 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33855 open coding all variants.
33856 * modules/fflush (Depends-on): Add fpurge and unistd.
33857 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33858 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33860 Fix --with-tests compilation on cygwin.
33861 * modules/argmatch-tests (Makefile.am): List gnulib library first
33863 * modules/argp-tests (Makefile.am): Likewise.
33864 * modules/array-list-tests (Makefile.am): Likewise.
33865 * modules/array-oset-tests (Makefile.am): Likewise.
33866 * modules/avltree-list-tests (Makefile.am): Likewise.
33867 * modules/avltree-oset-tests (Makefile.am): Likewise.
33868 * modules/avltreehash-list-tests (Makefile.am): Likewise.
33869 * modules/carray-list-tests (Makefile.am): Likewise.
33870 * modules/dirname-tests (Makefile.am): Likewise.
33871 * modules/frexp-tests (Makefile.am): Likewise.
33872 * modules/isnanl-tests (Makefile.am): Likewise.
33873 * modules/linked-list-tests (Makefile.am): Likewise.
33874 * modules/linkedhash-list-tests (Makefile.am): Likewise.
33875 * modules/lock-tests (Makefile.am): Likewise.
33876 * modules/rbtree-list-tests (Makefile.am): Likewise.
33877 * modules/rbtree-oset-tests (Makefile.am): Likewise.
33878 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33879 * modules/tls-tests (Makefile.am): Likewise.
33880 * modules/tsearch-tests (Makefile.am): Likewise.
33881 * modules/xvasprintf-tests (Makefile.am): Likewise.
33883 Fix fpurge for cygwin.
33884 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33886 * modules/fpurge-tests (Depends-on): Clean up trash.
33888 2007-04-16 Simon Josefsson <simon@josefsson.org>
33890 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33892 * m4/autobuild.m4: Re-indent.
33894 2007-04-13 Bruno Haible <bruno@clisp.org>
33896 * modules/fpurge-tests: New file.
33897 * tests/test-fpurge.c: New file.
33899 * modules/fpurge: New file.
33900 * lib/fpurge.h: New file.
33901 * lib/fpurge.c: New file.
33902 * m4/fpurge.m4: New file.
33904 2007-04-13 Bruno Haible <bruno@clisp.org>
33906 * modules/fbufmode-tests: New file.
33907 * tests/test-fbufmode.c: New file.
33909 * modules/fbufmode: New file.
33910 * lib/fbufmode.h: New file.
33911 * lib/fbufmode.c: New file.
33912 * m4/fbufmode.m4: New file.
33914 2007-04-13 Bruno Haible <bruno@clisp.org>
33916 * modules/fwritable-tests: New file.
33917 * tests/test-fwritable.c: New file.
33919 * modules/fwritable: New file.
33920 * lib/fwritable.h: New file.
33921 * lib/fwritable.c: New file.
33922 * m4/fwritable.m4: New file.
33924 2007-04-13 Bruno Haible <bruno@clisp.org>
33926 * modules/freadable-tests: New file.
33927 * tests/test-freadable.c: New file.
33929 * modules/freadable: New file.
33930 * lib/freadable.h: New file.
33931 * lib/freadable.c: New file.
33932 * m4/freadable.m4: New file.
33934 2007-04-13 Bruno Haible <bruno@clisp.org>
33936 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33939 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
33941 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33942 gzip bootstrap.conf to avoid dragging in i18n machinery.
33943 (gnulib_tool_option): Use it.
33945 2007-04-13 Bruno Haible <bruno@clisp.org>
33947 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33949 * tests/test-vasprintf-posix.c (test_function): Likewise.
33950 * tests/test-snprintf-posix.h (test_function): Likewise.
33951 * tests/test-sprintf-posix.h (test_function): Likewise.
33952 * tests/test-fprintf-posix.h (test_function): Likewise.
33953 * tests/test-printf-posix.h (test_function): Likewise.
33954 * tests/test-fprintf-posix.out: Likewise.
33956 2007-04-13 Bruno Haible <bruno@clisp.org>
33958 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33959 * modules/tls-tests (configure.ac): Likewise.
33960 Reported by Arto C. Nirkko <anirkko@insel.ch>.
33962 2007-04-13 Bruno Haible <bruno@clisp.org>
33964 * lib/tls.c (glthread_tls_get): Fix return type.
33965 Patch by Arto C. Nirkko <anirkko@insel.ch>.
33967 2007-04-12 Eric Blake <ebb9@byu.net>
33969 * modules/gettime (Depends-on): Remove gettime.
33970 Reported by Dmitry V. Levin.
33972 2007-04-12 Bruno Haible <bruno@clisp.org>
33974 * modules/fflush (Include): Mention <stdio.h>.
33975 * modules/strtoimax (Include): Mention <inttypes.h>.
33976 * modules/strtoumax (Include): Likewise.
33978 2007-04-12 Eric Blake <ebb9@byu.net>
33980 * .cvsignore: New file.
33981 * .gitignore: Likewise.
33983 2007-04-12 Bruno Haible <bruno@clisp.org>
33985 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33986 not before, since $(LDADD) often contains libgnu.a.
33987 * modules/striconv-tests (test_striconv_LDADD): Likewise.
33988 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33989 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33992 2007-04-12 Eric Blake <ebb9@byu.net>
33994 Work around glibc's failure to flush stdin on fclose.
33995 * lib/closein.c (close_stdin): Flush stdin before closing.
33997 Work around glibc's failure to reset seekable stdin on exit.
33998 * modules/closein: New module.
33999 * lib/closein.c: New file.
34000 * lib/closein.h: Likewise.
34001 * m4/closein.m4: Likewise.
34002 * MODULES.html.sh (File stream based Input/Output): Document it.
34004 2007-04-12 Simon Josefsson <simon@josefsson.org>
34006 * gnulib-tool: Rename generated 'autobuild' script to
34007 'do-autobuild' in --create-megatestdir output.
34009 * doc/gnulib.texi (Build robot for gnulib): Fix.
34011 2007-04-12 Simon Josefsson <simon@josefsson.org>
34013 * modules/sysexits (Depends-on): Add absolute-header.
34015 2007-04-12 Eric Blake <ebb9@byu.net>
34017 No need to preserve errno on success.
34018 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34019 Reported by Bruno Haible.
34021 2007-04-12 Simon Josefsson <simon@josefsson.org>
34023 * MODULES.html.sh (Support for maintaining and releasing
34024 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34026 2007-04-12 Simon Josefsson <simon@josefsson.org>
34028 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34030 2007-04-12 Simon Josefsson <simon@josefsson.org>
34032 * modules/autobuild: New module.
34034 * m4/autobuild.m4: New file.
34036 2007-04-11 Bruno Haible <bruno@clisp.org>
34038 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34039 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34040 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34041 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34042 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34043 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34044 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34045 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34046 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34047 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34048 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34049 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34050 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34051 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34052 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34053 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34054 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34055 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34056 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34057 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34058 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34059 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34060 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34061 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34062 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34063 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34064 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34065 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34066 Reported by Eric Blake.
34068 2007-04-11 Bruno Haible <bruno@clisp.org>
34070 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34072 2007-04-10 Bruno Haible <bruno@clisp.org>
34074 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34075 for NaN and Infinity. Needed on FreeBSD 6.1.
34076 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34077 regarding results for "%010a" of Infinity and NaN.
34078 * tests/test-vasprintf-posix.c (test_function): Likewise.
34079 * tests/test-snprintf-posix.h (test_function): Likewise.
34080 * tests/test-sprintf-posix.h (test_function): Likewise.
34081 * tests/test-fprintf-posix.h (test_function): Likewise.
34082 * tests/test-printf-posix.h (test_function): Likewise.
34083 * tests/test-fprintf-posix.out: Likewise.
34085 2007-04-10 Bruno Haible <bruno@clisp.org>
34087 * modules/locale-tests: New file.
34088 * tests/test-locale.c: New file.
34090 * modules/locale: New file.
34091 * lib/locale_.h: New file.
34092 * m4/locale_h.m4: New file.
34094 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34095 Bruno Haible <bruno@clisp.org>
34097 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34098 be determined, test for availability of the copysignf, copysign,
34099 copysignl functions.
34100 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34101 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34102 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34104 2007-04-09 Eric Blake <ebb9@byu.net>
34106 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34107 * modules/stdio (Makefile.am): Support fflush.
34108 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34109 * modules/fflush: New file.
34110 * lib/fflush.c: Likewise.
34111 * m4/fflush.m4: Likewise.
34112 * modules/fflush-tests: New test.
34113 * tests/test-fflush.c: Likewise.
34114 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34116 2007-04-06 Bruno Haible <bruno@clisp.org>
34118 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34119 (VASNPRINTF): Use signbit for faster determination whether to print a
34121 * modules/vasnprintf (Files): Remove lib/float+.h.
34122 * modules/fprintf-posix (Depends-on): Add signbit.
34123 * modules/snprintf-posix (Depends-on): Likewise.
34124 * modules/sprintf-posix (Depends-on): Likewise.
34125 * modules/vasnprintf-posix (Depends-on): Likewise.
34126 * modules/vasprintf-posix (Depends-on): Likewise.
34127 * modules/vfprintf-posix (Depends-on): Likewise.
34128 * modules/vsnprintf-posix (Depends-on): Likewise.
34129 * modules/vsprintf-posix (Depends-on): Likewise.
34131 2007-04-06 Bruno Haible <bruno@clisp.org>
34133 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34134 * tests/test-frexpl.c (main): Likewise.
34135 * tests/test-ldexpl.c (main): Likewise.
34136 * modules/frexp-tests (Depends-on): Add signbit.
34137 * modules/frexpl-tests (Depdends-on): Likewise.
34138 * modules/ldexpl-tests (Depdends-on): Likewise.
34140 2007-04-06 Bruno Haible <bruno@clisp.org>
34142 * modules/signbit-tests: New file.
34143 * tests/test-signbit.c: New file.
34145 * modules/signbit: New file.
34146 * lib/signbitf.c: New file.
34147 * lib/signbitd.c: New file.
34148 * lib/signbitl.c: New file.
34149 * m4/signbit.m4: New file.
34150 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34151 (signbit): New macro.
34152 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34154 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34155 REPLACE_FREXPL into math.h.
34157 2007-04-06 Bruno Haible <bruno@clisp.org>
34159 * modules/isnanf-nolibm-tests: New file.
34160 * tests/test-isnanf.c: New file.
34162 * modules/isnanf-nolibm: New file.
34163 * lib/isnanf.h: New file.
34164 * lib/isnanf.c: New file.
34165 * lib/isnan.c: Consider the USE_FLOAT macro.
34166 * m4/isnanf.m4: New file.
34168 2007-04-06 Bruno Haible <bruno@clisp.org>
34170 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34171 (Link): New section.
34173 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34175 2007-04-06 Bruno Haible <bruno@clisp.org>
34177 Assume the 'long double' type.
34178 * m4/longdouble.m4: Remove file.
34179 * config/srclist.txt: Don't mention longdouble.m4.
34180 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34181 * lib/float+.h: Likewise.
34182 * lib/frexp.c: Likewise.
34183 * lib/printf-args.h: Likewise.
34184 * lib/printf-args.c: Likewise.
34185 * lib/printf-frexp.c: Likewise.
34186 * lib/printf-parse.c: Likewise.
34187 * lib/vasnprintf.c: Likewise.
34188 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34189 * m4/intl.m4: Likewise.
34190 * m4/isnanl.m4: Likewise.
34191 * m4/printf.m4: Likewise.
34192 * m4/printf-frexpl.m4: Likewise.
34193 * m4/vasnprintf.m4: Likewise.
34194 * modules/allocsa (Files): Remove m4/longdouble.m4.
34195 * modules/gettext (Files): Likewise.
34196 * modules/relocatable-prog-wrapper (Files): Likewise.
34197 * modules/vasnprintf (Files): Likewise.
34198 * modules/isnanl (Files): Likewise.
34199 (Include): Simplify.
34200 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34201 (Include): Simplify.
34202 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34203 (Include): Simplify.
34204 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34205 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34206 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34207 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34208 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34209 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34210 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34211 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34212 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34213 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34214 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34215 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34216 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34217 * tests/test-isnanl.c: Likewise.
34218 * tests/test-snprintf-posix.h: Likewise.
34219 * tests/test-sprintf-posix.h: Likewise.
34220 * tests/test-vasnprintf-posix.c: Likewise.
34221 * tests/test-vasnprintf-posix2.c: Likewise.
34222 * tests/test-vasprintf-posix.c: Likewise.
34224 2007-04-06 Bruno Haible <bruno@clisp.org>
34226 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34227 * lib/math_.h [__DECC]: Include the overridden include file through
34228 #include_next, outside the double-inclusion guard.
34229 * lib/stdio_.h [__DECC]: Likewise.
34230 * lib/stdlib_.h [__DECC]: Likewise.
34231 * lib/string_.h [__DECC]: Likewise.
34232 * lib/time_.h [__DECC]: Likewise.
34233 * lib/wchar_.h [__DECC]: Likewise.
34234 * lib/wctype_.h [__DECC]: Likewise.
34235 * lib/inttypes_.h [__DECC]: Likewise.
34236 Reported by Albert Chin <china@thewrittenword.com> in
34237 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34239 2007-04-04 Eric Blake <ebb9@byu.net>
34241 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34244 2007-04-04 Bruno Haible <bruno@clisp.org>
34246 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34247 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34249 2007-04-04 Bruno Haible <bruno@clisp.org>
34251 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34252 results for "%010a" of Infinity and NaN.
34253 * tests/test-vasprintf-posix.c (test_function): Likewise.
34254 * tests/test-snprintf-posix.h (test_function): Likewise.
34255 * tests/test-sprintf-posix.h (test_function): Likewise.
34256 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34257 * tests/test-printf-posix.h (test_function): Likewise.
34258 * tests/test-fprintf-posix.out: Update.
34259 Needed for FreeBSD 6.1.
34261 2007-04-04 Bruno Haible <bruno@clisp.org>
34263 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34264 directly used by the gnulib modules nor by gnulib-tool.
34266 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34268 * DEPENDENCIES: Give overall description of version dependency
34269 desirability. Use more-typical names for apps.
34270 Add shell, coreutils, diffutils, grep, tar, gzip.
34272 2007-04-04 Simon Josefsson <simon@josefsson.org>
34274 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34276 2007-04-04 Karl Berry <karl@gnu.org>
34278 * MODULES.html.sh (func_module): missing '.
34280 2007-04-03 Bruno Haible <bruno@clisp.org>
34282 * modules/argmatch-tests (Makefile.am): New variable
34283 test_argmatch_LDADD.
34284 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34285 * modules/array-list-tests (Makefile.am): New variable
34286 test_array_list_LDADD.
34287 * modules/array-oset-tests (Makefile.am): New variable
34288 test_array_oset_LDADD.
34289 * modules/avltree-list-tests (Makefile.am): New variable
34290 test_avltree_list_LDADD.
34291 * modules/avltree-oset-tests (Makefile.am): New variable
34292 test_avltree_oset_LDADD.
34293 * modules/avltreehash-list-tests (Makefile.am): New variable
34294 test_avltreehash_list_LDADD.
34295 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34296 test_canonicalize_lgpl_LDADD.
34297 * modules/carray-list-tests (Makefile.am): New variable
34298 test_carray_list_LDADD.
34299 * modules/dirname-tests (Makefile.am): New variable
34300 test_dirname_LDADD.
34301 * modules/linked-list-tests (Makefile.am): New variable
34302 test_linked_list_LDADD.
34303 * modules/linkedhash-list-tests (Makefile.am): New variable
34304 test_linkedhash_list_LDADD.
34305 * modules/rbtree-list-tests (Makefile.am): New variable
34306 test_rbtree_list_LDADD.
34307 * modules/rbtree-oset-tests (Makefile.am): New variable
34308 test_rbtree_oset_LDADD.
34309 * modules/rbtreehash-list-tests (Makefile.am): New variable
34310 test_rbtreehash_list_LDADD.
34311 * modules/xvasprintf-tests (Makefile.am): New variable
34312 test_xvasprintf_LDADD.
34313 Reported by Eric Blake.
34315 2007-04-03 Eric Blake <ebb9@byu.net>
34317 * DEPENDENCIES: Weaken m4 requirements.
34319 2007-04-03 Bruno Haible <bruno@clisp.org>
34321 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34322 * modules/isnanl-tests (configure.ac): Likewise.
34324 2007-04-03 Ben Pfaff <blp@gnu.org>
34326 * modules/iconv_open: Add $(srcdir)/ to source directory
34327 references in Makefile fragments that call gperf, to fix VPATH
34330 2007-04-03 Bruno Haible <bruno@clisp.org>
34332 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34333 * lib/ldexpl.c: Undo last change.
34335 2007-04-03 Bruno Haible <bruno@clisp.org>
34337 * modules/printf-frexpl (Depends-on): Undo last change.
34338 (Files): Add m4/ldexpl.m4.
34340 2007-04-03 Bruno Haible <bruno@clisp.org>
34342 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34343 * modules/isnanl (Link): New section.
34345 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34346 * modules/frexp (Link): New section.
34348 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34349 * modules/frexpl (Link): New section.
34351 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34352 * modules/ldexpl (Link): New section.
34354 2007-04-03 Bruno Haible <bruno@clisp.org>
34356 * modules/TEMPLATE-EXTENDED: New file.
34357 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34359 2007-04-03 Bruno Haible <bruno@clisp.org>
34361 * DEPENDENCIES: New file.
34362 Suggested by Simon Josefsson.
34364 2007-04-03 Bruno Haible <bruno@clisp.org>
34366 * doc/gnulib.texi: Escape @.
34368 2007-04-03 James Youngman <jay@gnu.org>
34369 and Paul Eggert <eggert@cs.ucla.edu>
34371 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34372 birthtime on all systems that have birthtime, not just those which
34373 use st_birthtimensec rather than st_birthtim. Putting zero in
34374 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34375 that the birth time is not available for files on an NFS mount.
34377 2007-04-03 Simon Josefsson <simon@josefsson.org>
34379 * modules/memxor: Move back from crypto/, suggested by Bruno.
34380 * modules/crypto/hmac-sha1: Fix memxor dependency.
34382 * modules/crypto/gc: Moved from ../.
34384 2007-04-02 Eric Blake <ebb9@byu.net>
34386 * lib/ldexpl.c (includes): Avoid libm.
34388 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34390 2007-04-02 Bruno Haible <bruno@clisp.org>
34392 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34395 2007-04-02 Bruno Haible <bruno@clisp.org>
34397 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34398 x86 or x86_64 platforms running MacOS X.
34399 Reported by Ryan Schmidt <@ryandesign.com>.
34401 2007-04-02 Bruno Haible <bruno@clisp.org>
34403 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34406 2007-04-01 Simon Josefsson <simon@josefsson.org>
34408 * modules/crypto/arcfour: Moved from ../.
34409 * modules/crypto/arcfour-tests: Moved from ../.
34410 * modules/crypto/arctwo: Moved from ../.
34411 * modules/crypto/arctwo-tests: Moved from ../.
34412 * modules/crypto/des: Moved from ../.
34413 * modules/crypto/des-tests: Moved from ../.
34414 * modules/crypto/gc-arcfour: Moved from ../.
34415 * modules/crypto/gc-arcfour-tests: Moved from ../.
34416 * modules/crypto/gc-arctwo: Moved from ../.
34417 * modules/crypto/gc-arctwo-tests: Moved from ../.
34418 * modules/crypto/gc-des: Moved from ../.
34419 * modules/crypto/gc-des-tests: Moved from ../.
34420 * modules/crypto/gc-hmac-md5: Moved from ../.
34421 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34422 * modules/crypto/gc-hmac-sha1: Moved from ../.
34423 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34424 * modules/crypto/gc-md2: Moved from ../.
34425 * modules/crypto/gc-md2-tests: Moved from ../.
34426 * modules/crypto/gc-md4: Moved from ../.
34427 * modules/crypto/gc-md4-tests: Moved from ../.
34428 * modules/crypto/gc-md5: Moved from ../.
34429 * modules/crypto/gc-md5-tests: Moved from ../.
34430 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34431 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34432 * modules/crypto/gc-random: Moved from ../.
34433 * modules/crypto/gc-rijndael: Moved from ../.
34434 * modules/crypto/gc-rijndael-tests: Moved from ../.
34435 * modules/crypto/gc-sha1: Moved from ../.
34436 * modules/crypto/gc-sha1-tests: Moved from ../.
34437 * modules/crypto/gc-tests: Moved from ../.
34438 * modules/crypto/hmac-md5: Moved from ../.
34439 * modules/crypto/hmac-md5-tests: Moved from ../.
34440 * modules/crypto/hmac-sha1: Moved from ../.
34441 * modules/crypto/hmac-sha1-tests: Moved from ../.
34442 * modules/crypto/md2: Moved from ../.
34443 * modules/crypto/md2-tests: Moved from ../.
34444 * modules/crypto/md4: Moved from ../.
34445 * modules/crypto/md4-tests: Moved from ../.
34446 * modules/crypto/md5: Moved from ../.
34447 * modules/crypto/md5-tests: Moved from ../.
34448 * modules/crypto/memxor: Moved from ../.
34449 * modules/crypto/rijndael: Moved from ../.
34450 * modules/crypto/rijndael-tests: Moved from ../.
34451 * modules/crypto/sha1: Moved from ../.
34453 2007-03-30 James Youngman <jay@gnu.org>
34455 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34456 rename() to change the ctime of a file (because ctime is unaffected
34457 by rename on jfs2 on AIX 5.1).
34458 (main): Start by doing cleanup, in case a previous run failed leaving
34461 2007-03-31 Bruno Haible <bruno@clisp.org>
34463 Support old proprietary implementations of iconv.
34464 * modules/iconv_open: New file.
34465 * lib/iconv_.h: New file.
34466 * m4/iconv_h.m4: New file.
34467 * lib/iconv_open.c: New file.
34468 * lib/iconv_open-aix.gperf: New file.
34469 * lib/iconv_open-hpux.gperf: New file.
34470 * lib/iconv_open-irix.gperf: New file.
34471 * lib/iconv_open-osf.gperf: New file.
34472 * m4/iconv_open.m4: New file.
34473 * modules/linebreak (Depends-on): Add iconv_open.
34474 * modules/striconv (Depends-on): Likewise.
34475 * modules/striconveh (Depends-on): Likewise.
34476 * modules/unicodeio (Depends-on): Likewise.
34477 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34479 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34480 conversion if cd is (iconv_t)(-1).
34481 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34484 2007-03-31 Bruno Haible <bruno@clisp.org>
34486 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34487 work on Solaris either. Protect also second use of "autodetect_jp".
34489 2007-03-31 Bruno Haible <bruno@clisp.org>
34491 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34492 the function is not present.
34494 2007-03-31 Bruno Haible <bruno@clisp.org>
34496 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34497 the function is not present.
34499 2007-03-31 Bruno Haible <bruno@clisp.org>
34501 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34502 a bug in HP-UX iconv_open().
34504 2007-03-31 Bruno Haible <bruno@clisp.org>
34506 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34507 (Mathematics <math.h>): New section, add fpieee.
34508 (Input/output <stdio.h>): Add fseterr.
34509 (Mathematics <math.h>): New section, add printf-frexp.
34510 (Container data structures): Add sublist.
34511 (Core language properties): Add fpucw, inline.
34512 (Functions for greatest-width integer types <inttypes.h>): Add
34513 imaxabs, imaxdiv, inttypes.
34514 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34515 isnanl-nolibm, ldexp.
34516 (Mathematics <math.h>): New section, add printf-frexpl.
34517 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34518 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34519 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34520 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34521 (Unicode string functions): Add unistr/u*-mbtoucr.
34522 (Java): Add javacomp-script, javaexec-script.
34523 (C#): Add csharpcomp-script, csharpexec-script.
34524 (Support for building libraries and executables): Add havelib,
34526 (Support for maintaining and releasing projects): Renamed from
34527 'Support for maintaining and release projects'. Add announce-gen.
34529 2007-03-31 Bruno Haible <bruno@clisp.org>
34531 * README: Talk primarily about git.
34532 (git and CVS): Renamed from CVS.
34533 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34534 gnulib is available through git.
34535 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34537 2007-03-30 Bruno Haible <bruno@clisp.org>
34539 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34540 * lib/poll_.h: Likewise.
34541 * lib/stat_.h: Likewise.
34542 * lib/sys_time_.h: Likewise.
34543 * lib/sysexit_.h: Likewise.
34544 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34545 * lib/stdbool_.h: Likewise.
34546 * lib/byteswap_.h: Add double-inclusion guard.
34548 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34550 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34552 2007-03-30 Karl Berry <karl@gnu.org>
34554 * config/srclist-update: double space after USA in the license
34555 substitution, since that's how it's usually (?) written.
34557 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34559 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34560 reported by Bruno Haible.
34562 2007-03-29 Bruno Haible <bruno@clisp.org>
34564 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34565 a bug in AIX iconv().
34567 2007-03-29 Bruno Haible <bruno@clisp.org>
34569 * modules/ldexpl-tests: New file.
34570 * tests/test-ldexpl.c: New file.
34572 2007-03-29 Bruno Haible <bruno@clisp.org>
34574 * lib/ldexpl.c: Include fpucw.h.
34575 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34577 * modules/ldexpl (Depends-on): Add fpucw.
34579 2007-03-29 Bruno Haible <bruno@clisp.org>
34581 * modules/ldexpl: New file.
34582 * m4/ldexpl.m4: New file.
34583 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34585 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34587 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34589 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34590 gl_FUNC_LDEXPL_WORKS.
34591 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34592 * modules/mathl (Files): Remove lib/ldexpl.c.
34593 (Depends-on): Add ldexpl.
34595 2007-03-29 Bruno Haible <bruno@clisp.org>
34597 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34599 2007-03-29 Bruno Haible <bruno@clisp.org>
34601 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34602 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34603 and possibly also HP-UX.
34604 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34605 work on AIX, IRIX, HP-UX, OSF/1.
34606 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34607 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34608 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34609 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34610 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34611 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34613 2007-03-29 Bruno Haible <bruno@clisp.org>
34615 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34617 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34619 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34620 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34622 2007-03-29 Eric Blake <ebb9@byu.net>
34624 * lib/acl-internal.h: Remove redundant include.
34625 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34626 Cygwin when a file is locked.
34628 2007-03-29 Bruno Haible <bruno@clisp.org>
34630 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34632 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34634 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34636 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34637 try to remove a parent directory if the child couldn't be removed
34638 (except for the first rmdir, which could fail because the child
34639 doesn't exist). Problem reported by Jeff Blaine in
34640 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34642 2007-03-28 Bruno Haible <bruno@clisp.org>
34644 * lib/striconveh.c (utf8conv_carefully): New function.
34645 (mem_cd_iconveh_internal): Invoke it.
34647 2007-03-28 Bruno Haible <bruno@clisp.org>
34649 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34650 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34652 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34653 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34656 2007-03-28 Bruno Haible <bruno@clisp.org>
34658 * modules/unistr/u8-mbtoucr: New file.
34659 * lib/unistr/u8-mbtoucr.c: New file.
34660 * modules/unistr/u16-mbtoucr: New file.
34661 * lib/unistr/u16-mbtoucr.c: New file.
34662 * modules/unistr/u16-mbtoucr: New file.
34663 * lib/unistr/u16-mbtoucr.c: New file.
34664 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34666 2007-03-27 Simon Josefsson <simon@josefsson.org>
34667 Bruno Haible <bruno@clisp.org>
34669 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34670 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34671 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34673 * m4/stdio_h.m4: Add stubs for vasprintf too.
34675 * modules/stdio: Support vasprintf in sed command.
34677 * modules/vasprintf: Depend on stdio for prototypes. Remove
34678 vasprintf.h. Add stdio module indicator.
34680 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34683 * lib/vasprintf.h: File removed.
34685 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34686 * lib/vasprintf.c: Ditto.
34687 * lib/xvasprintf.c: Ditto.
34688 * tests/test-vasprintf-posix.c: Ditto.
34689 * tests/test-vasprintf.c: Ditto.
34691 2007-03-27 Bruno Haible <bruno@clisp.org>
34693 Make vasnprintf multithread-safe.
34694 * lib/vasnprintf.c (decimal_point_char): New function.
34695 (VASNPRINTF): Use it.
34696 Suggested by Simon Josefsson.
34698 2007-03-27 Eric Blake <ebb9@byu.net>
34700 Support sub-second birthtime on cygwin.
34701 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34702 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34703 (get_stat_birthtime): Also work with st_birthtim.
34705 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34707 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34708 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34709 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34710 (get_stat_birthtime_ns): Simplify compile-time tests.
34711 (get_stat_birthtime): Change the API to look like
34712 get_stat_mtime etc., except return a negative tv_nsec on error.
34713 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34714 Don't check for "spare" fields.
34715 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34716 or for struct stat.st_birthtime, as these tests aren't used.
34717 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34719 2007-03-27 Bruno Haible <bruno@clisp.org>
34721 * lib/stat-time.h: Include <sys/stat.h>.
34723 2007-03-27 James Youngman <jay@gnu.org>
34725 * lib/stat-time.h (get_stat_birthtime): New function for
34726 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34727 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34729 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34730 * modules/stat-time-test: New file.
34731 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34733 2007-03-26 Bruno Haible <bruno@clisp.org>
34735 Better support of signalling NaNs.
34736 * lib/atanl.c: Include isnanl.h.
34737 (atanl): Perform test for NaN at the beginning of the function and
34738 through a call to isnanl.
34739 * lib/cosl.c: Include isnanl.h.
34740 (cosl): Perform test for NaN at the beginning of the function and
34741 through a call to isnanl.
34742 * lib/ldexpl.c: Include isnanl.h.
34743 (ldexpl): Perform test for NaN through a call to isnanl.
34744 * lib/logl.c: Include isnanl.h.
34745 (logl): Perform test for NaN at the beginning of the function and
34746 through a call to isnanl.
34747 * lib/sinl.c: Include isnanl.h.
34748 (sinl): Perform test for NaN at the beginning of the function and
34749 through a call to isnanl.
34750 * lib/sqrtl.c: Include isnanl.h.
34751 (sqrtl): Perform test for NaN at the beginning of the function and
34752 through a call to isnanl.
34753 * lib/tanl.c: Include isnanl.h.
34754 (tanl): Perform test for NaN at the beginning of the function and
34755 through a call to isnanl.
34756 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34757 * modules/mathl (Depends-on): Add isnanl.
34759 2007-03-26 Eric Blake <ebb9@byu.net>
34761 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34762 regression in logic sense of previous patch.
34764 2007-03-26 Bruno Haible <bruno@clisp.org>
34766 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34767 unportable shell command "if ! ...".
34768 Reported by Ralf Wildenhues.
34770 2007-03-25 Bruno Haible <bruno@clisp.org>
34772 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34773 <sysexits.h> file, and only add EX_CONFIG.
34774 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34775 absolute file name and whether it is sufficient. Substitute also
34776 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34777 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34778 ABSOLUTE_SYSEXITS_H into sysexits.h.
34780 2007-03-25 Bruno Haible <bruno@clisp.org>
34782 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34785 2007-03-25 Bruno Haible <bruno@clisp.org>
34787 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34788 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34790 2007-03-25 Bruno Haible <bruno@clisp.org>
34792 * lib/vasnprintf.c: Include langinfo.h.
34793 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34795 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34796 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34797 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34798 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34799 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34800 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34801 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34802 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34803 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34804 Reported by Simon Josefsson.
34806 2007-03-25 Bruno Haible <bruno@clisp.org>
34808 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34809 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34810 * modules/vasnprintf (Depends-on): Add stdint.
34812 2007-03-25 Bruno Haible <bruno@clisp.org>
34814 * modules/fpieee: New file.
34815 * m4/fpieee.m4: New file.
34816 * modules/isnan-nolibm (Depends-on): Add fpieee.
34817 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34818 * modules/isnanl (Depends-on): Add fpieee.
34820 2007-03-25 Bruno Haible <bruno@clisp.org>
34822 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34824 2007-03-25 Bruno Haible <bruno@clisp.org>
34826 Avoid test failures on IRIX 6.5.
34827 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34829 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34833 2007-03-25 Bruno Haible <bruno@clisp.org>
34835 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34836 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34837 exists but doesn't work.
34838 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34839 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34840 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34841 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34843 2007-03-25 Bruno Haible <bruno@clisp.org>
34845 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34846 returns inf. Needed on IRIX 6.5.
34848 2007-03-25 Bruno Haible <bruno@clisp.org>
34850 * tests/test-frexpl.c: Include isnanl-nolibm.h.
34851 (main): Use isnanl instead of x != x idiom.
34852 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34854 * tests/test-frexp.c: Include isnan.h.
34855 (main): Use isnan instead of x != x idiom.
34856 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34858 2007-03-25 Bruno Haible <bruno@clisp.org>
34860 * tests/test-frexp.c (NaN): New function/macro.
34861 (main): Use it instead of 0.0 / 0.0.
34862 * tests/test-isnan.c (NaN): New function/macro.
34863 (main): Use it instead of 0.0 / 0.0.
34864 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34865 (test_function): Use it instead of 0.0 / 0.0.
34866 * tests/test-vasprintf-posix.c (NaN): New function/macro.
34867 (test_function): Use it instead of 0.0 / 0.0.
34868 * tests/test-snprintf-posix.h (NaN): New function/macro.
34869 (test_function): Use it instead of 0.0 / 0.0.
34870 * tests/test-sprintf-posix.h (NaN): New function/macro.
34871 (test_function): Use it instead of 0.0 / 0.0.
34872 * tests/test-fprintf-posix.h (NaN): New function/macro.
34873 (test_function): Use it instead of 0.0 / 0.0.
34874 * tests/test-printf-posix.h (NaN): New function/macro.
34875 (test_function): Use it instead of 0.0 / 0.0.
34877 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34879 2007-03-25 Bruno Haible <bruno@clisp.org>
34881 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34883 2007-03-25 Bruno Haible <bruno@clisp.org>
34885 * lib/regexec.c (merge_state_with_log): Make static.
34887 2007-03-25 Bruno Haible <bruno@clisp.org>
34889 * lib/trigl.c (kernel_rem_pio2): Make static.
34891 2007-03-25 Bruno Haible <bruno@clisp.org>
34893 * lib/sincosl.c (sincosl_table): Make static.
34895 2007-03-25 Bruno Haible <bruno@clisp.org>
34897 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34898 if the compiler does not support C99.
34900 2007-03-25 Bruno Haible <bruno@clisp.org>
34902 * modules/time (Makefile.am): Ensure all rule action lines start with a
34905 2007-03-24 Bruno Haible <bruno@clisp.org>
34907 * modules/tsearch-tests: New file.
34908 * tests/test-tsearch.sh: New file.
34909 * tests/test-tsearch.c: New file, mostly copied from glibc.
34911 * modules/search-tests: New file.
34912 * tests/test-search.c: New file.
34914 * modules/search: New file.
34915 * lib/search_.h: New file, incorporating lib/tsearch.h.
34916 * m4/search_h.m4: New file.
34917 * lib/tsearch.h: Remove file.
34918 * lib/tsearch.c: Include search.h instead of tsearch.h.
34919 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34921 * modules/tsearch (Files): Remove lib/tsearch.h.
34922 (Depends-on): Add search.
34923 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34924 (Include): Change tsearch.h into search.h.
34926 2007-03-24 Bruno Haible <bruno@clisp.org>
34928 * modules/fpucw: New file.
34929 * lib/fpucw.h: New file.
34930 * lib/frexp.c: Include fpucw.h.
34931 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34933 * lib/printf-frexp.c: Include fpucw.h.
34934 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34936 * lib/vasnprintf.c: Include fpucw.h.
34937 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34938 'long double' calculations.
34939 * tests/test-frexpl.c: Include fpucw.h.
34940 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34941 * tests/test-printf-frexpl.c: Include fpucw.h.
34942 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34943 * modules/frexpl (Depends-on): Add fpucw.
34944 * modules/printf-frexpl (Depends-on): Likewise.
34945 * modules/fprintf-posix (Depends-on): Likewise.
34946 * modules/snprintf-posix (Depends-on): Likewise.
34947 * modules/sprintf-posix (Depends-on): Likewise.
34948 * modules/vasnprintf-posix (Depends-on): Likewise.
34949 * modules/vasprintf-posix (Depends-on): Likewise.
34950 * modules/vfprintf-posix (Depends-on): Likewise.
34951 * modules/vsnprintf-posix (Depends-on): Likewise.
34952 * modules/vsprintf-posix (Depends-on): Likewise.
34953 * modules/frexpl-tests (Depends-on): Likewise.
34954 * modules/printf-frexpl-tests (Depends-on): Likewise.
34956 2007-03-24 Bruno Haible <bruno@clisp.org>
34958 * lib/float+.h: New file.
34959 * lib/isnan.c: Include float+.h.
34961 (FUNC): Compare only SIZE bytes of the value.
34962 * lib/vasnprintf.c: Include float+.h.
34963 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34964 SIZEOF_LDBL or SIZEOF_DBL bytes.
34965 * modules/isnan-nolibm (Files): Add lib/float+.h.
34966 * modules/isnanl-nolibm (Files): Add lib/float+.h.
34967 * modules/isnanl (Files): Add lib/float+.h.
34968 * modules/vasnprintf (Files): Add lib/float+.h.
34970 2007-03-24 Bruno Haible <bruno@clisp.org>
34972 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34973 include isnanl-nolibm.h.
34975 2007-03-24 Bruno Haible <bruno@clisp.org>
34977 * tests/test-read-file.c (main): Don't produce spurious output for
34978 expected situations. Make the test fail if it encountered unexpected
34981 2007-03-24 Bruno Haible <bruno@clisp.org>
34983 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34984 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34986 2007-03-24 Bruno Haible <bruno@clisp.org>
34988 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34990 2007-03-24 Bruno Haible <bruno@clisp.org>
34992 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34993 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34995 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34996 * modules/utf8-ucs4: Turn into a symbolic link to module
34999 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35001 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35002 unistr/u8-mbtouc-unsafe.
35004 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35005 * modules/utf16-ucs4: Turn into a symbolic link to module
35008 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35010 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35011 unistr/u16-mbtouc-unsafe.
35013 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35014 * modules/ucs4-utf8: Turn into a symbolic link to module
35017 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35018 * modules/ucs4-utf16: Turn into a symbolic link to module
35021 2007-03-24 Bruno Haible <bruno@clisp.org>
35023 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35024 Enable the function only if HAVE_INLINE.
35025 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35026 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35027 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35028 Enable the function only if HAVE_INLINE.
35029 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35030 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35031 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35032 Enable the function only if HAVE_INLINE.
35033 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35034 Enable the function only if HAVE_INLINE.
35035 * modules/utf8-ucs4: Update.
35036 * modules/utf8-ucs4-unsafe: Update.
35037 * modules/utf16-ucs4: Update.
35038 * modules/utf16-ucs4-unsafe: Update.
35039 * modules/ucs4-utf8: Update.
35040 * modules/ucs4-utf16: Update.
35042 2007-03-24 Bruno Haible <bruno@clisp.org>
35044 * lib/utf8-ucs4.h: Remove file.
35045 * lib/utf8-ucs4-unsafe.h: Remove file.
35046 * lib/utf16-ucs4.h: Remove file.
35047 * lib/utf16-ucs4-unsafe.h: Remove file.
35048 * lib/ucs4-utf8.h: Remove file.
35049 * lib/ucs4-utf16.h: Remove file.
35050 * lib/unistr.h: Include their previous contents.
35051 * m4/utf-ucs4.m4: Remove file.
35052 * m4/ucs4-utf.m4: Remove file.
35053 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35054 (Depends-on): Add unistr/base.
35055 (configure.ac): Remove gl_UTF_UCS4.
35056 (Makefile.am): Update.
35057 (Include): Change to unistr.h.
35058 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35059 (Depends-on): Add unistr/base.
35060 (configure.ac): Remove gl_UTF_UCS4.
35061 (Makefile.am): Update.
35062 (Include): Change to unistr.h.
35063 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35064 (Depends-on): Add unistr/base.
35065 (configure.ac): Remove gl_UTF_UCS4.
35066 (Makefile.am): Update.
35067 (Include): Change to unistr.h.
35068 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35069 (Depends-on): Add unistr/base.
35070 (configure.ac): Remove gl_UTF_UCS4.
35071 (Makefile.am): Update.
35072 (Include): Change to unistr.h.
35073 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35074 (Depends-on): Add unistr/base.
35075 (configure.ac): Remove gl_UCS4_UTF.
35076 (Makefile.am): Update.
35077 (Include): Change to unistr.h.
35078 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35079 (Depends-on): Add unistr/base.
35080 (configure.ac): Remove gl_UCS4_UTF.
35081 (Makefile.am): Update.
35082 (Include): Change to unistr.h.
35083 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35084 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35085 utf8-ucs4-unsafe.h.
35086 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35087 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35088 utf16-ucs4-unsafe.h.
35089 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35090 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35091 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35092 * lib/unistr/u8-strchr.c: Likewise.
35093 * lib/unistr/u8-strrchr.c: Likewise.
35094 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35095 * lib/unistr/u16-strchr.c: Likewise.
35096 * lib/unistr/u16-strrchr.c: Likewise.
35097 * lib/striconveh.c: Update.
35098 * lib/linebreak.c: Update.
35100 2007-03-24 Bruno Haible <bruno@clisp.org>
35102 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35103 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35105 2007-03-22 Bruno Haible <bruno@clisp.org>
35107 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35109 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35111 * MODULES.html.sh (File system functions): New module write-any-file.
35112 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35113 * m4/write-any-file.m4: New files.
35115 2007-03-23 Eric Blake <ebb9@byu.net>
35117 * gnulib-tool: Rearrange space-tab sequences, since some editors
35120 2007-03-23 Eric Blake <ebb9@byu.net>
35122 * lib/version-etc.c (version_etc_va): Update license wording to
35123 be more concise. Recommended by Richard Stallman.
35125 2007-03-22 Bruno Haible <bruno@clisp.org>
35127 * lib/poll.c (MSG_PEEK): New fallback definition.
35129 2007-03-22 Bruno Haible <bruno@clisp.org>
35131 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35132 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35134 Fixes a compilation error on BeOS.
35136 2007-03-22 Bruno Haible <bruno@clisp.org>
35138 * modules/frexpl-tests: New file.
35139 * tests/test-frexpl.c: New file.
35141 * modules/frexpl: New file.
35142 * m4/frexpl.m4: New file.
35143 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35144 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35145 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35146 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35147 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35148 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35150 2007-03-22 Bruno Haible <bruno@clisp.org>
35152 * lib/frexpl.c: Share code with lib/frexp.c.
35153 * modules/mathl (Files): Add lib/frexp.c.
35154 (Depends-on): Add isnanl-nolibm.
35156 2007-03-22 Bruno Haible <bruno@clisp.org>
35158 * modules/printf-frexp (Files): Add m4/frexp.m4.
35159 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35160 only if the found frexp function actually works.
35162 2007-03-22 Bruno Haible <bruno@clisp.org>
35164 * lib/frexp.c: Remove older implementation that uses divisions.
35166 2007-03-21 Bruno Haible <bruno@clisp.org>
35168 * modules/frexp-tests: New file.
35169 * tests/test-frexp.c: New file.
35171 * modules/frexp: New file.
35172 * lib/frexp.c: New file.
35173 * m4/frexp.m4: New file.
35174 * lib/math_.h (frexp): New declaration.
35175 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35177 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35179 2007-03-21 Bruno Haible <bruno@clisp.org>
35181 * modules/isnanl-tests: New file.
35182 * tests/test-isnanl.c: New file.
35184 * modules/isnanl: New file.
35185 * lib/isnanl.h: New file.
35186 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35187 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35188 gl_FUNC_ISNANL_WORKS.
35189 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35192 2007-03-21 Bruno Haible <bruno@clisp.org>
35194 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35197 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35198 * lib/vasnprintf.c: Update.
35199 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35200 tests/test-isnanl.h, remove tests/test-isnanl.c.
35201 (Makefile.am): Update.
35202 * tests/test-isnanl-nolibm.c: New file.
35203 * tests/test-isnanl.h: New file.
35204 * tests/test-isnanl.c: Remove file.
35206 2007-03-21 Jim Meyering <jim@meyering.net>
35208 When trying to open ".", treat ESTALE like EACCES.
35209 * lib/savewd.c (savewd_save): Resort to forking not just upon
35210 failure with EACCES, but also when errno is ESTALE.
35212 2007-03-20 Bruno Haible <bruno@clisp.org>
35214 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35215 Needed on AIX 5.1. Reported by Matthew Woehlke.
35217 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35219 Suggestions by Bruno Haible:
35220 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35222 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35223 * modules/acl (Depends-on): Add gettext.
35225 2007-03-19 Bruno Haible <bruno@clisp.org>
35227 * modules/iconvme: Remove file.
35228 * lib/iconvme.h: Remove file.
35229 * lib/iconvme.c: Remove file.
35230 * m4/iconvme.m4: Remove file.
35232 2007-03-19 Bruno Haible <bruno@clisp.org>
35234 * doc/relocatable-maint.texi: Break long shell script line.
35235 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35237 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35239 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35240 handle file_has_acl.
35241 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35242 * lib/acl.c: Move header inclusions and related macro defns into
35243 lib/acl-internal.h.
35244 (S_ISLNK): Remove defn, since that's now done for us.
35245 (file_has_acl): Move to lib/file-has-acl.c.
35246 Call acl_trivial if available. This is the crucial part of the fix.
35247 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35248 shared within the library. Rewrite a bit, partly to make it compatible
35249 with the GNU coding style.
35250 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35251 Remove unnecessary double-quotes.
35252 Don't test for acl_to_text; the build will catch that.
35253 Replace acl_entries if it doesn't exist and it is needed.
35254 Check for -lsec and acl_trivial (as used on Solaris 10).
35255 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35256 lib/file-has-acl.c.
35257 (Depends-on): Add sys_stat, for S_ISLNK.
35259 2007-03-19 Ben Pfaff <blp@gnu.org>
35261 * doc/gnulib.texi: Fix typos.
35262 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35264 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35266 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35267 If size is zero here, buf must be zero.
35269 2007-03-19 Simon Josefsson <simon@josefsson.org>
35271 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35274 2007-03-18 Bruno Haible <bruno@clisp.org>
35276 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35277 Suggested by Eric Blake.
35279 2007-03-18 Ben Pfaff <blp@gnu.org>
35281 * doc/relocatable.texi: Recommend using as prefix a directory
35282 that does not exist and will never be created. Based on
35283 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35286 2007-03-17 Bruno Haible <bruno@clisp.org>
35288 * lib/fchownat.c: Include lchown.h.
35290 2007-03-17 Bruno Haible <bruno@clisp.org>
35292 Fix endless loop when the given allocated size was > INT_MAX.
35293 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35294 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35295 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35296 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35297 * lib/sprintf.c (sprintf): Likewise.
35299 2007-03-17 Bruno Haible <bruno@clisp.org>
35301 * tests/test-argp-2.sh (func_compare): Output a context diff.
35303 2007-03-17 Bruno Haible <bruno@clisp.org>
35305 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35306 locale's decimal-point character.
35308 2007-03-17 Bruno Haible <bruno@clisp.org>
35310 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35311 before comparing it. Needed because on some platforms (e.g. x86) a
35312 'long double' occupies less bytes than sizeof (long double).
35314 2007-03-17 Bruno Haible <bruno@clisp.org>
35316 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35317 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35318 * tests/test-getaddrinfo.c (simple): Likewise.
35319 * tests/test-read-file.c (main): Likewise.
35321 2007-03-17 Bruno Haible <bruno@clisp.org>
35323 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35325 2007-03-17 Bruno Haible <bruno@clisp.org>
35327 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35330 2007-03-17 Bruno Haible <bruno@clisp.org>
35332 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35333 * tests/test-c-strncasecmp.c: Likewise.
35335 2007-03-17 Bruno Haible <bruno@clisp.org>
35337 * modules/stdlib (Depends-on): Add unistd.
35338 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35339 Needed for MacOS X 10.3.
35341 2007-03-17 Bruno Haible <bruno@clisp.org>
35343 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35345 2007-03-17 Bruno Haible <bruno@clisp.org>
35347 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35349 2007-03-17 Bruno Haible <bruno@clisp.org>
35351 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35352 to reflect files copied from gnulib (with or without modifications).
35353 Suggested by Jim Meyering.
35355 2007-03-17 Eric Blake <ebb9@byu.net>
35357 * NEWS: Document stdlib change from 2007-02-18.
35359 2007-03-17 Jim Meyering <jim@meyering.net>
35361 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35362 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35363 someone uses a name containing shell meta-characters.
35364 Reported by Alfred M. Szmidt.
35366 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35368 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35370 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35371 and copy gettext configuration files only if configure.ac contains
35372 a use of AM_GNU_GETTEXT_VERSION.
35374 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35376 * build-aux/bootstrap (gnulib_name): New variable.
35377 (gnulib_tool_options): Use it.
35379 2007-03-13 Simon Josefsson <simon@josefsson.org>
35381 * tests/test-des.c: Use new namespace.
35383 2007-03-15 Bruno Haible <bruno@clisp.org>
35385 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35386 Reported by James Youngman <jay@gnu.org>.
35388 2007-03-15 Bruno Haible <bruno@clisp.org>
35390 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35391 declared prototype. Needed with cc on OSF/1 5.1.
35393 2007-03-15 Bruno Haible <bruno@clisp.org>
35395 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35396 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35397 (struct gl_list_implementation): Add dispose_fn argument to the
35398 'create_empty', 'create' methods.
35399 (struct gl_list_impl_base): Add field 'dispose_fn'.
35400 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35402 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35403 dispose_fn argument.
35404 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35405 dispose_fn on the dropped values.
35406 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35407 dispose_fn argument.
35408 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35410 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35411 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35412 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35413 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35414 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35416 (gl_tree_list_free): Call dispose_fn on the dropped values.
35417 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35418 the dropped values.
35419 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35420 Add dispose_fn argument.
35421 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35422 Call dispose_fn on the dropped values.
35423 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35424 Add dispose_fn argument.
35425 (gl_sublist_create): Initialize the 'dispose_fn' field.
35426 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35427 * tests/test-array_list.c (main): Update.
35428 * tests/test-carray_list.c (main): Update.
35429 * tests/test-avltree_list.c (main): Update.
35430 * tests/test-rbtree_list.c (main): Update.
35431 * tests/test-avltreehash_list.c (main): Update.
35432 * tests/test-rbtreehash_list.c (main): Update.
35433 * tests/test-linked_list.c (main): Update.
35434 * tests/test-linkedhash_list.c (main): Update.
35435 * tests/test-array_oset.c (main): Update.
35437 2007-03-15 Bruno Haible <bruno@clisp.org>
35439 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35440 (gl_oset_create_empty): Add dispose_fn argument.
35441 (struct gl_oset_implementation): Add dispose_fn argument to
35442 'create_empty' method.
35443 (struct gl_oset_impl_base): Add dispose_fn field.
35444 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35445 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35446 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35448 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35449 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35450 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35452 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35454 * tests/test-array_oset.c (main): Update.
35455 * tests/test-avltree_oset.c (main): Update.
35456 * tests/test-rbtree_oset.c (main): Update.
35457 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35459 2007-03-13 Bruno Haible <bruno@clisp.org>
35461 * tests/test-stdbool.c (i): Update after last patch.
35463 2007-03-12 Bruno Haible <bruno@clisp.org>
35465 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35466 the iswprint macro. Needed on Solaris 2.5.1.
35468 2007-03-12 Bruno Haible <bruno@clisp.org>
35470 * tests/test-printf-frexp.c (main): Declare x as volatile.
35472 2007-03-12 Simon Josefsson <simon@josefsson.org>
35474 * doc/gnulib.texi (Build robot for gnulib): New section.
35476 2007-03-12 Jim Meyering <jim@meyering.net>
35478 * build-aux/bootstrap: New file.
35479 * build-aux/bootstrap.conf: New file, from coreutils.
35481 2007-03-11 Bruno Haible <bruno@clisp.org>
35483 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35485 2007-03-12 Simon Josefsson <simon@josefsson.org>
35487 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35488 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35489 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35491 2007-03-11 Bruno Haible <bruno@clisp.org>
35493 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35494 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35496 2007-03-11 Bruno Haible <bruno@clisp.org>
35498 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35499 formula. Needed for SunPRO C 5.0.
35501 2007-03-11 Bruno Haible <bruno@clisp.org>
35503 * modules/long-options (Depends-on): Add getopt.
35505 2007-03-11 Bruno Haible <bruno@clisp.org>
35507 * modules/modechange (Depends-on): Add stdbool.
35509 2007-03-11 Bruno Haible <bruno@clisp.org>
35511 * modules/i-ring (Depends-on): Add stdbool.
35513 2007-03-11 Bruno Haible <bruno@clisp.org>
35515 * modules/gc-des (Depends-on): Add stdbool.
35517 2007-03-11 Bruno Haible <bruno@clisp.org>
35519 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35521 2007-03-11 Bruno Haible <bruno@clisp.org>
35523 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35525 2007-03-11 Bruno Haible <bruno@clisp.org>
35527 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35529 2007-03-11 Bruno Haible <bruno@clisp.org>
35531 * lib/vasnprintf.c (sprintf): Undefine.
35533 2007-03-11 Bruno Haible <bruno@clisp.org>
35535 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35536 initializers in SunPRO C and Compaq C compilers.
35538 2007-03-11 Bruno Haible <bruno@clisp.org>
35540 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35541 decrementing code ANSI C compliant.
35543 2007-03-11 Bruno Haible <bruno@clisp.org>
35545 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35546 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35548 2007-03-11 Bruno Haible <bruno@clisp.org>
35550 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35551 <stdbool.h> substitute doesn't pass.
35553 2007-03-11 Bruno Haible <bruno@clisp.org>
35555 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35557 2007-03-11 Bruno Haible <bruno@clisp.org>
35559 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35560 script, for submission to autobuild.josefsson.org.
35562 2007-03-10 Bruno Haible <bruno@clisp.org>
35564 * modules/canonicalize-lgpl-tests: New file.
35565 * tests/test-canonicalize-lgpl.sh: New file.
35566 * tests/test-canonicalize-lgpl.c: New file.
35568 * modules/c-strcase-tests: New file.
35569 * tests/test-c-strcase.sh: New file.
35570 * tests/test-c-strcasecmp.c: New file.
35571 * tests/test-c-strncasecmp.c: New file.
35573 * modules/atexit-tests: New file.
35574 * tests/test-atexit.sh: New file.
35575 * tests/test-atexit.c: New file.
35577 2007-03-10 Bruno Haible <bruno@clisp.org>
35579 * tests/test-binary-io.sh: Use temporary filenames that are not so
35580 likely to clash with those of other tests (in a parallel make).
35581 * tests/test-binary-io.c: Likewise.
35583 2007-03-10 Bruno Haible <bruno@clisp.org>
35585 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35586 fallback; use #error instead.
35587 Suggested by Simon Josefsson.
35589 2007-03-10 Bruno Haible <bruno@clisp.org>
35591 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35592 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35593 first and the last.
35595 2007-03-10 Bruno Haible <bruno@clisp.org>
35597 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35599 2007-03-10 Bruno Haible <bruno@clisp.org>
35601 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35603 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35604 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35605 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35607 2007-03-10 Bruno Haible <bruno@clisp.org>
35609 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35611 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35614 2007-03-09 Eric Blake <ebb9@byu.net>
35615 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35617 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35618 types are not being provided by gnulib.
35619 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35620 types are supported.
35622 2007-03-10 Bruno Haible <bruno@clisp.org>
35624 * lib/stdio_.h (__attribute__): New macro.
35625 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35626 vsprintf): Specify __attribute__ __format__ for GCC.
35627 Suggested by Eric Blake.
35629 2007-03-09 Bruno Haible <bruno@clisp.org>
35631 * modules/printf-posix-tests: New file.
35632 * tests/test-printf-posix.sh: New file.
35633 * tests/test-printf-posix.c: New file.
35635 * modules/printf-posix: New file.
35636 * lib/printf.c: New file.
35637 * m4/printf-posix-rpl.m4: New file.
35638 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35640 * lib/stdio_.h (printf): New declaration.
35641 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35642 ____strfmon____): New macros.
35643 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35646 2007-03-09 Bruno Haible <bruno@clisp.org>
35648 * tests/test-vasnprintf-posix2.sh: New file.
35649 * tests/test-vasnprintf-posix2.c: New file.
35650 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35651 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35652 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35654 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35655 a locale dependent decimal point, rather than always '.'.
35657 2007-03-09 Eric Blake <ebb9@byu.net>
35659 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35660 spite of platforms like Tandem/NSK that define it to -1.
35662 2007-03-08 Bruno Haible <bruno@clisp.org>
35664 * modules/vprintf-posix-tests: New file.
35665 * tests/test-vprintf-posix.sh: New file.
35666 * tests/test-vprintf-posix.c: New file.
35667 * tests/test-printf-posix.h: New file.
35669 * modules/vprintf-posix: New file.
35670 * lib/vprintf.c: New file.
35671 * m4/vprintf-posix.m4: New file.
35672 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35674 * lib/stdio_.h (vprintf): New declaration.
35675 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35678 2007-03-08 Bruno Haible <bruno@clisp.org>
35680 * modules/fprintf-posix-tests: New file.
35681 * tests/test-fprintf-posix.sh: New file.
35682 * tests/test-fprintf-posix.c: New file.
35684 * modules/fprintf-posix: New file.
35685 * lib/fprintf.c: New file.
35686 * m4/fprintf-posix.m4: New file.
35687 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35689 * lib/stdio_.h (fprintf): New declaration.
35690 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35693 2007-03-08 Bruno Haible <bruno@clisp.org>
35695 * modules/vfprintf-posix-tests: New file.
35696 * tests/test-vfprintf-posix.sh: New file.
35697 * tests/test-vfprintf-posix.c: New file.
35698 * tests/test-fprintf-posix.h: New file.
35699 * tests/test-fprintf-posix.out: New file.
35701 * modules/vfprintf-posix: New file.
35702 * lib/vfprintf.c: New file.
35703 * m4/vfprintf-posix.m4: New file.
35704 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35706 * lib/stdio_.h (vfprintf): New declaration.
35707 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35710 2007-03-08 Bruno Haible <bruno@clisp.org>
35712 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35714 2007-03-08 Bruno Haible <bruno@clisp.org>
35716 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35717 instead of 'expr' invocations.
35718 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35719 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35720 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35721 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35722 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35723 Suggested by Paul Eggert.
35725 2007-03-08 Bruno Haible <bruno@clisp.org>
35727 * modules/fseterr-tests: New file.
35728 * tests/test-fseterr.c: New file.
35730 * modules/fseterr: New file.
35731 * lib/fseterr.h: New file.
35732 * lib/fseterr.c: New file.
35734 2007-03-08 Bruno Haible <bruno@clisp.org>
35736 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35737 * lib/getopt_.h: Likewise.
35738 * lib/mbswidth.h: Likewise.
35739 * lib/setenv.h: Likewise.
35740 * lib/vasnprintf.h: Likewise.
35741 * lib/vasprintf.h: Likewise.
35742 * lib/verror.h: Likewise.
35743 * lib/xsetenv.h: Likewise.
35744 * lib/xvasprintf.h: Likewise.
35746 2007-03-08 Jim Meyering <jim@meyering.net>
35748 * users.txt: Add parted.
35750 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35752 2007-03-07 Bruno Haible <bruno@clisp.org>
35754 * m4/printf.m4: Make the shell script snippets copy&pastable.
35756 2007-03-02 Bruno Haible <bruno@clisp.org>
35758 * lib/netinet_in_.h: New file.
35759 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35760 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35761 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35762 (Depends-on): Add absolute-header.
35763 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35766 2007-03-03 Bruno Haible <bruno@clisp.org>
35768 * lib/sys_select_.h: New file.
35769 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35770 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35771 * modules/sys_select (Files): Add lib/sys_select_.h.
35772 (Depends-on): Add absolute-header.
35773 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35776 2007-03-02 Bruno Haible <bruno@clisp.org>
35778 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35779 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35781 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35782 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35783 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35784 * modules/sys_socket (Depends-on): Add absolute-header.
35785 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35786 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35787 (Include): Remove requirement of inclusion of <sys/types.h>.
35789 2007-03-02 Bruno Haible <bruno@clisp.org>
35791 * lib/byteswap_.h (bswap_32): Fix formula.
35793 2007-03-06 Bruno Haible <bruno@clisp.org>
35795 * modules/sprintf-posix-tests: New file.
35796 * tests/test-sprintf-posix.c: New file.
35798 * modules/sprintf-posix: New file.
35799 * lib/sprintf.c: New file.
35800 * m4/sprintf-posix.m4: New file.
35801 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35803 * lib/stdio_.h (sprintf): New declaration.
35804 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35807 2007-03-06 Bruno Haible <bruno@clisp.org>
35809 * modules/vsprintf-posix-tests: New file.
35810 * tests/test-vsprintf-posix.c: New file.
35811 * tests/test-sprintf-posix.h: New file.
35813 * modules/vsprintf-posix: New file.
35814 * lib/vsprintf.c: New file.
35815 * m4/vsprintf-posix.m4: New file.
35816 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35818 * lib/stdio_.h (vsprintf): New declaration.
35819 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35822 2007-03-06 Bruno Haible <bruno@clisp.org>
35824 * modules/vsnprintf (Depend-on): Remove minmax.
35826 2007-03-06 Bruno Haible <bruno@clisp.org>
35828 * modules/snprintf-posix-tests: New file.
35829 * tests/test-snprintf-posix.c: New file.
35831 * modules/snprintf-posix: New file.
35832 * m4/snprintf-posix.m4: New file.
35833 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35835 (gl_FUNC_SNPRINTF): Invoke it.
35836 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35837 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35839 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35841 2007-03-06 Bruno Haible <bruno@clisp.org>
35843 * modules/vsnprintf-posix-tests: New file.
35844 * tests/test-vsnprintf-posix.c: New file.
35845 * tests/test-snprintf-posix.h: New file.
35847 * modules/vsnprintf-posix: New file.
35848 * m4/vsnprintf-posix.m4: New file.
35849 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35851 (gl_FUNC_VSNPRINTF): Invoke it.
35852 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35853 * lib/stdio_.h (vsnprintf): Define as a replacement if
35854 REPLACE_VSNPRINTF is set.
35855 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35857 2007-03-06 Bruno Haible <bruno@clisp.org>
35859 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35860 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35862 2007-03-06 Bruno Haible <bruno@clisp.org>
35864 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35865 (asinl): Declare also if HAVE_DECL_ASINL is set.
35866 (atanl): Declare also if HAVE_DECL_ATANL is set.
35867 (ceill): Declare also if HAVE_DECL_CEILL is set.
35868 (cosl): Declare also if HAVE_DECL_COSL is set.
35869 (expl): Declare also if HAVE_DECL_EXPL is set.
35870 (floorl): Declare also if HAVE_DECL_FLOORL is set.
35871 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35872 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35873 (logl): Declare also if HAVE_DECL_LOGL is set.
35874 (sinl): Declare also if HAVE_DECL_SINL is set.
35875 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35876 (tanl): Declare also if HAVE_DECL_TANL is set.
35877 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35878 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35879 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35880 declaration of frexpl, ldexpl.
35881 * modules/printf-frexpl (Depends-on): Add math.
35882 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35884 2007-03-05 Bruno Haible <bruno@clisp.org>
35886 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35887 frexpl and ldexpl are declared.
35888 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35890 2007-03-05 Bruno Haible <bruno@clisp.org>
35892 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35893 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35895 2007-03-05 Bruno Haible <bruno@clisp.org>
35897 * lib/stdio_.h: Include <stddef.h>.
35899 2007-03-05 Bruno Haible <bruno@clisp.org>
35901 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35903 2007-03-05 Bruno Haible <bruno@clisp.org>
35905 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35906 NetBSD 4, from Ralf Wildenhues.
35908 2007-03-04 Bruno Haible <bruno@clisp.org>
35910 * lib/vasprintf.h: Update #if logic for the case when the functions
35911 exist but are overridden.
35913 2007-03-04 Bruno Haible <bruno@clisp.org>
35915 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35916 implementations: glibc-2.4 and MacOS X 10.3.
35917 * tests/test-vasnprintf-posix.c (test_function): Test also the case
35918 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35919 * tests/test-vasprintf-posix.c (test_function): Likewise.
35921 2007-03-04 Bruno Haible <bruno@clisp.org>
35923 * modules/vasprintf-posix-tests: New file.
35924 * tests/test-vasprintf-posix.c: New file.
35926 * modules/vasprintf-posix: New file.
35927 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35929 * m4/vasprintf-posix.m4: New file.
35930 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35932 (gl_FUNC_VASPRINTF): Invoke it.
35933 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35935 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35937 2007-03-04 Bruno Haible <bruno@clisp.org>
35939 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35940 REPLACE_GETTIMEOFDAY.
35941 * modules/sys_time (Makefile.am): Likewise.
35942 * m4/sys_time_h.m4: Likewise.
35943 * m4/gettimeofday.m4: Likewise.
35945 2007-03-04 Bruno Haible <bruno@clisp.org>
35947 * modules/vasnprintf-posix-tests: New file.
35948 * tests/test-vasnprintf-posix.c: New file.
35950 * modules/vasnprintf-posix: New file.
35951 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35953 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35954 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35955 REPLACE_VASNPRINTF is defined.
35956 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35957 gl_FUNC_VASNPRINTF.
35958 (gl_FUNC_VASNPRINTF): Invoke it.
35959 * m4/vasnprintf-posix.m4: New file.
35960 * m4/printf.m4: New file.
35962 2007-03-04 Bruno Haible <bruno@clisp.org>
35964 Compile progreloc.c only if --enable-relocatable is specified.
35965 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35966 if --enable-relocatable was specified.
35967 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35970 2007-03-04 Jim Meyering <jim@meyering.net>
35972 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35973 Use it consistently, rather than enumerating errno constants.
35975 2007-03-04 Bruno Haible <bruno@clisp.org>
35977 * modules/xvasprintf-tests: New file.
35978 * tests/test-xvasprintf.c: New file.
35980 * modules/vasprintf-tests: New file.
35981 * tests/test-vasprintf.c: New file.
35983 * modules/vasnprintf-tests: New file.
35984 * tests/test-vasnprintf.c: New file.
35986 * modules/vsnprintf-tests: New file.
35987 * tests/test-vsnprintf.c: New file.
35989 * modules/snprintf-tests: New file.
35990 * tests/test-snprintf.c: New file.
35992 2007-03-04 Bruno Haible <bruno@clisp.org>
35994 Compile relocatable.c only if --enable-relocatable is specified.
35995 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35996 gl_RELOCATABLE_LIBRARY.
35997 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35998 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35999 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36000 gl_RELOCATABLE_LIBRARY.
36001 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36002 (Makefile.am): Remove lib_SOURCES.
36003 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36004 gl_RELOCATABLE_LIBRARY.
36005 (Makefile.am): Remove lib_SOURCES.
36006 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36008 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36009 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36011 2007-03-04 Bruno Haible <bruno@clisp.org>
36013 * modules/argmatch-tests: New file.
36014 * tests/test-argmatch.c: New file.
36016 * tests/test-allocsa.c (main): Halve the number of loop runs.
36018 * modules/alloca-opt-tests: New file.
36019 * tests/test-alloca-opt.c: New file.
36021 2007-03-04 Jim Meyering <jim@meyering.net>
36023 Work around difference between Linux ACLs and Solaris 10 ZFS.
36024 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36027 2007-03-03 Bruno Haible <bruno@clisp.org>
36029 * modules/relocatable-prog (Depends-on): Add back progreloc's
36030 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36032 2007-03-03 Bruno Haible <bruno@clisp.org>
36034 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36035 * modules/relocatable-lib: New file.
36037 2007-03-03 Bruno Haible <bruno@clisp.org>
36039 * modules/relocatable-prog: Renamed from modules/relocatable.
36040 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36042 2007-03-03 Bruno Haible <bruno@clisp.org>
36044 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36045 m4/relocatable-lib.m4.
36046 (Depends-on): Remove 'relocatable'.
36047 (configure.ac): Add gl_RELOCATABLE_NOP.
36049 2007-03-03 Bruno Haible <bruno@clisp.org>
36051 * modules/relocatable-prog-wrapper: New file.
36052 * modules/relocatable (Depends-on): Add it. Remove all other
36053 dependencies except progname.
36054 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36056 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36057 (gl_FUNC_STRERROR): Nop.
36058 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36060 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36061 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36063 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36064 (gl_FUNC_READLINK): Update.
36066 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36068 2007-03-03 Bruno Haible <bruno@clisp.org>
36070 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36071 * modules/xreadlink (Depends-on): Add unistd.
36072 * modules/xreadlink-with-size (Depends-on): Likewise.
36074 2007-03-03 Bruno Haible <bruno@clisp.org>
36076 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36077 extracted from gt_FUNC_SETENV.
36078 (gt_FUNC_SETENV): Remove macro.
36079 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36080 remove gt_FUNC_SETENV.
36082 2007-03-03 Bruno Haible <bruno@clisp.org>
36084 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36085 ENABLE_RELOCATABLE here.
36086 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36088 2007-03-03 Bruno Haible <bruno@clisp.org>
36090 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36091 * tests/test-rbtreehash_list.c: Include progname.h.
36092 (main): Call set_program_name.
36094 * modules/rbtree-oset-tests (Depends-on): Add progname.
36095 * tests/test-rbtree_oset.c: Include progname.h.
36096 (main): Call set_program_name.
36098 * modules/rbtree-list-tests (Depends-on): Add progname.
36099 * tests/test-rbtree_list.c: Include progname.h.
36100 (main): Call set_program_name.
36102 * modules/linked-list-tests (Depends-on): Add progname.
36103 * tests/test-linked_list.c: Include progname.h.
36104 (main): Call set_program_name.
36106 2007-03-03 Bruno Haible <bruno@clisp.org>
36108 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36109 All uses of __restrict changed to _Restrict_.
36110 * lib/glob_.h (__restrict): Remove macro.
36112 2007-03-02 Bruno Haible <bruno@clisp.org>
36114 * modules/gettext (configure.ac): Require gettext infrastructure
36115 from version 0.16.1.
36117 2007-03-02 Bruno Haible <bruno@clisp.org>
36119 * modules/linkedhash-list-tests (Depends-on): Add progname.
36120 * tests/test-linkedhash_list.c: Include progname.h.
36121 (main): Call set_program_name.
36123 * modules/carray-list-tests (Depends-on): Add progname.
36124 * tests/test-carray_list.c: Include progname.h.
36125 (main): Call set_program_name.
36127 * modules/avltreehash-list-tests (Depends-on): Add progname.
36128 * tests/test-avltreehash_list.c: Include progname.h.
36129 (main): Call set_program_name.
36131 * modules/avltree-oset-tests (Depends-on): Add progname.
36132 * tests/test-avltree_oset.c: Include progname.h.
36133 (main): Call set_program_name.
36135 * modules/avltree-list-tests (Depends-on): Add progname.
36136 * tests/test-avltree_list.c: Include progname.h.
36137 (main): Call set_program_name.
36139 * modules/array-oset-tests (Depends-on): Add progname.
36140 * tests/test-array_oset.c: Include progname.h.
36141 (main): Call set_program_name.
36143 * modules/array-list-tests (Depends-on): Add progname.
36144 * tests/test-array_list.c: Include progname.h.
36145 (main): Call set_program_name.
36147 * modules/argp-tests (Depends-on): Add progname.
36148 * tests/test-argp.c: Include argp.h first. Include progname.h.
36149 (main): Call set_program_name.
36151 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36153 * doc/gnulib-tool.texi (Initial import): Reword description of
36154 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36155 limited effect even if defined after the first system include.
36157 2007-03-01 Bruno Haible <bruno@clisp.org>
36159 * build-aux/config.libpath: Update to libtool-1.5.22.
36160 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36162 2007-03-01 Bruno Haible <bruno@clisp.org>
36164 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36166 Reported by Ralf Wildenhues.
36168 2007-03-01 Bruno Haible <bruno@clisp.org>
36170 * build-aux/install-reloc: Remove object files left over by some
36172 Reported by Ralf Wildenhues.
36174 2007-03-01 Bruno Haible <bruno@clisp.org>
36176 * build-aux/install-reloc: Break long lines.
36178 2007-03-01 Bruno Haible <bruno@clisp.org>
36180 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36181 Reported by Ralf Wildenhues.
36183 2007-03-01 Bruno Haible <bruno@clisp.org>
36185 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36186 include ordering constraints.
36188 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36190 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36191 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36192 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36193 as another example.
36194 * lib/time_.h: Fix misspelling.
36195 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36196 Require gl_HEADER_TIME_H_DEFAULTS.
36197 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36198 * m4/time_r.m4 (gl_TIME_R): Likewise.
36199 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36201 2007-03-01 Bruno Haible <bruno@clisp.org>
36203 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36204 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36206 2007-03-01 Jim Meyering <jim@meyering.net>
36208 * modules/xreadlink (Maintainer): Add my name.
36209 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36211 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36212 Bruno Haible <bruno@clisp.org>
36214 * build-aux/install-reloc: Compile also c-ctype.c.
36215 * build-aux/relocatable.sh.in: New file.
36216 * doc/relocatable.texi: New file.
36217 * doc/relocatable-maint.texi: New file.
36218 * doc/gnulib.texi: Include relocatable-maint.texi.
36219 * lib/progreloc.c: Include unistd.h unconditionally.
36220 * lib/relocwrapper.c: Include unistd.h unconditionally.
36222 (add_dotbin): Use c_tolower.
36223 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36224 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36225 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36226 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36227 to m4/relocatable-lib.m4.
36228 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36229 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36230 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36231 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36232 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36233 * modules/relocatable: New file.
36234 * modules/relocatable-lib: New file.
36235 * modules/relocatable-script: New file.
36237 2007-02-28 Bruno Haible <bruno@clisp.org>
36239 Import --enable-relocatable infrastructure.
36240 * build-aux/config.libpath: New file, from GNU gettext.
36241 * build-aux/install-reloc: New file, from GNU gettext.
36242 * build-aux/reloc-ldflags: New file, from GNU gettext.
36243 * lib/relocatable.h: New file, from GNU gettext.
36244 * lib/relocatable.c: New file, from GNU gettext.
36245 * lib/relocwrapper.c: New file, from GNU gettext.
36246 * m4/relocatable.m4: New file, from GNU gettext.
36248 2007-02-28 Bruno Haible <bruno@clisp.org>
36250 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36252 * modules/xreadlink: New file, from GNU gettext with modifications.
36253 * lib/xreadlink.c: New file, from GNU gettext.
36254 * lib/xreadlink.h: Add comments.
36255 (xreadlink): New declaration.
36257 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36258 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36259 lib/xreadlink-with-size.c.
36260 (configure.ac): Remove gl_XREADLINK invocation.
36261 (Makefile.am): Augment lib_SOURCES.
36262 * m4/xreadlink.m4: Remove file.
36263 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36264 (xreadlink_with_size): Renamed from xreadink.
36265 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36266 * modules/canonicalize (Depends-on): Replace xreadlink with
36267 xreadlink-with-size.
36268 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36270 2007-02-25 Jim Meyering <jim@meyering.net>
36272 * build-aux/announce-gen: When complaining about excess arguments,
36275 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36277 * README: Document signed integer overflow situation more
36280 2007-02-25 Bruno Haible <bruno@clisp.org>
36282 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36283 'a' or 'A' conversion.
36285 2007-02-25 Bruno Haible <bruno@clisp.org>
36287 * modules/filename: Renamed from modules/pathname.
36288 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36289 lib/concatpath.c with lib/concat-filename.c.
36290 (Makefile.am): Update.
36291 (Include): Replace pathname.h with filename.h.
36292 * lib/filename.h: Renamed from lib/pathname.h.
36293 (concatenated_filename): Renamed from concatenated_pathname.
36294 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36295 (concatenated_filename): Renamed from concatenated_pathname.
36296 * lib/findprog.c: Include filename.h instead of pathname.h.
36297 (find_in_path): Update.
36298 * lib/javacomp.c: Include filename.h instead of pathname.h.
36299 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36300 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36301 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36302 is_oldgcj_14_13_usable, is_javac_usable): Update.
36303 * lib/javaexec.c: Include filename.h instead of pathname.h.
36304 (execute_java_class): Update.
36305 * modules/findprog: Update.
36306 * modules/javacomp: Update.
36307 * modules/javaexec: Update.
36308 * MODULES.html.sh (File system functions): Add 'filename', remove
36311 2007-02-25 Bruno Haible <bruno@clisp.org>
36313 * modules/printf-frexpl-tests: New file.
36314 * tests/test-printf-frexpl.c: New file.
36316 * modules/printf-frexpl: New file.
36317 * lib/printf-frexpl.h: New file.
36318 * lib/printf-frexpl.c: New file.
36319 * m4/printf-frexpl.m4: New file.
36321 2007-02-25 Bruno Haible <bruno@clisp.org>
36323 * modules/printf-frexp-tests: New file.
36324 * tests/test-printf-frexp.c: New file.
36326 * modules/printf-frexp: New file.
36327 * lib/printf-frexp.h: New file.
36328 * lib/printf-frexp.c: New file.
36329 * m4/printf-frexp.m4: New file.
36331 2007-02-25 Bruno Haible <bruno@clisp.org>
36333 Assume automake >= 1.10 for the tests.
36334 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36335 * modules/arctwo-tests: Likewise.
36336 * modules/argp-tests: Likewise.
36337 * modules/avltree-list-tests: Likewise.
36338 * modules/avltree-oset-tests: Likewise.
36339 * modules/avltreehash-list-tests: Likewise.
36340 * modules/carray-list-tests: Likewise.
36341 * modules/crc-tests: Likewise.
36342 * modules/des-tests: Likewise.
36343 * modules/gc-arcfour-tests: Likewise.
36344 * modules/gc-arctwo-tests: Likewise.
36345 * modules/gc-des-tests: Likewise.
36346 * modules/gc-hmac-md5-tests: Likewise.
36347 * modules/gc-hmac-sha1-tests: Likewise.
36348 * modules/gc-md2-tests: Likewise.
36349 * modules/gc-md4-tests: Likewise.
36350 * modules/gc-md5-tests: Likewise.
36351 * modules/gc-pbkdf2-sha1-tests: Likewise.
36352 * modules/gc-rijndael-tests: Likewise.
36353 * modules/gc-sha1-tests: Likewise.
36354 * modules/gc-tests: Likewise.
36355 * modules/getaddrinfo-tests: Likewise.
36356 * modules/hmac-md5-tests: Likewise.
36357 * modules/hmac-sha1-tests: Likewise.
36358 * modules/linked-list-tests: Likewise.
36359 * modules/linkedhash-list-tests: Likewise.
36360 * modules/lock-tests: Likewise.
36361 * modules/md2-tests: Likewise.
36362 * modules/md4-tests: Likewise.
36363 * modules/md5-tests: Likewise.
36364 * modules/rbtree-list-tests: Likewise.
36365 * modules/rbtree-oset-tests: Likewise.
36366 * modules/rbtreehash-list-tests: Likewise.
36367 * modules/read-file-tests: Likewise.
36368 * modules/rijndael-tests: Likewise.
36369 * modules/stdint-tests: Likewise.
36370 * modules/tls-tests: Likewise.
36372 2007-02-24 Bruno Haible <bruno@clisp.org>
36374 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36375 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36376 function; instead check whether isnan with a double argument links.
36377 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36378 function; instead check whether isnan with a 'long double' argument
36380 Reported by Eric Blake <ebb9@byu.net>.
36382 2007-02-24 Bruno Haible <bruno@clisp.org>
36384 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36386 * lib/isnanl.c: Remove all code. Just include isnan.c.
36387 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36389 2007-02-25 Jim Meyering <jim@meyering.net>
36391 Avoid conflicting types for 'unsetenv' on FreeBSD.
36392 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36393 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36396 2007-02-24 Bruno Haible <bruno@clisp.org>
36398 * modules/isnanl-nolibm-tests: New file.
36399 * tests/test-isnanl.c: New file.
36401 * modules/isnanl-nolibm: New file.
36402 * lib/isnanl.h: New file.
36403 * lib/isnanl.c: New file.
36404 * m4/isnanl.m4: New file.
36406 2007-02-24 Bruno Haible <bruno@clisp.org>
36408 * modules/isnan-nolibm-tests: New file.
36409 * tests/test-isnan.c: New file.
36411 * modules/isnan-nolibm: New file.
36412 * lib/isnan.h: New file.
36413 * lib/isnan.c: New file.
36414 * m4/isnan.m4: New file.
36416 2007-02-24 Bruno Haible <bruno@clisp.org>
36418 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36419 assume that an exponent fits in 20 bits.
36421 2007-02-24 Jim Meyering <jim@meyering.net>
36423 * m4/regex.m4: Update the description of the configure-time option,
36424 --without-included-regex, to state accurately what the defaults are,
36425 and perhaps to give people an idea why using this option is risky.
36427 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36429 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36430 loops on small arguments. This attempts to avoid the problem
36431 Bruno Haible reported for AIX 4.3.2 in
36432 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36434 2007-02-23 Bruno Haible <bruno@clisp.org>
36436 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36437 Needed for help2man.
36439 2007-02-23 Karl Berry <karl@gnu.org>
36441 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36442 exists, foo.h should be cvs-ignored, not committed.
36444 2007-02-23 Eric Blake <ebb9@byu.net>
36446 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36447 * lib/stat-time.h (includes): Likewise.
36448 * lib/utimecmp.c (includes): Likewise.
36449 * lib/utimens.h (includes): Likewise.
36450 * lib/getdate.y (includes): Also include "timespec.h" for use
36451 internal to the module.
36452 * modules/utimens (Depends-on): Revert yesterday's patch.
36453 * modules/nanosleep (Depends-on): Add missing dependency.
36455 2007-02-22 Bruno Haible <bruno@clisp.org>
36457 * lib/glob.c: Don't include getlogin_r.h.
36459 2007-02-22 Jim Meyering <jim@meyering.net>
36461 * modules/utimens (Depends-on): Add timespec, required for
36462 utimens.h's inclusion of timespec.h.
36464 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36466 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36467 long unreadable paths in GNU/Linux. Problem reported by Andreas
36469 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36470 I'll try to think of a better way to fix the Solaris problem.
36472 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36473 like glibc; on Solaris 10, it fails with errno == EINVAL.
36474 POSIX says the behavior is unspecified if the first argument is NULL,
36475 so play it safe and never pass NULL to the system getcwd.
36477 2007-02-21 Jim Meyering <jim@meyering.net>
36479 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36480 of gettimeofday. It would conflict with the one now always
36481 provided via sys_time_.h. Reported by Matthew Woehlke, as
36482 an IRIX 6.5 build failure.
36484 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36486 Minor fixups to port to Solaris 10 with Sun C 5.8.
36487 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36488 * modules/getcwd (Depends-on): Add dirfd.
36489 * lib/putenv.c (putenv): #undef it.
36490 (rpl_putenv): New decl.
36491 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36493 2007-02-20 Bruno Haible <bruno@clisp.org>
36495 * modules/stdio-tests: New file.
36496 * tests/test-stdio.c: New file.
36498 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36499 (Depends-on): Add stdio.
36500 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36501 (Include): Use <stdio.h> instead of vsnprintf.h.
36502 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36503 HAVE_DECL_VSNPRINTF.
36504 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36506 * modules/snprintf (Files): Remove lib/snprintf.h.
36507 (Depends-on): Add stdio.
36508 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36509 (Include): Use <stdio.h> instead of snprintf.h.
36510 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36511 HAVE_DECL_SNPRINTF.
36512 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36513 * lib/getaddrinfo.c: Likewise.
36515 * modules/stdio: New file.
36516 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36517 * lib/snprintf.h: Remove file.
36518 * lib/vsnprintf.h: Remove file.
36519 * lib/.cppi-disable: Remove snprintf.h.
36520 * m4/stdio_h.m4: New file.
36521 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36523 2007-02-20 Jim Meyering <jim@meyering.net>
36525 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36526 used by e.g., mingw. From Bruno Haible.
36528 2007-02-19 Bruno Haible <bruno@clisp.org>
36530 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36532 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36534 2007-02-19 Bruno Haible <bruno@clisp.org>
36536 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36539 2007-02-19 Bruno Haible <bruno@clisp.org>
36541 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36543 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36545 2007-02-19 Jim Meyering <jim@meyering.net>
36547 Don't use FD after a successful "fdopendir (fd)".
36548 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36549 Reset it by calling dirfd on the just-obtained DIR*.
36551 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36552 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36554 2007-02-18 Bruno Haible <bruno@clisp.org>
36556 * lib/readlink.c: Include <unistd.h>.
36557 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36559 * modules/readlink (Depends-on): Add unistd.
36560 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36561 (Include): Add <unistd.h>.
36563 * lib/getlogin_r.h: Remove file.
36564 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36565 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36566 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36567 HAVE_DECL_GETLOGIN_R.
36568 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36569 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36570 (Include): Use <unistd.h> instead of getlogin_r.h.
36572 * lib/getcwd.h: Remove file.
36573 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36574 * lib/xgetcwd.c: Likewise.
36575 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36576 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36577 * modules/getcwd (Files): Remove lib/getcwd.h.
36578 (Depends-on): Add unistd.
36579 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36580 (Include): Use <unistd.h> instad of getcwd.h.
36582 * lib/ftruncate.c: Include <unistd.h> first.
36583 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36584 Set HAVE_FTRUNCATE.
36585 * modules/ftruncate (Depends-on): Add unistd.
36586 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36588 * lib/fchdir.c: Include <unistd.h> first.
36589 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36590 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36591 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36592 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36593 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36595 * lib/dup2.c: Include <unistd.h> first.
36596 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36598 * modules/dup2 (Depends-on): Add unistd.
36599 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36601 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36602 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36603 REPLACE_CHOWN. Don't define chown as a macro here.
36604 * modules/chown (Depends-on): Add unistd.
36605 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36607 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36608 Add definition for GL_LINK_WARNING.
36609 (chown, dup2): New declarations.
36610 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36612 (ftruncate): New declaration.
36613 (getcwd): New declaration, taken from old getcwd.h.
36614 (getlogin_r): New declaration, taken from old getlogin_r.h.
36615 (readlink): New declaration.
36616 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36617 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36618 (gl_PREREQ_UNISTD): Remove macro.
36619 (gl_UNISTD_MODULE_INDICATOR): New macro.
36620 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36621 many new variables. Don't set UNISTD_H.
36622 * modules/unistd (Description): Change.
36623 (Depends-on): Add link-warning.
36624 (configure.ac): Update.
36625 (Makefile.am): Create unistd.h always. Substitute many new variables
36628 2007-02-18 Bruno Haible <bruno@clisp.org>
36630 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36631 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36633 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36634 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36635 * lib/getsubopt.h: Remove file.
36636 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36637 (Depends-on): Add stdlib.
36638 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36639 (Includes): Use <stdlib.h> instead of getsubopt.h.
36640 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36641 Set HAVE_GETSUBOPT.
36642 * lib/getsubopt.c: Don't include getsubopt.h.
36644 2007-02-18 Bruno Haible <bruno@clisp.org>
36646 * modules/fchdir (Depends-on): Add dup2.
36648 2007-02-18 Bruno Haible <bruno@clisp.org>
36650 * lib/stdlib_.h: Handle glibc's special invocation convention
36653 2007-02-18 Bruno Haible <bruno@clisp.org>
36655 * modules/stdlib-tests: New file.
36656 * tests/test-stdlib.c: New file.
36658 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36659 (Depends-on): Add stdlib.
36660 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36661 (Includes): Use <stdlib.h> instead of mkstemp.h.
36662 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36663 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36664 * lib/mkstemp.c: Don't include mkstemp.h.
36665 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36666 * lib/stdlib--.h: Don't include mkstemp.h.
36668 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36669 (Depends-on): Add stdlib.
36670 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36671 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36672 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36674 * lib/mkdtemp.c: Don't include mkdtemp.h.
36675 * lib/clean-temp.c: Don't include mkdtemp.h.
36677 * modules/exit (Files): Remove lib/exit.h.
36678 (Depends-on): Add stdlib.
36679 (Makefile.am): Remove lib_SOURCES.
36680 (Include): Use <stdlib.h> instead of exit.h.
36681 * lib/argmatch.c: Don't include exit.h.
36682 * lib/execute.c: Likewise.
36683 * lib/pagealign_alloc.c: Likewise.
36684 * lib/pipe.c: Likewise.
36685 * lib/wait-process.c: Likewise.
36686 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36687 * lib/exitfail.c: Likewise.
36688 * lib/savewd.c: Likewise.
36689 * lib/xsetenv.c: Likewise.
36691 * modules/stdlib: New file.
36692 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36693 and extra comments about mkstemp().
36694 * lib/exit.h: Remove file.
36695 * lib/mkdtemp.h: Remove file.
36696 * lib/mkstemp.h: Remove file.
36697 * m4/stdlib_h.m4: New file.
36698 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36700 2007-02-18 Bruno Haible <bruno@clisp.org>
36702 * modules/math-tests: New file.
36703 * tests/test-math.c: New file.
36705 * modules/math: New file.
36706 * modules/mathl (Files): Remove lib/mathl.h.
36707 (Depends-on): Add math.
36708 (Makefile.am): Don't mention mathl.h.
36709 (Include): Use <math.h> instead of mathl.h.
36710 * lib/math_.h: New file.
36711 * lib/mathl.h: Remove file.
36712 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36714 * lib/asinl.c: Likewise.
36715 * lib/atanl.c: Likewise.
36716 * lib/ceill.c: Likewise.
36717 * lib/cosl.c: Likewise.
36718 * lib/expl.c: Likewise.
36719 * lib/floorl.c: Likewise.
36720 * lib/frexpl.c: Likewise.
36721 * lib/ldexpl.c: Likewise.
36722 * lib/logl.c: Likewise.
36723 * lib/sincosl.c: Likewise.
36724 * lib/sinl.c: Likewise.
36725 * lib/sqrtl.c: Likewise.
36726 * lib/tanl.c: Likewise.
36727 * lib/trigl.c: Likewise.
36728 * m4/math_h.m4: New file.
36729 * MODULES.html.sh (Mathematics): Add math.
36731 2007-02-17 Bruno Haible <bruno@clisp.org>
36733 * modules/wctype-tests: New file.
36734 * tests/test-wctype.c: New file.
36736 * modules/wchar-tests: New file.
36737 * tests/test-wchar.c: New file.
36739 * modules/unistd-tests: New file.
36740 * tests/test-unistd.c: New file.
36742 * modules/time-tests: New file.
36743 * tests/test-time.c: New file.
36745 * modules/sysexits-tests: New file.
36746 * tests/test-sysexits.c: New file.
36748 * modules/sys_time-tests: New file.
36749 * tests/test-sys_time.c: New file.
36751 * modules/sys_stat-tests: New file.
36752 * tests/test-sys_stat.c: New file.
36754 * modules/sys_socket-tests: New file.
36755 * tests/test-sys_socket.c: New file.
36757 * modules/sys_select-tests: New file.
36758 * tests/test-sys_select.c: New file.
36760 * modules/string-tests: New file.
36761 * tests/test-string.c: New file.
36763 * modules/stdbool-tests: New file.
36764 * tests/test-stdbool.c: New file.
36766 * modules/netinet_in-tests: New file.
36767 * tests/test-netinet_in.c: New file.
36769 * modules/inttypes-tests: New file.
36770 * tests/test-inttypes.c: New file.
36772 * modules/fcntl-tests: New file.
36773 * tests/test-fcntl.c: New file.
36775 * modules/byteswap-tests: New file.
36776 * tests/test-byteswap.c: New file.
36778 * modules/arpa_inet-tests: New file.
36779 * tests/test-arpa_inet.c: New file.
36781 2007-02-17 Bruno Haible <bruno@clisp.org>
36783 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36784 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36785 if the corresponding module is not enabled. Emit link warnings if
36786 the function is used nevertheless.
36787 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36788 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36789 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36790 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36791 * modules/inttypes (Depends-on): Add link-warning.
36792 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36793 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36794 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36795 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36796 * modules/imaxdiv (configure.ac): Likewise.
36797 * modules/strtoimax (configure.ac): Likewise.
36798 * modules/strtoumax (configure.ac): Likewise.
36800 2007-02-17 Bruno Haible <bruno@clisp.org>
36802 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36803 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36804 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36805 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36807 2007-02-17 Bruno Haible <bruno@clisp.org>
36809 * modules/link-warning: New file.
36810 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36811 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36812 * modules/string (Depends-on): Add link-warning.
36813 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36815 * MODULES.html.sh (Support for building libraries and executables): Add
36818 2007-02-17 Bruno Haible <bruno@clisp.org>
36820 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36821 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36822 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36825 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36826 Bruno Haible <bruno@clisp.org>
36828 * modules/tmpfile: New file.
36829 * lib/tmpfile.c: New file.
36830 * m4/tmpfile.m4: New file.
36831 * MODULES.html.sh (func_all_modules): New section "Input/output".
36833 2007-02-15 Bruno Haible <bruno@clisp.org>
36835 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36836 (supports_delete_on_close): New function.
36837 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36839 2007-02-14 Bruno Haible <bruno@clisp.org>
36841 * modules/mbspcasecmp-tests: New file.
36842 * tests/test-mbspcasecmp.sh: New file.
36843 * tests/test-mbspcasecmp.c: New file.
36845 New module mbspcasecmp.
36846 * modules/mbspcasecmp: New file.
36847 * lib/mbspcasecmp.c: New file.
36848 * lib/string_.h (strncasecmp): Change warning message.
36849 (mbspcasecmp): New declaration.
36850 * m4/mbspcasecmp.m4: New file.
36851 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36852 GNULIB_MBSPCASECMP.
36853 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36854 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36856 2007-02-14 Bruno Haible <bruno@clisp.org>
36858 * modules/mbsncasecmp-tests: New file.
36859 * tests/test-mbsncasecmp.sh: New file.
36860 * tests/test-mbsncasecmp.c: New file.
36862 New module mbsncasecmp.
36863 * modules/mbsncasecmp: New file.
36864 * lib/mbsncasecmp.c: New file.
36865 * lib/string_.h (mbsncasecmp): New declaration.
36866 * m4/mbsncasecmp.m4: New file.
36867 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36868 GNULIB_MBSNCASECMP.
36869 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36870 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36872 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
36874 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36875 Verify that it doesn't overlap with our flags.
36876 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36877 do not have the desired effect in multibyte locales; instead, use
36879 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36880 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
36881 we don't require GNU fnmatch ourselves (if our users require it, they
36882 should do so explicitly).
36884 Fix regex code so it doesn't rely on strcasecmp.
36885 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36886 Otherwise, include gnulib's langinfo.h.
36887 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36888 undesirable behavior in non-C locales. Instead, rely on localecharset.
36889 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36890 * modules/regex (FILES): Remove m4/codeset.m4.
36891 (Depends-on): Add localcharset. Remove strcase.
36893 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36895 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36896 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36898 2007-02-13 Bruno Haible <bruno@clisp.org>
36900 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36901 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36903 2007-02-12 Bruno Haible <bruno@clisp.org>
36905 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36906 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36907 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36908 time warning rather than a link error.
36910 2007-02-12 Bruno Haible <bruno@clisp.org>
36912 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36913 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36914 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36916 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36918 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36921 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36923 New module 'time', so that apps can include <time.h> as per
36924 POSIX and GNU instead of separate include files like time_r.h
36925 and timegm.h. This implementation tries out a simpler approach
36926 for replacing decls in standard include files (as compared to
36927 the string module), somewhat as an experiment.
36929 * config/srclist.txt: Comment out mktime.c for now.
36930 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36931 since it doesn't apply any more. Use generic wording instead.
36932 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36934 * lib/time_.h, m4/time_h.m4, modules/time: New files.
36935 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36936 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36937 Don't include <sys/types.h>; no longer needed since we assume C89.
36938 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36939 * lib/strftime.c: Likewise.
36940 * lib/time_r.c: Likewise.
36941 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36942 * lib/nanosleep.c: Include <time.h> first, to check interface.
36943 * lib/strptime.c: Likewise.
36944 * lib/time_r.c: Likewise.
36945 * lib/timegm.c: Likewise.
36946 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36948 * lib/timegm.c: Don't include timegm.h; no longer needed.
36949 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36950 time.h now handles any problems in that area.
36951 (struct timespec, nanosleep): Remove; time.h now arranges for these.
36952 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36953 that time.h defines struct timespec.
36954 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36955 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
36957 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36958 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36959 needed. Set REPLACE_LOCALTIME.
36960 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36961 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36962 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36963 nanosleep; time_h.m4 now does that. Don't require
36964 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36965 module handles this now.
36966 * modules/getdate (Depends-on): Remove timespec. Add time.
36967 * modules/nanosleep (Depends-on): Likewise.
36968 * modules/stat-time (Depends-on): Likewise.
36969 * modules/nanosleep (Include): Include time.h, not timespec.h.
36970 * modules/strptime (Files): Remove lib/strptime.h.
36971 (Depends-on): Add extensions, time.
36972 (Include): Include time.h, not strptime.h.
36973 * modules/time_r (Files): Remove lib/time_r.h.
36974 (Depends-on): Add time.
36975 (Include): Include time.h, not time_r.h.
36976 * modules/timegm: Likewise.
36977 * modules/timespec (Description): Now does timespec-related decls
36978 of our own, instead of struct timespec itself.
36979 (Depends-on): Add time; remove extensions.
36980 (Maintainer): Add self.
36981 * modules/utimecmp (Depends-on): Add time; remove timespec.
36982 * modules/utimens (Depends-on): Likewise.
36983 * modules/xnanosleep (Depends-on): Likewise.
36985 2007-02-11 Bruno Haible <bruno@clisp.org>
36987 * lib/c-strstr.c: Include allocsa.h.
36988 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36989 * lib/c-strcasestr.c: Include allocsa.h.
36990 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36991 * lib/strcasestr.c: Include allocsa.h.
36992 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36993 * lib/mbsstr.c: Include allocsa.h.
36994 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36995 allocsa/freesa instead of malloc/free.
36996 * lib/mbscasestr.c: Include allocsa.h.
36997 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36998 allocsa/freesa instead of malloc/free.
36999 * modules/c-strstr (Depends-on): Add allocsa.
37000 * modules/c-strcasestr (Depends-on): Likewise.
37001 * modules/strcasestr (Depends-on): Likewise.
37002 * modules/mbsstr (Depends-on): Likewise.
37003 * modules/mbscasestr (Depends-on): Likewise.
37005 2007-02-11 Bruno Haible <bruno@clisp.org>
37007 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37009 * modules/mbsspn-tests: New file.
37010 * tests/test-mbsspn.sh: New file.
37011 * tests/test-mbsspn.c: New file.
37013 2007-02-11 Bruno Haible <bruno@clisp.org>
37015 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37017 * modules/mbspbrk-tests: New file.
37018 * tests/test-mbspbrk.sh: New file.
37019 * tests/test-mbspbrk.c: New file.
37021 2007-02-11 Bruno Haible <bruno@clisp.org>
37023 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37026 * modules/mbscspn-tests: New file.
37027 * tests/test-mbscspn.sh: New file.
37028 * tests/test-mbscspn.c: New file.
37030 2007-02-11 Bruno Haible <bruno@clisp.org>
37032 * modules/mbscasecmp-tests: New file.
37033 * tests/test-mbscasecmp.sh: New file.
37034 * tests/test-mbscasecmp.c: New file.
37036 2007-02-11 Bruno Haible <bruno@clisp.org>
37038 Ensure O(n) worst-case complexity of mbscasestr.
37039 * lib/mbscasestr.c: Include stdbool.h.
37040 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37042 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37043 the bookkeeping indicates that it's worth it.
37044 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37046 * modules/mbscasestr-tests: New file.
37047 * tests/test-mbscasestr1.c: New file.
37048 * tests/test-mbscasestr2.sh: New file.
37049 * tests/test-mbscasestr2.c: New file.
37050 * tests/test-mbscasestr3.sh: New file.
37051 * tests/test-mbscasestr3.c: New file.
37052 * tests/test-mbscasestr4.sh: New file.
37053 * tests/test-mbscasestr4.c: New file.
37054 * m4/locale-tr.m4: New file.
37056 2007-02-11 Bruno Haible <bruno@clisp.org>
37058 Ensure O(n) worst-case complexity of mbsstr.
37059 * lib/mbsstr.c: Include stdbool.h.
37060 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37062 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37063 bookkeeping indicates that it's worth it.
37064 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37066 * modules/mbsstr-tests: New file.
37067 * tests/test-mbsstr1.c: New file.
37068 * tests/test-mbsstr2.sh: New file.
37069 * tests/test-mbsstr2.c: New file.
37070 * tests/test-mbsstr3.sh: New file.
37071 * tests/test-mbsstr3.c: New file.
37072 * m4/locale-fr.m4: New file.
37074 2007-02-11 Bruno Haible <bruno@clisp.org>
37076 * lib/mbsrchr.c (mbsrchr): Fix bug.
37078 * modules/mbsrchr-tests: New file.
37079 * tests/test-mbsrchr.sh: New file.
37080 * tests/test-mbsrchr.c: New file.
37082 2007-02-11 Bruno Haible <bruno@clisp.org>
37084 * lib/mbschr.c (mbschr): Fix bug.
37086 * modules/mbschr-tests: New file.
37087 * tests/test-mbschr.sh: New file.
37088 * tests/test-mbschr.c: New file.
37089 * m4/locale-zh.m4: New file.
37091 2007-02-11 Bruno Haible <bruno@clisp.org>
37093 Support for copying multibyte string iterators.
37094 * lib/mbiter.h: Include <string.h>.
37095 (mbiter_multi_copy): New function.
37096 (mbi_copy): New macro.
37097 * lib/mbuiter.h: Include <string.h>.
37098 (mbuiter_multi_copy): New function.
37099 (mbui_copy): New macro.
37101 2007-02-11 Bruno Haible <bruno@clisp.org>
37104 * modules/mbslen: New file.
37105 * lib/mbslen.c: New file.
37106 * lib/string_.h (mbslen): New declaration.
37107 * m4/mbslen.m4: New file.
37108 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37110 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37111 * MODULES.html.sh (Internationalization functions): Add mbslen.
37113 2007-02-11 Bruno Haible <bruno@clisp.org>
37115 Ensure O(n) worst-case complexity of strcasestr substitute.
37116 * lib/strcasestr.c: Include stdbool.h.
37117 (knuth_morris_pratt): New function.
37118 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37119 bookkeeping indicates that it's worth it.
37120 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37122 * modules/strcasestr-tests: New file.
37123 * tests/test-strcasestr.c: New file.
37125 2007-02-11 Bruno Haible <bruno@clisp.org>
37127 Ensure O(n) worst-case complexity of c_strcasestr.
37128 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37129 (knuth_morris_pratt): New function.
37130 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37131 the bookkeeping indicates that it's worth it.
37132 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37134 * modules/c-strcasestr-tests: New file.
37135 * tests/test-c-strcasestr.c: New file.
37137 2007-02-11 Bruno Haible <bruno@clisp.org>
37139 Ensure O(n) worst-case complexity of c_strstr.
37140 * lib/c-strstr.c: Include stdbool.h, string.h.
37141 (knuth_morris_pratt): New function.
37142 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37143 bookkeeping indicates that it's worth it.
37144 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37146 * lib/c-strstr.c: Complete rewrite for maintainability.
37148 * modules/c-strstr-tests: New file.
37149 * tests/test-c-strstr.c: New file.
37151 2007-02-11 Bruno Haible <bruno@clisp.org>
37153 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37154 5.2.1 and earlier, whereby \055 was treated just like the range
37156 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37158 2007-02-08 Bruno Haible <bruno@clisp.org>
37160 * modules/regex (Depends-on): Add stdbool.
37161 Reported by Dalibor Topic <robilad@kaffe.org>.
37163 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37165 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37166 Prefer returning from main to exiting from it.
37167 Remove unnecessary parens after sizeof.
37169 2007-02-05 Bruno Haible <bruno@clisp.org>
37172 * modules/mbssep: New file.
37173 * lib/mbssep.c: New file.
37174 * lib/string_.h (strsep): Add a conditional link warning.
37175 (mbssep): New declaration.
37176 * m4/mbssep.m4: New file.
37177 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37179 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37180 * MODULES.html.sh (Internationalization functions): Add mbssep.
37182 2007-02-05 Bruno Haible <bruno@clisp.org>
37184 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37185 Optimize search in case of 1 delimiter.
37187 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37189 * lib/acl.h: Include sys/types.h before sys/acl.h.
37191 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37193 Merge upstream fix for glibc bugzilla #3957:
37195 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37197 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37198 bit for RE_HAT_LISTS_NOT_NEWLINE.
37199 (build_charclass_op): Remove bogus comment.
37201 2007-02-05 Simon Josefsson <simon@josefsson.org>
37203 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37205 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37207 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37208 * lib/memmem.c [!defined _LIBC]: Include config.h.
37210 2007-02-04 Bruno Haible <bruno@clisp.org>
37212 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37215 2007-02-04 Bruno Haible <bruno@clisp.org>
37217 New module mbstok_r.
37218 * modules/mbstok_r: New file.
37219 * lib/mbstok_r.c: New file.
37220 * lib/string_.h (strtok_r): Change argument names to match the
37221 comments. Add a conditional link warning.
37222 (mbstok_r): New declaration.
37223 * m4/mbstok_r.m4: New file.
37224 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37226 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37227 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37229 2007-02-04 Bruno Haible <bruno@clisp.org>
37232 * modules/mbsspn: New file.
37233 * lib/mbsspn.c: New file.
37234 * lib/string_.h (strspn): Add a conditional link warning.
37235 (mbsspn): New declaration.
37236 * m4/mbsspn.m4: New file.
37237 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37239 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37240 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37242 2007-02-04 Bruno Haible <bruno@clisp.org>
37244 New module mbspbrk.
37245 * modules/mbspbrk: New file.
37246 * lib/mbspbrk.c: New file.
37247 * lib/string_.h (strpbrk): Add a conditional link warning.
37248 (mbspbrk): New declaration.
37249 * m4/mbspbrk.m4: New file.
37250 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37252 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37253 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37255 2007-02-04 Bruno Haible <bruno@clisp.org>
37257 New module mbscspn.
37258 * modules/mbscspn: New file.
37259 * lib/mbscspn.c: New file.
37260 * lib/string_.h (strcspn): Add a conditional link warning.
37261 (mbscspn): New declaration.
37262 * m4/mbscspn.m4: New file.
37263 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37265 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37266 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37268 2007-02-04 Bruno Haible <bruno@clisp.org>
37270 New module mbscasestr, reduced goal of strcasestr.
37271 * modules/mbscasestr: New file.
37272 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37273 (mbscasestr): Renamed from strcasestr.
37274 * lib/strcasestr.c: Don't include mbuiter.h.
37275 (strcasestr): Remove support for multibyte locales.
37276 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37277 Change the conditional link warning.
37278 (mbscasestr): New declaration.
37279 * m4/mbscasestr.m4: New file.
37280 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37281 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37282 REPLACE_STRCASESTR.
37283 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37284 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37285 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37286 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37287 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37288 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37289 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37290 (Depends-on): Remove mbuiter.
37291 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37293 2007-02-04 Bruno Haible <bruno@clisp.org>
37295 Simplify handling of strncasecmp.
37296 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37297 the conditional link warning.
37298 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37299 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37300 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37301 * modules/strcase (configure.ac): Don't invoke
37302 gl_STRING_MODULE_INDICATOR.
37303 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37305 2007-02-04 Bruno Haible <bruno@clisp.org>
37307 New module mbscasecmp, reduced goal of strcasecmp.
37308 * modules/mbscasecmp: New file.
37309 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37310 (mbscasecmp): Renamed from strcasecmp.
37311 * lib/strcasecmp.c: Don't include mbuiter.h.
37312 (strcasecmp): Remove support for multibyte locales.
37313 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37314 Change the conditional link warning.
37315 (mbscasecmp): New declaration.
37316 * m4/mbscasecmp.m4: New file.
37317 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37318 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37319 REPLACE_STRCASECMP.
37320 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37321 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37323 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37324 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37325 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37326 (Depends-on): Remove mbuiter.
37327 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37329 2007-02-04 Bruno Haible <bruno@clisp.org>
37331 New module mbsstr. Remove module strstr.
37332 * modules/mbsstr: New file.
37333 * modules/strstr: Remove file.
37334 * lib/mbsstr.c: Renamed from lib/strstr.c.
37335 (mbsstr): Renamed from strstr.
37336 * lib/string_.h (strstr): Remove declaration. Change the conditional
37338 (mbsstr): New declaration.
37339 * m4/mbsstr.m4: New file.
37340 * m4/strstr.m4: Remove file.
37341 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37343 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37344 Don't initialize GNULIB_STRSTR.
37345 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37346 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37347 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37348 (Support for systems lacking ANSI C 89): Remove strstr.
37350 2007-02-04 Bruno Haible <bruno@clisp.org>
37352 New module mbsrchr.
37353 * modules/mbsrchr: New file.
37354 * lib/mbsrchr.c: New file.
37355 * lib/string_.h (strrchr): Add a conditional link warning.
37356 (mbsrchr): New declaration.
37357 * m4/mbsrchr.m4: New file.
37358 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37360 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37361 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37363 2007-02-04 Bruno Haible <bruno@clisp.org>
37366 * modules/mbschr: New file.
37367 * lib/mbschr.c: New file.
37368 * lib/string_.h (strchr): Add a conditional link warning.
37369 (mbschr): New declaration.
37370 * m4/mbschr.m4: New file.
37371 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37373 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37374 * MODULES.html.sh (Internationalization functions): Add mbschr.
37376 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37378 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37380 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37382 2007-02-04 Bruno Haible <bruno@clisp.org>
37384 New module description section 'configure.ac-early'.
37385 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37386 (func_get_autoconf_early_snippet): New function.
37387 (func_import, func_create_testdir): Use it. Remove special cases for
37388 modules 'extensions' and 'lock'.
37389 * modules/extensions (configure.ac-early): Require
37390 gl_USE_SYSTEM_EXTENSIONS.
37391 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37393 2007-02-04 Bruno Haible <bruno@clisp.org>
37395 Make use of gcj-4.3's -fsource and -ftarget option.
37396 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37397 and if so try the options -fsource and -ftarget.
37398 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37399 source_version, ftarget_option, target_version arguments.
37400 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37401 (is_envjavac_oldgcj_14_14_usable): Renamed from
37402 is_envjavac_gcj_14_14_usable.
37403 (is_envjavac_oldgcj_14_13_usable): Renamed from
37404 is_envjavac_gcj_14_13_usable.
37405 (is_gcj_present): Update.
37406 (is_gcj_43, is_gcj43_usable): New functions.
37407 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37408 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37409 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37410 try the options -fsource and -ftarget.
37412 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37414 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37415 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37418 2007-02-03 Jim Meyering <jim@meyering.net>
37420 Give tools a better chance to allocate space for very large buffers.
37421 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37423 Make pwd and readlink work also when run with an unreadable parent dir
37424 on systems with openat support.
37425 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37426 provided getcwd function, even when we have openat support.
37427 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37429 2007-02-02 Bruno Haible <bruno@clisp.org>
37431 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37432 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37433 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37434 portability problems if one of these functions is only used on specific
37436 Reported by Paul Eggert.
37438 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37440 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37441 is causing more trouble than it's curing.
37442 * lib/regex_internal.h (__mempcpy): Remove.
37443 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37444 (and make the code a tad smaller to boot).
37445 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37447 2007-02-02 Jim Meyering <jim@meyering.net>
37449 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37450 section, not in the Makefile.am: one.
37452 2007-02-02 Eric Blake <ebb9@byu.net>
37454 * lib/strchrnul.c: Always include config.h first.
37456 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37457 gnulib strstr is not necessary here.
37459 2007-02-02 Simon Josefsson <simon@josefsson.org>
37461 * m4/socklen.m4: Fix typo.
37463 2007-02-02 Eric Blake <ebb9@byu.net>
37465 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37466 * modules/netinet_in (Makefile.am): Likewise.
37468 2007-02-01 Bruno Haible <bruno@clisp.org>
37470 * lib/string_.h (GL_LINK_WARNING): New macro.
37471 (strcasecmp, strstr, strcasestr): If provided by the system,
37472 conditionally define as a macro that leads to a warning instead of to
37474 (strncasecmp): Conditionally define as a macro that leads to a warning.
37476 2007-02-01 Karl Berry <karl@gnu.org>
37478 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37480 2007-02-01 Bruno Haible <bruno@clisp.org>
37482 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37485 2007-02-01 Eric Blake <ebb9@byu.net>
37487 * modules/regex (Depends-on): Revert dependence on mempcpy.
37488 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37489 module's definition of mempcpy.
37490 Reported by Paul Eggert.
37492 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37494 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37495 the symbol XYZ before redefining it. This fixes a problem with
37496 programs that don't use XYZ, when compiled on systems that define
37497 XYZ to something else.
37499 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37501 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37502 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37503 writeable to group or other and (2) is intended to have a special
37504 mode bit that is set or cleared. In such a case, the directory
37505 should be neither group- nor other-writeable until the special
37506 mode bits are right.
37508 2007-01-31 Eric Blake <ebb9@byu.net>
37510 * modules/mountlist (Depends-on): Add strstr.
37512 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37514 * modules/string (Makefile.am): Remove redundant replacement.
37515 * modules/regex (Depends-on): Add mempcpy.
37517 2007-01-31 Bruno Haible <bruno@clisp.org>
37519 New module description field 'Link'.
37520 * gnulib-tool (func_usage): Document --extract-link-directive.
37521 (sed_extract_prog): Recognize 'Link' directive.
37522 (func_get_link_directive): New function.
37523 (func_import): Show summary of link directives.
37524 Handle --extract-link-directive option.
37525 * modules/acl (Link): New section.
37526 * modules/clock-time (Link): New section.
37527 * modules/euidaccess (Link): New section.
37528 * modules/gettext (Link): New section.
37529 * modules/iconv (Link): New section.
37530 * modules/lock (Link): New section.
37531 * modules/nanosleep (Link): New section.
37532 * modules/readline (Link): New section.
37534 2007-01-27 Bruno Haible <bruno@clisp.org>
37536 Enforce the use of gnulib modules for unportable <string.h> functions.
37537 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37538 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37539 (gl_HEADER_STRING_H_BODY): Require it.
37540 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37541 the symbol XYZ to one that gives a link error.
37542 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37543 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37544 * modules/mempcpy (configure.ac): Likewise.
37545 * modules/memrchr (configure.ac): Likewise.
37546 * modules/stpcpy (configure.ac): Likewise.
37547 * modules/stpncpy (configure.ac): Likewise.
37548 * modules/strcase (configure.ac): Likewise.
37549 * modules/strcasestr (configure.ac): Likewise.
37550 * modules/strchrnul (configure.ac): Likewise.
37551 * modules/strdup (configure.ac): Likewise.
37552 * modules/strndup (configure.ac): Likewise.
37553 * modules/strnlen (configure.ac): Likewise.
37554 * modules/strpbrk (configure.ac): Likewise.
37555 * modules/strsep (configure.ac): Likewise.
37556 * modules/strstr (configure.ac): Likewise.
37557 * modules/strtok_r (configure.ac): Likewise.
37559 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37561 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37563 2007-01-30 Jim Meyering <jim@meyering.net>
37565 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37567 2007-01-29 Bruno Haible <bruno@clisp.org>
37569 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37570 * lib/execute.c: Likewise.
37571 * lib/pipe.c: Likewise.
37572 * lib/printf-args.h: Likewise.
37573 * lib/printf-args.c: Likewise.
37574 * lib/printf-parse.c: Likewise.
37575 * lib/vasnprintf.c: Likewise.
37577 2007-01-29 Eric Blake <ebb9@byu.net>
37579 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37582 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37584 * lib/strptime.h (strptime): Use 'restrict' for args where
37585 POSIX requires this.
37586 * lib/strptime.c (strptime): Likewise.
37587 Change license notice from LGPL to GPL, since gnulib-tool will
37588 change this as needed.
37589 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37591 Include "strptime.h" first, to check interface.
37592 Do not #undef _LIBC and _NL_CURRENT.
37593 Do not include <stdlib.h>; no longer needed.
37594 Include "time_r.h" and declare ptime_locale_status
37595 only if _LIBC is not defined.
37596 (__P): Remove unused macro.
37597 (match_string): Bring back glibc version, but use it only if _LIBC
37599 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37600 Remove unnecessary assertion and abort() call.
37601 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37602 * m4/strptime.m4: Fix serial number comment.
37603 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37604 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37605 (Depends-on): Add time_r.
37607 2007-01-29 Bruno Haible <bruno@clisp.org>
37609 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37611 * modules/strptime (Depends-on): Add stdbool.
37612 * lib/strptime.h: Include <time.h> always. Add comments.
37614 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37616 * modules/strptime: New file.
37617 * lib/strptime.h: New file.
37618 * lib/strptime.c: New file.
37619 * m4/strptime.m4: New file.
37621 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37623 * MODULES.html.sh: New module mpsort.
37624 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37626 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37627 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37628 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37630 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37632 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37634 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37635 the parameter matches the prototype.
37637 2007-01-28 Jim Meyering <jim@meyering.net>
37639 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37640 sys/time.h here, reverting that part of the previous patch:
37641 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37643 2007-01-28 Bruno Haible <bruno@clisp.org>
37645 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37646 value of $(SYS_TIME_H).
37647 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37648 remove it conditionally, too. [added by Jim Meyering]
37649 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37650 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37651 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37652 GETTIMEOFDAY_REPLACEMENT to 1.
37654 2007-01-28 Bruno Haible <bruno@clisp.org>
37656 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37657 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37658 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37659 Set UNISTD_H instead of UNISTD_H2.
37660 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37662 2007-01-28 Bruno Haible <bruno@clisp.org>
37664 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37665 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37667 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37669 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37670 (func_create_testdir): Ensure C locale for `grep' and `tr'
37672 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37673 ACLOCAL_AMFLAGS parsing state machine.
37675 2007-01-27 Bruno Haible <bruno@clisp.org>
37677 * modules/unistr/base: Update.
37679 2007-01-27 Bruno Haible <bruno@clisp.org>
37681 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37682 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37683 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37684 modules/unistr/u32-mbtouc.
37685 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37686 * lib/unistr.h: Update.
37687 * lib/linebreak.c: Update.
37688 * modules/unistr/u32-mbtouc: Renamed from
37689 modules/unistr/u32-mbtouc-safe.
37690 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37691 * lib/unistr.h: Update.
37692 * lib/unistr/u32-to-u8.c: Update.
37693 * lib/unistr/u32-to-u16.c: Update.
37695 2007-01-27 Bruno Haible <bruno@clisp.org>
37697 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37698 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37699 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37700 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37701 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37702 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37703 modules/unistr/u16-mbtouc.
37704 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37705 * lib/unistr.h: Update.
37706 * lib/linebreak.c: Update.
37707 * modules/linebreak: Update.
37708 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37709 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37710 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37711 * modules/unistr/u16-mbtouc: Renamed from
37712 modules/unistr/u16-mbtouc-safe.
37713 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37714 * lib/unistr.h: Update.
37715 * lib/unistr/u16-to-u8.c: Update.
37716 * modules/unistr/u16-to-u8: Update.
37717 * lib/unistr/u16-to-u32.c: Update.
37718 * modules/unistr/u16-to-u32: Update.
37720 2007-01-27 Bruno Haible <bruno@clisp.org>
37722 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37723 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37724 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37725 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37726 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37727 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37728 modules/unistr/u8-mbtouc.
37729 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37730 * lib/unistr.h: Update.
37731 * lib/striconveh.c: Update.
37732 * modules/striconveh: Update.
37733 * lib/linebreak.c: Update.
37734 * modules/linebreak: Update.
37735 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37736 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37737 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37738 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37739 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37740 * lib/unistr.h: Update.
37741 * lib/striconveh.c: Update.
37742 * modules/striconveh: Update.
37743 * lib/unistr/u8-to-u16.c: Update.
37744 * modules/unistr/u8-to-u16: Update.
37745 * lib/unistr/u8-to-u32.c: Update.
37746 * modules/unistr/u8-to-u32: Update.
37748 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37751 * lib/argz.c: Do not include strings.h nor memory.h, include
37752 string.h unconditionally. Patch by Simon Josefsson.
37754 2007-01-27 Bruno Haible <bruno@clisp.org>
37756 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37757 from gl_HEADER_STRING_H_BODY.
37758 (gl_HEADER_STRING_H_BODY): Require it.
37759 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37760 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37761 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37762 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37763 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37764 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37765 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37766 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37767 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37768 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37769 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37770 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37771 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37772 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37773 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37775 2007-01-27 Bruno Haible <bruno@clisp.org>
37777 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37778 check_PROGRAMS into noinst_PROGRAMS.
37779 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37780 check_PROGRAMS in this case.
37781 (func_import): Set for_test to false.
37782 (func_create_testdir): Set for_test to true.
37784 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37785 Bruno Haible <bruno@clisp.org>
37787 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37788 (Depends-on): Add string.
37789 (Includes): Use <string.h> instead of strcasestr.h.
37790 * modules/string (Makefile.am): Also substitute the value of
37791 REPLACE_STRCASESTR.
37792 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37793 assume strcasestr is declared in <string.h> not <strings.h>. Also
37794 set REPLACE_STRCASESTR.
37795 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37796 REPLACE_STRCASESTR.
37797 * lib/strcasestr.h: Remove file.
37798 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37799 * lib/string_.h (strcasestr): New declaration.
37801 2007-01-27 Bruno Haible <bruno@clisp.org>
37803 * lib/string_.h: Use 'extern'.
37805 2007-01-27 Jim Meyering <jim@meyering.net>
37807 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37808 of set-but-not-used local, "q".
37810 * lib/mempcpy.c: Include <config.h> before <string.h>.
37811 This fixes a compilation error on HP-UX, due to the system's
37812 "restrict"-using mempcpy prototype.
37814 2007-01-26 Bruno Haible <bruno@clisp.org>
37816 Small optimization.
37817 * lib/javacomp.c: Include c-strstr.h.
37818 (is_envjavac_gcj): Use c_strstr instead of strstr.
37819 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37821 2007-01-26 Bruno Haible <bruno@clisp.org>
37823 * MODULES.html.sh (Unicode string functions): Add the new modules.
37825 * modules/uniconv/u32-strconv-to-locale: New file.
37826 * lib/uniconv/u32-strconv-to-locale.c: New file.
37828 * modules/uniconv/u16-strconv-to-locale: New file.
37829 * lib/uniconv/u16-strconv-to-locale.c: New file.
37831 * modules/uniconv/u8-strconv-to-locale: New file.
37832 * lib/uniconv/u8-strconv-to-locale.c: New file.
37834 * modules/uniconv/u32-strconv-from-locale: New file.
37835 * lib/uniconv/u32-strconv-from-locale.c: New file.
37837 * modules/uniconv/u16-strconv-from-locale: New file.
37838 * lib/uniconv/u16-strconv-from-locale.c: New file.
37840 * modules/uniconv/u8-strconv-from-locale: New file.
37841 * lib/uniconv/u8-strconv-from-locale.c: New file.
37843 * modules/uniconv/u32-strconv-to-enc: New file.
37844 * lib/uniconv/u32-strconv-to-enc.c: New file.
37845 * modules/uniconv/u32-strconv-to-enc-tests: New file.
37846 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37848 * modules/uniconv/u16-strconv-to-enc: New file.
37849 * lib/uniconv/u16-strconv-to-enc.c: New file.
37850 * lib/uniconv/u-strconv-to-enc.h: New file.
37851 * modules/uniconv/u16-strconv-to-enc-tests: New file.
37852 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37854 * modules/uniconv/u8-strconv-to-enc: New file.
37855 * lib/uniconv/u8-strconv-to-enc.c: New file.
37856 * modules/uniconv/u8-strconv-to-enc-tests: New file.
37857 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37859 * modules/uniconv/u32-strconv-from-enc: New file.
37860 * lib/uniconv/u32-strconv-from-enc.c: New file.
37861 * modules/uniconv/u32-strconv-from-enc-tests: New file.
37862 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37864 * modules/uniconv/u16-strconv-from-enc: New file.
37865 * lib/uniconv/u16-strconv-from-enc.c: New file.
37866 * modules/uniconv/u16-strconv-from-enc-tests: New file.
37867 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37869 * modules/uniconv/u8-strconv-from-enc: New file.
37870 * lib/uniconv/u8-strconv-from-enc.c: New file.
37871 * lib/uniconv/u-strconv-from-enc.h: New file.
37872 * modules/uniconv/u8-strconv-from-enc-tests: New file.
37873 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37875 * modules/uniconv/u32-conv-from-enc: New file.
37876 * lib/uniconv/u32-conv-from-enc.c: New file.
37877 * modules/uniconv/u32-conv-from-enc-tests: New file.
37878 * tests/uniconv/test-u32-conv-from-enc.c: New file.
37880 * modules/uniconv/u16-conv-from-enc: New file.
37881 * lib/uniconv/u16-conv-from-enc.c: New file.
37882 * lib/uniconv/u-conv-from-enc.h: New file.
37883 * modules/uniconv/u16-conv-from-enc-tests: New file.
37884 * tests/uniconv/test-u16-conv-from-enc.c: New file.
37886 * modules/uniconv/u8-conv-from-enc: New file.
37887 * lib/uniconv/u8-conv-from-enc.c: New file.
37888 * modules/uniconv/u8-conv-from-enc-tests: New file.
37889 * tests/uniconv/test-u8-conv-from-enc.c: New file.
37891 * modules/uniconv/base: New file.
37892 * lib/uniconv.h: New file.
37894 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
37896 * doc/gnulib-tool.texi (Initial import): Update to match current
37897 behavior with strdup module.
37898 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37899 * lib/memmem.h: Remove; all uses removed. This is now done
37901 * lib/mempcpy.h: Likewise.
37902 * lib/memrchr.h: Likewise.
37903 * lib/stpcpy.h: Likewise.
37904 * lib/stpncpy.h: Likewise.
37905 * lib/strcase.h: Likewise.
37906 * lib/strchrnul.h: Likewise.
37907 * lib/strdup.h: Likewise.
37908 * lib/strndup.h: Likewise.
37909 * lib/strnlen.h: Likewise.
37910 * lib/strpbrk.h: Likewise.
37911 * lib/strsep.h: Likewise.
37912 * lib/strstr.h: Likewise.
37913 * lib/strtok_r.h: Likewise.
37914 * lib/string_.h: New file.
37915 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37916 Rely on <string.h> instead.
37917 * lib/canon-host.c: Likewise.
37918 * lib/chdir-long.c: Likewise.
37919 * lib/concatpath.c: Likewise.
37920 * lib/exclude.c: Likewise.
37921 * lib/fchdir.c: Likewise.
37922 * lib/getaddrinfo.c: Likewise.
37923 * lib/getcwd.c: Likewise.
37924 * lib/getsubopt.c: Likewise.
37925 * lib/glob.c: Likewise.
37926 * lib/hard-locale.c: Likewise.
37927 * lib/iconvme.c: Likewise.
37928 * lib/javacomp.c: Likewise.
37929 * lib/mempcpy.c: Likewise.
37930 * lib/memrchr.c: Likewise.
37931 * lib/regex_internal.h: Likewise.
37932 * lib/stpncpy.c: Likewise.
37933 * lib/strcasecmp.c: Likewise.
37934 * lib/strchrnul.c: Likewise.
37935 * lib/strdup.c: Likewise.
37936 * lib/striconv.c: Likewise.
37937 * lib/striconveh.c: Likewise.
37938 * lib/striconveha.c: Likewise.
37939 * lib/strncasecmp.c: Likewise.
37940 * lib/strndup.c: Likewise.
37941 * lib/strnlen.c: Likewise.
37942 * lib/strsep.c: Likewise.
37943 * lib/strstr.c: Likewise.
37944 * lib/strtok_r.c: Likewise.
37945 * lib/userspec.c: Likewise.
37946 * lib/w32spawn.h: Likewise.
37947 * lib/xstrndup.c: Likewise.
37948 * lib/mountlist.c (strstr): Remove decl.
37949 * m4/string_h.m4: New file.
37950 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37951 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37952 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37953 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37954 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37955 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37956 Set REPLACE_STRCASECMP if necessary.
37957 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37958 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37959 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37960 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37961 HAVE_DECL_STRDUP if necessary.
37962 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37963 since gl_FUNC_STRNDUP does that now.
37964 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37965 Check for decl here...
37966 (gl_PREREQ_STRNLEN): ... not here.
37967 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37968 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37969 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37970 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37972 * modules/string: New file.
37973 * modules/memmem (Files): Remove special-purpose include file.
37974 (Depends-on): Add string.
37975 (Include): Include <string.h>, not the removed file.
37976 * modules/mempcpy: Likewise.
37977 * modules/memrchr: Likewise.
37978 * modules/stpcpy: Likewise.
37979 * modules/stpncpy: Likewise.
37980 * modules/strcase: Likewise.
37981 * modules/strchrnul: Likewise.
37982 * modules/strdup: Likewise.
37983 * modules/strndup: Likewise.
37984 * modules/strnlen: Likewise.
37985 * modules/strpbrk: Likewise.
37986 * modules/strsep: Likewise.
37987 * modules/strstr: Likewise.
37988 * modules/strtok_r: Likewise.
37989 * tests/test-dirname.c: Don't include "strdup.h", since
37990 <string.h> now suffices.
37991 * tests/test-memmem.c: Don't include "memmem.h", since
37992 <string.h> now suffices.
37994 2007-01-25 Bruno Haible <bruno@clisp.org>
37996 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37999 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38000 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38001 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38002 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38004 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38005 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38006 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38007 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38008 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38009 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38011 2007-01-24 Bruno Haible <bruno@clisp.org>
38013 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38014 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38015 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38016 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38018 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38019 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38020 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38021 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38022 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38023 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38025 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38027 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38028 Reported by Ralf Wildenhues.
38030 2007-01-24 Bruno Haible <bruno@clisp.org>
38032 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38033 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38035 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38036 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38037 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38039 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38041 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38042 Don't use 'exit'; just return from 'main'.
38043 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38045 * lib/fnmatch_.h: Readjust white space and comments to match
38046 glibc, to avoid spurious diffs.
38048 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38050 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38051 2004-12-01 change by Jakub Jelinek, since this code won't compile
38052 if !LIBC. Problem reported by Bob Proulx.
38054 2007-01-23 Bruno Haible <bruno@clisp.org>
38056 * lib/striconveh.c: Include c-strcaseeq.h.
38057 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38058 * modules/striconveh (Depends-on): Add c-strcaseeq.
38060 2007-01-23 Bruno Haible <bruno@clisp.org>
38062 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38064 * modules/c-strcaseeq: New file.
38065 * lib/c-strcaseeq.h: New file.
38067 * modules/streq: New file.
38068 * lib/streq.h: New file.
38070 2007-01-23 Bruno Haible <bruno@clisp.org>
38072 * modules/striconveha-tests: New file.
38073 * tests/test-striconveha.c: New file.
38075 * lib/striconveha.h: Include <stdbool.h>.
38076 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38077 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38078 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38079 (mem_iconveha): New function.
38080 (str_iconveha_notranslit): Renamed from str_iconveha.
38081 (str_iconveha): New function.
38082 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38085 2007-01-23 Bruno Haible <bruno@clisp.org>
38087 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38088 encodings without forgiving before trying any encoding with handler.
38089 (str_iconveha): Try all encodings without forgiving before trying any
38090 encoding with handler.
38092 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38094 Import the following changes from libc.
38096 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38098 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38100 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38102 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38103 normal_bracket label.
38105 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38108 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38109 to normal_bracket after fetching the next character.
38111 2007-01-22 Bruno Haible <bruno@clisp.org>
38113 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38115 * lib/striconveh.c (iconv_carefully_1): New function.
38116 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38118 (str_cd_iconveh): Update.
38119 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38120 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38121 * tests/test-striconveh.c (MAGIC): New macro.
38122 (new_offsets): New function.
38123 (main): Test call with and without offsets.
38125 2007-01-22 Bruno Haible <bruno@clisp.org>
38127 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38128 * modules/sys_select (Makefile.am): Likewise.
38129 * modules/sys_socket (Makefile.am): Likewise.
38130 * modules/sys_time (Makefile.am): Likewise.
38132 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38134 * modules/gettimeofday (License): Change from GPL to LGPL, since
38135 gettimeofday is a library function.
38137 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38139 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38141 2007-01-21 Bruno Haible <bruno@clisp.org>
38143 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38145 2007-01-21 Bruno Haible <bruno@clisp.org>
38147 * modules/striconveha: New file.
38148 * lib/striconveha.h: New file.
38149 * lib/striconveha.c: New file.
38150 * MODULES.html.sh (Internationalization functions): Add striconveha.
38151 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38153 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38155 2007-01-21 Bruno Haible <bruno@clisp.org>
38157 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38158 * lib/striconveh.c (str_iconveh): Likewise.
38160 2007-01-21 Bruno Haible <bruno@clisp.org>
38162 * lib/striconveh.h (mem_iconveh): New declaration.
38163 * lib/striconveh.c (mem_iconveh): New function.
38164 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38166 2007-01-21 Bruno Haible <bruno@clisp.org>
38168 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38170 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38171 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38172 original result buffer.
38173 (str_cd_iconveh): Update.
38174 * tests/test-striconveh.c (main): Update.
38176 * lib/striconv.h (mem_cd_iconv): Change specification.
38177 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38179 (str_cd_iconv): Update.
38180 * tests/test-striconv.c (main): Update.
38182 2007-01-21 Bruno Haible <bruno@clisp.org>
38184 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38186 2007-01-20 Jim Meyering <jim@meyering.net>
38188 * lib/userspec.c (parse_with_separator): If a user or group string
38189 starts with "+", skip the corresponding name-to-ID look-up, since
38190 such a look-up must fail: user and group names may not include "+".
38192 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38194 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38195 since we now assume the sys_time module.
38196 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38197 check for sys/time.h; no longer needed.
38198 * modules/poll (Depends-on): Depend on sys_time.
38200 2007-01-18 Bruno Haible <bruno@clisp.org>
38202 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38203 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38205 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38208 * tests/test-gettimeofday.c: Include <time.h>.
38209 (dummy): Remove variable.
38211 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38212 gl_HEADER_SYS_TIME_H.
38213 (gl_HEADER_SYS_TIME_H): New macro.
38215 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38216 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38217 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38218 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38219 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38220 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38221 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38222 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38223 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38224 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38225 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38227 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38228 last change; it caused a compilation error when cross-compiling to
38231 2007-01-18 Jim Meyering <jim@meyering.net>
38233 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38234 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38235 than the race-prone "test -d sys || mkdir sys".
38236 (configure.ac): Use AC_PROG_MKDIR_P.
38237 * modules/sys_select: Likewise.
38238 * modules/sys_socket: Likewise.
38239 * modules/sys_time: Likewise.
38241 2007-01-18 Eric Blake <ebb9@byu.net>
38243 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38244 replace gettimeofday.
38245 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38246 name, to avoid infinite recursion.
38248 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38250 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38252 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38253 assume timespec.h defines struct timeval.
38254 * lib/settime.c: Likewise.
38255 * lib/utimens.c: Likewise.
38256 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38257 since we now assume the gettimeofday module.
38258 * lib/tempname.c (__gen_tempname): Likewise.
38259 * lib/gettimeofday.h: Remove.
38260 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38261 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38262 Include <time.h>, for 'time()'.
38263 (localtime_buffer_addr): Also use this workaround if
38264 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38265 to simplify the uses. All uses changed.
38266 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38267 that #undef is inside {}, and 'const' follows type name consistently.
38268 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38269 (gettimeofday): Do not use the maximum possible value for
38270 tv->tv_usec, since that might break usages other than ls.c.
38271 Instead, we'll leave ls.c alone. This undoes today's patch
38272 by Bruno. Add a compile-time warning for 1s-clock resolution;
38273 we've never observed the problem but might as well keep the
38275 * lib/nanosleep.c: Include timespec.h first, for interface check.
38276 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38277 now assume the sys_time module.
38278 * lib/tempname.c: Likewise.
38279 * lib/timespec.h: Likewise.
38280 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38282 * lib/strftime.c: Likewise.
38283 * lib/timespec.h: Likewise.
38284 * lib/posixtm.c: Include posixtm.h first, for interface check.
38285 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38286 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38287 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38288 * lib/sys_time_.h: New file.
38289 * lib/timespec.h (struct timespec): Use long int, not long.
38290 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38291 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38292 Remove obsolescent call to AC_HEADER_TIME.
38293 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38294 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38295 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38296 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38298 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38299 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38300 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38301 into the sys_time module. Check for gettimeofday just once.
38302 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38303 for gettimeofday signature to just check the signature. Merely
38304 compile it, since linking doesn't test signature. Improve test for
38305 whether gettimeofday.o is actually needed.
38306 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38307 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38308 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38309 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38310 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38311 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38312 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38313 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38314 than worrying about sys/time.h.
38315 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38316 Don't bother worrying about TIME_WITH_SYS_TIME.
38317 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38318 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38319 * m4/sys_time_h.m4: New file.
38320 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38321 Don't include sys/time.h. Return from main rather than exiting.
38322 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38324 * modules/gethrxtime (Depends-on): Add sys_time.
38325 * modules/gettime (Depends-on): Likewise.
38326 * modules/gettimeofday (Depends-on): Likewise.
38327 * modules/nanosleep (Depends-on): Likewise.
38328 * modules/settime (Depends-on): Likewise.
38329 * modules/tempname (Depends-on): Likewise.
38330 * modules/utimens (Depends-on): Likewise.
38331 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38332 (Include:) Change back to <sys/time.h>.
38333 (Maintainer:) Add self.
38334 * modules/sys_time: New file.
38335 * modules/tempname (Depends-on): Add gettimeofday.
38336 * tests/test-gettimeofday.c: Include <sys/time.h>
38337 rather than gettimeofday.h.
38339 2007-01-17 Bruno Haible <bruno@clisp.org>
38341 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38342 the license default to GPL.
38343 (func_create_testdir): Don't complain if a module is LGPL and its
38344 tests module depends on GPLed modules.
38346 2007-01-17 Bruno Haible <bruno@clisp.org>
38348 * lib/gettimeofday.c (gettimeofday): Add code for the case
38349 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38350 maximum possible value for tv->tv_usec, rather than the minimum one.
38352 2005-10-08 Martin Lambers <marlam@marlam.de>
38353 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38354 2007-01-16 Bruno Haible <bruno@clisp.org>
38356 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38357 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38358 gl_FUNC_GETTIMEOFDAY.
38359 (Include): Add gettimeofday.h.
38360 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38361 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38362 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38363 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38364 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38365 * lib/gettimeofday.h: New file.
38366 * lib/gettimeofday.c: Include <sys/timeb.h>.
38367 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38368 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38369 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38370 fall back on time().
38372 * tests/test-gettimeofday.c: New file.
38373 * modules/gettimeofday-tests: New file.
38375 2007-01-16 Eric Blake <ebb9@byu.net>
38377 * modules/fnmatch (Depends-on): Depend on wchar.
38378 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38379 * m4/fnmatch.m4: Likewise.
38380 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38381 * m4/mbchar.m4: Likewise.
38382 * modules/mbswidth (Depends-on): Depend on wchar.
38383 * lib/mbswidth.c: Assume <wchar.h>.
38384 * m4/mbswidth.m4: Likewise.
38385 * modules/quotearg (Depends-on): Depend on wchar.
38386 * lib/quotearg.c: Assume <wchar.h>.
38387 * m4/quotearg.m4: Likewise.
38388 * modules/regex (Depends-on): Depend on wchar.
38389 * lib/regex_internal.h: Assume <wchar.h>.
38390 * m4/regex.m4: Likewise.
38391 * modules/stdint (Depends-on): Depend on wchar.
38392 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38393 * m4/stdint.m4: Likewise.
38394 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38395 * modules/strftime (Depends-on): Depend on wchar.
38396 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38397 * modules/strtol (Depends-on): Depend on wchar.
38398 * lib/strtol.c: Assume <wchar.h>.
38399 * modules/wcwidth (Depends-on): Depend on wchar.
38400 * lib/wcwidth.h: Assume <wchar.h>.
38401 * m4/wcwidth.m4: Likewise.
38403 2007-01-16 Bruno Haible <bruno@clisp.org>
38405 * modules/csharpexec-script: New, created from...
38406 * modules/csharpexec: ... this.
38408 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38410 * modules/javaexec-script: New, created from...
38411 * modules/javaexec: ... this.
38413 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38415 * modules/poll (Dependencies): Add sys_select.
38417 2007-01-15 Jim Meyering <jim@meyering.net>
38419 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38420 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38421 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38422 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38424 2007-01-15 Bruno Haible <bruno@clisp.org>
38426 * modules/striconveh: New file.
38427 * lib/striconveh.h: New file.
38428 * lib/striconveh.c: New file.
38429 * MODULES.html.sh (Internationalization functions): Add striconveh.
38431 * modules/striconveh-tests: New file.
38432 * tests/test-striconveh.c: New file.
38434 2007-01-15 Bruno Haible <bruno@clisp.org>
38436 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38437 not from GNU libiconv or GNU libc.
38439 2007-01-15 Bruno Haible <bruno@clisp.org>
38441 * doc/gnulib-intro.texi (Copyright): Explain the different license
38442 terms for module descriptions, autoconf macros, tests, documentation.
38444 2007-01-14 Bruno Haible <bruno@clisp.org>
38446 * modules/striconv-tests: New file.
38447 * tests/test-striconv.c: New file.
38449 2007-01-14 Bruno Haible <bruno@clisp.org>
38451 * modules/iconv-tests: New file.
38452 * tests/test-iconv.c: New file.
38454 2007-01-14 Bruno Haible <bruno@clisp.org>
38456 * gnulib-tool (func_get_license): For test modules, use the license of
38459 2007-01-14 Bruno Haible <bruno@clisp.org>
38461 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38462 if iconv is found to exist.
38464 2007-01-14 Bruno Haible <bruno@clisp.org>
38466 * modules/c-ctype-tests: New file.
38467 * tests/test-c-ctype.c: New file.
38469 2007-01-14 Bruno Haible <bruno@clisp.org>
38471 * modules/binary-io-tests: New file.
38472 * tests/test-binary-io.sh: New file.
38473 * tests/test-binary-io.c: New file.
38475 2007-01-14 Bruno Haible <bruno@clisp.org>
38477 * modules/array-oset-tests: New file.
38478 * tests/test-array_oset.c: New file.
38480 2007-01-14 Bruno Haible <bruno@clisp.org>
38482 * modules/array-list-tests: New file.
38483 * tests/test-array_list.c: New file.
38485 2007-01-14 Bruno Haible <bruno@clisp.org>
38487 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38489 Reported by Simon Josefsson in
38490 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38492 2007-01-14 Bruno Haible <bruno@clisp.org>
38494 * modules/allocsa-tests: New file.
38495 * tests/test-allocsa.c: New file.
38497 2007-01-14 Bruno Haible <bruno@clisp.org>
38499 * modules/fchdir (Depends-on): Add absolute-header.
38500 * modules/unistd (Depends-on): Likewise.
38502 2006-12-30 Bruno Haible <bruno@clisp.org>
38504 * modules/fchdir: New file.
38505 * modules/unistd (Files): Add lib/unistd_.h.
38506 (Makefile.am): Generate unistd.h from unistd_.h.
38507 * lib/fchdir.c: New file.
38508 * lib/dirent_.h: New file.
38509 * lib/unistd_.h: New file.
38510 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38511 * m4/fchdir.m4: New file.
38512 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38513 (gl_HEADER_UNISTD): Invoke it.
38514 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38516 * lib/backupfile.c (opendir, closedir): Undefine.
38517 * lib/chown.c (open, close): Undefine.
38518 * lib/clean-temp.c (open, close): Undefine.
38519 * lib/copy-file.c (open, close): Undefine.
38520 * lib/execute.c (open, close): Undefine.
38521 * lib/fsusage.c (open, close): Undefine.
38522 * lib/gc-gnulib.c (open, close): Undefine.
38523 * lib/getcwd.c (opendir, closedir): Undefine.
38524 * lib/glob.c (opendir, closedir): Undefine.
38525 * lib/javacomp.c (open, close): Undefine.
38526 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38527 * lib/openat-proc.c (open, close): Undefine.
38528 * lib/pagealign_alloc.c (open, close): Undefine.
38529 * lib/pipe.c (open, close): Undefine.
38530 * lib/progreloc.c (open, close): Undefine.
38531 * lib/savedir.c (opendir, closedir): Undefine.
38532 * lib/utime.c (open, close): Undefine.
38533 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38535 2007-01-10 Bruno Haible <bruno@clisp.org>
38537 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38539 2007-01-12 Eric Blake <ebb9@byu.net>
38541 Provide a robust <wchar.h>. Further simplifications are now
38542 possible in other modules, but not included here.
38543 * modules/wchar: New module.
38544 * m4/wchar.m4: New file.
38545 * lib/wchar_.h: Likewise.
38546 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38548 * MODULES.html.sh (Extended multibyte and wide character utilities):
38551 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38553 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38554 to a reasonable default for memory allocation.
38555 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38556 file system that reports garbage st_size values for symlinks.
38557 Problem reported by Liyang Hu.
38559 2007-01-11 Simon Josefsson <simon@josefsson.org>
38561 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38562 Emacs .#* auto-save files).
38564 2007-01-11 Bruno Haible <bruno@clisp.org>
38566 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38569 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38571 Use @...@ consistently in lib/wctype_.h.
38572 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38573 on it being set to 1 or 0.
38574 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38575 go back to AC_SUBSTing it.
38576 * modules/wctype (Makefile.am): Undo previous change.
38578 2007-01-10 Eric Blake <ebb9@byu.net>
38580 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38581 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38582 * modules/wctype (Makefile.am): Likewise.
38583 Reported by Chris McGuire.
38585 2007-01-10 Jim Meyering <jim@meyering.net>
38587 fts.c: a small readability/maintainability improvement
38588 * lib/fts.c (fts_read): Make this code slightly more readable and
38589 maintainable by hoisting the "sp->fts_cur = p" assignments to
38590 immediately follow the statements that set P. Derived from
38591 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38593 2007-01-10 Eric Blake <ebb9@byu.net>
38595 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38596 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38597 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38598 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38599 Reported by Chris McGuire.
38601 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38603 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38606 2007-01-09 Bruno Haible <bruno@clisp.org>
38608 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38609 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38611 (func_module): Use them.
38613 2007-01-09 Bruno Haible <bruno@clisp.org>
38615 * modules/unistr/base: New file.
38616 * lib/unistr.h: New file.
38618 * modules/unistr/u8-to-u16: New file.
38619 * lib/unistr/u8-to-u16.c: New file.
38621 * modules/unistr/u8-to-u32: New file.
38622 * lib/unistr/u8-to-u32.c: New file.
38624 * modules/unistr/u16-to-u8: New file.
38625 * lib/unistr/u16-to-u8.c: New file.
38627 * modules/unistr/u16-to-u32: New file.
38628 * lib/unistr/u16-to-u32.c: New file.
38630 * modules/unistr/u32-to-u8: New file.
38631 * lib/unistr/u32-to-u8.c: New file.
38633 * modules/unistr/u32-to-u16: New file.
38634 * lib/unistr/u32-to-u16.c: New file.
38636 * modules/unistr/u8-check: New file.
38637 * modules/unistr/u16-check: New file.
38638 * modules/unistr/u32-check: New file.
38639 * lib/unistr/u8-check.c: New file.
38640 * lib/unistr/u16-check.c: New file.
38641 * lib/unistr/u32-check.c: New file.
38643 * modules/unistr/u8-chr: New file.
38644 * modules/unistr/u16-chr: New file.
38645 * modules/unistr/u32-chr: New file.
38646 * lib/unistr/u8-chr.c: New file.
38647 * lib/unistr/u16-chr.c: New file.
38648 * lib/unistr/u32-chr.c: New file.
38650 * modules/unistr/u8-cmp: New file.
38651 * modules/unistr/u16-cmp: New file.
38652 * modules/unistr/u32-cmp: New file.
38653 * lib/unistr/u8-cmp.c: New file.
38654 * lib/unistr/u16-cmp.c: New file.
38655 * lib/unistr/u32-cmp.c: New file.
38657 * modules/unistr/u8-cpy: New file.
38658 * modules/unistr/u16-cpy: New file.
38659 * modules/unistr/u32-cpy: New file.
38660 * lib/unistr/u8-cpy.c: New file.
38661 * lib/unistr/u16-cpy.c: New file.
38662 * lib/unistr/u32-cpy.c: New file.
38663 * lib/unistr/u-cpy.h: New file.
38665 * modules/unistr/u8-cpy-alloc: New file.
38666 * modules/unistr/u16-cpy-alloc: New file.
38667 * modules/unistr/u32-cpy-alloc: New file.
38668 * lib/unistr/u8-cpy-alloc.c: New file.
38669 * lib/unistr/u16-cpy-alloc.c: New file.
38670 * lib/unistr/u32-cpy-alloc.c: New file.
38671 * lib/unistr/u-cpy-alloc.h: New file.
38673 * modules/unistr/u8-endswith: New file.
38674 * modules/unistr/u16-endswith: New file.
38675 * modules/unistr/u32-endswith: New file.
38676 * lib/unistr/u8-endswith.c: New file.
38677 * lib/unistr/u16-endswith.c: New file.
38678 * lib/unistr/u32-endswith.c: New file.
38679 * lib/unistr/u-endswith.h: New file.
38681 * modules/unistr/u8-mblen: New file.
38682 * modules/unistr/u16-mblen: New file.
38683 * modules/unistr/u32-mblen: New file.
38684 * lib/unistr/u8-mblen.c: New file.
38685 * lib/unistr/u16-mblen.c: New file.
38686 * lib/unistr/u32-mblen.c: New file.
38688 * modules/unistr/u8-mbtouc: New file.
38689 * modules/unistr/u16-mbtouc: New file.
38690 * modules/unistr/u32-mbtouc: New file.
38691 * lib/unistr/u8-mbtouc.c: New file.
38692 * lib/unistr/u16-mbtouc.c: New file.
38693 * lib/unistr/u32-mbtouc.c: New file.
38695 * modules/unistr/u8-mbtouc-safe: New file.
38696 * modules/unistr/u16-mbtouc-safe: New file.
38697 * modules/unistr/u32-mbtouc-safe: New file.
38698 * lib/unistr/u8-mbtouc-safe.c: New file.
38699 * lib/unistr/u16-mbtouc-safe.c: New file.
38700 * lib/unistr/u32-mbtouc-safe.c: New file.
38702 * modules/unistr/u8-move: New file.
38703 * modules/unistr/u16-move: New file.
38704 * modules/unistr/u32-move: New file.
38705 * lib/unistr/u8-move.c: New file.
38706 * lib/unistr/u16-move.c: New file.
38707 * lib/unistr/u32-move.c: New file.
38708 * lib/unistr/u-move.h: New file.
38710 * modules/unistr/u8-next: New file.
38711 * modules/unistr/u16-next: New file.
38712 * modules/unistr/u32-next: New file.
38713 * lib/unistr/u8-next.c: New file.
38714 * lib/unistr/u16-next.c: New file.
38715 * lib/unistr/u32-next.c: New file.
38717 * modules/unistr/u8-prev: New file.
38718 * modules/unistr/u16-prev: New file.
38719 * modules/unistr/u32-prev: New file.
38720 * lib/unistr/u8-prev.c: New file.
38721 * lib/unistr/u16-prev.c: New file.
38722 * lib/unistr/u32-prev.c: New file.
38724 * modules/unistr/u8-set: New file.
38725 * modules/unistr/u16-set: New file.
38726 * modules/unistr/u32-set: New file.
38727 * lib/unistr/u8-set.c: New file.
38728 * lib/unistr/u16-set.c: New file.
38729 * lib/unistr/u32-set.c: New file.
38730 * lib/unistr/u-set.h: New file.
38732 * modules/unistr/u8-startswith: New file.
38733 * modules/unistr/u16-startswith: New file.
38734 * modules/unistr/u32-startswith: New file.
38735 * lib/unistr/u8-startswith.c: New file.
38736 * lib/unistr/u16-startswith.c: New file.
38737 * lib/unistr/u32-startswith.c: New file.
38738 * lib/unistr/u-startswith.h: New file.
38740 * modules/unistr/u8-stpcpy: New file.
38741 * modules/unistr/u16-stpcpy: New file.
38742 * modules/unistr/u32-stpcpy: New file.
38743 * lib/unistr/u8-stpcpy.c: New file.
38744 * lib/unistr/u16-stpcpy.c: New file.
38745 * lib/unistr/u32-stpcpy.c: New file.
38746 * lib/unistr/u-stpcpy.h: New file.
38748 * modules/unistr/u8-stpncpy: New file.
38749 * modules/unistr/u16-stpncpy: New file.
38750 * modules/unistr/u32-stpncpy: New file.
38751 * lib/unistr/u8-stpncpy.c: New file.
38752 * lib/unistr/u16-stpncpy.c: New file.
38753 * lib/unistr/u32-stpncpy.c: New file.
38754 * lib/unistr/u-stpncpy.h: New file.
38756 * modules/unistr/u8-strcat: New file.
38757 * modules/unistr/u16-strcat: New file.
38758 * modules/unistr/u32-strcat: New file.
38759 * lib/unistr/u8-strcat.c: New file.
38760 * lib/unistr/u16-strcat.c: New file.
38761 * lib/unistr/u32-strcat.c: New file.
38762 * lib/unistr/u-strcat.h: New file.
38764 * modules/unistr/u8-strchr: New file.
38765 * modules/unistr/u16-strchr: New file.
38766 * modules/unistr/u32-strchr: New file.
38767 * lib/unistr/u8-strchr.c: New file.
38768 * lib/unistr/u16-strchr.c: New file.
38769 * lib/unistr/u32-strchr.c: New file.
38771 * modules/unistr/u8-strcmp: New file.
38772 * modules/unistr/u16-strcmp: New file.
38773 * modules/unistr/u32-strcmp: New file.
38774 * lib/unistr/u8-strcmp.c: New file.
38775 * lib/unistr/u16-strcmp.c: New file.
38776 * lib/unistr/u32-strcmp.c: New file.
38778 * modules/unistr/u8-strcpy: New file.
38779 * modules/unistr/u16-strcpy: New file.
38780 * modules/unistr/u32-strcpy: New file.
38781 * lib/unistr/u8-strcpy.c: New file.
38782 * lib/unistr/u16-strcpy.c: New file.
38783 * lib/unistr/u32-strcpy.c: New file.
38784 * lib/unistr/u-strcpy.h: New file.
38786 * modules/unistr/u8-strcspn: New file.
38787 * modules/unistr/u16-strcspn: New file.
38788 * modules/unistr/u32-strcspn: New file.
38789 * lib/unistr/u8-strcspn.c: New file.
38790 * lib/unistr/u16-strcspn.c: New file.
38791 * lib/unistr/u32-strcspn.c: New file.
38792 * lib/unistr/u-strcspn.h: New file.
38794 * modules/unistr/u8-strdup: New file.
38795 * modules/unistr/u16-strdup: New file.
38796 * modules/unistr/u32-strdup: New file.
38797 * lib/unistr/u8-strdup.c: New file.
38798 * lib/unistr/u16-strdup.c: New file.
38799 * lib/unistr/u32-strdup.c: New file.
38800 * lib/unistr/u-strdup.h: New file.
38802 * modules/unistr/u8-strlen: New file.
38803 * modules/unistr/u16-strlen: New file.
38804 * modules/unistr/u32-strlen: New file.
38805 * lib/unistr/u8-strlen.c: New file.
38806 * lib/unistr/u16-strlen.c: New file.
38807 * lib/unistr/u32-strlen.c: New file.
38808 * lib/unistr/u-strlen.h: New file.
38810 * modules/unistr/u8-strmblen: New file.
38811 * modules/unistr/u16-strmblen: New file.
38812 * modules/unistr/u32-strmblen: New file.
38813 * lib/unistr/u8-strmblen.c: New file.
38814 * lib/unistr/u16-strmblen.c: New file.
38815 * lib/unistr/u32-strmblen.c: New file.
38817 * modules/unistr/u8-strmbtouc: New file.
38818 * modules/unistr/u16-strmbtouc: New file.
38819 * modules/unistr/u32-strmbtouc: New file.
38820 * lib/unistr/u8-strmbtouc.c: New file.
38821 * lib/unistr/u16-strmbtouc.c: New file.
38822 * lib/unistr/u32-strmbtouc.c: New file.
38824 * modules/unistr/u8-strncat: New file.
38825 * modules/unistr/u16-strncat: New file.
38826 * modules/unistr/u32-strncat: New file.
38827 * lib/unistr/u8-strncat.c: New file.
38828 * lib/unistr/u16-strncat.c: New file.
38829 * lib/unistr/u32-strncat.c: New file.
38830 * lib/unistr/u-strncat.h: New file.
38832 * modules/unistr/u8-strncmp: New file.
38833 * modules/unistr/u16-strncmp: New file.
38834 * modules/unistr/u32-strncmp: New file.
38835 * lib/unistr/u8-strncmp.c: New file.
38836 * lib/unistr/u16-strncmp.c: New file.
38837 * lib/unistr/u32-strncmp.c: New file.
38839 * modules/unistr/u8-strncpy: New file.
38840 * modules/unistr/u16-strncpy: New file.
38841 * modules/unistr/u32-strncpy: New file.
38842 * lib/unistr/u8-strncpy.c: New file.
38843 * lib/unistr/u16-strncpy.c: New file.
38844 * lib/unistr/u32-strncpy.c: New file.
38845 * lib/unistr/u-strncpy.h: New file.
38847 * modules/unistr/u8-strnlen: New file.
38848 * modules/unistr/u16-strnlen: New file.
38849 * modules/unistr/u32-strnlen: New file.
38850 * lib/unistr/u8-strnlen.c: New file.
38851 * lib/unistr/u16-strnlen.c: New file.
38852 * lib/unistr/u32-strnlen.c: New file.
38853 * lib/unistr/u-strnlen.h: New file.
38855 * modules/unistr/u8-strpbrk: New file.
38856 * modules/unistr/u16-strpbrk: New file.
38857 * modules/unistr/u32-strpbrk: New file.
38858 * lib/unistr/u8-strpbrk.c: New file.
38859 * lib/unistr/u16-strpbrk.c: New file.
38860 * lib/unistr/u32-strpbrk.c: New file.
38861 * lib/unistr/u-strpbrk.h: New file.
38863 * modules/unistr/u8-strrchr: New file.
38864 * modules/unistr/u16-strrchr: New file.
38865 * modules/unistr/u32-strrchr: New file.
38866 * lib/unistr/u8-strrchr.c: New file.
38867 * lib/unistr/u16-strrchr.c: New file.
38868 * lib/unistr/u32-strrchr.c: New file.
38870 * modules/unistr/u8-strspn: New file.
38871 * modules/unistr/u16-strspn: New file.
38872 * modules/unistr/u32-strspn: New file.
38873 * lib/unistr/u8-strspn.c: New file.
38874 * lib/unistr/u16-strspn.c: New file.
38875 * lib/unistr/u32-strspn.c: New file.
38876 * lib/unistr/u-strspn.h: New file.
38878 * modules/unistr/u8-strstr: New file.
38879 * modules/unistr/u16-strstr: New file.
38880 * modules/unistr/u32-strstr: New file.
38881 * lib/unistr/u8-strstr.c: New file.
38882 * lib/unistr/u16-strstr.c: New file.
38883 * lib/unistr/u32-strstr.c: New file.
38884 * lib/unistr/u-strstr.h: New file.
38886 * modules/unistr/u8-strtok: New file.
38887 * modules/unistr/u16-strtok: New file.
38888 * modules/unistr/u32-strtok: New file.
38889 * lib/unistr/u8-strtok.c: New file.
38890 * lib/unistr/u16-strtok.c: New file.
38891 * lib/unistr/u32-strtok.c: New file.
38892 * lib/unistr/u-strtok.h: New file.
38894 * modules/unistr/u8-uctomb: New file.
38895 * modules/unistr/u16-uctomb: New file.
38896 * modules/unistr/u32-uctomb: New file.
38897 * lib/unistr/u8-uctomb.c: New file.
38898 * lib/unistr/u16-uctomb.c: New file.
38899 * lib/unistr/u32-uctomb.c: New file.
38901 * MODULES.html.sh (Unicode string functions): Add the new modules.
38903 2007-01-08 Bruno Haible <bruno@clisp.org>
38905 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38906 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38909 2007-01-08 Karl Berry <karl@gnu.org>
38911 * doc/error.texi: mention that main() fns must set program_name
38912 when progname is used.
38914 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
38916 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38917 WCTYPE_H is empty, for the benefit of builds from non-distclean
38918 directories. Problem reported by Eric Blake in
38919 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38921 2007-01-08 Bruno Haible <bruno@clisp.org>
38923 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38924 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38925 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38926 PROVIDE_CANONICALIZE_FILENAME_MODE.
38927 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38929 2007-01-08 Bruno Haible <bruno@clisp.org>
38931 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38932 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38933 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38934 * lib/fts.c: Likewise.
38935 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38937 2006-12-25 Bruno Haible <bruno@clisp.org>
38939 * modules/utf8-ucs4-safe: New file.
38940 * lib/utf8-ucs4-safe.h: New file.
38941 * lib/unistr/utf8-ucs4-safe.c: New file.
38943 * modules/utf16-ucs4-safe: New file.
38944 * lib/utf16-ucs4-safe.h: New file.
38945 * lib/unistr/utf16-ucs4-safe.c: New file.
38947 * MODULES.html.sh (Unicode string functions): Add the new modules.
38949 2007-01-08 Bruno Haible <bruno@clisp.org>
38951 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38952 (Depends-on): Add unitypes.
38953 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38954 (u8_mbtouc_aux): Move out to separate file.
38955 (u8_mbtouc): Use ucs4_t, uint8_t types.
38956 * lib/unistr/utf8-ucs4.c: New file.
38958 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38959 (Depends-on): Add unitypes.
38960 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38961 (u16_mbtouc_aux): Move out to separate file.
38962 (u16_mbtouc): Use ucs4_t, uint16_t types.
38963 * lib/unistr/utf16-ucs4.c: New file.
38965 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38966 (Depends-on): Add unitypes.
38967 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38968 (u8_uctomb_aux): Move out to separate file.
38969 (u8_uctomb): Use ucs4_t, uint8_t types.
38970 * lib/unistr/ucs4-utf8.c: New file.
38972 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38973 (Depends-on): Add unitypes.
38974 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38975 (u16_uctomb_aux): Move out to separate file.
38976 (u16_uctomb): Use ucs4_t, uint16_t types.
38977 * lib/unistr/ucs4-utf16.c: New file.
38979 2006-12-25 Bruno Haible <bruno@clisp.org>
38981 * modules/unitypes: New file.
38982 * lib/unitypes.h: New file.
38983 * MODULES.html.sh (func_all_modules): New section "Unicode string
38984 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38985 this section. Add unitypes.
38987 2007-01-08 Bruno Haible <bruno@clisp.org>
38989 Avoid variable names that conflict with those from libtool.
38990 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38991 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38992 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38993 library_names_spec to acl_library_names_spec, hardcode_* to
38995 Reported by Ralf Wildenhues.
38997 2007-01-08 Bruno Haible <bruno@clisp.org>
38999 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39001 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39003 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39004 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39006 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39008 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39009 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39010 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39011 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39013 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39015 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39016 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39017 GC_USE_<algorithm>.
39018 * lib/gc-libgcrypt.c: Likewise.
39019 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39020 * modules/gc-arctwo (configure.ac): Likewise.
39021 * modules/gc-des (configure.ac): Likewise.
39022 * modules/gc-hmac-md5 (configure.ac): Likewise.
39023 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39024 * modules/gc-md2 (configure.ac): Likewise.
39025 * modules/gc-md4 (configure.ac): Likewise.
39026 * modules/gc-md5 (configure.ac): Likewise.
39027 * modules/gc-random (configure.ac): Likewise.
39028 * modules/gc-rijndael (configure.ac): Likewise.
39029 * modules/gc-sha1 (configure.ac): Likewise.
39031 2007-01-08 Bruno Haible <bruno@clisp.org>
39033 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39035 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39037 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39039 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39040 * modules/fcntl-safer (configure.ac): Likewise.
39041 * modules/fopen-safer (configure.ac): Likewise.
39042 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39043 GNULIB_FWRITEERROR macro definition.
39045 2007-01-08 Bruno Haible <bruno@clisp.org>
39047 * m4/gnulib-common.m4: New file.
39048 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39049 (func_get_filelist): Add m4/gnulib-common.m4.
39051 2007-01-08 Bruno Haible <bruno@clisp.org>
39053 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39056 2007-01-08 Jim Meyering <jim@meyering.net>
39058 Use a more robust test for a "can't happen" condition.
39059 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39060 narrowed the st_size value. Presuming the "can't happen" condition
39061 is true, that narrowing could conceivably convert an invalid st_size
39062 value into a valid one. Instead, use a change based on Matthew
39063 Woehlke's original patch.
39065 Slight readability improvement: use an assert-like macro
39066 in place of literal "abort ()" uses.
39067 * lib/fts.c (fts_assert): Define.
39068 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39069 Use this macro instead of a bare 'abort'.
39071 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39073 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39074 simply work around them.
39075 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39076 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39077 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39079 Don't bother to define as macros, since the standard doesn't require it.
39080 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39081 longer worry about IRIX 5.3.
39082 (HAVE_WCTYPE_CTMP_BUG): Remove.
39084 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39086 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39087 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39088 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39089 Problems reported by Georg Schwarz for IRIX 5.3.
39091 * gnulib-tool (autoconf_minversion): Take the maximum version number
39092 found, not the minimum. Problem reported by James Youngman.
39094 2007-01-03 Karl Berry <karl@gnu.org>
39096 * doc/error.texi: new file, explaining interaction with progname.
39097 * doc/gnulib.texi: include it. Update copyright.
39099 2007-01-03 Simon Josefsson <simon@josefsson.org>
39101 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39102 AC_CANONICAL_HOST, to improve autobuild outputs.
39104 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39105 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39107 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39108 sockets, server sockets, and other file descriptors. Count errors
39109 to compute the return value. Reorder the code a bit to be easier
39110 to follow. Don't set event bits that were not requested (except
39111 POLLERR and POLLHUP).
39113 2007-01-01 Bruno Haible <bruno@clisp.org>
39115 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39117 2007-01-03 Jim Meyering <jim@meyering.net>
39119 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39121 2007-01-02 Bruno Haible <bruno@clisp.org>
39123 * modules/settime (Include): Require timespec.h.
39124 * modules/nanosleep (Include): Likewise.
39126 2007-01-01 Bruno Haible <bruno@clisp.org>
39128 * gnulib-tool (func_emit_copyright_notice): Bump year.
39129 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39131 2007-01-01 Bruno Haible <bruno@clisp.org>
39133 Improve support for OpenBSD.
39134 * build-aux/config.rpath (libname_spec): Export.
39135 (library_names_spec): New variable. Export.
39136 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39137 library_names_spec from the config.rpath output. Locate shared library
39138 through the name pattern in library_names_spec.
39140 2007-01-01 Eric Blake <ebb9@byu.net>
39142 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39144 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39146 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39147 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39148 assume the C locale, and avoid an "eval" that could cause trouble.
39149 Problem with SORT reported by Bob Proulx.
39151 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39152 Define. Trivial patch from Henning Nielsen Lund, originally
39153 sent to bug-grep@gnu.org today.
39155 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39157 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39158 struct stat. Problem reported by Henning Nielsen Lund.
39159 * lib/acl.c: Include acl.h first, to check interface. Don't
39160 bother to include sys/types.h and sys/stat.h again.
39162 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39164 Import the following change from libc; problem reported by
39167 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39170 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39172 2006-12-28 Jim Meyering <jim@meyering.net>
39174 * build-aux/announce-gen: Do not assume that the package
39175 builds any of tar.gz, tar.bz2, and .xdelta files.
39176 Suggestion from Simon Josefsson.
39178 2006-12-28 Simon Josefsson <simon@josefsson.org>
39180 * modules/announce-gen: New file.
39182 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39184 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39185 handles its gotchas now.
39186 * lib/mbswidth.c: Likewise.
39187 * lib/wcwidth.h: Likewise.
39188 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39189 and iswcntrl; the wctype module does this stuff now.
39190 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39191 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39192 * modules/mbchar (Depends-on): Add wctype.
39193 * modules/mbswidth (Depends-on): Likewise.
39194 * modules/wcwidth (Depends-on): Likewise.
39196 2006-12-27 Eric Blake <ebb9@byu.net>
39198 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39199 module uses more than what <wctype.h> is required to provide.
39201 2006-12-26 Eric Blake <ebb9@byu.net>
39203 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39205 2006-12-26 Eric Blake <ebb9@byu.net>
39207 * modules/absolute-header: New module.
39208 * modules/fcntl (Depends-on): Depend on it.
39209 * modules/inttypes (Depends-on): Likewise.
39210 * modules/stdint (Depends-on): Likewise.
39211 * modules/sys_stat (Depends-on): Likewise.
39212 * modules/wctype (Depends-on): Likewise.
39213 * MODULES.html.sh (Support for building libraries and
39214 executables): Document it.
39216 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39218 * gnulib-tool (SED): Remove, undoing previous change.
39219 The problem was that it broke coreutils on Solaris, because
39220 "sed --posix" leaked into a makefile.
39221 (sed): New alias, if 'alias' and GNU sed.
39223 2006-12-24 Jim Meyering <jim@meyering.net>
39225 Work around an fchownat bug in glibc-2.4:
39226 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39227 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39228 in spite of the -P option.
39229 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39231 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39232 * modules/openat (Files): Add lib/fchownat.c.
39233 * lib/openat.c (fchownat): Don't define here. Move to...
39234 * lib/fchownat.c: ...this new file.
39236 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39238 Fix bug reported by Bruno Haible in
39239 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39240 where quotearg.c didn't compile on Mac OS X 10.2 because it
39241 lacks <wchar.h> and wint_t.
39242 * lib/wctype_.h (__wctype_wint_t): New type.
39243 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39244 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39245 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39246 Arg is now of type __wctype_wint_t, not wint_t.
39247 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39248 substitute HAVE_WINT_T.
39249 * modules/wctype (Files): Add m4/wint_t.m4.
39250 (wctype.h): Substitute HAVE_WINT_T.
39252 2006-12-23 Bruno Haible <bruno@clisp.org>
39254 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39256 2006-12-23 Bruno Haible <bruno@clisp.org>
39258 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39260 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39263 2006-12-22 Bruno Haible <bruno@clisp.org>
39265 * lib/copy-file.c: Include acl.h.
39266 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39267 Close the file descriptors only after being done with copy_acl.
39268 * modules/copy-file (Depends-on): Add acl.
39270 2006-12-22 Bruno Haible <bruno@clisp.org>
39272 * gnulib-tool (SED): New variable.
39273 Use $SED instead of sed everywhere.
39275 2006-12-22 Bruno Haible <bruno@clisp.org>
39277 * modules/no-c++: New file.
39278 * m4/no-c++.m4: New file.
39279 * MODULES.html.sh (Support for building libraries and executables):
39282 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39284 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39285 Include <limits.h>, and use its INT_MAX to rewrite the
39286 j loop so that it does not overflow 'int'. Problem reported by
39288 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39289 Play it safe by shifting left by 1 rather than multiplying by 2,
39290 as GCC is less likely to optimize this away when the value
39291 is signed (when it assumes overflow leads to undefined behavior).
39292 Also, don't assume time_t uses two's complement.
39294 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39296 * MODULES.html.sh: New module wctype.
39297 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39298 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39299 <wctype.h>, since the new wctype module should fix this.
39300 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39301 the wctype module should arrange for it.
39302 * lib/regex_internal.h: Likewise.
39303 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39304 since the wctype module should handle this now.
39305 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39306 * modules/fnmatch (Depends-on): Add wctype.
39307 * modules/quotearg (Depends-on): Likewise.
39308 * modules/regex (Depends-on): Likewise.
39310 2006-12-19 Bruno Haible <bruno@clisp.org>
39312 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39313 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39315 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39317 * modules/savewd (Depends-on): Fix dependency on fcntl.
39319 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39321 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39322 conforms to C99, rather than relying on the user's environment
39323 setting of STDINT_H.
39325 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39326 and Eric Blake <ebb9@byu.net>
39328 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39329 This is more consistent with the other defines here.
39330 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39331 Port to z/OS. Problem reported by Paul Gilmartin.
39332 Change local vars to use gl_ prefix rather than ac_.
39333 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39334 with other defines.
39335 * modules/double-slash-root: New module.
39336 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39337 (Depends-on): Add double-slash-root.
39338 * MODULES.html.sh (File system functions): Mention new module.
39340 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39342 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39343 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39344 This is for the benefit of gzip, which doesn't do i18n.
39346 2006-12-12 Jim Meyering <jim@meyering.net>
39348 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39349 Reported by Andreas Schwab <schwab@suse.de>.
39351 2006-12-12 Bruno Haible <bruno@clisp.org>
39353 Merge these changes.
39354 2006-09-05 Bruno Haible <bruno@clisp.org>
39355 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39356 iconv_alloc succeeded.
39357 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39358 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39359 test for " && dest " at the end - dest is always != NULL there. Call
39360 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39361 with 2xNULL arguments, also to flush the state storage. Handle the
39362 IRIX iconv behaviour. Realloc the final result, to throw away unused
39365 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39367 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39368 and fchmodat unconditionally, since glibc 2.4 has them.
39369 Problem reported by Arkadiusz Miskiewicz.
39371 2006-12-10 Bruno Haible <bruno@clisp.org>
39373 * gnulib-tool (func_import): Show the include files only for those
39374 modules that are copied and specified.
39375 Reported by Karl Berry.
39377 2006-12-08 Jim Meyering <jim@meyering.net>
39379 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39380 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39382 * build-aux/announce-gen: Add two new options, both optional:
39383 --bootstrap-tools=TOOL_LIST
39384 a comma-separated list of tools, e.g.,
39385 autoconf,automake,bison,gnulib
39386 --gnulib-snapshot-date=DATE
39387 if gnulib is in the bootstrap tool list,
39388 then report this as the snapshot date.
39389 If not specified, use the current date/time.
39390 If you specify a date here, be sure it's UTC.
39392 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39394 * tests/test-argp-2.sh: Fix test to match actual output.
39395 (func_compare): Fix sed script to be portable.
39397 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39399 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39400 workaround for this case. It is not autoconfigured now; offhand
39401 it's hard to see how to autoconfigure it.
39403 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39405 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39406 a directory that is about to be chowned. Such a directory's
39407 initial file permissions should permit the owner only and this
39408 should not be changed until after the chown, since the group and
39409 other bits would be incorrect if they granted permission before
39412 Fix porting problem for iswctype reported by Georg Schwarz in:
39413 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39414 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39415 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39416 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39417 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39419 2006-12-03 Jim Meyering <jim@meyering.net>
39421 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39422 p->fts_statp may not yet be defined.
39423 (fts_read): Instead, set it in the caller, once p->fts_statp is
39424 sure to be defined, and corresponds to a top-level directory.
39425 This bug made du -x fail. Here's the coreutils test case:
39426 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39427 Reported by Mike Frysinger.
39429 2006-12-01 Jim Meyering <jim@meyering.net>
39431 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39432 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39433 Reported by Simon Josefsson.
39435 2006-11-30 Jim Meyering <jim@meyering.net>
39437 * m4/warning.m4: Use the all-permissive copyright notice
39438 recommended by RMS (rather than LGPL).
39439 * m4/vararrays.m4: Likewise.
39440 * m4/flexmember.m4: Likewise.
39442 2006-11-29 Bruno Haible <bruno@clisp.org>
39444 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39445 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39447 Reported by Simon Josefsson <simon@josefsson.org>.
39449 2006-11-28 James Youngman <jay@gnu.org>
39451 * README: Advise users that they might find the bug-gnulib@gnu.org
39452 and autotools-announce@gnu.org mailing lists useful.
39454 2006-11-28 Bruno Haible <bruno@clisp.org>
39456 * m4/ptrdiff_max.m4: Remove file.
39458 2006-11-21 Bruno Haible <bruno@clisp.org>
39460 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39462 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39463 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39465 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39466 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39468 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39470 2006-11-28 Jim Meyering <jim@meyering.net>
39472 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39473 warning from "gcc -Wshadow" about shadowing the builtin.
39475 2006-11-27 Bruno Haible <bruno@clisp.org>
39477 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39479 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39481 2006-11-27 Bruno Haible <bruno@clisp.org>
39482 Paul Eggert <eggert@cs.ucla.edu>
39484 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39486 2006-11-26 Bruno Haible <bruno@clisp.org>
39488 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39489 noinst_LTLIBRARIES.
39491 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39492 Bruno Haible <bruno@clisp.org>
39494 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39495 if compiling with "gcc -ansi".
39497 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39499 Fix some incompatibilities with gcc -ansi -pedantic.
39500 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39501 if compiling pedantically with GCC, unless it's C99 or later.
39502 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39503 it mishandles gcc -ansi -pedantic as well.
39504 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39506 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39507 initializers for struct if -pedantic, unless it's C99 or later.
39509 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39511 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39512 Don't close an fd more than once. Identical atimes indicate
39513 success, not failure.
39515 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39517 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39519 2006-11-23 Jim Meyering <jim@meyering.net>
39521 * build-aux/announce-gen: New file. From coreutils.
39523 2006-11-22 Jim Meyering <jim@meyering.net>
39525 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39526 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39527 (fts_read): Use a temporary to narrow the overused st_size member
39528 before using it in a switch statement. Reported by Matthew Woehlke.
39530 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39531 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39533 2006-11-20 Bruno Haible <bruno@clisp.org>
39535 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39536 changequote instead of pairs of brackets.
39537 Reported by Andreas Schwab <schwab@suse.de>.
39539 2006-11-21 Jim Meyering <jim@meyering.net>
39541 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39542 so as to remain compatible with older compilers.
39543 Patch from Michael Deutschmann.
39545 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39547 * MODULES.html.sh (File system functions): Add openat.
39549 * lib/openat.h (rpl_fstatat): New macro, if
39550 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39551 (fstatat): Define to rpl_fstatat under the same conditions,
39552 unless COMPILING_FSTATAT.
39553 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39554 seems to have the bug.
39555 * lib/fstatat.c: New file.
39556 * modules/openat (Files): Add it.
39558 2006-11-20 Bruno Haible <bruno@clisp.org>
39560 * Makefile: New file.
39562 2006-11-20 Jim Meyering <jim@meyering.net>
39564 The beginnings of syntax-related checks for gnulib.
39565 * lib/Makefile: New file.
39566 * lib/t-idcache: New script. Ensure that the two halves of
39567 idcache.c stay in sync.
39569 * lib/idcache.c: Adjust comments in user- and group- portions to
39570 be more accurate, and to be consistent with one another.
39572 2006-11-20 Jim Meyering <jim@meyering.net>
39574 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39575 continue using the flexible array member (thus, this module performs
39576 half as many malloc calls), with the addition that...
39577 (getgroup, getuser): Consistently record a non-match via an empty
39578 "name" string, and map an empty string match to a NULL return value.
39579 * modules/idcache (Depends-on): Re-add flexmember.
39581 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39582 (getuidbyname, getgroup, getgidbyname): Likewise.
39584 Use cleaner syntax: NULL rather than 0.
39585 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39587 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39589 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39590 It mishandled the case where the group was missing.
39591 Problem reported by Greg Schafer.
39592 * modules/idcache: Likewise.
39594 2006-11-18 Jim Meyering <jim@meyering.net>
39596 * check-module (%exempt_header): Add exception for some
39597 conditionally-included headers.
39599 * modules/i-ring (Depends-on): Add verify.
39600 (License): Change to LGPL.
39602 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39604 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39605 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39606 and inttostr.h. Use snprintf rather than uinttostr, so that
39607 LGPLed code doesn't depend on GPLed.
39609 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39611 * modules/inline (License): Change from GPL to LGPL.
39613 2006-11-17 Jim Meyering <jim@meyering.net>
39615 * modules/d-type (License): Switch to LGPL.
39617 2006-11-15 Bruno Haible <bruno@clisp.org>
39619 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39621 2006-11-15 Eric Blake <ebb9@byu.net>
39623 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39624 the module dependency.
39626 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39627 Bruno Haible <bruno@clisp.org>
39629 * gnulib-tool (func_create_testdir): Add license consistency check.
39631 2006-11-15 Eric Blake <ebb9@byu.net>
39633 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39634 random "(cached)" in configure output.
39636 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39638 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39639 test for conforming inttypes.h is both announced and cached.
39641 * MODULES.html.sh (seen_modules, seen_files): New variables.
39642 (func_module): Rewrite to use a few less gnulib-tool and sed
39643 invocations. Avoid a couple of quadratic algorithms for ...
39644 (missed_modules, missed_files): ... these, with ...
39645 (func_append, func_tmpdir): ... these new functions, from
39646 gnulib-tool. Analogously, install traps for cleanup.
39648 * tests/test-gc.c (main): Remove unused variables.
39649 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39651 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39653 * modules/inttostr (License): Change to LGPL.
39655 2006-11-14 Eric Blake <ebb9@byu.net>
39657 * modules/tempname (License): Change to LGPL.
39659 2006-11-14 Eric Blake <ebb9@byu.net>
39661 * doc/functions.texi (Function Portability): *printf functions on
39662 Cygwin now understand all POSIX size specifiers.
39664 2006-11-14 Bruno Haible <bruno@clisp.org>
39666 * modules/c-ctype (License): Change to LGPL.
39668 2006-11-12 Bruno Haible <bruno@clisp.org>
39670 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39671 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39672 for GNOME libraries, for which the include files are installed in
39673 subdirectories of $prefix/include.
39675 2006-11-12 Bruno Haible <bruno@clisp.org>
39677 * m4/lib-link.m4: Require at least autoconf-2.54.
39678 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39679 name to underscores for the --with option.
39681 2006-11-13 Bruno Haible <bruno@clisp.org>
39683 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39684 the tests directory.
39685 Reported by Ralf Wildenhues.
39687 2006-11-13 Bruno Haible <bruno@clisp.org>
39689 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39690 (func_emit_initmacro_end): Undo the override here.
39691 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39692 Works around the famous automake error in coreutils.
39694 2006-11-13 Eric Blake <ebb9@byu.net>
39696 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39697 element, not its node.
39699 2006-11-12 Bruno Haible <bruno@clisp.org>
39701 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39702 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39704 2006-11-12 Bruno Haible <bruno@clisp.org>
39706 * gnulib-tool: New option --local-symlink.
39707 (func_usage): Document it.
39708 (lsymbolic): New variable.
39709 (func_import, func_create_testdir): If --symlink was not specified,
39710 test whether --local-symlink was specified and the file comes from
39711 the local_gnulib_dir.
39713 2006-11-12 Bruno Haible <bruno@clisp.org>
39715 * gnulib-tool (func_ln): New function.
39716 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39718 2006-11-12 Bruno Haible <bruno@clisp.org>
39720 Finish support for source files in subdirectories.
39721 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39722 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39724 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39726 2006-11-12 Bruno Haible <bruno@clisp.org>
39728 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39729 EXTRA_lib_SOURCES augmentation.
39730 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39732 2006-11-12 Jim Meyering <jim@meyering.net>
39734 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39735 file descriptors. This also averts a failure on systems with
39736 native openat support when a traversed directory lacks "x" access.
39737 * lib/fts_.h: Include "i-ring.h"
39738 (struct FTS) [fts_fd_ring]: New member.
39739 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39740 (FCHDIR): Add parentheses.
39741 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39742 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39743 When descending, rather than simply closing the previous
39744 fts_cwd_fd value, push that file descriptor onto the ring.
39745 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39746 (fts_open): Initialize the new fd_ring member.
39747 (fts_close): Clear the ring.
39748 (fts_safe_changedir): When possible, use our new fd_ring to skip
39749 the diropen and fstat and dev/ino comparison that would normally
39750 accompany a virtual `chdir ("..")'.
39752 * modules/fts (Depends-on): Add i-ring.
39753 * modules/i-ring: New module.
39754 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39755 * m4/i-ring.m4: New file.
39757 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39759 * gnulib-tool (func_create_testdir): Fix replacement of
39760 `build-aux' in configure.ac. Run autotools in gltests
39762 (func_create_testdir, func_create_megatestdir, test): There is
39763 no need for '--force' in most autotool invocations in a new
39764 tree. Actually fail the whole test if any of the tools, or the
39765 configure or make stages fail.
39767 Sync from Automake.
39768 * build-aux/gnupload: Revert last change. Add pointer to upload
39769 instructions of the GNU Maintenance Instructions.
39770 Suggestion by Karl Berry.
39772 2006-11-10 Jim Meyering <jim@meyering.net>
39774 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39776 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39778 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39779 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39780 (bind_textdomain_codeset) [! ENABLE_NLS]:
39781 Evaluate all the arguments. That way, callers get compatible behavior
39782 if the arguments have side effects. Also, it avoids some GCC
39783 diagnostics in some cases; Joel E. Denny reported problems when Bison
39784 was configured with --enable-gcc-warnigs.
39786 2006-11-10 Jim Meyering <jim@meyering.net>
39788 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39789 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39792 2006-11-10 Jim Meyering <jim@meyering.net>
39794 * modules/inline: New file/module.
39795 * modules/xalloc (Files): Remove m4/inline.m4.
39796 (Depends-on): Add inline, instead.
39797 * modules/oset: Likewise.
39798 * modules/list: Likewise.
39800 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39802 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39803 Problem reported by Matthew Woehlke.
39805 2006-11-09 Bruno Haible <bruno@clisp.org>
39807 * lib/tempname.c (gen_tempname): Remove variant that invokes
39809 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39812 2006-11-08 Bruno Haible <bruno@clisp.org>
39814 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39815 to 'yes' instead of 'cross-compiling'.
39817 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39819 * lib/quotearg.h (quotearg_free): New decl.
39820 * lib/quotearg.c (quotearg_free): New function.
39821 (slot0, nslots, slotvec0, slotvec):
39822 Now file-scope so that quotearg_free can get at them.
39824 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39826 Sync from Automake.
39827 * build-aux/gnupload: Add missing 'gnu' to example URL.
39828 Report by Karl Berry.
39830 2006-11-08 Bruno Haible <bruno@clisp.org>
39832 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39833 Suggested by Paul Eggert.
39835 2006-11-08 Jim Meyering <jim@meyering.net>
39837 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39838 It's already included if !_LIBC.
39839 (fts_safe_changedir): Add a comment.
39841 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39843 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39844 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39847 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39848 definitions up, to avoid colliding with change below.
39849 (static_inline) [HAVE_INLINE]: New macro.
39850 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39851 Provide extern decls when !HAVE_INLINE. Do not define unless
39852 static_inline is defined, either by us or by xmalloc.c. Use
39853 static_inline rather than static inline.
39854 (XCALLOC): Optimize sizeof(T) = 1 case.
39855 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39857 2006-11-07 Bruno Haible <bruno@clisp.org>
39859 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39860 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39862 * modules/xalloc (Files): Add m4/inline.m4.
39864 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39866 * README: Fix typo.
39867 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39868 (Miscellanous Notes): ...from this.
39870 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39872 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39873 Mention that offsetof should be used instead of sizeof.
39876 2006-11-07 Bruno Haible <bruno@clisp.org>
39878 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39880 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39882 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39883 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39884 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39885 (gl_tree_add_before, gl_tree_add_after):
39886 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39887 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39888 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39889 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39890 (gl_linked_add_after, gl_linked_add_at): Likewise.
39891 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39892 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39893 (gl_tree_add_before, gl_tree_add_after): Likewise.
39894 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39895 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39896 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39898 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39900 * lib/gl_oset.h: Use C comment style, not C++ comment style.
39902 2006-11-06 Bruno Haible <bruno@clisp.org>
39904 * m4/inline.m4: New file.
39905 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39906 * modules/list (Files): Add m4/inline.m4.
39907 * modules/oset (Files): Likewise.
39909 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39911 * lib/idcache.c: Include <stddef.h>, for offsetof.
39912 (struct userid.name): Change from char * to a flexible array member.
39914 * modules/idcache (Depends-on): Add flexmember.
39916 * MODULES.html.sh (Core language properties): New module flexmember.
39917 * modules/flexmember, m4/flexmember.m4: New files.
39919 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39920 inline functions that are identical with the old xnmalloc_inline,
39921 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
39922 that we can avoid some unnecessary integer multiplications and
39923 divisions in the common case where the element size is known at
39925 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39927 (xnboundedmalloc): Remove.
39928 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39929 arguments, for consistency with rest of this header.
39930 (xcharalloc): Rewrite using XNMALLOC.
39931 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39932 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
39933 versions have been moved to lib/xalloc.h and renamed to be the
39934 non-*_inline versions.
39935 (xmalloc, xrealloc): Implement without reference to the xnmalloc
39936 and xnrealloc functions, since those functions are now inline and
39938 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39939 renaming described above.
39940 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39941 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
39942 captures the dependency in AC_C_INLINE.
39944 New module canonicalize-lgpl, proposed by Charles Wilson in
39945 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39946 with a few small changes afterwards.
39947 * MODULES.html.sh (File system functions): New module
39949 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39950 and canonicalize_file_name.
39951 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39952 * modules/canonicalize-lgpl: New files.
39954 2006-11-05 Bruno Haible <bruno@clisp.org>
39956 * gnulib-tool (func_import, func_create_testdir): Create directories
39957 also for files in subdirectories of lib/.
39959 2006-11-05 Bruno Haible <bruno@clisp.org>
39961 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39964 2006-11-03 Bruno Haible <bruno@clisp.org>
39966 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39967 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39968 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39969 (xnboundedmalloc): New inline function.
39970 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39971 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39973 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39975 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39976 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39977 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39979 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39980 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39982 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39983 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39984 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39986 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39987 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39988 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39989 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39990 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39991 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39992 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39994 2006-11-03 Bruno Haible <bruno@clisp.org>
39996 * lib/c-ctype.h [C++]: Define functions without name mangling.
39997 * lib/fwriteerror.h [C++]: Likewise.
39998 * lib/gcd.h [C++]: Likewise.
39999 * lib/linebreak.h [C++]: Likewise.
40001 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40003 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40004 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40005 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40006 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40007 Check for functions and headers just once.
40008 Check for declaration of canonicalize_file_name.
40009 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40011 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40013 * gnulib-tool (func_import): Fix typo in actioncmd.
40015 2006-11-02 Bruno Haible <bruno@clisp.org>
40017 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40018 newline sequence in the Makefile.am snippet as a space, like "make"
40020 Reported by Roger Persson <perrog@gmail.com>.
40022 2006-11-01 Bruno Haible <bruno@clisp.org>
40024 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40025 already declared in <string.h>.
40026 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40028 2006-11-01 Bruno Haible <bruno@clisp.org>
40030 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40031 * lib/strcase.h: Include <string.h>.
40032 (strcasecmp): Define to rpl_strcasecmp here.
40034 2006-11-01 Bruno Haible <bruno@clisp.org>
40036 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40038 2006-11-01 Eric Blake <ebb9@byu.net>
40040 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40042 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40044 2006-10-29 Bruno Haible <bruno@clisp.org>
40046 Make it compile in C++ mode.
40047 * lib/full-write.c (full_rw): Add a cast.
40049 2006-11-01 Bruno Haible <bruno@clisp.org>
40051 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40052 be POSIX compliant.
40053 Reported by Roger Persson <perrog@gmail.com>.
40055 2006-11-01 Eric Blake <ebb9@byu.net>
40057 * lib/getopt_.h: Fix comments.
40059 2006-10-31 Eric Blake <ebb9@byu.net>
40061 * modules/tmpdir (Depends-on): Add sys_stat.
40062 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40063 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40064 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40065 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40068 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40070 Avoid some C++ diagnostics reported by Bruno Haible.
40071 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40073 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40074 (struct slotvec): Move to top level.
40075 (quotearg_n_options): Rewrite to avoid xmalloc.
40076 * lib/xalloc.h (xcharalloc): New function.
40077 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40078 [defined __cplusplus]: Add function template that provides result
40079 type propagation. This part of the change is from Bruno Haible.
40081 2006-10-29 Bruno Haible <bruno@clisp.org>
40083 Make it compile in C++ mode.
40084 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40085 * lib/strnlen1.c (strnlen1): Cast memchr result.
40086 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40087 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40088 (create_temp_dir): Rename local variable 'template'.
40089 (compile_csharp_using_sscli): Add cast.
40090 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40091 * lib/findprog.c (find_in_path): Likewise.
40092 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40093 * lib/wait-process.c (register_slave_subprocess): Likewise.
40095 2006-10-22 Bruno Haible <bruno@clisp.org>
40097 * modules/tsearch: New file.
40098 * lib/tsearch.h: New file.
40099 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40100 * m4/tsearch.m4: New file.
40101 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40103 2006-10-29 Eric Blake <ebb9@byu.net>
40105 * lib/arcfour.c: Assume config.h.
40106 * lib/arctwo.c: Likewise.
40107 * lib/base64.c: Likewise.
40108 * lib/check-version.c: Likewise.
40109 * lib/crc.c: Likewise.
40110 * lib/des.c: Likewise.
40111 * lib/gc-gnulib.c: Likewise.
40112 * lib/gc-libgcrypt.c: Likewise.
40113 * lib/gc-pbkdf2-sha1.c: Likewise.
40114 * lib/getaddrinfo.c: Likewise.
40115 * lib/getdelim.c: Likewise.
40116 * lib/getline.c: Likewise.
40117 * lib/hmac-md5.c: Likewise.
40118 * lib/hmac-sha1.c: Likewise.
40119 * lib/iconvme.c: Likewise.
40120 * lib/md2.c: Likewise.
40121 * lib/md4.c: Likewise.
40122 * lib/memxor.c: Likewise.
40123 * lib/read-file.c: Likewise.
40124 * lib/readline.c: Likewise.
40125 * lib/rijndael-alg-fst.c: Likewise.
40126 * lib/rijndael-api-fst.c: Likewise.
40127 * lib/xgetdomainname.c: Likewise.
40129 2006-10-28 Eric Blake <ebb9@byu.net>
40131 * lib/xstrndup.c: Assume config.h.
40133 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40135 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40136 stat-macros.h is now for our own macros, whereas stat_h is for
40137 macros in the <sys/stat.h> name space.
40138 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40139 (STAT_MACROS_H): Remove.
40140 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40141 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40142 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40143 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40144 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40145 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40146 Move these macros to ...
40147 * lib/stat_.h: here. Don't include stat-macros.h.
40148 * lib/canonicalize.c: Don't include stat-macros.h.
40149 * lib/chown.c: Likewise.
40150 * lib/euidaccess.c: Likewise.
40151 * lib/file-type.c: Likewise.
40152 * lib/filemode.c: Likewise.
40153 * lib/glob.c: Likewise.
40154 * lib/isapipe.c: Likewise.
40155 * lib/lchown.c: Likewise.
40156 * lib/lstat.c: Likewise.
40157 * lib/mkdir-p.c: Likewise.
40158 * lib/rmdir.c: Likewise.
40159 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40160 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40161 unless mkdir isn't declared, to speed up 'configure'.
40162 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40163 would define all the S_* symbols.
40164 * modules/canonicalize (Depends-on):
40165 Depend on sys_stat, not stat-macros.
40166 * modules/chown: Likewise.
40167 * modules/euidaccess: Likewise.
40168 * modules/filemode: Likewise.
40169 * modules/file-type: Likewise.
40170 * modules/glob: Likewise.
40171 * modules/isapipe: Likewise.
40172 * modules/lchown: Likewise.
40173 * modules/lstat: Likewise.
40174 * modules/mkancesdirs: Likewise.
40175 * modules/rmdir: Likewise.
40176 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40177 * modules/modechange: Likewise.
40178 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40179 (configure.ac): Remove gl_STAT_MACROS.
40180 * modules/sys_stat (Depends-on): Remove stat-macros.
40182 2006-10-27 Bruno Haible <bruno@clisp.org>
40184 * m4/signed.m4: Remove file.
40185 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40187 * modules/vasnprintf (Files): Remove m4/signed.m4.
40189 2006-10-27 Bruno Haible <bruno@clisp.org>
40191 Update to GNU gettext 0.16.
40192 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40193 m4/inttypes-h.m4, m4/signed.m4.
40194 * m4/gettext.m4: Update to GNU gettext 0.16.
40195 * m4/intl.m4: New file, from GNU gettext.
40196 * m4/intldir.m4: New file, from GNU gettext.
40197 * config/srclist.txt: Update
40199 2006-10-27 Eric Blake <ebb9@byu.net>
40201 * MODULES.html.sh: Document tempname.
40202 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40204 (Files): Move lib/tempname.c...
40205 * modules/tempname: ...to this new module.
40206 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40207 (gl_PREREQ_TEMPNAME): Move...
40208 * m4/tempname.m4: ...to this new file.
40209 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40210 * modules/sys_stat (Depends-on): Add stat-macros.
40211 * lib/stat_.h (includes): Pick up stat macros.
40212 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40213 if stat macros are broken.
40214 * lib/tempname.c (includes): No need to include "stat-macros.h".
40215 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40216 (direxists, __path_search) [!_LIBC]: Don't compile these in
40217 gnulib; the tmpdir module covers that.
40218 * lib/tempname.h: New file.
40220 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40222 * COPYING: Explain how gnulib-tool converts licence headers.
40223 Almost all wording by Eric Blake.
40225 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40227 * lib/mbchar.h (is_basic_table): Make read-only.
40228 * lib/mbchar.c (is_basic_table): Likewise.
40229 Reported by John Darrington.
40231 2006-10-25 Bruno Haible <bruno@clisp.org>
40233 * lib/progname.h (set_program_name): Undefine before defining.
40235 2006-10-25 Bruno Haible <bruno@clisp.org>
40237 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40238 false for non-gcc C++ compilers.
40239 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40241 2006-10-24 Bruno Haible <bruno@clisp.org>
40243 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40244 iconv implementations like Irix iconv.
40246 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40248 * modules/vararrays: New file.
40249 * m4/vararrays.m4: New file, taken from diffutils.
40250 * MODULES.html.sh: New module vararrays.
40252 2006-10-24 Karl Berry <karl@gnu.org>
40254 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40255 Don't call GNU Unix.
40257 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40259 * users.txt: Add Libtool.
40263 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40265 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40266 to gnulib's policy of including config.h unconditionally.
40268 2006-10-24 Bruno Haible <bruno@clisp.org>
40270 * modules/wcwidth (Files): Add m4/wint_t.m4.
40271 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40272 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40274 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40276 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40277 to pacify GCC with some -W flags enabled. Problem reported by
40280 2006-10-24 Jim Meyering <jim@meyering.net>
40282 * MODULES.html.sh: Remove uinttostr. It's not a module.
40283 Reported by Karl Berry.
40285 2006-10-23 Bruno Haible <bruno@clisp.org>
40287 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40289 2006-10-24 Bruno Haible <bruno@clisp.org>
40291 * lib/gl_list.h: Use C comment style, not C++ comment style.
40293 2006-10-23 Eric Blake <ebb9@byu.net>
40295 * lib/getaddrinfo.c (includes): Add missing include.
40297 2006-10-23 Bruno Haible <bruno@clisp.org>
40298 Paul Eggert <eggert@cs.ucla.edu>
40300 Ability to rename obstack_free.
40301 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40303 (obstack_free): Invoke the __obstack_free macro.
40304 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40306 2006-10-23 Bruno Haible <bruno@clisp.org>
40307 Paul Eggert <eggert@cs.ucla.edu>
40309 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40310 __argc, __argv from the declaration. (They are defined as macros on
40313 2006-10-22 Bruno Haible <bruno@clisp.org>
40315 * doc/gnulib-intro.texi: New file.
40316 * doc/gnulib.texi: Include it.
40318 2006-10-21 Bruno Haible <bruno@clisp.org>
40320 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40321 "Introduction", "Miscellanous Notes", "Particular Modules".
40323 2006-10-21 Bruno Haible <bruno@clisp.org>
40325 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40326 Change mostlyclean-local rule to avoid sh syntax error from bash
40327 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40329 2006-10-23 Jim Meyering <jim@meyering.net>
40331 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40332 in place of snprintf.
40334 * modules/inttostr (Files): Add lib/uinttostr.c.
40335 * lib/uinttostr.c (inttostr): New file/function.
40336 * lib/inttostr.h (uinttostr): Declare.
40337 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40338 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40340 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40342 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40344 * lib/canonicalize.c (ELOOP): Define if not already defined.
40345 Problem reported by Bruno Haible in
40346 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40348 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40350 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40351 Problem reported by Perry Smith and Ville Laurikari.
40353 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40356 2006-10-19 Bruno Haible <bruno@clisp.org>
40358 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40361 2006-10-19 Bruno Haible <bruno@clisp.org>
40363 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40366 2006-10-19 Bruno Haible <bruno@clisp.org>
40368 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40370 2006-10-19 Bruno Haible <bruno@clisp.org>
40372 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40375 2006-10-19 Bruno Haible <bruno@clisp.org>
40377 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40380 2006-10-19 Bruno Haible <bruno@clisp.org>
40382 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40383 mountlist by default.
40385 2006-10-16 Bruno Haible <bruno@clisp.org>
40387 * lib/c-strstr.c: Include c-strstr.h.
40389 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40391 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40394 2006-10-18 Bruno Haible <bruno@clisp.org>
40396 * lib/lock.h [C++]: Wrap definitions in extern "C".
40398 2006-10-18 Bruno Haible <bruno@clisp.org>
40400 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40403 2006-10-18 Bruno Haible <bruno@clisp.org>
40405 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40407 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40409 * lib/xstrtol.h: Include gettext.h.
40410 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40411 Problem reported by Eric Blake.
40412 * modules/xstrtol (Depends-on): Add gettext-h.
40414 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40416 * lib/strftime.c (advance): New macro.
40417 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40418 incomplete type, so you can't add 0 to it. Problem and patch
40419 reported by Eelco Dolstra for dietlibc.
40421 2006-10-18 Jim Meyering <jim@meyering.net>
40423 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40424 type for a local, and rename it: s/up/user_proc/.
40426 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40428 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40429 READ_UTMP_USER_PROCESS.
40430 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40432 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40434 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40435 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40437 2006-10-17 Eric Blake <ebb9@byu.net>
40439 * lib/sigprocmask.c (sigprocmask): Fix typo.
40441 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40443 * modules/clean-temp (Makefile.am): Don't add to make output...
40444 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40447 2006-10-17 Bruno Haible <bruno@clisp.org>
40449 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40450 differently if DEFAULT_TEXT_DOMAIN is set.
40452 2006-10-16 Bruno Haible <bruno@clisp.org>
40454 * lib/clean-temp.c: Include fwriteerror.h.
40456 2006-10-16 Bruno Haible <bruno@clisp.org>
40458 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40460 2006-10-16 Bruno Haible <bruno@clisp.org>
40462 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40463 * lib/sigprocmask.h: Include <sys/types.h>.
40464 (sigset_t): Use the system's definition if present.
40466 2006-10-17 Eric Blake <ebb9@byu.net>
40468 * lib/xvasprintf.c (includes): Assume config.h.
40469 * lib/xasprintf.c (includes): Likewise.
40471 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40473 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40474 at least as wide as intmax_t.
40476 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40478 (Imported from Automake.)
40479 * build-aux/gnupload: Update to version 1.1 of directive file.
40481 2006-10-16 Eric Blake <ebb9@byu.net>
40483 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40484 match Automake 1.10a.
40486 2006-10-14 Bruno Haible <bruno@clisp.org>
40488 * modules/sigprocmask: New file.
40489 * lib/sigprocmask.h: New file.
40490 * lib/sigprocmask.c: New file.
40491 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40492 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40493 request sigprocmask.o.
40494 (gl_PREREQ_SIGPROCMASK): New macro.
40495 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40496 (Depends-on): Add sigprocmask.
40497 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40498 gt_SIGNALBLOCKING. Test for 'raise' only once.
40499 * lib/fatal-signal.c: Include sigprocmask.h.
40500 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40501 unblock_fatal_signals): Define always.
40502 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40505 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40507 Sync from Automake.
40508 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40509 which incorrectly sets the mode of an existing destination
40510 directory. In some cases the unpatched install-sh could do the
40511 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40512 system. We hope this is rare in practice, but it's clearly worth
40513 fixing. Problem reported by Alex Unleashed in
40514 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40515 Also, don't bother to check for -m bugs unless we're using -m;
40516 suggested by Stepan Kasal.
40518 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40520 Sync from Automake.
40521 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40522 `-c' flag, so they appear at the same position as in %FASTDEP%
40523 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40524 which ignores unknown options only after the first non-option.
40525 Bug report against M4 by Nelson H. F. Beebe.
40527 2006-10-13 Jim Meyering <jim@meyering.net>
40529 Fix a bug in yesterday's change.
40530 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40531 p->fts_statp->st_dev would be used uninitialized.
40532 Ensures that we always call fts_stat on the very first entry.
40533 Miklos Szeredi reported that find -xdev stopped working.
40535 2006-10-12 Bruno Haible <bruno@clisp.org>
40537 * gnulib-tool (func_get_automake_snippet): Append an automatically
40538 computed EXTRA_DIST augmentation.
40539 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40540 * modules/alloca-opt (Makefile.am): Likewise.
40541 * modules/allocsa (Makefile.am): Likewise.
40542 * modules/arcfour (Makefile.am): Likewise.
40543 * modules/arctwo (Makefile.am): Likewise.
40544 * modules/argmatch (Makefile.am): Likewise.
40545 * modules/argz (Makefile.am): Likewise.
40546 * modules/atexit (Makefile.am): Likewise.
40547 * modules/backupfile (Makefile.am): Likewise.
40548 * modules/byteswap (Makefile.am): Likewise.
40549 * modules/c-strtod (Makefile.am): Likewise.
40550 * modules/c-strtold (Makefile.am): Likewise.
40551 * modules/calloc (Makefile.am): Likewise.
40552 * modules/canon-host (Makefile.am): Likewise.
40553 * modules/canonicalize (Makefile.am): Likewise.
40554 * modules/chdir-long (Makefile.am): Likewise.
40555 * modules/chdir-safer (Makefile.am): Likewise.
40556 * modules/check-version (Makefile.am): Likewise.
40557 * modules/chown (Makefile.am): Likewise.
40558 * modules/cloexec (Makefile.am): Likewise.
40559 * modules/close-stream (Makefile.am): Likewise.
40560 * modules/closeout (Makefile.am): Likewise.
40561 * modules/crc (Makefile.am): Likewise.
40562 * modules/csharpexec (Makefile.am): Likewise.
40563 * modules/cycle-check (Makefile.am): Likewise.
40564 * modules/des (Makefile.am): Likewise.
40565 * modules/dev-ino (Makefile.am): Likewise.
40566 * modules/dirfd (Makefile.am): Likewise.
40567 * modules/dirname (Makefile.am): Likewise.
40568 * modules/dup2 (Makefile.am): Likewise.
40569 * modules/eealloc (Makefile.am): Likewise.
40570 * modules/error (Makefile.am): Likewise.
40571 * modules/euidaccess (Makefile.am): Likewise.
40572 * modules/exclude (Makefile.am): Likewise.
40573 * modules/exitfail (Makefile.am): Likewise.
40574 * modules/fcntl-safer (Makefile.am): Likewise.
40575 * modules/fcntl (Makefile.am): Likewise.
40576 * modules/file-type (Makefile.am): Likewise.
40577 * modules/fileblocks (Makefile.am): Likewise.
40578 * modules/filemode (Makefile.am): Likewise.
40579 * modules/filenamecat (Makefile.am): Likewise.
40580 * modules/fnmatch (Makefile.am): Likewise.
40581 * modules/fopen-safer (Makefile.am): Likewise.
40582 * modules/fpending (Makefile.am): Likewise.
40583 * modules/fprintftime (Makefile.am): Likewise.
40584 * modules/free (Makefile.am): Likewise.
40585 * modules/fsusage (Makefile.am): Likewise.
40586 * modules/ftruncate (Makefile.am): Likewise.
40587 * modules/fts (Makefile.am): Likewise.
40588 * modules/gc-arcfour (Makefile.am): Likewise.
40589 * modules/gc-des (Makefile.am): Likewise.
40590 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40591 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40592 * modules/gc-md4 (Makefile.am): Likewise.
40593 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40594 * modules/gc-sha1 (Makefile.am): Likewise.
40595 * modules/gc (Makefile.am): Likewise.
40596 * modules/getaddrinfo (Makefile.am): Likewise.
40597 * modules/getcwd (Makefile.am): Likewise.
40598 * modules/getdelim (Makefile.am): Likewise.
40599 * modules/getdomainname (Makefile.am): Likewise.
40600 * modules/getgroups (Makefile.am): Likewise.
40601 * modules/gethostname (Makefile.am): Likewise.
40602 * modules/gethrxtime (Makefile.am): Likewise.
40603 * modules/getline (Makefile.am): Likewise.
40604 * modules/getloadavg (Makefile.am): Likewise.
40605 * modules/getlogin_r (Makefile.am): Likewise.
40606 * modules/getndelim2 (Makefile.am): Likewise.
40607 * modules/getopt (Makefile.am): Likewise.
40608 * modules/getpagesize (Makefile.am): Likewise.
40609 * modules/getpass-gnu (Makefile.am): Likewise.
40610 * modules/getpass (Makefile.am): Likewise.
40611 * modules/getsubopt (Makefile.am): Likewise.
40612 * modules/gettime (Makefile.am): Likewise.
40613 * modules/gettimeofday (Makefile.am): Likewise.
40614 * modules/getugroups (Makefile.am): Likewise.
40615 * modules/getusershell (Makefile.am): Likewise.
40616 * modules/glob (Makefile.am): Likewise.
40617 * modules/group-member (Makefile.am): Likewise.
40618 * modules/hard-locale (Makefile.am): Likewise.
40619 * modules/hash (Makefile.am): Likewise.
40620 * modules/hmac-md5 (Makefile.am): Likewise.
40621 * modules/hmac-sha1 (Makefile.am): Likewise.
40622 * modules/human (Makefile.am): Likewise.
40623 * modules/idcache (Makefile.am): Likewise.
40624 * modules/imaxabs (Makefile.am): Likewise.
40625 * modules/imaxdiv (Makefile.am): Likewise.
40626 * modules/inet_ntop (Makefile.am): Likewise.
40627 * modules/inet_pton (Makefile.am): Likewise.
40628 * modules/intprops (Makefile.am): Likewise.
40629 * modules/inttostr (Makefile.am): Likewise.
40630 * modules/inttypes (Makefile.am): Likewise.
40631 * modules/isapipe (Makefile.am): Likewise.
40632 * modules/javaversion (Makefile.am): Likewise.
40633 * modules/lchmod (Makefile.am): Likewise.
40634 * modules/lchown (Makefile.am): Likewise.
40635 * modules/localcharset (Makefile.am): Likewise.
40636 * modules/long-options (Makefile.am): Likewise.
40637 * modules/lstat (Makefile.am): Likewise.
40638 * modules/malloc (Makefile.am): Likewise.
40639 * modules/mathl (Makefile.am): Likewise.
40640 * modules/mbchar (Makefile.am): Likewise.
40641 * modules/md2 (Makefile.am): Likewise.
40642 * modules/md4 (Makefile.am): Likewise.
40643 * modules/md5 (Makefile.am): Likewise.
40644 * modules/memcasecmp (Makefile.am): Likewise.
40645 * modules/memchr (Makefile.am): Likewise.
40646 * modules/memcmp (Makefile.am): Likewise.
40647 * modules/memcoll (Makefile.am): Likewise.
40648 * modules/memcpy (Makefile.am): Likewise.
40649 * modules/memmem (Makefile.am): Likewise.
40650 * modules/memmove (Makefile.am): Likewise.
40651 * modules/mempcpy (Makefile.am): Likewise.
40652 * modules/memrchr (Makefile.am): Likewise.
40653 * modules/memset (Makefile.am): Likewise.
40654 * modules/memxor (Makefile.am): Likewise.
40655 * modules/mkancesdirs (Makefile.am): Likewise.
40656 * modules/mkdir-p (Makefile.am): Likewise.
40657 * modules/mkdir (Makefile.am): Likewise.
40658 * modules/mkdtemp (Makefile.am): Likewise.
40659 * modules/mkstemp (Makefile.am): Likewise.
40660 * modules/mktime (Makefile.am): Likewise.
40661 * modules/modechange (Makefile.am): Likewise.
40662 * modules/mountlist (Makefile.am): Likewise.
40663 * modules/nanosleep (Makefile.am): Likewise.
40664 * modules/obstack (Makefile.am): Likewise.
40665 * modules/openat (Makefile.am): Likewise.
40666 * modules/pagealign_alloc (Makefile.am): Likewise.
40667 * modules/pathmax (Makefile.am): Likewise.
40668 * modules/physmem (Makefile.am): Likewise.
40669 * modules/poll (Makefile.am): Likewise.
40670 * modules/posixtm (Makefile.am): Likewise.
40671 * modules/posixver (Makefile.am): Likewise.
40672 * modules/putenv (Makefile.am): Likewise.
40673 * modules/quote (Makefile.am): Likewise.
40674 * modules/quotearg (Makefile.am): Likewise.
40675 * modules/raise (Makefile.am): Likewise.
40676 * modules/read-file (Makefile.am): Likewise.
40677 * modules/readline (Makefile.am): Likewise.
40678 * modules/readlink (Makefile.am): Likewise.
40679 * modules/readtokens (Makefile.am): Likewise.
40680 * modules/readutmp (Makefile.am): Likewise.
40681 * modules/realloc (Makefile.am): Likewise.
40682 * modules/regex (Makefile.am): Likewise.
40683 * modules/rename-dest-slash (Makefile.am): Likewise.
40684 * modules/rename (Makefile.am): Likewise.
40685 * modules/rijndael (Makefile.am): Likewise.
40686 * modules/rmdir (Makefile.am): Likewise.
40687 * modules/rpmatch (Makefile.am): Likewise.
40688 * modules/safe-read (Makefile.am): Likewise.
40689 * modules/safe-write (Makefile.am): Likewise.
40690 * modules/same-inode (Makefile.am): Likewise.
40691 * modules/same (Makefile.am): Likewise.
40692 * modules/save-cwd (Makefile.am): Likewise.
40693 * modules/savedir (Makefile.am): Likewise.
40694 * modules/setenv (Makefile.am): Likewise.
40695 * modules/settime (Makefile.am): Likewise.
40696 * modules/sha1 (Makefile.am): Likewise.
40697 * modules/sig2str (Makefile.am): Likewise.
40698 * modules/snprintf (Makefile.am): Likewise.
40699 * modules/stat-macros (Makefile.am): Likewise.
40700 * modules/stat-time (Makefile.am): Likewise.
40701 * modules/stdbool (Makefile.am): Likewise.
40702 * modules/stdint (Makefile.am): Likewise.
40703 * modules/stdlib-safer (Makefile.am): Likewise.
40704 * modules/stpcpy (Makefile.am): Likewise.
40705 * modules/stpncpy (Makefile.am): Likewise.
40706 * modules/strcase (Makefile.am): Likewise.
40707 * modules/strcasestr (Makefile.am): Likewise.
40708 * modules/strchrnul (Makefile.am): Likewise.
40709 * modules/strcspn (Makefile.am): Likewise.
40710 * modules/strdup (Makefile.am): Likewise.
40711 * modules/strerror (Makefile.am): Likewise.
40712 * modules/strftime (Makefile.am): Likewise.
40713 * modules/strndup (Makefile.am): Likewise.
40714 * modules/strnlen (Makefile.am): Likewise.
40715 * modules/strpbrk (Makefile.am): Likewise.
40716 * modules/strsep (Makefile.am): Likewise.
40717 * modules/strstr (Makefile.am): Likewise.
40718 * modules/strtod (Makefile.am): Likewise.
40719 * modules/strtoimax (Makefile.am): Likewise.
40720 * modules/strtok_r (Makefile.am): Likewise.
40721 * modules/strtol (Makefile.am): Likewise.
40722 * modules/strtoll (Makefile.am): Likewise.
40723 * modules/strtoul (Makefile.am): Likewise.
40724 * modules/strtoull (Makefile.am): Likewise.
40725 * modules/strtoumax (Makefile.am): Likewise.
40726 * modules/strverscmp (Makefile.am): Likewise.
40727 * modules/sys_socket (Makefile.am): Likewise.
40728 * modules/sys_stat (Makefile.am): Likewise.
40729 * modules/sysexits (Makefile.am): Likewise.
40730 * modules/time_r (Makefile.am): Likewise.
40731 * modules/timegm (Makefile.am): Likewise.
40732 * modules/timespec (Makefile.am): Likewise.
40733 * modules/tmpfile-safer (Makefile.am): Likewise.
40734 * modules/trim (Makefile.am): Likewise.
40735 * modules/unistd-safer (Makefile.am): Likewise.
40736 * modules/unlinkdir (Makefile.am): Likewise.
40737 * modules/unlocked-io (Makefile.am): Likewise.
40738 * modules/userspec (Makefile.am): Likewise.
40739 * modules/utime (Makefile.am): Likewise.
40740 * modules/utimecmp (Makefile.am): Likewise.
40741 * modules/utimens (Makefile.am): Likewise.
40742 * modules/vasnprintf (Makefile.am): Likewise.
40743 * modules/vasprintf (Makefile.am): Likewise.
40744 * modules/vsnprintf (Makefile.am): Likewise.
40745 * modules/xalloc (Makefile.am): Likewise.
40746 * modules/xgetcwd (Makefile.am): Likewise.
40747 * modules/xnanosleep (Makefile.am): Likewise.
40748 * modules/xreadlink (Makefile.am): Likewise.
40749 * modules/xstrtod (Makefile.am): Likewise.
40750 * modules/xstrtol (Makefile.am): Likewise.
40751 * modules/xstrtold (Makefile.am): Likewise.
40752 * modules/yesno (Makefile.am): Likewise.
40753 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40755 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40757 * modules/error (Makefile.am): Distribute files through
40758 EXTRA_DIST, not lib_SOURCES.
40760 2006-10-12 Eric Blake <ebb9@byu.net>
40762 * modules/error (Makefile.am): Distribute files in /lib.
40763 * modules/obstack (Makefile.am): Likewise.
40765 2006-10-12 Bruno Haible <bruno@clisp.org>
40767 * modules/acl (Makefile.am): Distribute all files in lib/ through
40769 * modules/arcfour (Makefile.am): Likewise.
40770 * modules/arctwo (Makefile.am): Likewise.
40771 * modules/argmatch (Makefile.am): Likewise.
40772 * modules/argz (Makefile.am): Likewise.
40773 * modules/atexit (Makefile.am): Likewise.
40774 * modules/backupfile (Makefile.am): Likewise.
40775 * modules/c-strtod (Makefile.am): Likewise.
40776 * modules/c-strtold (Makefile.am): Likewise.
40777 * modules/calloc (Makefile.am): Likewise.
40778 * modules/canon-host (Makefile.am): Likewise.
40779 * modules/canonicalize (Makefile.am): Likewise.
40780 * modules/chdir-long (Makefile.am): Likewise.
40781 * modules/chdir-safer (Makefile.am): Likewise.
40782 * modules/check-version (Makefile.am): Likewise.
40783 * modules/chown (Makefile.am): Likewise.
40784 * modules/cloexec (Makefile.am): Likewise.
40785 * modules/close-stream (Makefile.am): Likewise.
40786 * modules/closeout (Makefile.am): Likewise.
40787 * modules/crc (Makefile.am): Likewise.
40788 * modules/cycle-check (Makefile.am): Likewise.
40789 * modules/des (Makefile.am): Likewise.
40790 * modules/dirfd (Makefile.am): Likewise.
40791 * modules/dirname (Makefile.am): Likewise.
40792 * modules/dup2 (Makefile.am): Likewise.
40793 * modules/euidaccess (Makefile.am): Likewise.
40794 * modules/exclude (Makefile.am): Likewise.
40795 * modules/exitfail (Makefile.am): Likewise.
40796 * modules/fcntl-safer (Makefile.am): Likewise.
40797 * modules/file-type (Makefile.am): Likewise.
40798 * modules/fileblocks (Makefile.am): Likewise.
40799 * modules/filemode (Makefile.am): Likewise.
40800 * modules/filenamecat (Makefile.am): Likewise.
40801 * modules/fnmatch (Makefile.am): Likewise.
40802 * modules/fopen-safer (Makefile.am): Likewise.
40803 * modules/fpending (Makefile.am): Likewise.
40804 * modules/fprintftime (Makefile.am): Likewise.
40805 * modules/free (Makefile.am): Likewise.
40806 * modules/fsusage (Makefile.am): Likewise.
40807 * modules/ftruncate (Makefile.am): Likewise.
40808 * modules/fts (Makefile.am): Likewise.
40809 * modules/gc (Makefile.am): Likewise.
40810 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40811 * modules/getaddrinfo (Makefile.am): Likewise.
40812 * modules/getcwd (Makefile.am): Likewise.
40813 * modules/getdelim (Makefile.am): Likewise.
40814 * modules/getdomainname (Makefile.am): Likewise.
40815 * modules/getgroups (Makefile.am): Likewise.
40816 * modules/gethostname (Makefile.am): Likewise.
40817 * modules/gethrxtime (Makefile.am): Likewise.
40818 * modules/getline (Makefile.am): Likewise.
40819 * modules/getloadavg (Makefile.am): Likewise.
40820 * modules/getlogin_r (Makefile.am): Likewise.
40821 * modules/getopt (Makefile.am): Likewise.
40822 * modules/getpass (Makefile.am): Likewise.
40823 * modules/getpass-gnu (Makefile.am): Likewise.
40824 * modules/getsubopt (Makefile.am): Likewise.
40825 * modules/gettime (Makefile.am): Likewise.
40826 * modules/gettimeofday (Makefile.am): Likewise.
40827 * modules/getugroups (Makefile.am): Likewise.
40828 * modules/getusershell (Makefile.am): Likewise.
40829 * modules/glob (Makefile.am): Likewise.
40830 * modules/group-member (Makefile.am): Likewise.
40831 * modules/hard-locale (Makefile.am): Likewise.
40832 * modules/hash (Makefile.am): Likewise.
40833 * modules/hmac-md5 (Makefile.am): Likewise.
40834 * modules/hmac-sha1 (Makefile.am): Likewise.
40835 * modules/human (Makefile.am): Likewise.
40836 * modules/idcache (Makefile.am): Likewise.
40837 * modules/imaxabs (Makefile.am): Likewise.
40838 * modules/imaxdiv (Makefile.am): Likewise.
40839 * modules/inet_ntop (Makefile.am): Likewise.
40840 * modules/inet_pton (Makefile.am): Likewise.
40841 * modules/inttostr (Makefile.am): Likewise.
40842 * modules/isapipe (Makefile.am): Likewise.
40843 * modules/lchown (Makefile.am): Likewise.
40844 * modules/long-options (Makefile.am): Likewise.
40845 * modules/lstat (Makefile.am): Likewise.
40846 * modules/malloc (Makefile.am): Likewise.
40847 * modules/mathl (Makefile.am): Likewise.
40848 * modules/mbchar (Makefile.am): Likewise.
40849 * modules/md2 (Makefile.am): Likewise.
40850 * modules/md4 (Makefile.am): Likewise.
40851 * modules/md5 (Makefile.am): Likewise.
40852 * modules/memcasecmp (Makefile.am): Likewise.
40853 * modules/memchr (Makefile.am): Likewise.
40854 * modules/memcmp (Makefile.am): Likewise.
40855 * modules/memcoll (Makefile.am): Likewise.
40856 * modules/memcpy (Makefile.am): Likewise.
40857 * modules/memmem (Makefile.am): Likewise.
40858 * modules/memmove (Makefile.am): Likewise.
40859 * modules/mempcpy (Makefile.am): Likewise.
40860 * modules/memrchr (Makefile.am): Likewise.
40861 * modules/memset (Makefile.am): Likewise.
40862 * modules/memxor (Makefile.am): Likewise.
40863 * modules/mkancesdirs (Makefile.am): Likewise.
40864 * modules/mkdir (Makefile.am): Likewise.
40865 * modules/mkdir-p (Makefile.am): Likewise.
40866 * modules/mkdtemp (Makefile.am): Likewise.
40867 * modules/mkstemp (Makefile.am): Likewise.
40868 * modules/mktime (Makefile.am): Likewise.
40869 * modules/modechange (Makefile.am): Likewise.
40870 * modules/mountlist (Makefile.am): Likewise.
40871 * modules/nanosleep (Makefile.am): Likewise.
40872 * modules/openat (Makefile.am): Likewise.
40873 * modules/pagealign_alloc (Makefile.am): Likewise.
40874 * modules/physmem (Makefile.am): Likewise.
40875 * modules/poll (Makefile.am): Likewise.
40876 * modules/posixtm (Makefile.am): Likewise.
40877 * modules/posixver (Makefile.am): Likewise.
40878 * modules/putenv (Makefile.am): Likewise.
40879 * modules/quote (Makefile.am): Likewise.
40880 * modules/quotearg (Makefile.am): Likewise.
40881 * modules/raise (Makefile.am): Likewise.
40882 * modules/read-file (Makefile.am): Likewise.
40883 * modules/readline (Makefile.am): Likewise.
40884 * modules/readlink (Makefile.am): Likewise.
40885 * modules/readtokens (Makefile.am): Likewise.
40886 * modules/readutmp (Makefile.am): Likewise.
40887 * modules/realloc (Makefile.am): Likewise.
40888 * modules/regex (Makefile.am): Likewise.
40889 * modules/rename (Makefile.am): Likewise.
40890 * modules/rename-dest-slash (Makefile.am): Likewise.
40891 * modules/rijndael (Makefile.am): Likewise.
40892 * modules/rmdir (Makefile.am): Likewise.
40893 * modules/rpmatch (Makefile.am): Likewise.
40894 * modules/safe-read (Makefile.am): Likewise.
40895 * modules/safe-write (Makefile.am): Likewise.
40896 * modules/same (Makefile.am): Likewise.
40897 * modules/save-cwd (Makefile.am): Likewise.
40898 * modules/savedir (Makefile.am): Likewise.
40899 * modules/setenv (Makefile.am): Likewise.
40900 * modules/settime (Makefile.am): Likewise.
40901 * modules/sha1 (Makefile.am): Likewise.
40902 * modules/sig2str (Makefile.am): Likewise.
40903 * modules/snprintf (Makefile.am): Likewise.
40904 * modules/stdlib-safer (Makefile.am): Likewise.
40905 * modules/stpcpy (Makefile.am): Likewise.
40906 * modules/stpncpy (Makefile.am): Likewise.
40907 * modules/strcase (Makefile.am): Likewise.
40908 * modules/strcasestr (Makefile.am): Likewise.
40909 * modules/strchrnul (Makefile.am): Likewise.
40910 * modules/strcspn (Makefile.am): Likewise.
40911 * modules/strdup (Makefile.am): Likewise.
40912 * modules/strerror (Makefile.am): Likewise.
40913 * modules/strftime (Makefile.am): Likewise.
40914 * modules/strndup (Makefile.am): Likewise.
40915 * modules/strnlen (Makefile.am): Likewise.
40916 * modules/strpbrk (Makefile.am): Likewise.
40917 * modules/strsep (Makefile.am): Likewise.
40918 * modules/strstr (Makefile.am): Likewise.
40919 * modules/strtod (Makefile.am): Likewise.
40920 * modules/strtoimax (Makefile.am): Likewise.
40921 * modules/strtok_r (Makefile.am): Likewise.
40922 * modules/strtol (Makefile.am): Likewise.
40923 * modules/strtoll (Makefile.am): Likewise.
40924 * modules/strtoul (Makefile.am): Likewise.
40925 * modules/strtoull (Makefile.am): Likewise.
40926 * modules/strtoumax (Makefile.am): Likewise.
40927 * modules/strverscmp (Makefile.am): Likewise.
40928 * modules/time_r (Makefile.am): Likewise.
40929 * modules/timegm (Makefile.am): Likewise.
40930 * modules/tmpfile-safer (Makefile.am): Likewise.
40931 * modules/unistd-safer (Makefile.am): Likewise.
40932 * modules/unlinkdir (Makefile.am): Likewise.
40933 * modules/userspec (Makefile.am): Likewise.
40934 * modules/utime (Makefile.am): Likewise.
40935 * modules/utimecmp (Makefile.am): Likewise.
40936 * modules/utimens (Makefile.am): Likewise.
40937 * modules/vasnprintf (Makefile.am): Likewise.
40938 * modules/vasprintf (Makefile.am): Likewise.
40939 * modules/vsnprintf (Makefile.am): Likewise.
40940 * modules/xalloc (Makefile.am): Likewise.
40941 * modules/xgetcwd (Makefile.am): Likewise.
40942 * modules/xnanosleep (Makefile.am): Likewise.
40943 * modules/xreadlink (Makefile.am): Likewise.
40944 * modules/xstrtod (Makefile.am): Likewise.
40945 * modules/xstrtol (Makefile.am): Likewise.
40946 * modules/xstrtold (Makefile.am): Likewise.
40947 * modules/yesno (Makefile.am): Likewise.
40949 2006-10-12 Jim Meyering <jim@meyering.net>
40951 * m4/getloadavg.m4: Revert the change below.
40953 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40954 lib/getloadavg.c using "ls -L", not "test -f". The latter would
40955 fail with a symlink, which is what coreutils' ./bootstrap now
40956 creates by default.
40958 2006-10-12 Bruno Haible <bruno@clisp.org>
40960 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40962 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40963 MSVC and mingw explicitly.
40965 2006-10-11 Simon Josefsson <jas@extundo.com>
40966 Bruno Haible <bruno@clisp.org>
40968 Add support for multiple gnulib-tool invocations in the scope of a
40969 single configure.ac file.
40970 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40971 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40972 with the same contents as the _LIBADD variable.
40973 (func_emit_initmacro_start, func_emit_initmacro_end,
40974 func_emit_initmacro_done): New functions.
40975 (func_import, func_create_testdir): Invoke them. Allow the identifiers
40976 gl_LIBOBJS and gl_LTLIBOBJS.
40978 2006-10-11 Bruno Haible <bruno@clisp.org>
40980 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40981 (func_create_testdir): Don't create po/Makefile.am, don't invoke
40982 autoreconf. Instead, invoke autopoint explicitly but move back the
40983 *.m4 files from gnulib.
40985 2006-10-11 Bruno Haible <bruno@clisp.org>
40987 * gnulib-tool (func_usage): Make module names after --create-testdir
40989 (func_create_testdir): If no module was specified, use nearly all
40992 2006-10-12 Jim Meyering <jim@meyering.net>
40994 Big performance improvement for fts-based tools that use FTS_NOSTAT.
40995 Avoid spurious inode-mismatch problems on non-POSIX file systems.
40996 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40997 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40998 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40999 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41000 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41001 (fts_set_stat_required): New function.
41002 (fts_open): Defer the calls to fts_stat, if possible or requested.
41003 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41004 into fts_stat itself.
41005 (fts_read): Perform any required (deferred) fts_stat call.
41006 (fts_build): Likewise, for the directory we're about to open and read.
41007 In the readdir loop, carefully decide whether each entry will require
41008 an eventual call to fts_stat, using dirent.d_type info if available.
41009 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41010 a command line argument into this function. Update all callers.
41011 Map a return value of FTS_DOT to FTS_D for a command line argument.
41012 * modules/fts (Depends-on): Add d-type. Alphabetize.
41013 Thanks to Miklos Szeredi for his tenacity and for the initial
41014 bug report about "find" failing on a FUSE-based file system.
41016 * lib/fts.c (fts_open): Use consistent indentation.
41018 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41020 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41021 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41022 reported by Jim Meyering. All uses of cache variables renamed
41023 to match Autoconf's.
41024 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41027 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41028 Fix misspelling in diagnostic.
41030 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41032 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41033 defined. Problem reported by Matthew Woehlke.
41035 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41036 Add support for Tandem NonStop R series.
41037 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41040 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41041 (has_trailing_slash): Omit size arg; all callers changed.
41042 Omit 'inline', since it doesn't help performance and we'd
41043 need to configure it.
41044 Don't count //, ///, etc. as having a trailing slash.
41045 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41046 (rpl_rename_dest_slash): On failure, use rename's errno rather
41047 than (in some cases) an incorrect or junk errno.
41048 Simplify code by removing need to compute length; this does
41049 cause it to make two passes instead of one over the file name,
41052 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41053 change, since Autoconf's version may no longer be appropriate now
41054 that we are using CVS Autoconf's version. Add support for Tandem.
41056 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41057 Bruno Haible <bruno@clisp.org>
41059 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41060 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41061 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41062 gl_AC_TYPE_LONG_LONG.
41064 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41065 instead of HAVE_LONG_LONG.
41066 * lib/printf-args.c (printf_fetchargs): Likewise.
41067 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41068 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41069 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41070 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41071 gl_AC_TYPE_LONG_LONG.
41073 2006-10-11 Bruno Haible <bruno@clisp.org>
41075 * m4/longlong.m4: Add comments.
41076 * m4/ulonglong.m4: Likewise.
41078 2006-10-10 Bruno Haible <bruno@clisp.org>
41080 Make it possible to #define stpcpy, strdup to aliases.
41081 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41082 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41084 2006-10-10 Bruno Haible <bruno@clisp.org>
41086 Make it possible to #define gcd to an alias.
41087 * lib/gcd.c: Include config.h.
41089 2006-10-10 Bruno Haible <bruno@clisp.org>
41091 Make it possible to #define c_isascii to an alias.
41092 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41093 defined. Undefine the macros before defining them, to avoid gcc
41095 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41096 define NO_C_CTYPE_MACROS early.
41098 2006-10-10 Bruno Haible <bruno@clisp.org>
41100 Make it possible to #define set_program_name to an alias.
41101 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41102 ENABLE_RELOCATABLE early.
41104 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41106 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41107 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41108 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41109 More generally, don't assume that 64-bit signed int is available
41110 if unsigned int is, and vice versa.
41111 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41112 unsigned symbols, not on their signed counterparts.
41113 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41114 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41115 (UINT64_C, UINTMAX_C):
41117 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41118 unsigned counterparts.
41119 (Have_long_long, Unsigned): New macros.
41120 (Int): Renamed from INT.
41121 (strtoimax): Use the new macros.
41122 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41123 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41124 * modules/inttypes (inttypes.h): Substitute
41125 HAVE_UNSIGNED_LONG_LONG_INT.
41126 * modules/stdint (stdint.h): Likewise.
41127 (Files): Add m4/ulonglong.m4.
41129 2006-10-10 Bruno Haible <bruno@clisp.org>
41131 Fix a gcc -Wshadow warning.
41132 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41134 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41135 gl_linked_indexof_from_to): Likewise.
41136 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41138 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41140 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41141 Reported by Eric Blake.
41143 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41145 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41146 for NetBSD. Problem reported by Bruno Haible.
41148 2006-10-09 Jim Meyering <jim@meyering.net>
41150 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41151 Patch from Bruno Haible.
41153 2006-10-09 Jim Meyering <jim@meyering.net>
41155 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41156 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41157 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41159 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41161 Don't include <config.h> twice; this doesn't work in some cases,
41162 e.g., when config.h has "#define intmax_t long long int" and
41163 we include <config.h>, <inttypes.h>, <config.h> in that order.
41164 Problem reported by Matthew Woehlke in:
41165 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41166 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41167 * lib/fts-cycle.c: Don't include config.h.
41168 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41169 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41170 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41171 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41173 * lib/xstrtoumax.c: Likewise.
41174 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41175 __strtol and the like, so that this module is more like its siblings.
41176 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41177 Remove; no longer needed now that we assume gnulib inttypes.h.
41179 2006-10-08 Bruno Haible <bruno@clisp.org>
41181 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41184 2006-10-07 Jim Meyering <jim@meyering.net>
41186 * modules/inttypes (inttypes.h): Revert what seems to have been
41187 an inadvertent part of today's change: use "|", not "/" in the
41188 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41190 2006-10-07 Bruno Haible <bruno@clisp.org>
41192 * modules/sublist: New file.
41194 2006-10-07 Bruno Haible <bruno@clisp.org>
41196 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41197 * modules/argz (argz.h): Likewise.
41198 * modules/arpa_inet (arpa/inet.h): Likewise.
41199 * modules/byteswap (byteswap.h): Likewise.
41200 * modules/configmake (configmake.h): Likewise.
41201 * modules/fcntl (fcntl.h): Likewise.
41202 * modules/fnmatch (fnmatch.h): Likewise.
41203 * modules/getopt (getopt.h): Likewise.
41204 * modules/glob (glob.h): Likewise.
41205 * modules/inttypes (inttypes.h): Likewise.
41206 * modules/netinet_in (netinet/in.h): Likewise.
41207 * modules/poll (poll.h): Likewise.
41208 * modules/stdbool (stdbool.h): Likewise.
41209 * modules/stdint (stdint.h): Likewise.
41210 * modules/sys_select (sys/select.h): Likewise.
41211 * modules/sys_socket (sys/socket.h): Likewise.
41212 * modules/sys_stat (sys/stat.h): Likewise.
41213 * modules/sysexits (sysexits.h): Likewise.
41214 * modules/unistd (unistd.h): Likewise.
41215 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41216 Add a "DO NOT EDIT" comment to the generated file.
41217 (func_import): Likewise for gnulib-comp.m4.
41219 2006-10-07 Bruno Haible <bruno@clisp.org>
41221 * lib/gl_sublist.h: New file.
41222 * lib/gl_sublist.c: New file.
41224 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41226 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41227 name (relative to the original working directory) and the file
41228 name component (relative to the temporary working directory). All
41230 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41231 * lib/mkdir-p.c (make_dir_parents): Likewise.
41232 * lib/mkdir-p.h (make_dir_parents): Likewise.
41234 2006-10-06 Eric Blake <ebb9@byu.net>
41236 Define several macros for use by the clean-temp module.
41237 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41238 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41239 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41241 * lib/clean-temp.h (close_stream_temp): New declaration.
41242 * lib/clean-temp.c (includes): Pull in headers according to what
41243 other modules are in use.
41244 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41246 2006-10-06 Bruno Haible <bruno@clisp.org>
41248 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41249 instead of fopen, fwriteerror.
41251 2006-10-06 Bruno Haible <bruno@clisp.org>
41253 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41254 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41256 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41257 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41258 Return an error indicator.
41259 Suggested by Eric Blake.
41261 2006-10-06 Bruno Haible <bruno@clisp.org>
41263 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41264 Reported by Eric Blake.
41266 2006-10-06 Bruno Haible <bruno@clisp.org>
41268 * modules/closeout (Description): Mention stderr too.
41270 2006-10-06 Bruno Haible <bruno@clisp.org>
41271 and Paul Eggert <eggert@cs.ucla.edu>
41273 * lib/closeout.c (close_stdout): Also close stderr.
41274 * lib/closeout.h: Update comment.
41276 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41278 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41279 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41280 * lib/dirchownmod.c: Include lchown.h.
41281 * lib/lchown.c: Don't include files that lchown.h now includes.
41282 Don't declare chown, since lchown.h now does that.
41283 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41284 (lchown): Define to rpl_chown if lchown is declared but
41285 does not exist. Declare using a prototype if lchown is not
41286 declared. Add a copyright notice.
41287 * lib/mkstemp.h: Include <unistd.h>.
41288 * lib/openat.c: Include lchown.h.
41290 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41291 we now test for that separately.
41292 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41293 rather than O_NOFOLLOW, when testing whether it's possible to
41294 avoid a race condition reliably.
41295 * lib/savewd.c (savewd_chdir): Likewise.
41297 Remove macros that are no longer needed now that stdint.h is
41299 * lib/fsusage.c (UINTMAX_MAX): Remove.
41300 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41301 * lib/utimecmp.c (SIZE_MAX): Remove.
41303 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41305 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41306 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41309 2006-10-05 Bruno Haible <bruno@clisp.org>
41311 * lib/gl_list.h (gl_sortedlist_search_from_to,
41312 gl_sortedlist_indexof_from_to): New declarations.
41313 (gl_list_implementation): New fields sortedlist_search_from_to,
41314 sortedlist_indexof_from_to.
41315 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41317 * lib/gl_list.c (gl_sortedlist_search_from_to,
41318 gl_sortedlist_indexof_from_to): New functions.
41319 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41321 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41322 (gl_array_sortedlist_search_from_to): New function.
41323 (gl_array_list_implementation): Update.
41324 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41326 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41327 (gl_carray_sortedlist_search_from_to): New function.
41328 (gl_carray_list_implementation): Update.
41329 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41330 gl_linked_sortedlist_indexof_from_to): New functions.
41331 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41332 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41333 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41334 gl_tree_sortedlist_indexof_from_to): New functions.
41335 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41336 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41338 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41339 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41342 2006-10-05 Bruno Haible <bruno@clisp.org>
41344 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41345 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41346 (struct gl_list_implementation): Add fields search_from_to,
41347 indexof_from_to. Remove fields search, indexof.
41348 (gl_list_search): Use the search_from_to method.
41349 (gl_list_search_from, gl_list_search_from_to): New functions.
41350 (gl_list_indexof): Use the indexof_from_to method.
41351 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41352 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41353 (gl_list_search_from, gl_list_search_from_to): New functions.
41354 (gl_list_indexof): Use the indexof_from_to method.
41355 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41356 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41357 gl_array_indexof. Add start_index, end_index arguments.
41358 (gl_array_search_from_to): Renamed from gl_array_search. Add
41359 start_index, end_index arguments.
41360 (gl_array_remove, gl_array_list_implementation): Update.
41361 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41362 gl_carray_indexof. Add start_index, end_index arguments.
41363 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41364 start_index, end_index arguments.
41365 (gl_carray_remove, gl_carray_list_implementation): Update.
41366 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41367 gl_linked_search. Add start_index, end_index arguments.
41368 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41369 start_index, end_index arguments.
41370 (gl_linked_remove): Update.
41371 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41372 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41373 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41375 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41376 gl_tree_search. Add start_index, end_index arguments.
41377 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41378 start_index, end_index arguments.
41379 (gl_tree_remove): Update.
41380 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41381 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41382 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41384 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41385 gl_tree_search. Add start_index, end_index arguments.
41386 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41387 start_index, end_index arguments.
41388 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41390 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41392 2006-10-05 Bruno Haible <bruno@clisp.org>
41394 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41396 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41397 fwriteerror_temp): New declarations.
41398 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41399 (descriptors): New variable.
41400 (cleanup): First, close the descriptors.
41401 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41402 fclose_temp, fwriteerror_temp): New functions.
41404 2006-10-04 Jim Meyering <jim@meyering.net>
41406 * lib/fts.c (fts_open): Tiny comment change.
41408 2006-10-04 Bruno Haible <bruno@clisp.org>
41410 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41411 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41413 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41414 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41415 gl_LOCK_EARLY_BODY.
41416 (gl_LOCK): Require gl_LOCK_BODY.
41418 2006-10-04 Bruno Haible <bruno@clisp.org>
41420 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41421 (gl_oset_search_atleast): New declaration.
41422 (struct gl_oset_implementation): Add field 'search_atleast'.
41423 (gl_oset_search_atleast): New inline function.
41424 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41425 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41426 (gl_array_oset_implementation): Update.
41427 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41428 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41429 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41431 2006-10-04 Bruno Haible <bruno@clisp.org>
41433 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41435 2006-10-03 Bruno Haible <bruno@clisp.org>
41437 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41438 from gl_avltreehash_list_implementation.
41440 2006-10-03 Bruno Haible <bruno@clisp.org>
41442 * lib/gl_oset.c (gl_oset_add): Fix return type.
41444 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41446 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41448 2006-10-02 Eric Blake <ebb9@byu.net>
41450 * modules/strnlen (Depends-on): Add extensions.
41452 2006-10-02 Eric Blake <ebb9@byu.net>
41454 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41455 definition in 2.60+.
41457 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41459 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41462 2006-10-02 Bruno Haible <bruno@clisp.org>
41464 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41465 to the AUTOMAKE_OPTIONS.
41466 Reported by Jim Meyering.
41468 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41470 Work around bug in Solaris 10 /proc file system:
41471 /proc/self/fd/NNN/.. isn't the parent directory of
41472 the directory whose file descriptor is NNN. This needs to
41473 be worked around at run time, not compile time, since a
41474 program might be built on Solaris 8, where things work, and
41476 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41477 to use the following interface instead:
41478 (OPENAT_BUFFER_SIZE): New macro.
41479 (openat_proc_name): New function.
41480 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41481 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41483 * lib/openat-proc.c: New file.
41484 * modules/openat (Files): Add lib/openat-proc.c.
41485 (Depends-on): Add same-inode, stdbool.
41486 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41488 2006-09-29 Bruno Haible <bruno@clisp.org>
41490 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41491 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41492 argument. Set stdout_closed before testing for ferror, not after.
41493 (fwriteerror, fwriteerror_no_ebadf): New functions.
41495 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41497 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41499 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41501 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41502 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41504 2006-09-28 Jim Meyering <jim@meyering.net>
41506 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41507 Include <unistd.h>.
41509 2006-09-28 Bruno Haible <bruno@clisp.org>
41511 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41512 * modules/linkedhash-list (Depends-on): Likewise.
41513 * modules/rbtreehash-list (Depends-on): Likewise.
41515 2006-09-28 Bruno Haible <bruno@clisp.org>
41517 * lib/strndup.h: Simplify the redefinition of strndup.
41518 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41519 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41521 2006-09-28 Bruno Haible <bruno@clisp.org>
41523 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41524 * lib/gl_linkedhash_list.c: Likewise.
41525 * lib/gl_rbtreehash_list.c: Likewise.
41527 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41529 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41532 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41533 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41534 it causes <stdio_ext.h> to cause a compile-time error.
41535 Problem reported by Nelson H. F. Beebe.
41536 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41537 of HAVE_DECL___PENDING.
41539 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41540 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41543 2006-09-27 Jim Meyering <jim@meyering.net>
41545 This file could end up with a definition for a function
41546 named __strndup, rather than rpl_strndup on a system with
41547 incomplete weak_alias support.
41548 * lib/strndup.c (strndup): Rename from __strndup.
41549 Remove #defines that used to map __strndup to strndup.
41550 Don't use K&R prototypes.
41551 Remove LIBC-related code, since this file is not sync'd with glibc.
41552 * lib/strndup.h: Revamp, accordingly.
41553 * m4/strndup.m4: Modernize.
41555 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41557 * modules/savewd (Depends-on): Add 'raise'.
41558 * lib/savewd.c: Include <signal.h>, for 'raise'.
41560 2006-09-26 Jim Meyering <jim@meyering.net>
41562 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41563 when we detect Darwin 8.7.0's acl_get_file bug.
41564 Rearrange to perform the new (below) run-test while $LIBS
41565 contains any acl-related library. Set USE_ACL at the end.
41566 (gl_ACL_GET_FILE): New function.
41568 2006-09-26 Eric Blake <ebb9@byu.net>
41570 * lib/verror.c: Include <config.h> unconditionally.
41572 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41574 * modules/clock-time (Maintainer): Add self.
41575 * modules/getlogin_r (Depends-on): Add extensions.
41577 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41579 * modules/clock-time: New module.
41580 * modules/nanosleep (Depends-on): Add clock-time.
41581 * modules/gethrxtime (Depends-on): Likewise.
41582 * modules/gettime (Depends-on): Likewise.
41583 * modules/settime (Depends-on): Likewise.
41585 * modules/fts-lgpl: Depend on openat.
41586 * modules/mkancesdirs: Depend on savewd.
41587 * modules/mkdir-p: Likewise.
41589 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41591 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41593 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41594 `gl_have_arbitrary_file_name_length_limit' to
41595 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41596 actually works between configure runs.
41598 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41599 Bruno Haible <bruno@clisp.org>
41601 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41603 2006-09-25 Jim Meyering <jim@meyering.net>
41605 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41606 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41608 2006-09-25 Eric Blake <ebb9@byu.net>
41610 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41611 exec's in 2006-09-18 patch when shuffling fds.
41613 2006-09-25 Bruno Haible <bruno@clisp.org>
41615 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41616 Reported by Jim Meyering.
41618 2006-09-24 Jim Meyering <jim@meyering.net>
41620 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41621 compare a pointer against a literal "0". That caused failures with
41622 at least HP-UX's hpcc.
41624 2006-09-22 Simon Josefsson <jas@extundo.com>
41628 * modules/gc-hmac-sha1:
41629 * modules/gc-hmac-md5:
41631 * modules/gc-arcfour: Distribute more files.
41633 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41635 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41636 (gl_linked_iterator_from_to): Initialize struct completely.
41637 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41638 (gl_tree_iterator_from_to): Likewise
41639 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41640 * lib/gl_array_list.c [lint] (gl_array_iterator)
41641 (gl_array_iterator_from_to): Likewise.
41642 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41643 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41644 (gl_carray_iterator_from_to): Likewise.
41646 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41647 * lib/md4.c (md4_process_block): Remove unused variable.
41648 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41649 parentheses for clarity.
41651 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41653 * modules/bison-i18n (Depends-on): Add gettext.
41655 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41657 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41658 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41659 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41660 also add missing comma that caused broken test.
41661 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41662 stdlib.h, for `abort'.
41663 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41665 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41666 include unistd.h if present, for `rmdir'.
41667 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41669 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41670 in the process include standard headers for prototypes.
41671 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41672 gets declared on GNU/Linux.
41673 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41674 unistd.h, for `rmdir'.
41675 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41677 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41679 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41681 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41683 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41685 * gnulib-tool (func_version): Create output all at once. This
41686 may help avoid triggering unnecessary SIGPIPEs, and at any
41687 rate it doesn't hurt.
41689 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41690 Bruno Haible <bruno@clisp.org>
41692 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41693 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41694 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41696 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41697 (gl_FUNC_VASPRINTF): Invoke it.
41699 2006-09-22 Bruno Haible <bruno@clisp.org>
41701 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41702 getloadavg.c as first argument.
41704 2006-09-22 Bruno Haible <bruno@clisp.org>
41706 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41707 at the beginning of the gl_INIT macro.
41708 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41711 2006-09-22 Bruno Haible <bruno@clisp.org>
41713 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41715 Suggested by Ralf Wildenhues.
41717 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41719 Import this patch from libc:
41721 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41723 * lib/regex_internal.c (re_string_reconstruct): Handle
41724 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41725 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41726 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41727 re_string_context_at.
41729 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41731 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41732 gl_REGEX now does it for us.
41733 (gl_REGEX): Add test taken from
41734 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41736 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41737 Check that large offsets work. Modernize Autoconf usages.
41738 Prefer "yes" to mean a good thing rather than a bad.
41739 Don't put "#define mkstemp" in config.h, as this might interfere
41740 with standard system headers that "#define mkstemp mkstemp64".
41742 * modules/mkstemp (Depends-on): Add extensions, so that
41743 mkstemp is visible on some platforms.
41744 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41745 (Include): Change to "mkstemp.h" from <stdlib.h>.
41746 (Files): Add mkstemp.h.
41748 * lib/mkstemp.h: New file, since some standard headers
41750 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41751 Include "mkstemp.h".
41752 Make the _LIBC code resemble glibc original more,
41753 e.g., use K&R style.
41754 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41755 (mkstemp): Remove, since mkstemp.h does this for us.
41756 * lib/stdlib--.h: Include mkstemp.h.
41758 Import this patch from libc:
41760 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41762 * lib/tempname.c (__gen_tempname): Change attempts_min
41763 into a macro. Use preprocessor to decide how to initialize
41764 attempts [Coverity CID 67].
41766 2006-09-20 Bruno Haible <bruno@clisp.org>
41768 * lib/mkdtemp.c: Import from libc.
41769 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41770 * sysdeps/posix/tempname.c (__gen_tempname): Change
41771 attempts_min into a macro. Use preprocessor to decide how to
41772 initialize attempts [Coverity CID 67].
41773 2001-11-27 Paul Eggert <eggert@twinsun.com>
41774 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41775 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41777 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41779 * gnulib-tool (func_exit): New function, to allow to pass the
41780 exit status portably through the trap. Use everywhere.
41781 (--help, --version): Signal a write error.
41782 (trap): catch SIGPIPE, for write errors.
41783 Exit at the end of the trap, with the correct exit status.
41785 2006-09-19 Karl Berry <karl@gnu.org>
41787 * doc/gnulib.texi: note about the license texinfo files.
41789 2006-09-19 Eric Blake <ebb9@byu.net>
41791 * gnulib-tool: Avoid space-tab.
41793 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41795 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41796 that prevented coreutils 6.1 from building. Problem reported
41797 by Petter Reinholdtsen.
41799 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41801 * gnulib-tool (avoidlist): Fix typo that broke options like
41802 --avoid=lock that are used by coreutils bootstrap.
41804 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41806 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41807 more systematically.
41809 2006-09-18 Jim Meyering <jim@meyering.net>
41811 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41813 2006-09-18 Bruno Haible <bruno@clisp.org>
41815 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41817 2006-09-18 Bruno Haible <bruno@clisp.org>
41819 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41820 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41821 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41822 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41823 * m4/gettext.m4: Require autoconf >= 2.52.
41824 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41825 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41826 of gl_cv_header_inttypes_h.
41828 2006-09-18 Bruno Haible <bruno@clisp.org>
41830 * lib/javaversion.c: Include configmake.h.
41832 2006-09-18 Bruno Haible <bruno@clisp.org>
41834 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41835 avoid that the while loops be executed in a subshell.
41837 2006-09-18 Bruno Haible <bruno@clisp.org>
41839 * MODULES.html.sh (func_module): Break long lines.
41840 Suggested by Bruce Korb <bkorb@gnu.org>.
41842 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41844 Speed up by a factor of 1.12.
41845 * gnulib-tool (nl): New variable.
41846 (func_import): Rewrite include directive extraction to only read each
41849 2006-09-17 Bruno Haible <bruno@clisp.org>
41851 * modules/javaversion (Makefile.am): Remove DEFS setting.
41852 (Depends-on): Add configmake, for PKGDATADIR definition.
41854 2006-09-17 Bruno Haible <bruno@clisp.org>
41856 * gnulib-tool (func_create_testdir): Rewrite all files at once.
41858 2006-09-17 Bruno Haible <bruno@clisp.org>
41860 * gnulib-tool (func_append): New function, stolen from libtool.m4.
41861 (func_modules_transitive_closure, func_modules_add_dummy,
41862 func_modules_to_filelist, func_import, func_create_testdir,
41863 func_create_megatestdir, ...): Use it wherever possible.
41864 Suggested by Ralf Wildenhues.
41866 2006-09-16 Karl Berry <karl@gnu.org>
41868 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41869 to avoid sectioning errors.
41870 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41871 [ifinfo]: blank line after @center-ed titles.
41872 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41873 Spell FSF address consistently with others.
41874 (These changes approved by rms.)
41876 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41878 Speed up by a factor of 1.61.
41879 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41880 already checked module names again.
41882 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41884 Speed up by a factor of 1.13.
41885 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41886 for new_files, and the input to func_add_or_update.
41888 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41890 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41891 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41893 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41895 * modules/mkancesdirs (Depends-on): Add fcntl.
41896 * modules/savewd: New file.
41897 * MODULES.html.sh (File system functions): Add savewd.
41899 * modules/configmake (Makefile.am): Add support for the
41900 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41902 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41904 * m4/savewd.m4: New file.
41906 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41908 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41909 (dirchownmod): New arg FD. All callers changed.
41910 Use FD rather than opening the directory ourself, as opening is
41911 now the caller's responsibility.
41912 * lib/dirchownmod.h: Likewise.
41913 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41914 hosts that require <sys/types.h> before <sys/stat.h>. Include
41915 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41916 (test_dir): Remove.
41917 (mkancesdirs): Return length of prefix of FILE that has already
41918 been made, or -2 if there is a child doing the work. Redo
41919 algorithm so that it is O(N) rather than O(N**2). Optimize away
41920 ".", and treat ".." specially since it might stray back into
41921 already-created areas. Use a subprocess if necessary. New arg
41922 WD; all users changed. MAKE_DIR function should now return 1
41923 if it creates a directory that is not readable. Return -2 if
41924 a child process is spun off.
41925 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41926 Adjust signature to match code.
41927 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41928 (make_dir_parents): Use a subprocess if necessary. New arg WD;
41930 * lib/savewd.c, lib/savewd.h: New files.
41932 2006-09-15 Jim Meyering <jim@meyering.net>
41934 * modules/rename-dest-slash: New module.
41935 * MODULES.html.sh (posix_compat): Add it here.
41937 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41939 2006-09-15 Jim Meyering <jim@meyering.net>
41941 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41944 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41946 2006-09-15 Jim Meyering <jim@meyering.net>
41948 * lib/rename-dest-slash.c (has_trailing_slash): Use
41949 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41950 (rpl_rename_dest_slash): Perform the cheaper trailing slash
41951 test before testing whether SRC is a directory.
41952 Suggestions from Bruno Haible.
41954 Avoid a warning about an unused variable.
41955 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41956 into the #ifdef block where it's used.
41958 * lib/rename-dest-slash.c: New file.
41960 2006-09-14 Bruno Haible <bruno@clisp.org>
41962 * lib/allocsa.c: Include <config.h> unconditionally.
41963 * lib/asnprintf.c: Likewise.
41964 * lib/asprintf.c: Likewise.
41965 * lib/c-strcasecmp.c: Likewise.
41966 * lib/c-strcasestr.c: Likewise.
41967 * lib/c-strncasecmp.c: Likewise.
41968 * lib/c-strstr.c: Likewise.
41969 * lib/classpath.c: Likewise.
41970 * lib/clean-temp.c: Likewise.
41971 * lib/concatpath.c: Likewise.
41972 * lib/copy-file.c: Likewise.
41973 * lib/csharpcomp.c: Likewise.
41974 * lib/csharpexec.c: Likewise.
41975 * lib/execute.c: Likewise.
41976 * lib/fatal-signal.c: Likewise.
41977 * lib/findprog.c: Likewise.
41978 * lib/fwriteerror.c: Likewise.
41979 * lib/gl_array_list.c: Likewise.
41980 * lib/gl_array_oset.c: Likewise.
41981 * lib/gl_avltree_list.c: Likewise.
41982 * lib/gl_avltree_oset.c: Likewise.
41983 * lib/gl_avltreehash_list.c: Likewise.
41984 * lib/gl_carray_list.c: Likewise.
41985 * lib/gl_linked_list.c: Likewise.
41986 * lib/gl_linkedhash_list.c: Likewise.
41987 * lib/gl_list.c: Likewise.
41988 * lib/gl_oset.c: Likewise.
41989 * lib/gl_rbtree_list.c: Likewise.
41990 * lib/gl_rbtree_oset.c: Likewise.
41991 * lib/gl_rbtreehash_list.c: Likewise.
41992 * lib/imaxabs.c: Likewise.
41993 * lib/imaxdiv.c: Likewise.
41994 * lib/javacomp.c: Likewise.
41995 * lib/javaexec.c: Likewise.
41996 * lib/javaversion.c: Likewise.
41997 * lib/linebreak.c: Likewise.
41998 * lib/localcharset.c: Likewise.
41999 * lib/lock.c: Likewise.
42000 * lib/mbchar.c: Likewise.
42001 * lib/mbswidth.c: Likewise.
42002 * lib/mkdtemp.c: Likewise.
42003 * lib/pipe.c: Likewise.
42004 * lib/printf-args.c: Likewise.
42005 * lib/printf-parse.c: Likewise.
42006 * lib/progname.c: Likewise.
42007 * lib/progreloc.c: Likewise.
42008 * lib/readlink.c: Likewise.
42009 * lib/sh-quote.c: Likewise.
42010 * lib/stpcpy.c: Likewise.
42011 * lib/stpncpy.c: Likewise.
42012 * lib/strcasecmp.c: Likewise.
42013 * lib/strcasestr.c: Likewise.
42014 * lib/strcspn.c: Likewise.
42015 * lib/striconv.c: Likewise.
42016 * lib/strncasecmp.c: Likewise.
42017 * lib/strnlen1.c: Likewise.
42018 * lib/strstr.c: Likewise.
42019 * lib/strtok_r.c: Likewise.
42020 * lib/tls.c: Likewise.
42021 * lib/tmpdir.c: Likewise.
42022 * lib/unicodeio.c: Likewise.
42023 * lib/unsetenv.c: Likewise.
42024 * lib/vasnprintf.c: Likewise.
42025 * lib/vasprintf.c: Likewise.
42026 * lib/wait-process.c: Likewise.
42027 * lib/xallocsa.c: Likewise.
42028 * lib/xsetenv.c: Likewise.
42029 * lib/xstriconv.c: Likewise.
42031 2006-09-13 Simon Josefsson <jas@extundo.com>
42033 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42034 that internally, suggested by Ralf Wildenhues
42035 <Ralf.Wildenhues@gmx.de>.
42037 2006-09-13 Simon Josefsson <jas@extundo.com>
42039 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42041 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42043 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42045 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42046 longer worry about uses that don't define HAVE_CONFIG_H.
42047 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42048 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42049 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42050 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42051 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42052 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42053 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42054 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42055 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42056 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42057 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42058 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42059 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42060 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42061 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42062 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42063 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42064 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42065 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42066 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42067 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42068 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42069 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42070 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42071 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42072 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42073 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42074 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42075 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42076 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42077 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42078 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42079 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42080 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42081 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42082 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42083 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42084 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42085 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42086 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42087 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42090 2006-09-13 Eric Blake <ebb9@byu.net>
42092 * lib/getopt.c: Fix typo in last commit.
42094 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42096 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42099 2006-09-12 Jim Meyering <jim@meyering.net>
42101 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42102 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42103 Reported by Nelson H. F. Beebe.
42105 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42107 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42108 program_invocation_name and program_invocation_short_name are
42110 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42111 and program_invocation_short_name to argp.h, so they are visible
42113 * lib/argp.h: Likewise
42115 2006-09-10 Bruno Haible <bruno@clisp.org>
42117 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42118 m4/inttypes_h.m4, m4/uintmax_t.m4.
42120 2006-09-10 Bruno Haible <bruno@clisp.org>
42122 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42123 gl_AC_TYPE_UINTMAX_T.
42125 2006-09-10 Bruno Haible <bruno@clisp.org>
42127 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42129 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42131 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42132 convention. Text proposed by Bruno Haible.
42133 (struct argp_option): Document the use of N_() wrappers.
42135 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42136 '\v', and translate the two parts separately, instead of feeding
42137 the whole string to gettext. This allows to exclude
42138 '\v' from the strings visible to the translator by writing doc
42139 strings as N_("..") "\v" N_("..").
42141 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42143 * config/srclist.txt: Undo latest change; the bug was fixed.
42145 2006-09-09 Bruno Haible <bruno@clisp.org>
42147 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42148 assignments if building a library without libtool.
42149 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42150 in func_emit_lib_Makefile_am.
42151 (func_import): When building a static library libfoo.a, arrange to
42152 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42153 (func_create_testdir): Likewise.
42154 * modules/gc (configure.ac, Makefile.am): If building statically,
42155 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42156 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42157 * modules/striconv (configure.ac, Makefile.am): Likewise.
42158 Based on a suggestion by Ralf Wildenhues.
42160 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42162 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42163 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42166 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42167 Add year_2050_test to catch glibc bug 2821
42168 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42170 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42171 Prefer #ifdef to #if.
42173 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42174 Return from 'main' instead of calling 'exit'.
42176 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42178 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42179 returned the maximum time_t value rather than (time_t) -1.
42180 Problem originally reported by William Bardwell
42181 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42183 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42185 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42188 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42190 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42193 2006-09-08 Jim Meyering <jim@meyering.net>
42195 Don't make generated files read-only. That would bother too many
42196 people. However, do retain the ability to work when targets are
42197 read-only: remove the destination and temporary files before writing
42198 them (when generated via sed or echo), or by using the -f option for
42199 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42200 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42201 * modules/byteswap, modules/configmake, modules/fcntl:
42202 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42203 * modules/localcharset, modules/netinet_in, modules/poll:
42204 * modules/stdbool, modules/stdint, modules/sys_select:
42205 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42207 2006-09-08 Jim Meyering <jim@meyering.net>
42209 Avoid new build failure on FreeBSD 6.0.
42210 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42211 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42212 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42214 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42216 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42218 2006-09-07 Jim Meyering <jim@meyering.net>
42220 Fix global typo in last change: use chmod u-w, not chmod u-x.
42221 Spotted by Paul Eggert and Bruce Korb.
42222 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42223 * modules/byteswap, modules/configmake, modules/fcntl:
42224 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42225 * modules/localcharset, modules/netinet_in, modules/poll:
42226 * modules/stdbool, modules/stdint, modules/sys_select:
42227 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42229 2006-09-06 Jim Meyering <jim@meyering.net>
42231 Make generated files be read-only.
42232 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42233 Ensure that each generated file is now read-only.
42234 * modules/argz: Likewise.
42235 * modules/arpa_inet: Likewise.
42236 * modules/byteswap: Likewise.
42237 * modules/configmake: Likewise.
42238 * modules/fcntl: Likewise.
42239 * modules/fnmatch: Likewise.
42240 * modules/getopt: Likewise.
42241 * modules/glob: Likewise.
42242 * modules/inttypes: Likewise.
42243 * modules/netinet_in: Likewise.
42244 * modules/poll: Likewise.
42245 * modules/stdbool: Likewise.
42246 * modules/stdint: Likewise.
42247 * modules/sys_select: Likewise.
42248 * modules/sys_socket: Likewise.
42249 * modules/sys_stat: Likewise.
42250 * modules/sysexits: Likewise.
42251 * modules/localcharset: Same as above, but continue using temporary
42252 file named "t-$@" (why different?) rather than the "$@-t" used
42255 * modules/sysexits (Makefile.am): Replace literal occurrences
42256 of "sysexit.h" more readable, and more consistent, "$@".
42258 2006-09-06 Bruno Haible <bruno@clisp.org>
42260 * modules/striconv: New file.
42261 * modules/xstriconv: New file.
42262 * MODULES.html.sh (Internationalization functions): Add striconv,
42265 2006-09-06 Bruno Haible <bruno@clisp.org>
42267 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42268 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42269 not using libtool correctly.
42271 2006-09-06 Bruno Haible <bruno@clisp.org>
42273 * lib/striconv.h: New file.
42274 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42276 * lib/xstriconv.h: New file.
42277 * lib/xstriconv.c: New file.
42279 2006-09-06 Bruno Haible <bruno@clisp.org>
42281 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42284 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42286 * lib/argz_.h: Sync from Libtool.
42288 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42289 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42291 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42293 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42295 * modules/trim: New file.
42297 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42299 * lib/trim.h: New file.
42300 * lib/trim.c: New file.
42302 2006-09-05 Bruno Haible <bruno@clisp.org>
42304 * MODULES.html.sh (String handling): Add trim.
42306 2006-09-04 Karl Berry <karl@gnu.org>
42308 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42309 until next release.
42311 2006-09-03 Bruno Haible <bruno@clisp.org>
42313 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42316 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42318 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42319 not gl_GETLOADAVG. Omit unneeded semicolons.
42320 Problems reported by Ralf Wildenhues in
42321 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42322 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42323 at the end, which is the usual gnulib style.
42325 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42326 of doing all the work ourselves.
42327 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42328 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42330 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42332 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42333 Problem reported by Ralf Wildenhues in
42334 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42336 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42337 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42339 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42341 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42342 yesterday's patch by changing test -n to test -z.
42344 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42346 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42347 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42348 the former is now obsolescent.
42350 * modules/chdir-long (Depends-on): Add fcntl.
42352 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42354 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42355 obsolescent, and programs should use gnulib instead.
42356 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42357 but with prefixes changed.
42359 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42361 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42362 or stdbool.h, because they might not exist while configuring.
42364 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42365 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42367 (O_DIRECTORY): Remove.
42369 2006-08-31 Eric Blake <ebb9@byu.net>
42371 * gnulib-tool: Don't let emacs change spaces to TAB.
42373 2006-08-31 Bruno Haible <bruno@clisp.org>
42375 * gnulib-tool: When calling func_import more than once, do it in a
42377 Reported by Eric Blake <ebb9@byu.net>.
42379 2006-08-31 Bruno Haible <bruno@clisp.org>
42381 * gnulib-tool (nl): Remove variable.
42382 (sed_transform_lib_file): Use more robust test for config-h module.
42383 (func_import): Fix typo in 2006-08-25 patch.
42385 2006-08-31 Bruno Haible <bruno@clisp.org>
42387 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42388 specified, augment Makefile.am variables instead of assigning them.
42390 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42392 Work around a bug in both the Linux and SunOS 64-bit kernels:
42393 nanosleep mishandles sleeps for longer than 2**31 seconds.
42394 Problem reported by Frank v Waveren in
42395 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42396 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42397 Check for nanosleep bug.
42398 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42400 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42402 Work around a bug in both the Linux and SunOS 64-bit kernels:
42403 nanosleep mishandles sleeps for longer than 2**31 seconds.
42404 Problem reported by Frank v Waveren in
42405 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42406 * lib/nanosleep.c (BILLION): New constant.
42407 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42408 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42411 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42413 * modules/nanosleep (Depends-on): Add gettime.
42415 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42416 and Simon Josefsson <jas@extundo.com>
42417 and Oskar Liljeblad <oskar@osk.mine.nu>
42419 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42420 * gnulib-tool (func_import): New license type 'unmodifiable license
42422 * modules/fdl: Use it. Longer description.
42423 * module/gpl, module/lgpl: New files.
42425 2006-08-30 Jim Meyering <jim@meyering.net>
42427 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42428 shadowing the parameter.
42430 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42434 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42436 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42437 sharing with gnulib. Report by Eric Blake.
42439 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42441 * modules/isapipe: New file.
42442 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42444 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42446 * modules/configmake (Makefile.am): Add a comment, and omit
42447 the CONFIGMAKE_ prefix from generated macro names. Suggested
42450 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42452 * m4/isapipe.m4: New file.
42454 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42456 * lib/isapipe.c, lib/isapipe.h: New files.
42458 2006-08-29 Jim Meyering <jim@meyering.net>
42460 * modules/configmake (Makefile.am): Make configmake.h depend on
42461 Makefile. Otherwise, a stale configmake.h could hang around.
42463 2006-08-29 Eric Blake <ebb9@byu.net>
42465 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42466 resolution of upstream bug 3044.
42468 2006-08-29 Bruno Haible <bruno@clisp.org>
42470 * modules/localcharset (Depends-on): Add configmake.
42471 (Makefile.am): Remove setting of LIBDIR through DEFS.
42473 2006-08-29 Bruno Haible <bruno@clisp.org>
42475 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42478 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42480 * modules/fcntl: New file.
42481 * modules/chdir-safer (Depends-on): Add fcntl.
42482 * modules/fts: Likewise.
42483 * modules/mkdir-p: Likewise.
42485 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42486 This undoes the most recent change, since we're now addressing the
42487 problem in a different way.
42489 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42490 into output, since the output might be called Makefile.am even
42491 if $makefile_name is something different.
42492 (func_import): Use $makefile_am rather than
42493 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42496 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42498 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42500 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42501 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42502 recent change to stdint.m4, since we're now addressing the problem in a
42505 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42507 * m4/fcntl_h.m4: New file.
42509 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42511 * lib/fcntl_.h: New file.
42512 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42514 * lib/dirchownmod.c: Likewise.
42515 * lib/fts.c: Likewise.
42517 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42518 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42519 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42520 just before including <inttypes.h>, to avoid circular inclusion.
42522 2006-08-28 Jim Meyering <jim@meyering.net>
42524 * doc/visibility.texi: Actually read and correct the grammar of the
42525 sentence affected by yesterday's change.
42527 2006-08-28 Eric Blake <ebb9@byu.net>
42529 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42532 2006-08-28 Eric Blake <ebb9@byu.net>
42534 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42536 2006-08-28 Eric Blake <ebb9@byu.net>
42538 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42540 2006-08-28 Bruno Haible <bruno@clisp.org>
42542 * modules/c-strstr: New file, from GNU gettext.
42543 * MODULES.html.sh (String handling): Add c-strstr.
42545 2006-08-28 Bruno Haible <bruno@clisp.org>
42547 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42549 Reported by Eric Blake.
42551 2006-08-28 Bruno Haible <bruno@clisp.org>
42553 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42554 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42555 * lib/vasprintf.c: Include errno.h, limits.h.
42556 (EOVERFLOW): New fallback definition.
42557 (vasprintf): Test here whether the string length is > INT_MAX.
42558 * lib/vsnprintf.c: Include errno.h, limits.h.
42559 (EOVERFLOW): New fallback definition.
42560 (vsnprintf): Fix bug when generated string was too long for the buffer.
42561 Test here whether the string length is > INT_MAX.
42563 2006-08-28 Bruno Haible <bruno@clisp.org>
42565 * lib/inttypes_.h (SCNX*): Remove definitions.
42566 Reported by Eric Blake.
42568 2006-08-28 Bruno Haible <bruno@clisp.org>
42570 * lib/c-strstr.h: New file, from GNU gettext.
42571 * lib/c-strstr.c: New file, from GNU gettext.
42573 2006-08-28 Bruno Haible <bruno@clisp.org>
42575 * gnulib-tool: Reorder some statements.
42577 2006-08-28 Bruno Haible <bruno@clisp.org>
42579 * gnulib-tool: New option --makefile-name.
42580 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42582 (func_import): Write $makefile_name to the cache file, and read it from
42583 there unless explicitly specified. Use $makefile_name as file name
42584 instead of Makefile.am. Adjust the recommendations accordingly.
42586 2006-08-28 Bruno Haible <bruno@clisp.org>
42588 * gnulib-tool (func_verify_module): Check against misapplying patch.
42590 2006-08-28 Bruno Haible <bruno@clisp.org>
42592 * gnulib-tool (func_relativize, func_relconcat): New functions.
42593 Give an error if --local-dir is given with --update.
42594 Remove trailing slashes from $local_gnulib_dir.
42595 (func_import): Store the relativized $local_gnulib_dir in
42596 gnulib-cache.m4, and read it from there if not specified explicitly.
42598 2006-08-28 Bruno Haible <bruno@clisp.org>
42600 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42601 is the current directory. Respect also $local_gnulib_dir.
42603 2006-08-28 Bruno Haible <bruno@clisp.org>
42604 Simon Josefsson <jas@extundo.com>
42607 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42609 2006-08-27 Jim Meyering <jim@meyering.net>
42611 * doc/visibility.texi: Remove duplicate word: "pointer".
42613 2006-08-26 Bruno Haible <bruno@clisp.org>
42615 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42616 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42617 (Makefile.am): Create inttypes.h from inttypes_.h.
42618 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42620 * modules/imaxabs: New file.
42622 * modules/imaxdiv: New file.
42624 2006-08-26 Bruno Haible <bruno@clisp.org>
42626 * m4/inttypes.m4: New file.
42627 * m4/_inttypes_h.m4: Remove file.
42628 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42630 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42632 * m4/imaxabs.m4: New file.
42634 * m4/imaxdiv.m4: New file.
42636 2006-08-26 Bruno Haible <bruno@clisp.org>
42638 * lib/inttypes_.h: New file.
42639 * lib/inttypes.h: Remove file.
42640 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42642 * lib/imaxabs.c: New file.
42644 * lib/imaxdiv.c: New file.
42646 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42648 New config-h module, so that "make" output needn't be cluttered
42649 by -DHAVE_CONFIG_H.
42650 * MODULES.html.sh (Support for building libraries and executables):
42652 * modules/config-h: New file.
42653 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42654 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42655 the config-h module is used.
42657 New configmake module, so that "make" output needn't be cluttered
42658 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42659 * MODULES.html.sh (Support for building libraries and executables):
42661 * modules/configmake: New file.
42663 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42665 * m4/config-h.m4: New file.
42667 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42669 * config/srclist.txt: Add elisp-comp.
42671 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42673 * MODULES.html.sh (Support for building libraries and executables):
42675 * build-aux/elisp-comp: New file.
42676 * modules/elisp-comp: New file.
42678 2006-08-24 Bruno Haible <bruno@clisp.org>
42680 * gnulib-tool (func_create_testdir): Use non-default values of
42681 sourcebase and m4base.
42683 2006-08-24 Bruno Haible <bruno@clisp.org>
42685 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42688 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42690 * modules/openat (Depends-on): Add lchown.
42692 2006-08-23 Bruno Haible <bruno@clisp.org>
42694 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42695 of gl_LOCK_EARLY instead of gl_LOCK.
42697 2006-08-23 Bruno Haible <bruno@clisp.org>
42699 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42701 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42703 2006-08-23 Bruno Haible <bruno@clisp.org>
42705 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42708 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42709 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42710 (gl_LOCK): New macro.
42712 2006-08-22 Simon Josefsson <jas@extundo.com>
42714 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42717 2006-08-22 Simon Josefsson <jas@extundo.com>
42719 * MODULES.html.sh: Add "Support for maintaining and release
42722 * build-aux/gnupload: New file, from coreutils.
42724 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42726 Avoid the need for AC_LIBSOURCES in m4 macros.
42727 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42728 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42729 * modules/check-version (EXTRA_DIST): Add check-version.h.
42730 * modules/crc (EXTRA_DIST): Add crc.h.
42731 * modules/des (EXTRA_DIST): Add des.h.
42732 * modules/gc (EXTRA_DIST): Add gc.h.
42733 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42734 * modules/getline (EXTRA_DIST): Add getline.h.
42735 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42736 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42737 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42738 * modules/md2 (EXTRA_DIST): Add md2.h.
42739 * modules/md4 (EXTRA_DIST): Add md4.h.
42740 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42741 * modules/read-file (EXTRA_DIST): Add read-file.h.
42742 * modules/readline (EXTRA_DIST): Add readline.h.
42743 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42744 rijndael-api-fst.h.
42746 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42748 * m4/rijndael.m4 (gl_ARCFOUR):
42749 * m4/arctwo.m4 (gl_ARCTWO):
42750 * m4/check-version.m4 (gl_CHECK_VERSION):
42751 * m4/crc.m4 (gl_CRC):
42752 * m4/des.m4 (gl_DES):
42753 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42754 * m4/gc.m4 (gl_GC):
42755 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42756 * m4/getline.m4 (gl_FUNC_GETLINE):
42757 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42758 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42759 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42760 * m4/md2.m4 (gl_MD2):
42761 * m4/md4.m4 (gl_MD4):
42762 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42763 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42764 * m4/readline.m4 (gl_FUNC_READLINE):
42765 * m4/rijndael.m4 (gl_RIJNDAEL):
42766 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42767 to get the necessary .h files and whatnot.
42769 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42771 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42772 gnulib rather than the other way around.
42773 * config/srclistvars.sh (COREUTILS): Remove.
42775 2006-08-22 Jim Meyering <jim@meyering.net>
42777 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42779 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42781 2006-08-22 Eric Blake <ebb9@byu.net>
42783 * modules/regexprops-generic: New file.
42784 * MODULES.html.sh (Support for building documentation): List it.
42786 2006-08-22 Eric Blake <ebb9@byu.net>
42788 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42789 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42790 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42791 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42793 2006-08-22 Bruno Haible <bruno@clisp.org>
42795 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42796 and lib_LTLIBRARIES like the other lib_* variables.
42798 2006-08-22 Bruno Haible <bruno@clisp.org>
42800 * build-aux/x-to-1.in: New file, from GNU gettext.
42802 2006-08-22 Bruno Haible <bruno@clisp.org>
42804 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42807 2006-08-22 Bruno Haible <bruno@clisp.org>
42809 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42812 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42815 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42817 Problem reported by Bruno Haible.
42819 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42821 Avoid the need for AC_LIBSOURCES in m4 macros.
42822 * modules/acl (EXTRA_DIST): Add acl.h.
42823 * modules/argmatch (Files): Add m4/argmatch.m4.
42824 (configure.ac): Add gl_ARGMATCH.
42825 (EXTRA_DIST): Renamed from lib_SOURCES, for
42826 consistency with the other modules. Remove argmatch.c.
42827 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42828 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42829 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42830 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42831 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42832 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42833 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42834 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42835 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42836 * modules/closeout (EXTRA_DIST): Add closeout.h.
42837 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42838 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42839 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42840 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
42841 dirname.h; remove basename.c and stripslash.c.
42842 * modules/exclude (EXTRA_DIST): Add exclude.h.
42843 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42844 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42845 * modules/file-type (EXTRA_DIST): Add file-type.h.
42846 * modules/filemode (EXTRA_DIST): Add filemode.h.
42847 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42848 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42849 * modules/fpending (EXTRA_DIST): Add __fpending.h.
42850 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42851 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42852 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42853 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42854 * modules/getdate (EXTRA_DIST): Add getdate.c.
42855 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42856 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42857 * modules/getpass (EXTRA_DIST): Add getpass.h.
42858 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42859 * modules/group-member (EXTRA_DIST): Add group-member.h.
42860 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42861 * modules/hash (EXTRA_DIST): Add hash.h.
42862 * modules/human (EXTRA_DIST): Add human.h.
42863 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42864 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42865 * modules/lchown (EXTRA_DIST): Add lchown.h.
42866 * modules/long-options (EXTRA_DIST): Add long-options.h.
42867 * modules/lstat (EXTRA_DIST): Add lstat.h.
42868 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42869 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42870 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42871 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42872 * modules/memxor (EXTRA_DIST): Add memxor.h.
42873 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42874 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42875 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42876 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42877 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42878 * modules/physmem (EXTRA_DIST): Add physmem.h.
42879 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42880 * modules/posixver (EXTRA_DIST): Add posixver.h.
42881 * modules/quote (EXTRA_DIST): Add quote.h.
42882 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42883 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42884 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42885 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42886 regex_internal.h regexec.c.
42887 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42888 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42889 * modules/same (EXTRA_DIST): Add same.h.
42890 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42891 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42892 * modules/savedir (EXTRA_DIST): Add savedir.h.
42893 * modules/sha1 (EXTRA_DIST): Add sha1.h.
42894 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42895 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42896 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42897 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42898 * modules/strdup (EXTRA_DIST): Add strdup.h.
42899 * modules/strftime (EXTRA_DIST): Add strftime.h.
42900 * modules/strndup (EXTRA_DIST): Add strndup.h.
42901 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42902 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42903 * modules/time_r (EXTRA_DIST): Add time_r.h.
42904 * modules/timespec (EXTRA_DIST): Add timespec.h.
42905 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42906 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42907 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42908 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42909 * modules/userspec (EXTRA_DIST): Add userspec.h.
42910 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42911 * modules/utimens (EXTRA_DIST): Add utimens.h.
42912 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42913 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42914 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42915 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42916 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42917 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42918 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42919 * modules/yesno (EXTRA_DIST): Add yesno.h.
42921 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42923 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42925 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42926 * m4/dev-ino.m4, same-inode.m4: Remove.
42928 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42929 * m4/acl.m4 (AC_FUNC_ACL):
42930 * m4/backupfile.m4 (gl_BACKUPFILE):
42931 * m4/c-strtod.m4 (gl_C99_STRTOLD):
42932 * m4/canon-host.m4 (gl_CANON_HOST):
42933 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42934 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42935 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42936 * m4/cloexec.m4 (gl_CLOEXEC):
42937 * m4/close-stream.m4 (gl_CLOSE_STREAM):
42938 * m4/closeout.m4 (gl_CLOSEOUT):
42939 * m4/dirfd.m4 (gl_FUNC_DIRFD):
42940 * m4/dirname.m4 (gl_DIRNAME):
42941 * m4/exclude.m4 (gl_EXCLUDE):
42942 * m4/exitfail.m4 (gl_EXITFAIL):
42943 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42944 * m4/file-type.m4 (gl_FILE_TYPE):
42945 * m4/filemode.m4 (gl_FILEMODE):
42946 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42947 * m4/fpending.m4 (gl_FUNC_FPENDING):
42948 * m4/fprintftime.m4 (gl_FPRINTFTIME):
42949 * m4/fts.m4 (gl_FUNC_FTS):
42950 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42951 * m4/getdate.m4 (gl_GETDATE):
42952 * m4/gethrxtime.m4 (gl_GETHRXTIME):
42953 * m4/getpagesize.m4 (gl_GETPAGESIZE):
42954 * m4/getpass.m4 (gl_FUNC_GETPASS):
42955 * m4/gettime.m4 (gl_GETTIME):
42956 * m4/getugroups.m4 (gl_GETUGROUPS):
42957 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42958 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42959 * m4/hard-locale.m4 (gl_HARD_LOCALE):
42960 * m4/hash.m4 (gl_HASH):
42961 * m4/idcache.m4 (gl_IDCACHE):
42962 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42963 * m4/lchown.m4 (gl_FUNC_LCHOWN):
42964 * m4/long-options.m4 (gl_LONG_OPTIONS):
42965 * m4/lstat.m4 (gl_FUNC_LSTAT):
42966 * m4/md5.m4 (gl_MD5):
42967 * m4/memcasecmp.m4 (gl_MEMCASECMP):
42968 * m4/memcoll.m4 (gl_MEMCOLL):
42969 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42970 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42971 * m4/memxor.m4 (gl_MEMXOR):
42972 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42973 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42974 * m4/modechange.m4 (gl_MODECHANGE):
42975 * m4/mountlist.m4 (gl_MOUNTLIST):
42976 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42977 * m4/openat.m4 (gl_FUNC_OPENAT):
42978 * m4/pathmax.m4 (gl_PATHMAX):
42979 * m4/physmem.m4 (gl_PHYSMEM):
42980 * m4/posixtm.m4 (gl_POSIXTM):
42981 * m4/posixver.m4 (gl_POSIXVER):
42982 * m4/quote.m4 (gl_QUOTE):
42983 * m4/quotearg.m4 (gl_QUOTEARG):
42984 * m4/readtokens.m4 (gl_READTOKENS):
42985 * m4/readutmp.m4 (gl_READUTMP):
42986 * m4/regex.m4 (gl_REGEX):
42987 * m4/safe-read.m4 (gl_SAFE_READ):
42988 * m4/safe-write.m4 (gl_SAFE_WRITE):
42989 * m4/same.m4 (gl_SAME):
42990 * m4/save-cwd.m4 (gl_SAVE_CWD):
42991 * m4/savedir.m4 (gl_SAVEDIR):
42992 * m4/settime.m4 (gl_SETTIME):
42993 * m4/sha1.m4 (gl_SHA1):
42994 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42995 * m4/stat-macros.m4 (gl_STAT_MACROS):
42996 * m4/stat-time.m4 (gl_STAT_TIME):
42997 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42998 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42999 * m4/strdup.m4 (gl_FUNC_STRDUP):
43000 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43001 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43002 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43003 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43004 * m4/time_r.m4 (gl_TIME_R):
43005 * m4/timespec.m4 (gl_TIMESPEC):
43006 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43007 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43008 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43009 * m4/userspec.m4 (gl_USERSPEC):
43010 * m4/utimecmp.m4 (gl_UTIMECMP):
43011 * m4/utimens.m4 (gl_UTIMENS):
43012 * m4/xalloc.m4 (gl_XALLOC):
43013 * m4/xgetcwd.m4 (gl_XGETCWD):
43014 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43015 * m4/xreadlink.m4 (gl_XREADLINK):
43016 * m4/xstrtod.m4 (gl_XSTRTOD):
43017 * m4/yesno.m4 (gl_YESNO):
43018 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43019 to get the necessary .h files and whatnot.
43021 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43022 Bruno Haible <bruno@clisp.org>
43024 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43025 /bin/sh understanding of '!' conditional negation.
43027 2006-08-21 Jim Meyering <jim@meyering.net>
43029 * modules/openat (Depends-on): Really alphabetize.
43031 * modules/acl (Depends-on): Add error and quote.
43033 * check-module (find_included_lib_files): Add at-func.c to the
43034 ok-to-include-more-than-once white list.
43036 * modules/openat (Depends-on): Add lstat. Alphabetize.
43038 2006-08-21 Bruno Haible <bruno@clisp.org>
43040 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43041 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43042 Reported by Martin Lambers <marlam@marlam.de>.
43044 2006-08-21 Bruno Haible <bruno@clisp.org>
43046 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43047 specify an installation location, don't emit a noinst_LIBRARIES or
43048 noinst_LTLIBRARIES assignment.
43050 2006-08-21 Bruno Haible <bruno@clisp.org>
43053 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43054 BeOS has mbrtowc() but no <wctype.h>.
43056 2006-08-21 Bruno Haible <bruno@clisp.org>
43059 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43062 2006-08-21 Bruno Haible <bruno@clisp.org>
43065 * lib/mbchar.h: Include <wctype.h> only if it exists.
43067 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43069 Remove files that are no longer needed by their respective modules.
43070 * m4/obstack.m4: Remove.
43071 * m4/strerror_r.m4: Remove.
43072 * m4/uint32_t.m4: Remove.
43073 * m4/uintptr_t.m4: Remove.
43074 * m4/ullong_max.m4: Remove.
43075 * m4/xstrtoimax.m4: Remove.
43076 * m4/xstrtoumax.m4: Remove.
43078 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43079 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43080 dependencies now capture this.
43082 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43083 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43084 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43085 * m4/human.m4 (gl_HUMAN): Likewise.
43086 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43087 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43089 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43091 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43092 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43094 * m4/human.m4 (gl_HUMAN): Likewise.
43095 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43096 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43097 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43098 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43099 * m4/xstrtol (gl_XSTRTOL): Likewise.
43101 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43102 AC_TYPE_LONG_LONG_INT.
43103 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43104 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43105 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43106 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43108 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43111 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43112 (gl_PREREQ_XSTRTOUL): Remove.
43114 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43116 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43119 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43121 Add and change modules to make it easier for coreutils to use
43123 * modules/backupfile (Files): Remove m4/d-ino.m4.
43124 (Depends-on): Add d-ino.
43125 * modules/cycle-check (Depends-on): Add stdint.
43126 (lib_SOURCES): Add cycle-check.h.
43127 * modules/d-ino: New module.
43128 * modules/d-type: New module.
43129 * modules/error (Files): Remove m4/strerror_r.m4.
43130 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43131 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43132 m4/inttypes_h.m4, m4/uintmax_t.m4.
43133 (Depends-on): Add stdint.
43134 (lib_SOURCES): Add fsusage.h.
43135 * modules/getcwd (Files): Remove d-ino.m4.
43136 (Depends-on): Add d-ino.
43137 * modules/getndelim2 (Depends-on): Add stdint.
43138 * modules/glob (Files): Remove m4/d-type.m4.
43139 (Depends-on): Add d-type.
43140 * modules/host-os: New module.
43141 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43142 m4/inttypes_h.m4, m4/uintmax_t.m4.
43143 * Depends-on: Add stdint.
43144 (lib_SOURCES): Add human.h.
43145 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43146 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43147 m4/uintmax_t.m4, m4/ulonglong.m4.
43148 (Depends-on): Add stdint.
43149 (EXTRA_DIST): Add inttostr.h.
43150 * modules/lchmod: New module.
43151 * modules/link-follow: New module.
43152 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43153 (Depends-on): Add lchmod.
43154 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43155 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43156 (Depends-on): Add stdint.
43157 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43158 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43159 (Depends-on): Add stdint.
43160 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43161 * modules/perl: New module.
43162 * modules/regex (Depends-on): Add stdint.
43163 * modules/rmdir-errno: New module.
43164 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43166 (Depends-on): Add stdint.
43167 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43169 (Depends-on): Add stdint.
43170 * modules/unlink-busy: New module.
43171 * modules/utimecmp (Depends-on): Add stdint.
43172 * modules/uptime: New module.
43173 * modules/winsz-ioctl: New module.
43174 * modules/winsz-termios: New module.
43175 * modules/xnanosleep (Depends-on): Add nanosleep.
43176 * modules/ullong_max: Remove.
43177 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43178 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43179 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43180 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43181 (Depends-on): Add inttypes.
43182 (lib_SOURCES): Add xstrtol.h.
43183 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43184 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43185 * MODULES.html.sh: Move 'assert' into the assert section.
43186 Move 'dummy' into the linking section.
43188 Add section for compatibility checks for POSIX:2001 functions,
43189 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43190 winsz-ioctl, and winsz-termios into it.
43192 Add top-level Misc section and put host-os, perl, and uptime
43195 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43197 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43198 now assume the stdint module. Do not include inttypes.h.
43199 * lib/fsusage.h: Likewise.
43200 * lib/getndelim2.c: Likewise.
43201 * lib/human.h: Likewise.
43202 * lib/inttostr.h: Likewise.
43203 * lib/obstack.c: Likewise.
43204 * lib/regex_internal.h: Likewise.
43205 * lib/tempname.c: Likewise.
43206 * lib/utimecmp.c: Likewise.
43207 * lib/xstrtol.h: Likewise.
43209 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43211 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43212 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43213 * lib/xtime.h: Likewise.
43215 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43217 * modules/openat (Files): Add lib/fchmodat.c.
43218 Fixes problem reported by Jay Youngman.
43220 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43222 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43223 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43225 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43226 Bruno Haible <bruno@clisp.org>
43228 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43229 and is a script that invokes bison. Tighten the code. Add comments.
43231 2006-08-18 Jim Meyering <jim@meyering.net>
43233 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43234 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43235 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43236 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43238 2006-08-18 Bruno Haible <bruno@clisp.org>
43240 * modules/bison-i18n: New file.
43241 * MODULES.html.sh (Internationalization functions): Add it.
43243 2006-08-18 Bruno Haible <bruno@clisp.org>
43245 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43246 sys/statvfs.h. When getmntinfo was found, check its declaration and
43247 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43249 2006-08-18 Bruno Haible <bruno@clisp.org>
43251 * m4/bison-i18n.m4: New file, from bison.
43253 2006-08-18 Bruno Haible <bruno@clisp.org>
43255 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43256 (ME_DUMMY): Treat "kernfs" as a dummy.
43257 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43259 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43261 Update from coreutils.
43263 2006-08-15 Jim Meyering <jim@meyering.net>
43265 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43267 2006-01-17 Jim Meyering <jim@meyering.net>
43269 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43271 2006-01-11 Jim Meyering <jim@meyering.net>
43273 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43274 Check for the lchmod function.
43276 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43278 Update from coreutils.
43280 * lib/__fpending.h: Add copyright notice.
43281 * lib/fprintftime.h: Likewise.
43282 * lib/savedir.c: Use (C) in copyright notice.
43283 * lib/savedir.h: Likewise.
43285 2006-08-15 Jim Meyering <jim@meyering.net>
43287 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43288 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43289 in support of the EXPECTED_ERRNO macro.
43290 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43291 definitions. Instead, define the appropriate symbols and include
43293 * lib/mkdirat.c (mkdirat): Likewise.
43294 * lib/fchmodat.c (fchmodat): Likewise.
43295 (ENOSYS): Remove definition.
43296 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43297 it. Don't include "unistd--.h" -- it wasn't ever used.
43299 2006-01-17 Jim Meyering <jim@meyering.net>
43301 Rewrite fts.c not to change the current working directory,
43302 by using openat, fstatat, fdopendir, etc..
43304 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43305 (HAVE_OPENAT_SUPPORT): Define.
43306 [_LIBC] (fchdir): Don't undef or define; no longer used.
43307 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43308 Now, this `function' always succeeds, and consumes its file descriptor
43309 parameter -- so callers must not close such FDs. Update callers.
43310 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43311 (diropen): Add parameter, SP. Adjust all callers.
43312 Implement using diropen_fd, rather than open.
43313 (fts_open): Initialize new member, fts_cwd_fd.
43314 Remove fts_rft-setting code.
43315 (fts_close): Close fts_cwd_fd, if necessary.
43316 (__opendir2): Define in terms of opendir or opendirat,
43317 depending on whether the FST_NOCHDIR flag is set.
43318 (fts_build): Since fts_safe_changedir consumes its FD, and since
43319 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43320 and close the dup'd file descriptor upon failure.
43321 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43322 (fts_safe_changedir): Tweak semantics to reflect that this function
43323 now calls cwd_advance_fd and hence consumes its FD argument.
43324 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43325 [struct FTS] (fts_rft): Remove now-unused member.
43326 [struct FTS] (fts_cycle.state): Improve comment.
43328 * lib/openat.c (openat_needs_fchdir): New function.
43329 * lib/openat.h (openat_needs_fchdir): Declare it.
43331 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43333 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43334 Problem and fix reported by Pádraig Brady in
43335 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43337 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43339 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43341 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43343 * lib/memcoll.c (memcoll): Optimize for the common case where the
43344 arguments are bytewise equal.
43346 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43348 * doc/regexprops-generic.texi: Add a copyright notice.
43350 2006-08-15 Bruno Haible <bruno@clisp.org>
43352 * modules/tmpdir (License): Change to LGPL.
43354 2006-08-15 Bruno Haible <bruno@clisp.org>
43356 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43359 2006-08-14 Simon Josefsson <jas@extundo.com>
43361 * config/srclist.txt: Add gnupload.
43363 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43365 Change copyright notice from LGPL 2 to GPL 2, since that's the
43366 standard form used in the gnulib repository.
43367 * tests/test-lock.c: Likewise.
43368 * tests/test-stdint.c: Likewise.
43369 * tests/test-tls.c: Likewise.
43371 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43372 prelude-manager. User shorter URLs for GNU projects, without '?'.
43373 Add copyright notice.
43375 * check-module: Add copyright notice. Output a copyright
43376 notice if "--version" is specified.
43377 * modules/COPYING: New file.
43378 * tests/test-getaddrinfo.c: Add copyright notice.
43379 * tests/test-verify.c: Likewise.
43381 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43383 Change copyright notice from LGPL 2 to GPL 2, since that's the
43384 standard form used in the gnulib repository.
43385 * lib/lock.c: LGPL -> GPL.
43386 * lib/lock.h: Likewise.
43387 * lib/strnlen1.c: Likewise.
43388 * lib/strnlen1.h: Likewise.
43389 * lib/tls.c: Likewise.
43390 * lib/tls.h: Likewise.
43391 * lib/tmpdir.c: Likewise.
43393 * lib/TODO: Remove; this belongs only in coreutils.
43395 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43397 Add copyright notices to long-enough files that lack them, since
43398 otherwise the files aren't clearly free. Use the same notice that
43399 getdate.texi already uses.
43400 * doc/alloca-opt.texi: Add copyright notice.
43401 * doc/alloca.texi: Likewise.
43402 * doc/ctime.texi: Likewise.
43403 * doc/functions.texi: Likewise.
43404 * doc/gcd.texi: Likewise.
43405 * doc/gnulib-tool.texi: Likewise.
43406 * doc/inet_ntoa.texi: Likewise.
43407 * doc/visibility.texi: Likewise.
43409 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43410 * doc/quote.texi: Add copyright notice.
43412 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43413 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43414 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43415 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43416 is now obsolete, and give a pointer to the Sun list.
43417 Add copyright notice.
43419 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43421 * config/srclistvars.sh: Add copyright notice.
43423 2006-08-14 Eric Blake <ebb9@byu.net>
43425 Import the following change from libc:
43427 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43430 * lib/misc/error.c: Add space between program name and message if file
43433 2006-08-12 Karl Berry <karl@gnu.org>
43435 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43436 remove, these originate in gnulib now.
43438 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43440 * doc/Makefile (standards.info standards.html standards.dvi):
43441 Also depend on make-stds.texi.
43443 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43445 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43446 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43448 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43449 in wchar_t. Problem reported by Eric Blake.
43451 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43452 LEN is smaller than SIZE. Suggested by Bruno Haible.
43453 Also, help the compiler to keep LEN in a register.
43455 2006-08-11 Eric Blake <ebb9@byu.net>
43457 * users.txt: Sort. Add tar.
43459 2006-08-11 Bruno Haible <bruno@clisp.org>
43461 * users.txt: New file.
43463 2006-08-11 Bruno Haible <bruno@clisp.org>
43465 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43466 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43468 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43470 * modules/snprintf (Depends-on): Remove minmax.
43471 (Maintainer): Add self and Bruno.
43473 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43475 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43476 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43477 (EOVERFLOW): Define if the system does not.
43478 Do not include "minmax.h"; it wasn't used.
43479 (snprintf): Don't assume size_t promotes to an unsigned type.
43480 Fix bug when generated string was too long for the buffer: the
43481 buffer's contents are supposed to be the initial prefix of the
43482 output. Don't assume vasnprintf returns EOVERFLOW if the size
43483 exceeds INT_MAX; do the check ourselves.
43485 Import the following changes from libc:
43487 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43489 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43490 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43491 set wc to the byte which couldn't be converted.
43492 (re_string_reconstruct): Don't clear valid_raw_len before calling
43493 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43494 tip_context using re_string_context_at.
43496 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43498 * lib/posix/regex.h: g++ still cannot handled [restrict].
43500 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43502 * lib/posix/regex.h: Remove special handling for VMS.
43504 2006-08-10 Jim Meyering <jim@meyering.net>
43506 * modules/same-inode: New module.
43507 * modules/dev-ino: New module.
43508 * modules/cycle-check: Depend on these modules, rather than simply
43509 including their .h files.
43510 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43511 required via m4/cycle-check.m4.
43512 * modules/same: Depend on new same-inode module, rather than
43513 including same-inode.h.
43514 * modules/chdir-safer: New file.
43516 * modules/chown (Depends-on): Add stat-macros.
43518 2006-08-10 Jim Meyering <jim@meyering.net>
43520 * m4/cycle-check.m4: New file.
43521 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43522 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43524 2006-08-10 Eric Blake <ebb9@byu.net>
43526 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43527 in from original proposal.
43529 2006-08-10 Eric Blake <ebb9@byu.net>
43530 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43532 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43535 2006-08-10 Bruno Haible <bruno@clisp.org>
43537 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43540 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43542 Sync from coreutils.
43544 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43546 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43547 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43549 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43551 * modules/restrict: Remove; no longer needed now that we assume
43552 Autoconf 2.59 or later.
43553 * MODULES.html.sh: Remove 'restrict'.
43554 * modules/argp (Depends-on): Remove 'restrict'.
43555 * modules/base64 (Depends-on): Likewise.
43556 * modules/gc (Depends-on): Likewise.
43557 * modules/getaddrinfo (Depends-on): Likewise.
43558 * modules/glob (Depends-on): Likewise.
43559 * modules/inet_ntop (Depends-on): Likewise.
43560 * modules/inet_pton (Depends-on): Likewise.
43561 * modules/memxor (Depends-on): Likewise.
43562 * modules/regex (Depends-on): Likewise.
43563 * modules/strtok_r (Depends-on): Likewise.
43564 * modules/time_r (Depends-on): Likewise.
43566 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43568 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43569 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43570 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43571 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43572 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43573 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43574 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43575 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43577 Merge from coreutils.
43578 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43579 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43580 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43581 * m4/time_r.m4 (gl_TIME_R): Likewise.
43583 2006-08-09 Karl Berry <karl@gnu.org>
43585 * config/srclist.txt: no more gettext-tools, per Bruno.
43587 2006-08-08 Eric Blake <ebb9@byu.net>
43589 * modules/verror: New module.
43590 * MODULES.html.sh: Document it.
43592 2006-08-08 Eric Blake <ebb9@byu.net>
43594 * lib/verror.h, lib/verror.c: New files.
43596 2006-08-08 Eric Blake <ebb9@byu.net>
43598 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43599 verror_at_line output complies with GNU Coding Standards even when
43602 2006-08-07 Bruno Haible <bruno@clisp.org>
43604 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43606 Reported by Ralf Wildenhues.
43608 2006-08-07 Bruno Haible <bruno@clisp.org>
43610 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43611 in an AC_DEFUN. Needed so that the autoconf snippets can use
43614 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43616 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43617 Initialize pkgdata_DATA.
43618 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43621 2006-08-06 Eric Blake <ebb9@byu.net>
43623 * lib/error.h: Fold in some upstream changes from glibc.
43624 * lib/error.c: Likewise.
43626 2006-08-04 Bruno Haible <bruno@clisp.org>
43628 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43629 Make the mostlyclean-local rule depend on mostlyclean-generic.
43630 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43632 2006-07-31 Bruno Haible <bruno@clisp.org>
43634 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43635 <stdlib.h>, <string.h>.
43637 2006-07-30 Bruno Haible <bruno@clisp.org>
43639 * modules/readlink (License): Change to LGPL.
43641 2006-07-30 Bruno Haible <bruno@clisp.org>
43643 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43644 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43645 set PKGDATADIR to point to it.
43647 2006-07-30 Bruno Haible <bruno@clisp.org>
43649 * modules/csharpexec (configure.ac): Comment out macro invocation.
43650 * modules/javaexec (configure.ac): Likewise.
43651 * modules/javacomp-script (configure.ac): Likewise.
43653 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43655 2006-07-30 Bruno Haible <bruno@clisp.org>
43657 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43660 2006-07-30 Bruno Haible <bruno@clisp.org>
43662 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43664 2006-07-30 Bruno Haible <bruno@clisp.org>
43666 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43667 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43670 2006-07-29 Bruno Haible <bruno@clisp.org>
43672 Make it possible for gnulib-tool to work with locally modified or
43673 augmented gnulib repositories.
43674 * gnulib-tool (func_usage): Document --local-dir option.
43675 (local_gnulib_dir): New variable.
43676 Handle --local-dir option.
43677 (func_lookup_file): New function.
43678 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43679 (func_get_description, func_get_filelist, func_get_description,
43680 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43681 func_get_automake_snippet, func_get_include_directive,
43682 func_get_license, func_get_maintainer): Use func_lookup_file.
43683 (func_import, func_create_testdir): Use func_lookup_file.
43685 2006-07-29 Bruno Haible <bruno@clisp.org>
43687 * modules/setenv (Depends-on): Add unistd.
43689 2006-07-29 Bruno Haible <bruno@clisp.org>
43691 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43693 2006-07-29 Bruno Haible <bruno@clisp.org>
43695 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43697 2006-07-29 Bruno Haible <bruno@clisp.org>
43699 * gnulib-tool (import, update): If there is no Makefile.am, look at
43700 aclocal.m4, instead of bailing out.
43702 2006-07-29 Bruno Haible <bruno@clisp.org>
43704 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43705 Categorize the options by when they are useful.
43707 2006-07-29 Bruno Haible <bruno@clisp.org>
43709 * gnulib-tool (func_usage): Document option --no-libtool.
43710 Handle option --no-libtool.
43711 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43712 for changed semantics of $libtool variable.
43713 (func_import): Likewise. If libtool is not used, show this through
43714 an option --no-libtool.
43715 (func_create_testdir): Update.
43717 2006-07-29 Bruno Haible <bruno@clisp.org>
43719 * gnulib-tool (func_import): Extend error message about missing
43722 2006-07-29 Bruno Haible <bruno@clisp.org>
43724 * gnulib-tool (func_import): Don't create the $docbase directory if
43725 there is no file to store there.
43727 2006-07-29 Bruno Haible <bruno@clisp.org>
43729 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43730 relevant, look for configure.ac there, not in the current directory.
43731 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43733 2006-07-29 Bruno Haible <bruno@clisp.org>
43735 * gnulib-tool (SORT): New variable.
43736 (func_usage): Undocument --assume-autoconf option.
43737 Remove --assume-autoconf option handling.
43738 (autoconf_minversion): Determine from the contents of configure.ac.
43739 (func_import): Remove autoconf_minversion handling.
43740 Suggested by Eric Blake.
43742 2006-07-29 Bruno Haible <bruno@clisp.org>
43744 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43746 2006-07-29 Bruno Haible <bruno@clisp.org>
43748 * config/srclist.txt (*setenv.[ch]): Remove rules.
43750 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43752 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43754 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43756 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43759 2006-07-28 Simon Josefsson <jas@extundo.com>
43761 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43762 * modules/inet_pton (Depends-on): Likewise.
43764 2006-07-28 Simon Josefsson <jas@extundo.com>
43766 * m4/netinet_in_h.m4: New file.
43768 2006-07-28 Simon Josefsson <jas@extundo.com>
43770 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43773 2006-07-28 Simon Josefsson <jas@extundo.com>
43775 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43778 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43780 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43781 setgid on directories only if they set these bits.
43782 * lib/modechange.h: Remove obsolete comment about masks.
43784 2006-07-28 Eric Blake <ebb9@byu.net>
43786 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43789 2006-07-28 Bruno Haible <bruno@clisp.org>
43791 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43793 2006-07-28 Bruno Haible <bruno@clisp.org>
43795 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43797 2006-07-28 Bruno Haible <bruno@clisp.org>
43799 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43800 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43802 Avoids link error on FreeBSD 4.x.
43803 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43805 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43807 * lib/mbswidth.c (iswcntrl): Likewise.
43809 2006-07-27 Bruno Haible <bruno@clisp.org>
43811 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43814 2006-07-27 Bruno Haible <bruno@clisp.org>
43816 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43817 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43820 2006-07-26 Eric Blake <ebb9@byu.net>
43822 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43824 2006-07-26 Eric Blake <ebb9@byu.net>
43826 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43827 like mingw that lack mkstemp.
43828 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43829 avoid compilation warning on mingw.
43831 2006-07-26 Bruno Haible <bruno@clisp.org>
43833 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43834 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43835 INT_FAST*_MIN, INTPTR_MIN.
43837 2006-07-25 Bruno Haible <bruno@clisp.org>
43839 * modules/version-etc (Depends-on): Add stdarg.
43841 2006-07-25 Bruno Haible <bruno@clisp.org>
43843 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43846 2006-07-25 Bruno Haible <bruno@clisp.org>
43848 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43849 defined in <stdarg.h> or config.h.
43851 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43853 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43854 (gl_STDIO_SAFER): Remove.
43856 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43858 * MODULES.html.sh (File stream based Input/Output):
43859 Add fopen-safer, tmpfile-safer; remove stdio-safer.
43860 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43861 * modules/fopen-safer, modules/tmpfile-safer: New files.
43862 * modules/stdio-safer: Remove.
43864 2006-07-24 Bruno Haible <bruno@clisp.org>
43866 * modules/tmpdir: New file.
43867 * MODULES.html.sh (File system functions): Add it.
43869 2006-07-24 Bruno Haible <bruno@clisp.org>
43871 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43872 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43874 2006-07-24 Bruno Haible <bruno@clisp.org>
43876 * modules/clean-temp: New file.
43878 2006-07-24 Bruno Haible <bruno@clisp.org>
43880 * m4/tmpdir.m4: New file, from GNU gettext.
43882 2006-07-24 Bruno Haible <bruno@clisp.org>
43884 * lib/tmpdir.h: New file, from GNU gettext.
43885 * lib/tmpdir.c: New file, from GNU gettext.
43887 2006-07-24 Bruno Haible <bruno@clisp.org>
43889 * lib/clean-temp.h: New file, from GNU gettext.
43890 * lib/clean-temp.c: New file, from GNU gettext.
43892 2006-07-23 Eric Blake <ebb9@byu.net>
43894 * modules/stdio-safer (Files): Add tmpfile-safer.c.
43895 (Depends-on): Add binary-io.
43897 2006-07-23 Eric Blake <ebb9@byu.net>
43899 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43901 2006-07-23 Eric Blake <ebb9@byu.net>
43903 * lib/tmpfile-safer.c: New file.
43904 * lib/stdio-safer.h (fopen_safer): Add prototype.
43905 * lib/stdio--.h (tmpfile): Make safer.
43907 2006-07-23 Bruno Haible <bruno@clisp.org>
43909 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43910 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43911 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43912 gl_linked_remove_at): Use it.
43914 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43915 and Simon Josefsson <jas@extundo.com>
43917 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43919 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43921 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43923 * modules/close-stream: New file.
43924 * modules/closeout (Description): Make it clear that it exits
43925 with a diagnostic on error.
43926 (Depends-on): Add close-stream. Remove fpending, stdbool.
43927 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43929 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43931 * m4/close-stream.m4: New file.
43933 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43935 * lib/close-stream.c, lib/close-stream.h: New files.
43937 2006-07-22 Bruno Haible <bruno@clisp.org>
43939 Merge from GNU gettext 0.15.
43941 2006-05-01 Bruno Haible <bruno@clisp.org>
43943 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43945 2006-07-22 Bruno Haible <bruno@clisp.org>
43947 * modules/javaversion: New file.
43948 * MODULES.html.sh (Java): Add javaversion.
43950 2006-03-12 Bruno Haible <bruno@clisp.org>
43952 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43954 2005-12-04 Bruno Haible <bruno@clisp.org>
43956 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43959 2006-06-21 Bruno Haible <bruno@clisp.org>
43961 Avoid warnings from recent versions of mcs.
43962 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43963 -o, -L, -r any more. Use options documented since mcs-1.0
43964 instead. Similarly for -g.
43966 2005-12-04 Bruno Haible <bruno@clisp.org>
43968 * build-aux/csharpcomp.sh.in: Suffix for resources is
43969 .resources, not .resource.
43971 2005-07-09 Bruno Haible <bruno@clisp.org>
43973 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43975 Reported by Mark Junker <mjscod@gmx.de>.
43977 2006-07-22 Bruno Haible <bruno@clisp.org>
43979 * modules/gettext: Upgrade to gettext-0.15.
43980 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43982 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43984 2006-07-22 Bruno Haible <bruno@clisp.org>
43986 Merge from GNU gettext 0.15.
43988 2006-03-25 Bruno Haible <bruno@clisp.org>
43990 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43992 2006-07-21 Bruno Haible <bruno@clisp.org>
43994 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43997 2006-05-09 Bruno Haible <bruno@clisp.org>
43999 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44000 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44001 for the conftestver execution.
44003 2006-05-01 Bruno Haible <bruno@clisp.org>
44005 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44006 optional target-version argument. Verify that the compiler
44007 groks source of the specified source-version, or add -source
44008 option as necessary. Verify that the compiler produces
44009 bytecode in the specified target-version, or add -target and
44010 -source options as necessary. Make the result of the test
44011 available as variable CONF_JAVAC. Also log error output in
44014 2006-03-11 Bruno Haible <bruno@clisp.org>
44016 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44018 2006-05-09 Bruno Haible <bruno@clisp.org>
44020 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44021 CLASSPATH_SEPARATOR to a semicolon.
44023 2006-03-12 Bruno Haible <bruno@clisp.org>
44025 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44026 available as variable CONF_JAVA, for subsequent autoconf
44027 tests. Also log error output in config.log.
44029 2006-07-19 Bruno Haible <bruno@clisp.org>
44031 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44032 that getline works on glibc2 systems. Needed to avoid trouble
44034 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44036 2005-12-04 Bruno Haible <bruno@clisp.org>
44038 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44039 launcher (untested).
44041 2005-12-04 Bruno Haible <bruno@clisp.org>
44043 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44045 2006-07-22 Bruno Haible <bruno@clisp.org>
44047 * gettext.m4: Update from GNU gettext-0.15.
44048 * nls.m4: Likewise.
44050 * inttypes-pri.m4: Likewise.
44051 * inttypes-h.m4: Renamed from inttypes.m4.
44052 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44054 2006-07-22 Bruno Haible <bruno@clisp.org>
44056 Merge from GNU gettext 0.15.
44058 2005-07-05 Bruno Haible <bruno@clisp.org>
44060 * printf-args.c (printf_fetchargs): Work around broken
44061 definition of wint_t on mingw.
44063 2005-02-12 Bruno Haible <bruno@clisp.org>
44065 * xallocsa.h: Add extern "C" for C++.
44067 2006-05-17 Bruno Haible <bruno@clisp.org>
44069 Cygwin portability.
44070 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44072 2006-04-30 Bruno Haible <bruno@clisp.org>
44074 * progreloc.c: Include <mach-o/dyld.h> if available.
44075 (find_executable): Use _NSGetExecutablePath when possible.
44077 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44079 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44082 2005-12-29 Bruno Haible <bruno@clisp.org>
44084 * progreloc.c (set_program_name_and_installdir): Fix
44087 2005-12-04 Bruno Haible <bruno@clisp.org>
44089 Cygwin portability.
44090 * progreloc.c: Include <windows.h> also on Cygwin.
44091 (find_executable): Add support for Cygwin.
44092 (set_program_name_and_installdir): Handle also platforms with
44095 2006-07-11 Bruno Haible <bruno@clisp.org>
44097 * javacomp.c: Fix a comment.
44098 Reported by Jim Meyering.
44100 2006-04-30 Bruno Haible <bruno@clisp.org>
44102 * javacomp.h (compile_java_class): Add source_version,
44103 target_version arguments.
44104 * javacomp.c: Rewritten to choose only a compiler that
44105 respects the specified source_version and target_version.
44107 2006-06-27 Bruno Haible <bruno@clisp.org>
44109 Assume correct S_ISDIR macro.
44110 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44112 2006-07-22 Bruno Haible <bruno@clisp.org>
44114 * javaversion.h: New file, from GNU gettext.
44115 * javaversion.c: New file, from GNU gettext.
44116 * javaversion.java: New file, from GNU gettext.
44117 * javaversion.class: New file, from GNU gettext.
44119 2006-05-17 Bruno Haible <bruno@clisp.org>
44121 Cygwin portability.
44122 * javaexec.c (execute_java_class): Test for jview program
44125 2006-04-09 Bruno Haible <bruno@clisp.org>
44127 * fatal-signal.c: Don't include string.h.
44128 (at_fatal_signal): Use a copying loop instead of memcpy.
44130 2005-12-04 Bruno Haible <bruno@clisp.org>
44132 * csharpexec.c: Add support for 'clix' launcher (untested).
44133 (execute_csharp_using_sscli): New function.
44134 (execute_csharp_program): Call it.
44136 2006-06-21 Bruno Haible <bruno@clisp.org>
44138 Avoid warnings from recent versions of mcs.
44139 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44140 -o, -L, -r any more. Use options documented since mcs-1.0
44141 instead. Similarly for -g.
44143 2005-07-09 Bruno Haible <bruno@clisp.org>
44145 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44147 Reported by Mark Junker <mjscod@gmx.de>.
44149 2006-06-17 Bruno Haible <bruno@clisp.org>
44151 * config.charset: Update for NetBSD 3.0.
44153 2006-05-17 Bruno Haible <bruno@clisp.org>
44155 Cygwin portability.
44156 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44158 2006-05-16 Bruno Haible <bruno@clisp.org>
44160 * localcharset.c [CYGWIN]: Include <windows.h>.
44161 (get_charset_aliases): For Cygwin, return the same CPxxx
44162 aliases list as under WIN32.
44163 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44164 the environment variables. Fall back to GetACP().
44166 2006-04-05 Bruno Haible <bruno@clisp.org>
44168 * config.charset: Update Juan Manuel Guerrero's address.
44170 2005-02-12 Bruno Haible <bruno@clisp.org>
44172 * allocsa.h: Add extern "C" for C++.
44174 2005-02-10 Bruno Haible <bruno@clisp.org>
44176 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44177 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44179 2006-07-22 Bruno Haible <bruno@clisp.org>
44181 * gettext.h: Update to GNU gettext-0.15.
44183 2006-07-22 Bruno Haible <bruno@clisp.org>
44185 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44186 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44187 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44189 2006-07-21 Eric Blake <ebb9@byu.net>
44191 * modules/stdlib-safer: New file.
44192 * MODULES.html.sh (File stream based Input/Output): Add
44195 2006-07-21 Eric Blake <ebb9@byu.net>
44197 * lib/stdlib-safer.h: New file from coreutils, required by
44200 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44202 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44204 2006-07-20 Bruno Haible <bruno@clisp.org>
44206 * gnulib-tool: Recognize new option --assume-autoconf.
44207 (autoconf_minversion): New variable.
44208 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44210 2006-07-20 Bruno Haible <bruno@clisp.org>
44212 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44214 2006-07-19 Derek R. Price <derek@ximbiot.com>
44216 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44217 Reindent and repaginate.
44219 2006-07-19 Derek Price <derek@ximbiot.com>
44221 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44224 2006-07-17 Bruno Haible <bruno@clisp.org>
44226 * modules/list: New file.
44227 * modules/array-list: New file.
44228 * modules/carray-list, modules/carray-list-tests: New files.
44229 * modules/linked-list, modules/linked-list-tests: New files.
44230 * modules/avltree-list, modules/avltree-list-tests: New files.
44231 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44232 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44233 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44234 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44235 * modules/oset: New file.
44236 * modules/array-oset: New file.
44237 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44238 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44239 * tests/test-carray_list.c: New file.
44240 * tests/test-linked_list.c: New file.
44241 * tests/test-avltree_list.c: New file.
44242 * tests/test-rbtree_list.c: New file.
44243 * tests/test-linkedhash_list.c: New file.
44244 * tests/test-avltreehash_list.c: New file.
44245 * tests/test-rbtreehash_list.c: New file.
44246 * tests/test-avltree_oset.c: New file.
44247 * tests/test-rbtree_oset.c: New file.
44248 * MODULES.html.sh (Container data structures): New section.
44250 2006-07-17 Bruno Haible <bruno@clisp.org>
44252 * m4/gl_list.m4: New file.
44254 2006-07-17 Bruno Haible <bruno@clisp.org>
44256 * lib/gl_list.h: New file.
44257 * lib/gl_list.c: New file.
44258 * lib/gl_array_list.h: New file.
44259 * lib/gl_array_list.c: New file.
44260 * lib/gl_carray_list.h: New file.
44261 * lib/gl_carray_list.c: New file.
44262 * lib/gl_linked_list.h: New file.
44263 * lib/gl_linked_list.c: New file.
44264 * lib/gl_anylinked_list1.h: New file.
44265 * lib/gl_anylinked_list2.h: New file.
44266 * lib/gl_avltree_list.h: New file.
44267 * lib/gl_avltree_list.c: New file.
44268 * lib/gl_anyavltree_list1.h: New file.
44269 * lib/gl_anyavltree_list2.h: New file.
44270 * lib/gl_rbtree_list.h: New file.
44271 * lib/gl_rbtree_list.c: New file.
44272 * lib/gl_anyrbtree_list1.h: New file.
44273 * lib/gl_anyrbtree_list2.h: New file.
44274 * lib/gl_anytree_list1.h: New file.
44275 * lib/gl_anytree_list2.h: New file.
44276 * lib/gl_linkedhash_list.h: New file.
44277 * lib/gl_linkedhash_list.c: New file.
44278 * lib/gl_anyhash_list1.h: New file.
44279 * lib/gl_anyhash_list2.h: New file.
44280 * lib/gl_avltreehash_list.h: New file.
44281 * lib/gl_avltreehash_list.c: New file.
44282 * lib/gl_rbtreehash_list.h: New file.
44283 * lib/gl_rbtreehash_list.c: New file.
44284 * lib/gl_anytreehash_list1.h: New file.
44285 * lib/gl_anytreehash_list2.h: New file.
44287 * lib/gl_oset.h: New file.
44288 * lib/gl_oset.c: New file.
44289 * lib/gl_array_oset.h: New file.
44290 * lib/gl_array_oset.c: New file.
44291 * lib/gl_avltree_oset.h: New file.
44292 * lib/gl_avltree_oset.c: New file.
44293 * lib/gl_rbtree_oset.h: New file.
44294 * lib/gl_rbtree_oset.c: New file.
44295 * lib/gl_anytree_oset.h: New file.
44297 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44299 * m4/mkancesdirs.m4: New file.
44300 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44301 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44302 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44305 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44307 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44308 * lib/mkancesdirs.h: New files.
44309 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44310 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44311 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44312 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44313 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44314 callers changed. Revamp internals significantly, by not
44315 attempting to create directories that are temporarily more
44316 permissive than the final results. Do not attempt to use
44317 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44318 This removes some race conditions, fixes some bugs, and simplifies
44319 things. Use new dirchownmod function to do owner and mode changes.
44320 * lib/mkdir-p.h: Likewise.
44321 * lib/modechange.c (octal_to_mode): New function.
44322 (struct mode_change): New member mentioned.
44323 (make_node_op_equals): New arg mentioned. All callers changed.
44324 (mode_compile): Keep track of which mode bits the user has explicitly
44326 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44327 New arg PMODE_BITS, to keep track of which mode bits the user
44328 mentioned; it treats S_ISUID and S_ISGID speciall.
44329 All callers changed.
44330 * lib/modechange.h: Likewise.
44332 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44334 * MODULES.html.sh: Add mkancestors.
44335 * modules/mkancesdirs: New module.
44336 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44337 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44338 The chdir-safer and afs files are now orphans; I'll remove them
44339 unless someone speaks up.
44340 Add lib/dirchownmod.c, lib/dirchownmod.h.
44341 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44342 Add lchown, mkancesdirs.
44343 (Maintainer): Add self.
44345 2006-07-15 Karl Berry <karl@gnu.org>
44347 * gnulib-tool: help message wording/arrangement.
44349 2006-07-14 Simon Josefsson <jas@extundo.com>
44351 * doc/gnulib.texi (Libtool and Windows): New section.
44353 2006-07-12 Simon Josefsson <jas@extundo.com>
44355 * modules/gendocs (License): Fix license, approved by Karl.
44357 2006-07-12 Eric Blake <ebb9@byu.net>
44359 * MODULES.html.sh: Add gendocs.
44361 2006-07-11 Eric Blake <ebb9@byu.net>
44363 * modules/fdl: New module, to install doc/fdl.texi.
44364 * MODULES.html.sh: Add new section for documentation modules.
44365 * gnulib-tool: Avoid space-tab.
44366 (--doc-base): New option, to manage files from doc.
44368 2006-07-11 Eric Blake <ebb9@byu.net>
44370 * m4/absolute-header.m4: Fix comments to match recent change.
44372 2006-07-11 Eric Blake <ebb9@byu.net>
44374 * gnulib-tool: List --doc-base before --tests-base.
44376 2006-07-11 Derek R. Price <derek@ximbiot.com>
44378 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44380 2006-07-11 Bruno Haible <bruno@clisp.org>
44382 * README: Mention where to put documentation.
44384 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44386 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44388 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44390 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44393 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44395 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44396 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44397 "no/such/file/stdint.h" when there is no such file, so that
44398 the resulting C code can be parsed by dodgy compilers.
44399 Problems reported by Bob Proulx.
44401 2006-07-10 Derek R. Price <derek@ximbiot.com>
44403 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44404 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44405 macros into the GNU _D_EXACT_NAMLEN.
44406 * lib/savedir.c: Likewise.
44407 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44409 2006-07-10 Derek R. Price <derek@ximbiot.com>
44410 and Paul Eggert <eggert@cs.ucla.edu>
44412 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44414 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44415 macros into the GNU _D_EXACT_NAMLEN.
44417 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44419 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44420 around the absolute name, to work around a problem with the HP-UX
44421 11.23 native C compiler, reported by Bob Proulx.
44423 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44425 * doc/maintain.texi, make-stds.texi: Sync from
44426 <http://savannah.gnu.org/projects/gnustandards>.
44428 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44430 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44432 2006-07-09 Jim Meyering <jim@meyering.net>
44434 * m4/glob.m4: Remove a doubled word in a comment.
44436 2006-07-09 Jim Meyering <jim@meyering.net>
44438 * lib/argp-pv.c: Remove a doubled word in a comment.
44439 * lib/check-version.c (check_version): Likewise.
44440 * lib/javacomp.c (compile_java_class): Likewise.
44442 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44444 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44445 for the benefit of people using Autoconf 2.60. If you want to
44446 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44447 (or m4/onceonly.m4, if pre-2.57) manually.
44449 2006-07-08 Jim Meyering <jim@meyering.net>
44451 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44453 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44454 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44457 2006-07-08 Jim Meyering <jim@meyering.net>
44459 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44461 2006-07-07 Simon Josefsson <jas@extundo.com>
44463 * tests/test-crc.c: Change expected crc value, the test vector
44464 were probably computed using the old broken crc.c?
44466 2006-07-06 Simon Josefsson <jas@extundo.com>
44468 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44469 now the canonical place for the M4 file).
44471 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44472 from the sys_socket dependency now.
44474 * modules/inet_pton (Files): Ditto.
44476 * modules/inet_ntop (Files): Ditto.
44478 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44480 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44481 not gl_PREREQ_GETUSERSHELL.
44483 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44485 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44486 with only one argument, for Autoconf 2.60.
44487 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44488 expand to nothing, so add a shell command to avoid syntax error.
44489 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44491 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44493 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44495 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44497 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44498 no longer needed. Check for isblank decl.
44499 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44500 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44503 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44505 * lib/getloadavg.c: Use __VMS, not VMS.
44506 * lib/getopt.c: Likewise.
44507 * lib/getpagesize.h: Likewise.
44508 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44509 and probably does not work.
44511 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44513 * lib/.cppi-disable: Add wcwidth.
44514 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44515 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44516 (ISGRAPH): Remove. All uses changed to isgraph.
44517 (FOLD) [!defined _LIBC]: Remove special case.
44518 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44519 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44521 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44524 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44526 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44527 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44528 brackets. Other minor changes to suppress some compiler
44531 2006-07-06 Derek R. Price <derek@ximbiot.com>
44532 and Paul Eggert <eggert@cs.ucla.edu>
44534 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44535 of invoking obsolescent AC_HEADER_DIRENT macro.
44536 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44537 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44538 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44539 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44540 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44541 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44542 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44543 * m4/readdir.m4: Remove; no longer needed.
44545 2006-07-06 Derek R. Price <derek@ximbiot.com>
44546 and Paul Eggert <eggert@cs.ucla.edu>
44548 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44549 Don't worry about this obsolete case any more.
44550 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44552 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44553 worry about this obsolete case any more.
44554 * lib/fts.c: Likewise.
44555 * lib/getcwd.c: Likewise.
44556 * lib/glob.h: Likewise.
44557 * lib/savedir.c: Likewise.
44559 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44561 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44562 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44563 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44566 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44567 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44568 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44570 * m4/getdate.m4 (gl_GETDATE): Likewise.
44571 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44572 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44573 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44574 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44575 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44576 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44577 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44580 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44582 * lib/memcasecmp.c: Include <limits.h>.
44583 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44584 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44585 Don't assume isdigit succeeds only on '0' through '9'.
44587 2006-07-05 Eric Blake <ebb9@byu.net>
44589 * modules/getaddrinfo (Depends-on): Add snprintf.
44591 2006-07-05 Eric Blake <ebb9@byu.net>
44593 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44594 to avoid 'header present but could not be compiled' on cygwin.
44596 2006-07-05 Eric Blake <ebb9@byu.net>
44598 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44599 missing from netdb.h.
44600 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44602 2006-07-05 Derek R. Price <derek@ximbiot.com>
44604 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44606 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44607 * m4/getdate.m4 (gl_GETDATE): Likewise.
44608 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44609 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44610 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44611 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44612 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44614 2006-07-05 Derek R. Price <derek@ximbiot.com>
44616 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44617 All uses of is_space replaced by isspace.
44618 * lib/exit.h: Don't talk about STDC_HEADERS.
44619 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44620 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44621 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44622 replaced by isprint etc.
44623 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44624 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44625 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44626 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44627 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44628 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44630 2006-07-05 Bruno Haible <bruno@clisp.org>
44632 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44633 the function exists, before testing against AIX.
44634 Reported by Martin Lambers <marlam@marlam.de>.
44636 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44638 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44639 From Mark D. Baushke.
44641 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44643 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44644 to the absolute name, not just one, to bypass Sun C 5.8's
44645 "warning: #include of /usr/include/... may be non-portable".
44647 2006-07-04 Eric Blake <ebb9@byu.net>
44649 * modules/dirname-tests: New test module.
44650 * tests/test-dirname.c: New file, replacing dirname.c
44651 TEST_DIRNAME section that was recently deleted.
44653 2006-07-04 Bruno Haible <bruno@clisp.org>
44655 Assume ANSI C header files and <ctype.h> functions.
44656 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44657 (mbsnwidth): Use isprint, iscntrl instead.
44659 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44661 Merge from coreutils.
44662 * MODULES.html.sh: Add xstrtold.
44663 * modules/xstrtold: New file.
44664 * modules/cycle-check (Files): Add lib/same-inode.h.
44665 * modules/dirname (Files): Add m4/double-slash-root.m4.
44666 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44667 * modules/mkdir-p (Files): Add lib/same-inode.h.
44668 * modules/same (Files): Add lib/same-inode.h.
44670 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44672 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44673 This is to keep the terminology clean; POSIX talks about
44674 "absolute pathnames", not "full pathnames", but the GNU
44675 Coding Standards say to use "path" for something else;
44676 so use "absolute" to keep both sides happy.
44677 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44678 Set gl_absolute_header, not gl_full_header_path.
44679 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44680 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44683 Merge from coreutils.
44685 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44687 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44688 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44689 want to require the building of c-strtod.o.
44690 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44691 needs -lm directly.
44692 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44694 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44696 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44697 --as-needed option if available. Problem reported by Albert Chin in
44698 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44699 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44700 cc merely issues a bunch of annoying warnings for --as-needed
44701 (this problem was reported by Bob Proulx). Also, try linking with
44702 -lm to detect a bug in binutils 2.16 (this problem was reported
44703 by Ralf Wildenhues).
44705 2006-06-18 Jim Meyering <jim@meyering.net>
44707 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44708 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44710 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44711 also check for glibc-2.4's abort-inducing bug.
44713 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44714 Low-probability clean-up should be to use rmdir to get rid of
44715 the just-created directory, not unlink.
44717 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44718 configure fail, and request a bug report to inform us about it.
44719 Add a comment that, barring reports to the contrary, in 2007 we'll
44720 assume ftruncate is universally available.
44722 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44724 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44726 2006-03-12 Jim Meyering <jim@meyering.net>
44728 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44729 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44730 * m4/same.m4 (gl_SAME): Likewise.
44731 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44733 2006-03-11 Eric Blake <ebb9@byu.net>
44735 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44736 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44737 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44738 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44740 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44742 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44743 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44744 reported by Mark D. Baushke, one in
44745 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44747 Merge from coreutils.
44749 * lib/.cppi-disable: Add stdint_.h.
44750 * lib/.cvsignore: Add stdint.h.
44752 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44754 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44755 both double and long double versions.
44756 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44757 * lib/xstrtold.c: New file.
44758 * lib/xstrtod.h (xstrtold): New decl.
44760 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44762 * lib/filemode.c (setst): Remove.
44763 (strmode): Rewrite to avoid setst. This makes the code shorter,
44764 (arguably) clearer, and the generated code is a bit smaller on my
44765 Debian GNU/Linux stable x86 host.
44767 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44769 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44770 Assume that filemode.h includes sys/types.h and sys/stat.h.
44771 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44772 (ftypelet): Reorder to put common cases first, for efficiency.
44773 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44775 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44776 of 10, for compatibility with FreeBSD. All callers changed.
44777 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44778 types that can't be deduced solely from st_mode. First arg is now a
44780 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44781 (strmode): Renamed from mode_string.
44782 (filemodestring): New decl.
44783 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44784 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44786 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44788 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44790 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44791 fsusage.h now does that. Include fsusage.h first, to test interface.
44792 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44793 at most one method (the old code could have generated decls that
44794 didn't conform to C89, not that this was ever exercised).
44795 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44797 2006-03-19 Jim Meyering <jim@meyering.net>
44799 Work even in a chroot where d_ino values for entries in "/"
44800 don't match the stat.st_ino values for the same names.
44801 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44802 number, iterate through all entries again, using lstat instead.
44803 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44804 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44806 * lib/getcwd.c (__getcwd): Clarify a comment.
44807 Use memcpy in place of a call to strcpy.
44809 2006-03-12 Jim Meyering <jim@meyering.net>
44811 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44812 matches that of the current directory (which we're about to chdir ".."
44813 out of), then save the dev-ino of the parent, instead.
44815 * lib/same-inode.h (SAME_INODE): New file/macro.
44816 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44817 Include "same-inode.h", instead.
44818 * lib/same.c: Likewise.
44819 * lib/cycle-check.h: Include "same-inode.h".
44820 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44821 * lib/cycle-check.c (SAME_INODE): Remove definition.
44822 * lib/root-dev-ino.h: Include "same-inode.h".
44824 2006-03-11 Eric Blake <ebb9@byu.net>
44826 * lib/same.c (same_name): s/base_name/last_component/
44827 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44828 * lib/filenamecat.c (file_name_concat): Likewise.
44830 2006-03-11 Eric Blake <ebb9@byu.net>,
44831 Paul Eggert <eggert@cs.ucla.edu>
44833 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44834 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44836 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44837 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44838 (last_component): New method.
44839 * lib/dirname.c (dir_len): Determine when drive letters need a
44840 subsequent slash. Preserve // when it is special.
44841 (dir_name): Don't append dot when drive letter is absolute.
44842 [TEST_DIRNAME]: Move into a full-blown gnulib test.
44843 * lib/basename.c (base_name): New semantics - malloc the result.
44844 Preserve // when it is special. Preserve relative files that look
44845 like drive letters.
44846 (base_len): Preserve // when it is special.
44847 (last_component): New method, similar to old base_name semantics.
44848 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44849 base_name. Strip redundant slashes from ///.
44851 2006-07-03 Jim Meyering <jim@meyering.net>
44853 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44854 macro is used before the first cycle_check call.
44856 2006-07-03 Eric Blake <ebb9@byu.net>
44858 * modules/dirname (Depends-on): Add xstrndup.
44860 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44862 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44863 test cases, so that config.log is a bit easier to follow.
44865 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44867 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44868 both are 64 bits, since this seems to be the tradition, and this
44869 prevents gcc -Wformat from warning about usages with PRIuMAX. If
44870 we ever run into a host that prefers long long to long in this
44871 case, we'll need another configure-time test. Problem reported by
44874 2006-07-02 Eric Blake <ebb9@byu.net>
44876 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44878 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44880 * modules/inttypes (Depends-on): No longer depends on stdint.
44881 * modules/stdint (Description): Say more about assumptions.
44882 Say that the fast types might differ. Say macros are used.
44883 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
44884 (Makefile.am): Revise list of substituted symbols to match
44886 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44887 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44888 * tests/test-stdint.c (verify_same_types)
44889 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44890 the code conforms to C99/C89.
44891 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44892 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44894 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44896 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44897 but fix a bug, by requiring at least 64 bits.
44898 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44899 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44900 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
44901 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44903 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44904 changes. Make 2.59 a prerequisite. Check and substitute for
44905 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
44906 inttypes.h. Do not use special include files; just use the
44907 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
44908 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
44909 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44910 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44911 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44912 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44913 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44914 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44915 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44916 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44917 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44918 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44919 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44920 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44921 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44922 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44923 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44924 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44925 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44926 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44927 WINT_MAX. Check for C99 conformance more strictly, by detecting
44928 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
44929 not check for things that C99 does not require, e.g., int8_t. If
44930 a test isn't needed unless <stdint.h> isn't working, and is
44931 unlikely to be needed for any other reason, then don't do it
44932 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
44933 size_t, since we assume C89 freestanding at least. Do not check
44934 for sig_atomic_t, wchar_t, or wint_t, since the code now does
44935 the right thing even if the types are not defined. Instead use:
44936 (gl_STDINT_TYPE_PROPERTIES): New macro.
44937 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
44938 testing whether <sys/types.h> clashes, as Autoconf does this for
44939 us now. All uses removed.
44940 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44941 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44942 (gl_CHECK_TYPE_SAME):
44943 Remove; no longer needed.
44944 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44945 exists, since we'll return 0 anyway in that case.
44946 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44948 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44950 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44951 possible collision with system files.
44952 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44953 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44954 WCHAR_MIN and WCHAR_MAX in this case.
44955 (<stddef.h>): Do not include; no longer needed.
44956 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44957 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44958 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44959 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44960 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44961 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44962 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44963 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44964 !defined(__c99))]: Include in this case too, since it's harmless
44966 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44967 dangerous to do so.
44968 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44969 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44970 (_STDINT_MIN, _STDINT_MAX): New macros.
44971 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44972 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44973 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44974 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44975 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44976 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44977 macros, not typedefs; this simplifies things quite a bit.
44978 Use long int for all types narrower than int64_t.
44979 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44980 Define in terms of long long int or int64_t or long int,
44981 not int64_t or int32_t. This saves some compile-time testing.
44982 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44983 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44984 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44985 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44986 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44987 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44988 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44989 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44990 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44991 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44992 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44993 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44994 undef any previous version and define our own version, for
44995 simplicity and consistency with the new macros for types.
44996 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44997 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44998 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44999 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45000 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45001 @WINT_T_SUFFIX@ to keep things simple here.
45002 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45003 Simplify by assuming typical 8/16/32/64 host, since we're
45004 already doing that elsewhere anyway.
45005 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45006 and assume long long int is 64 bits if available. This
45007 speeds up 'configure'.
45009 2006-07-01 Eric Blake <ebb9@byu.net>
45011 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45012 Reported by Andreas Buening.
45014 2006-07-01 Eric Blake <ebb9@byu.net>
45016 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45018 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45020 * lib/getaddrinfo.c: fixed typo
45022 2006-06-29 Jim Meyering <jim@meyering.net>
45024 * modules/strftime (Maintainer): Add my name, since with the
45025 FPRINTFTIME changes strftime.c has forked from glibc.
45027 2006-06-29 Eric Blake <ebb9@byu.net>
45029 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45031 2006-06-29 Eric Blake <ebb9@byu.net>
45033 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45035 2006-06-29 Eric Blake <ebb9@byu.net>
45037 * lib/stat_.h: New file.
45039 2006-06-29 Eric Blake <ebb9@byu.net>
45041 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45042 unused static function.
45044 2006-06-29 Eric Blake <ebb9@byu.net>
45046 * doc/functions.texi (Function Portability): Document missing lstat
45049 2006-06-29 Eric Blake <ebb9@byu.net>
45051 * MODULES.html.sh: Add sys_stat.
45052 * modules/sys_stat: New module.
45053 * modules/mkstemp (Depends-on): Add sys_stat.
45055 2006-06-29 Derek R. Price <derek@ximbiot.com>
45057 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45059 2006-06-29 Derek R. Price <derek@ximbiot.com>
45061 * m4/c-bs-a.m4: Removed.
45063 2006-06-29 Derek R. Price <derek@ximbiot.com>
45065 * lib/strftime.c: Assume strftime() exists.
45067 2006-06-29 Derek Price <derek@ximbiot.com>
45069 * modules/c-bs-a: Removed - \a is C89.
45070 * MODULES.html.sh: Remove c-bs-a.
45072 2006-06-29 Bruno Haible <bruno@clisp.org>
45074 * modules/wcwidth (License): Change to LGPL.
45076 2006-06-28 Simon Josefsson <jas@extundo.com>
45078 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45081 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45084 2006-06-28 Simon Josefsson <jas@extundo.com>
45086 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45088 2006-06-28 Simon Josefsson <jas@extundo.com>
45090 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45091 functions there. It will succeed on Windows XP, but on Windows
45092 2000 and (presumably) earlier, it will fail, and use the internal
45094 (use_win32_p): New function.
45095 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45096 Support AI_NUMERICSERV to disable getservbyname.
45097 (getnameinfo): New function, only supports
45098 NI_NUMERICHOST|NI_NUMERICSERV for now.
45100 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45101 only have some of them. Add AI_NUMERICSERV. Add prototype for
45104 2006-06-28 Eric Blake <ebb9@byu.net>
45106 * modules/wcwidth: New file.
45107 * modules/mbchar (Depends-on): Add wcwidth.
45108 * modules/mbswidth (Depends-on): Add wcwidth.
45109 * MODULES.html.sh: Add wcwidth.
45111 2006-06-28 Eric Blake <ebb9@byu.net>
45113 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45114 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45116 2006-06-28 Eric Blake <ebb9@byu.net>
45118 * lib/xvasprintf.h: Fix comments.
45120 2006-06-28 Eric Blake <ebb9@byu.net>
45122 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45123 * lib/mbswidth.c (wcwidth): Move from here...
45124 * lib/wcwidth.h: ...to this new file.
45126 2006-06-28 Derek R. Price <derek@ximbiot.com>
45128 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45130 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45132 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45134 2006-06-28 Derek R. Price <derek@ximbiot.com>
45136 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45137 Autoconf 2.60 says this stuff was obsolete.
45139 2006-06-28 Bruno Haible <bruno@clisp.org>
45141 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45143 2006-06-28 Bruno Haible <bruno@clisp.org>
45145 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45148 2006-06-28 Bruno Haible <bruno@clisp.org>
45150 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45151 declaration for wcwidth.
45152 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45154 2006-06-28 Bruno Haible <bruno@clisp.org>
45156 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45157 (mkdir): Define using _mkdir.
45159 2006-06-28 Bruno Haible <bruno@clisp.org>
45161 * lib/getaddrinfo.h: Fix POSIX URL.
45162 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45164 (use_win32_p): Make static.
45165 (getaddrinfo): Reject service name if it is empty or does not consist
45166 solely of decimal digits, or if its value is > 65535.
45167 (getnameinfo): Remove useless casts.
45169 2006-06-27 Simon Josefsson <jas@extundo.com>
45171 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45172 Eggert and Martin Lambers.
45174 2006-06-27 Simon Josefsson <jas@extundo.com>
45176 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45177 Eggert and Martin Lambers.
45179 2006-06-27 Bruno Haible <bruno@clisp.org>
45181 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45182 result to 0, not to empty.
45183 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45185 2006-06-27 Bruno Haible <bruno@clisp.org>
45187 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45189 2006-06-26 Simon Josefsson <jas@extundo.com>
45191 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45194 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45196 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45197 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45198 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45200 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45202 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45204 2006-06-26 Bruno Haible <bruno@clisp.org>
45206 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45208 2006-06-26 Bruno Haible <bruno@clisp.org>
45210 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45212 2006-06-26 Bruno Haible <bruno@clisp.org>
45214 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45215 SGI C compiler in pre-C99 mode.
45216 Suggested by Mark D. Baushke and Larry Jones.
45218 2006-06-26 Bruno Haible <bruno@clisp.org>
45220 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45222 Reported by Mark D. Baushke and Larry Jones.
45224 2006-06-26 Bruno Haible <bruno@clisp.org>
45226 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45228 Suggested by Mark D. Baushke and Larry Jones.
45230 2006-06-23 Simon Josefsson <jas@extundo.com>
45231 Bruno Haible <bruno@clisp.org>
45233 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45234 Emit mostlyclean-local rule.
45235 (func_emit_tests_Makefile_am): Likewise.
45236 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45238 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45240 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45242 2006-06-23 Bruno Haible <bruno@clisp.org>
45244 * tests/test-stdint.c: Update to match ISO C 99 Technical
45247 2006-06-23 Bruno Haible <bruno@clisp.org>
45249 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45251 2006-06-23 Bruno Haible <bruno@clisp.org>
45253 * lib/stdint_.h: Treat IRIX like OpenBSD.
45255 2006-06-23 Bruno Haible <bruno@clisp.org>
45257 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45258 ISO C 99 Technical Corrigendum 1.
45260 2006-06-22 Simon Josefsson <jas@extundo.com>
45262 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45265 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45267 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45268 needed. Some compiler complained about some of them. Problem reported
45270 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45272 2006-06-21 Simon Josefsson <jas@extundo.com>
45274 * tests/test-getaddrinfo.c: New file.
45276 * modules/getaddrinfo-tests: New file.
45278 * MODULES.html.sh: Add inet_pton.
45280 * modules/inet_pton: New file.
45282 2006-06-21 Simon Josefsson <jas@extundo.com>
45284 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45285 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45286 of using the (limited) gnulib implementation on Windows XP.
45288 * m4/inet_pton.m4: New file.
45290 2006-06-21 Simon Josefsson <jas@extundo.com>
45292 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45295 * lib/socket_.h: Don't define WINVER.
45297 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45298 slightly modified to work in gnulib.
45300 2006-06-21 Simon Josefsson <jas@extundo.com>
45302 * doc/gnulib.texi (Windows sockets): Add.
45304 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45306 * lib/read-file.c (fread_file): Start with buffer allocation of
45307 0 bytes rather than 1 byte; this simplifies the code.
45308 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45309 code to free buffer and save/restore errno.
45310 (internal_read_file): Remove unused local.
45312 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45314 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45315 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45316 Problem reported by Denis Excoffier in
45317 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45319 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45321 * modules/sys_socket, modules/socklen: Include sys/types since
45322 FreeBSD 4.x's sys/socket.h needs it.
45324 2006-06-19 Simon Josefsson <jas@extundo.com>
45326 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45328 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45330 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45332 2006-06-19 Bruno Haible <bruno@clisp.org>
45334 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45335 and FULL_PATH_INTTYPES_H in angle brackets.
45336 Reported by Mark D. Baushke <mdb@gnu.org>.
45338 2006-06-17 Eric Blake <ebb9@byu.net>
45340 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45343 2006-06-17 Bruno Haible <bruno@clisp.org>
45345 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45348 2006-06-17 Bruno Haible <bruno@clisp.org>
45350 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45351 whether errno is declared. Assume <errno.h> declares errno.
45353 2006-06-17 Bruno Haible <bruno@clisp.org>
45355 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45357 2006-06-17 Bruno Haible <bruno@clisp.org>
45359 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45360 problem on Solaris 2.5.1.
45362 2006-06-16 Eric Blake <ebb9@byu.net>
45364 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45365 * lib/unicodeio.c [!defined errno]: Likewise.
45366 * lib/strtol.c [!defined errno]: Likewise.
45367 * lib/strtod.c [!defined errno]: Likewise.
45369 2006-06-15 Eric Blake <ebb9@byu.net>
45371 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45373 2006-06-15 Eric Blake <ebb9@byu.net>
45375 * config/srclist.txt (ssize_t.m4): Lose sync.
45377 2006-06-15 Bruno Haible <bruno@clisp.org>
45379 * modules/stdint (Files): Include m4/full-header-path.m4,
45380 m4/size_max.m4, m4/wchar_t.m4.
45381 (Makefile.am): Many more substitutions.
45382 * modules/stdint-tests: New file.
45383 * tests/test-stdint.c: New file.
45385 2006-06-15 Bruno Haible <bruno@clisp.org>
45387 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45388 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45389 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45390 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45391 gl_CHECK_TYPE_SAME): New macros.
45393 2006-06-15 Bruno Haible <bruno@clisp.org>
45395 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45397 2006-06-15 Bruno Haible <bruno@clisp.org>
45399 * lib/stdint_.h: Rewritten to be fully auto-configured.
45400 Fixes bug on HP-UX/IA64.
45402 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45404 * lib/getdate.y (__attribute__): Don't define if already defined.
45405 Problem reported by Larry Jones.
45406 * lib/utimens.c (__attribute__): Likewise.
45408 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45410 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45411 reported by Andreas Schwab.
45413 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45414 Bruno Haible <bruno@clisp.org>
45416 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45417 check for the declaration of strnlen and a run test that exposes the
45418 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45421 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45422 Bruno Haible <bruno@clisp.org>
45424 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45426 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45428 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45429 compile test, for Tru64 4.0D.
45431 2006-05-28 Karl Berry <karl@gnu.org>
45433 * config/srclist.txt (printf-args.c): lose sync.
45435 2006-05-26 Martin Lambers <marlam@marlam.de>
45437 * lib/getpass.c: Updates the test for the native W32 API, and adds
45438 missing includes, thus fixing compilation warnings.
45440 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45442 * lib/exclude.c (exclude_fnmatch): New function.
45443 (excluded_file_name): Call exclude_fnmatch.
45444 * lib/exclude.h (excluded_file_name): New prototype
45446 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45448 * lib/tempname.c (small_open, large_open): New macros.
45449 (__open, __open64) [!_LIBC]: Remove.
45450 (__gen_tempname): Use small_open and large_open instead of __open
45451 and __open64. This fixes a portability bug on HP-UX 11.11i
45452 reported by Simon Wing-Tang in
45453 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45455 2006-05-24 Bruno Haible <bruno@clisp.org>
45457 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45458 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45459 Reported by Thorsten Maerz <torte@netztorte.de> via
45460 Aaron Stone <aaron@serendipity.cx>.
45462 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45464 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45465 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45466 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45467 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45468 not really conditional on the cache.
45469 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45471 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45473 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45474 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45475 (my_usleep): Don't mishandle maximum value.
45477 2006-05-19 Jim Meyering <jim@meyering.net>
45479 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45481 2006-05-17 Bruno Haible <bruno@clisp.org>
45483 Cygwin portability.
45484 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45486 2006-05-17 Bruno Haible <bruno@clisp.org>
45488 * lib/stdint_.h: Fix recognition of Cygwin.
45490 2006-05-15 Bruno Haible <bruno@clisp.org>
45492 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45493 on libtool patch by Ralf Wildenhues.
45495 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45497 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45498 test for C99 conformance; (bool) 0.5 is an integer constant
45499 expression, but (bool) -0.5 is not. Problem reported by Fedor
45500 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45502 2006-05-11 Simon Josefsson <jas@extundo.com>
45504 * m4/xvasprintf.m4: Fix obvious typo.
45506 2006-05-11 Jim Meyering <jim@meyering.net>
45508 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45511 2006-05-10 Simon Josefsson <jas@extundo.com>
45513 * lib/md4.c: Typo fix, update copyright years.
45514 (K1, K2): Don't use L because it turn computations into 64-bit on
45517 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45519 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45520 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45521 unwanted sign propagation, e.g., on hosts with 64-bit int.
45522 There still are some problems with reeelly weird theoretical hosts
45523 (e.g., 33-bit int) but it's not worth worrying about now.
45524 * lib/sha1.c (rol): Likewise.
45525 (K1, K2, K3, K4): Remove unnecessary L suffix.
45527 2006-05-10 Bruno Haible <bruno@clisp.org>
45529 * lib/des.c: Cast to avoid warnings.
45531 2006-05-09 Bruno Haible <bruno@clisp.org>
45533 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45534 (Depends-on): Depend also on xsize, stdarg.
45535 (configure.ac): Add gl_XVASPRINTF.
45537 2006-05-09 Bruno Haible <bruno@clisp.org>
45539 * m4/xvasprintf.m4: New file.
45541 2006-05-09 Bruno Haible <bruno@clisp.org>
45543 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45544 (EOVERFLOW): Define fallback value.
45545 (xstrcat): New function.
45546 (xvasprintf): Recognize the special case of a string concatenation.
45548 2006-05-08 Eric Blake <ebb9@byu.net>
45550 * gnulib-tool (func_version): Base copyright year on CVS date.
45551 (func_emit_copyright_notice): New function.
45552 (func_emit_lib_Makefile_am): Use it.
45553 (func_emit_tests_Makefile_am): Likewise.
45554 (func_import): Likewise.
45556 2006-05-08 Bruno Haible <bruno@clisp.org>
45558 * modules/stdarg: New file.
45559 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45561 2006-05-08 Bruno Haible <bruno@clisp.org>
45563 * m4/stdarg.m4: New file, from GNU gettext.
45565 2006-05-08 Bruno Haible <bruno@clisp.org>
45567 * config/srclist.txt (build-aux/config.rpath): different from latest
45570 2006-05-08 Bruno Haible <bruno@clisp.org>
45572 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45574 2006-05-05 Jim Meyering <jim@meyering.net>
45576 * m4/warning.m4: New file, derived from bison's file by the same name.
45578 2006-05-03 Bruno Haible <bruno@clisp.org>
45580 * lib/stdint_.h: Shorter URL.
45581 * lib/inttypes.h: Likewise.
45583 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45585 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45587 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45589 * lib/verify.h: Document the internals better. Most of this change
45590 was written by Bruno Haible.
45592 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45594 * doc/verify.texi: New file, partly based on a proposal by
45597 2006-05-02 Bruno Haible <bruno@clisp.org>
45599 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45601 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45603 2006-04-29 Bruno Haible <bruno@clisp.org>
45605 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45606 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45608 2006-04-29 Bruno Haible <bruno@clisp.org>
45610 * gnulib-tool: Make --update option actually work.
45612 2006-04-29 Bruno Haible <bruno@clisp.org>
45614 * doc/gcd.texi: New file.
45615 * doc/gnulib.texi: Include it.
45617 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45619 * lib/getdate.y (get_date): When adding relative date, start with the
45620 initial time, not with the result of the first mktime call.
45622 2006-04-25 Bruno Haible <bruno@clisp.org>
45624 * gnulib-tool (func_import): Output the include directives in three
45625 blocks, sorted separately.
45626 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45628 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45630 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45631 to define main with arguments, for C++. Reported by Eric Blake.
45632 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45633 Prefer 'int main ()' to 'int main (void)', for C++.
45634 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45635 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45636 for 'main', for C99 and C++.
45638 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45640 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45641 Don't assume that exit status -1 is valid.
45642 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45643 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45644 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45645 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45646 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45647 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45648 not AC_TRY_RUN. Use return, not exit. Don't assume that
45649 functions can be used without declaring them, or that you can
45650 exit with status -1.
45651 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45653 2006-04-24 Karl Berry <karl@gnu.org>
45655 * config/srclist.txt (longdouble.m4): sync lost.
45657 2006-04-24 Eric Blake <ebb9@byu.net>
45659 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45661 2006-04-24 Bruno Haible <bruno@clisp.org>
45663 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45664 poll() implementation in AIX.
45665 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45667 2006-04-24 Bruno Haible <bruno@clisp.org>
45669 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45670 assigned exactly once.
45672 2006-04-23 Claudio Fontana <claudio@gnu.org>
45673 Bruno Haible <bruno@clisp.org>
45675 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45676 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45679 2006-04-23 Bruno Haible <bruno@clisp.org>
45681 * modules/copy-file: Depend on unistd.
45682 * modules/execute: Likewise.
45683 * modules/fatal-signal: Likewise.
45684 * modules/findprog: Likewise.
45685 * modules/mkdtemp : Likewise.
45686 * modules/pipe: Likewise.
45687 * modules/wait-process: Likewise.
45689 2006-04-23 Bruno Haible <bruno@clisp.org>
45691 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45692 condition was already detected.
45693 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45695 2006-04-23 Bruno Haible <bruno@clisp.org>
45697 * lib/copy-file.c: Include <unistd.h> unconditionally.
45698 * lib/execute.c: Likewise.
45699 * lib/fatal-signal.c: Likewise.
45700 * lib/findprog.c: Likewise.
45701 * lib/mkdtemp.c: Likewise.
45702 * lib/pipe.h: Likewise.
45703 * lib/pipe.c: Likewise.
45704 * lib/wait-process.h: Likewise.
45706 2006-04-23 Bruno Haible <bruno@clisp.org>
45708 * gnulib-tool (func_usage): Fix --import description. Document
45710 (func_import): Create temporary file in a temporary directory, if
45711 --dry-run is specified. Silence errors from 'grep' when there are no
45712 m4 files in $m4dir.
45713 (func_create_testdir): Silence errors from 'grep' when there are no
45714 m4 files in $m4dir.
45715 Reported by Karl Berry <karl@freefriends.org>.
45717 2006-04-20 Bruno Haible <bruno@clisp.org>
45719 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45720 one argument, so that the code will be portable to Autoconf 2.60.
45721 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45722 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45723 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45725 2006-04-19 Derek Price <derek@ximbiot.com>
45726 Eric Blake <ebb9@byu.net>
45728 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45729 rather than "/full/path.h". Update comment to match. Shorten &
45730 generalize m4_translit call via AS_TR_CPP.
45732 2006-04-19 Derek Price <derek@ximbiot.com>
45733 Eric Blake <ebb9@byu.net>
45735 * lib/inttypes.h: Correct grammar in comment.
45737 2006-04-18 Derek Price <derek@ximbiot.com>
45738 Paul Eggert <eggert@cs.ucla.edu>
45740 * modules/inttypes: New file.
45741 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45743 2006-04-18 Derek Price <derek@ximbiot.com>
45744 Paul Eggert <eggert@cs.ucla.edu>
45746 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45749 2006-04-18 Derek Price <derek@ximbiot.com>
45750 Paul Eggert <eggert@cs.ucla.edu>
45752 * lib/inttypes.h: New file.
45753 * lib/strtoimax.c: Assume <inttypes.h>.
45755 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45757 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45758 isn't mounted. Problem reported by Kir Kolyshkin.
45760 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45762 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45763 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45765 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45768 2006-04-12 Eric Blake <ebb9@byu.net>
45770 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45771 is now done automatically by the corresponding Autoconf macro.
45773 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45775 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45778 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45780 Merge regex changes from libc, removing some of our
45781 POSIX-conformance changes that were rejected and redoing them in a
45782 less-intrusive way.
45784 * lib/regcomp.c (re_compile_internal, init_dfa):
45785 Length arg is now size_t, not Idx. All uses changed.
45786 (peek_token): Forward decl now says internal_function.
45787 (__re_error_msgid, __re_error_msgid_idx):
45788 Now static rather than extern with attribute_hidden.
45789 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45790 For some reason libc prefers K&R style defns for external functions.
45791 (regerror) [!defined _LIBC]: Likewise.
45792 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45793 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45794 (build_range_exp, build_collating_symbol):
45795 Use K&R-style defn.
45796 (re_compile_fastmap): Use '\0' to memset, not 0.
45797 (utf8_sb_map): Make the calculations more obvious.
45798 (init_dfa, parse_bracket_exp, build_charclass_op):
45799 Call calloc and cast result, as glibc does.
45800 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45801 (build_range_exp, build_collating_symbol):
45802 Now internal functions.
45804 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45806 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45807 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45808 Don't depend on VMS; depend on __VMS instead, for POSIX
45809 namespace cleanness.
45810 (regoff_t): Define to ssize_t, not long int.
45812 Remove the REG_ macros named below. Instead, make the old names
45813 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45815 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45816 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45817 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45818 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45819 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45820 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45821 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45822 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45823 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45824 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45825 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45826 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45827 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45828 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45829 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45830 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45831 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45833 Remove. All uses replaced by the old RE_* names.
45834 (RE_BACKSLASH_ESCAPE_IN_LISTS):
45835 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45836 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45837 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45838 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45839 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45840 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45841 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45842 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45843 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45844 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45845 Don't bother having these macros be independent of each others'
45846 values, since they no longer exist in the POSIX name space.
45848 Rename the following member names back to their old names,
45849 unless !__USE_GNU_REGEX. All uses changed back.
45850 (buffer): Renamed from re_buffer.
45851 (allocated): Renamed from re_allocated.
45852 (used): Renamed from re_used.
45853 (syntax): Renamed from re_syntax.
45854 (fastmap): Renamed from re_fastmap.
45855 (translate): Renamed from re_translate.
45856 (can_be_null): Renamed from re_can_be_null.
45857 (regs_allocated): Renamed from re_regs_allocated.
45858 (fastmap_accurate): Renamed from re_fastmap_accurate.
45859 (no_sub): Renamed from re_no_sub.
45860 (not_bol): Renamed from re_not_bol.
45861 (not_eol): Renamed from re_not_eol.
45862 (newline_anchor): Renamed from re_newline_anchor.
45863 (num_regs): Renamed from rm_num_regs.
45864 (start): Renamed from rm_start.
45865 (end): Renamed from rm_end.
45867 (free_state): Move up a bit.
45869 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45870 #define to be empty.
45871 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45872 when that is what is intended.
45873 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45874 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45876 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45877 All uses changed back to re_malloc, etc. It's now the caller's
45878 responsibility to check for overflow; all callers changed.
45879 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45880 (re_x2nrealloc): Remove.
45881 (free_state): Remove decl.
45883 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45884 (re_set_registers, re_exec):
45885 Use K&R-style defn.
45887 2006-01-31 Roland McGrath <roland@redhat.com>
45889 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45890 Reported by Mike Frysinger <vapier@gentoo.org>.
45892 2006-01-15 Andreas Jaeger <aj@suse.de>
45895 * lib/regex_internal.c (re_string_reconstruct): Adjust for
45896 build_wcs_upper_buffer change.
45897 (build_wcs_upper_buffer): Change return type.
45899 2005-12-10 Ulrich Drepper <drepper@redhat.com>
45901 * lib/regex_internal.h: Include <stdint.h> if available.
45903 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
45905 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45907 2005-10-14 Ulrich Drepper <drepper@redhat.com>
45909 * lib/regcomp.c: Adjust for changed secondary hash function.
45911 2005-09-30 Ulrich Drepper <drepper@redhat.com>
45913 * lib/regex.h: Pretty printing.
45914 Clean up namespace a bit.
45916 2005-09-30 Jakub Jelinek <jakub@redhat.com>
45918 * lib/regexec.c (update_cur_sifted_state, check_arrival,
45919 check_arrival_add_next_nodes): Avoid using uninitialized variable.
45921 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
45922 Ulrich Drepper <drepper@redhat.com>
45925 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
45927 (bitset_word_t): Renamed from bitset_word. All uses changed.
45929 2005-09-22 Ulrich Drepper <drepper@redhat.com>
45932 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45933 * lib/regcomp.c: Remove unnecessary uses of
45934 unsigned RE_TRANSLATE_TYPE.
45935 * lib/regex_internal.h: Likewise.
45936 * lib/regex_internal.c: Likewise.
45937 * lib/regexec.c: Likewise.
45938 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45940 2005-09-07 Ulrich Drepper <drepper@redhat.com>
45942 * lib/regexec.c (find_recover_state): Remove unnecessary
45944 (transit_state_bkref): Make DFA a const pointer.
45945 (get_subexp): Likewise.
45946 (check_arrival): Likewise.
45947 (update_cur_sifted_state): Likewise.
45948 (re_search_internal): Likewise.
45949 (prune_impossible_nodes): Likewise.
45950 (acquire_init_state_context): Likewise.
45951 (proceed_next_node): Likewise.
45952 (set_regs): Likewise.
45953 (free_fail_stack_return): Likewise.
45954 (check_arrival_expand_ecl): Mark DFA parameter as const.
45955 (check_arrival_expand_ecl_sub): Likewise.
45956 (check_subexp_limits): Likewise.
45957 (sub_epsilon_src_nodes): Likewise.
45958 (add_epsilon_src_nodes): Likewise.
45959 (merge_state_array): Likewise.
45960 (update_regs): Likewise.
45961 (build_trtable): Likewise.
45962 (sift_states_backward): Mark MCTX parameter as const.
45963 (build_sifted_states): Likewise.
45964 (update_cur_sifted_state): Likewise.
45965 (sift_states_mkref): Likewise.
45966 (check_arrival_expand_ecl): Mark eclosure as const.
45967 (check_dst_limits_calc_pos_1): Likewise.
45968 * lib/regex_internal.h (re_match_context_t): Make dfa a const
45971 2005-09-06 Ulrich Drepper <drepper@redhat.com>
45973 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45974 (transit_state_sb): Likewise.
45975 (transit_state_mb): Likewise.
45976 (sift_states_iter_mb): Likewise.
45977 (check_arrival_add_next_nodes): Likewise.
45978 (check_node_accept_bytes): Change first parameter to pointer-to-const.
45979 [_LIBC] (re_search_2_stub): Use mempcpy.
45981 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45982 mbrtowc for very simple UTF-8 case.
45984 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45985 a pointer-to-const.
45986 (re_acquire_state_context): Likewise.
45987 * lib/regex_internal.h: Adjust prototypes.
45989 * lib/regex.c: Prevent using C++ compilers.
45991 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45992 (re_acquire_state_context): Likewise.
45994 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45996 * modules/regex (Depends-on): Add ssize_t.
45998 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46000 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46003 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46005 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46007 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46008 Bruno Haible <bruno@clisp.org>
46010 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46011 <sys/types.h> and <inttypes.h>.
46013 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46015 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46016 `__error_t_defined', so argp.h will not typedef the former.
46018 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46020 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46021 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46022 glibc names. Even if glibc is changed to conform to POSIX, the
46023 traditional names will be available anyway, since regex depends on
46024 the extensions module. Also, fix a longstanding typo in the
46025 implementation of Spencer ERE test #75 from grep 2.3. Problems
46026 reported by Emanuele Giaquinta. Also, change sense of cached
46027 variable, so that the message makes sense.
46029 2006-03-24 Simon Josefsson <jas@extundo.com>
46031 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46032 including some doc fixes.
46033 (base64_encode_alloc): Fix +1 bug on allocation failures.
46035 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46037 * lib/base64.c (base64_encode): Do not read past end of array with
46038 unsanitized input on systems with CHAR_BIT > 8.
46040 2006-03-24 Eric Blake <ebb9@byu.net>
46042 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46044 2006-03-22 Karl Berry <karl@gnu.org>
46046 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46047 * config/srclistvars.sh (COREUTILS): new var.
46049 2006-03-17 Jim Meyering <jim@meyering.net>
46051 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46052 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46054 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46056 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46057 no longer needs it. Instead, check that regoff_t is as least
46058 as wide as ptrdiff_t.
46060 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46061 so that our regex.h stays compatible with the installed regex.
46062 This is helpful for installers who configure --without-included-regex.
46063 Problem reported by Emanuele Giaquinta.
46065 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46067 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46068 Typedef to long int, not to off_, as POSIX will likely change
46071 2006-03-15 Eric Blake <ebb9@byu.net>
46073 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46075 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46077 * lib/argp-help.c (validate_uparams): Fix typo
46078 * lib/argp-parse.c (argp_default_options): Consistently begin help
46079 messages with a lowercase letter.
46081 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46083 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46084 overrun buffers and shouldn't be used (much as gets shouldn't be
46086 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46088 2006-03-08 Simon Josefsson <jas@extundo.com>
46090 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46091 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46093 2006-03-08 Simon Josefsson <jas@extundo.com>
46095 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46096 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46098 2006-03-08 Simon Josefsson <jas@extundo.com>
46100 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46101 signal that configure disabled the device.
46103 2006-03-08 Simon Josefsson <jas@extundo.com>
46105 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46108 2006-03-07 Simon Josefsson <jas@extundo.com>
46110 * modules/getopt (Depends-on): Add unistd.
46112 * modules/unistd: New file.
46114 2006-03-07 Simon Josefsson <jas@extundo.com>
46116 * modules/gc-random: New file.
46118 2006-03-07 Simon Josefsson <jas@extundo.com>
46120 * m4/unistd_h.m4: New file.
46122 2006-03-07 Simon Josefsson <jas@extundo.com>
46124 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46125 test to be side-effect free by storing the result in the cache
46126 variable gl_cv_lib_readline, and moving the assignment of
46127 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46128 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46130 2006-03-07 Simon Josefsson <jas@extundo.com>
46132 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46133 error on missing devices (the functions will return an error).
46135 * m4/gc.m4: Move random stuff to gc-random.m4
46137 2006-03-07 Simon Josefsson <jas@extundo.com>
46139 * lib/unistd_.h: New file.
46141 2006-03-07 Simon Josefsson <jas@extundo.com>
46143 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46145 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46147 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46148 Problem reported by Juan Manuel Guerrero.
46150 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46152 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46154 * lib/getlogin_r.c: Likewise.
46155 * lib/getlogin_r.h: Likewise.
46156 * lib/glob.c: Likewise.
46157 * lib/pagealign_alloc.c: Likewise.
46158 * lib/unistd_.h: Remove; no longer needed.
46160 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46162 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46164 * modules/c-stack (Depends-on): Add unistd.
46165 * modules/getlogin_r: Likewise.
46166 * modules/glob: Likewise.
46167 * modules/pagealign_alloc: Likewise.
46168 * modules/unistd (Files): Remove lib/unistd_.h.
46169 (EXTRA_DIST): Remove.
46170 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46172 (MOSTLYCLEANFILES): Remove unistd.h-t.
46174 2006-03-03 Simon Josefsson <jas@extundo.com>
46176 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46178 2006-03-03 Simon Josefsson <jas@extundo.com>
46180 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46183 2006-03-03 Simon Josefsson <jas@extundo.com>
46185 * build-aux/maint.mk: Add indent target.
46187 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46189 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46190 our replacement poll.h in any case, to avoid a differing
46191 declaration from a system header. Seen on AIX.
46193 2006-03-01 Simon Josefsson <jas@extundo.com>
46195 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46198 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46200 * modules/gettime (Depends-on): Add extensions module.
46201 * modules/nanosleep (Depends-on): Likewise.
46202 * modules/settime (Depends-on): Likewise.
46204 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46206 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46207 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46209 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46210 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46212 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46213 not "==". Reported by Ralf Wildenhues.
46215 2006-03-01 Karl Berry <karl@gnu.org>
46217 * doc/Copyright/request-*: new files, synced from gnuorg.
46219 2006-03-01 Karl Berry <karl@gnu.org>
46221 * config/srclist.txt (Copyright/*): new entries.
46223 2006-02-28 Simon Josefsson <jas@extundo.com>
46225 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46227 2006-02-27 Simon Josefsson <jas@extundo.com>
46229 * lib/base64.h: Indent #define's. From Jim Meyering
46230 <jim@meyering.net>.
46232 2006-02-27 Jim Meyering <jim@meyering.net>
46234 Revert the change of 2006-02-24, so these files can continue
46235 to be sync'd from gettext.
46236 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46239 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46241 * modules/intprops: New file.
46242 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46244 * modules/getloadavg (Files): Remove lib/intprops.h.
46245 (Depends-on): Add intprops.
46246 * modules/human: Likewise.
46247 * modules/inttostr: Likewise.
46248 * modules/openat: Likewise.
46249 * modules/sig2str: Likewise.
46250 * modules/userspec: Likewise.
46251 * modules/utimecmp: Likewise.
46252 * modules/xnanosleep: Likewise.
46253 * modules/xstrtol: Likewise.
46255 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46257 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46258 * modules/lock-tests (TESTS): Use $(EXEEXT).
46259 * modules/tls-tests: Likewise.
46260 * modules/argp-tests: Likewise.
46261 (check_PROGRAMS): New var, replacing...
46262 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46264 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46266 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46269 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46271 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46273 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46275 Sync from coreutils.
46276 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46279 2006-02-22 Jim Meyering <jim@meyering.net>
46281 Sync from coreutils.
46282 * m4/chdir-safer.m4: New file.
46284 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46286 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46287 AT_FDCWD exceeds INT_MAX.
46288 * lib/openat.h (AT_FDCWD): Likewise.
46290 2006-02-17 Eric Blake <address@hidden>
46292 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46294 2006-02-16 Simon Josefsson <jas@extundo.com>
46296 * modules/getaddrinfo (Depends-on): Add sys_socket.
46298 2006-02-15 Simon Josefsson <jas@extundo.com>
46300 * build-aux/maint.mk: Add dsyntax-check rule.
46302 2006-02-15 Eric Blake <ebb9@byu.net>
46304 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46305 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46306 'present but cannot compile' warnings on cygwin.
46307 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46308 use ws2tcpip.h if sys/socket.h works.
46309 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46310 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46312 2006-02-14 Simon Josefsson <jas@extundo.com>
46314 * modules/maintainer-makefile (Files): Rename.
46316 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46317 and (the local) Makefile.cfg to maint-cfg.mk.
46319 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46322 * modules/maintainer-makefile: New module.
46324 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46325 severaly stripped to make it possible to build it up from scratch
46326 with reliable tests.
46328 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46329 fixes to permit overriding the default actions when configure and
46330 makefile are not available.
46332 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46334 Sync from coreutils.
46335 * modules/lstat (Depends-on): Don't depend on xalloc.
46336 (License): Change from GPL to LGPL, since this is now simply a
46337 replacement for a libc function.
46339 2006-02-14 Jim Meyering <jim@meyering.net>
46341 Sync from coreutils.
46343 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46344 failure on deficient systems, and simplify gnulib lgpl dependencies.
46345 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46346 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46348 * lib/xalloc-die.c: Remove unused definition of N_.
46350 2006-02-14 Jim Meyering <jim@meyering.net>
46352 Sync from coreutils.
46353 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46354 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46355 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46356 double-quote uses of that variable, to accommodate the rare case in
46357 which getmntent is available in none of the libraries checked. This
46358 happens at least on FreeBSD 5.0.
46360 2006-02-13 Simon Josefsson <jas@extundo.com>
46362 * gnulib-tool (Usage): Fix --import, from
46363 karl@freefriends.org (Karl Berry).
46365 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46367 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46369 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46371 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46372 "autoupdate" on 2005-12-12.
46374 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46376 * modules/closeout (Depends-on): Remove atexit.
46378 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46380 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46381 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46383 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46385 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46386 __EXTENSIONS__ if this causes compilation to fail. Problem
46387 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46388 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46390 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46392 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46393 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46394 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46397 2006-01-26 Simon Josefsson <jas@extundo.com>
46399 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46400 prototype is visible on mingw32.
46402 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46405 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46408 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46410 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46411 attempt to open for write; this always fails, at least on POSIX
46412 hosts. This reinstates the 2006-01-09 change, which was
46413 inadvertently removed.
46415 2006-01-26 Bruno Haible <bruno@clisp.org>
46417 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46418 Reported by Paul Eggert.
46420 2006-01-26 Bruno Haible <bruno@clisp.org>
46421 Paul Eggert <eggert@cs.ucla.edu>
46423 * lib/stdbool_.h (_Bool)
46424 [(! (defined __cplusplus || defined __BEOS__)
46425 && !defined __GNUC__
46426 && !(defined __HP_cc || defined __xlc__
46427 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46428 || defined __sgi))]:
46429 #define to signed char in these cases too; this simplifies
46430 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46431 etc., separately) and makes it more conservative.
46433 2006-01-25 Simon Josefsson <jas@extundo.com>
46435 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46436 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46437 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46439 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46441 * lib/argp-namefrob.h: Bugfix. Remove stray #
46443 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46445 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46446 so that we test the test.
46447 Check for yet another HP-UX cc bug involving *bool |= bool.
46449 2006-01-25 Karl Berry <karl@gnu.org>
46451 * config/srclist.txt (vasnprintf.c): sync lost.
46453 2006-01-25 Jim Meyering <jim@meyering.net>
46455 Sync from the stable (b5) branch of coreutils:
46457 * lib/fts.c (fts_children): Don't let close() clobber errno from
46460 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46461 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46462 a dangling symlink. That can also happen at least for ELOOP.
46463 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46464 FYI, this bug predates the inclusion of fts.c in coreutils.
46466 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46467 in their own block, so pre-c99 compilers don't object.
46469 Avoid the double-free (first in fts_read, second in fts_close) that
46470 would occur when an `active' directory is made inaccessible (e.g.,
46471 via chmod a-x) during a traversal.
46472 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46473 before returning. Reproduce this failure by
46474 mkdir -p a/b; cd a; chmod a-x . b
46475 Reported by Stavros Passas.
46477 2006-01-25 Jim Meyering <jim@meyering.net>
46479 * lib/fileblocks.c: Remove more useless parentheses.
46480 * lib/readutmp.h: Likewise.
46482 2006-01-25 Bruno Haible <bruno@clisp.org>
46484 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46486 Reported by Paul Eggert.
46488 2006-01-25 Bruno Haible <bruno@clisp.org>
46490 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46491 rid of a trap command. For Solaris sh.
46492 Reported by Mark D. Baushke <mdb@gnu.org>.
46494 2006-01-24 Simon Josefsson <jas@extundo.com>
46496 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46499 2006-01-24 Karl Berry <karl@gnu.org>
46501 * config/srclist.txt (argp-namefrob.h): sync lost.
46503 2006-01-24 Jim Meyering <jim@meyering.net>
46505 * modules/openat (Files): Add lib/intprops.h.
46506 From Mark D. Baushke.
46508 2006-01-24 Jim Meyering <jim@meyering.net>
46510 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46511 Reported by Mark D. Baushke.
46513 2006-01-24 Jim Meyering <jim@meyering.net>
46515 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46517 2006-01-24 Bruno Haible <bruno@clisp.org>
46519 * modules/strnlen (Maintainer): Change from glibc to all.
46521 2006-01-24 Bruno Haible <bruno@clisp.org>
46523 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46524 Patch by Paul Eggert.
46526 2006-01-24 Bruno Haible <bruno@clisp.org>
46528 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46530 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46533 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46534 'signed char' to avoid problems with the built-in _Bool type.
46535 Reported by Paul Eggert on 2005-11-26.
46537 2006-01-24 Bruno Haible <bruno@clisp.org>
46539 * gnulib-tool (func_import): Avoid constructing complicated sed
46540 expressions inside backquote.
46541 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46543 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46545 These changes imported from libc.
46546 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46547 test and two separate function calls.
46548 * lib/strndup.c (__strndup): Add libc_hidden_def.
46550 2006-01-23 Simon Josefsson <jas@extundo.com>
46552 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46553 Remove the test_*_SOURCES variable: automake infers it by default.
46554 * modules/tls-tests: Likewise.
46556 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46558 Work around porting bugs reported by Dieter in
46559 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46560 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46561 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46562 Include "getopt.h" first, to check interface.
46563 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46565 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46566 (__strndup): Revert to K&R-style function dfns, the glibc style.
46567 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46568 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46569 Include strnlen.h first, to get prototype properly.
46570 (strnlen): Renamed from __strnlen.
46573 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46575 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46577 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46579 * config/srclist.txt: Adjust to reflect glibc reorganization.
46580 This affects only comments.
46582 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46584 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46585 Reported by Bruce Korb <bkorb@gnu.org>.
46587 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46589 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46590 to pacify gcc -Wswitch-default.
46592 2006-01-22 Bruno Haible <bruno@clisp.org>
46594 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46595 temporary buffer for sprintf, take into account the precision also
46596 for 'd', 'i', 'u', 'o', 'x', 'X'.
46598 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46600 * modules/argp-tests: New module
46601 * tests/test-argp.c: New file
46602 * tests/test-argp-2.sh: New file
46604 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46606 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46607 (__argp_base_name): Removed
46608 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46610 (__argp_base_name): Provide macro definition or extern declaration
46611 depending on the configuration
46613 2006-01-20 Simon Josefsson <jas@extundo.com>
46615 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46617 2006-01-20 Simon Josefsson <jas@extundo.com>
46619 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46621 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46623 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46624 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46625 Suggested by Bruno Haible.
46627 2006-01-20 Karl Berry <karl@gnu.org>
46629 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46630 until changes propagate, I guess.
46632 2006-01-19 Simon Josefsson <jas@extundo.com>
46634 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46636 2006-01-19 Simon Josefsson <jas@extundo.com>
46638 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46640 2006-01-19 Simon Josefsson <jas@extundo.com>
46642 * gnulib-tool: Set check_PROGRAMS.
46644 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46645 modules/des-tests, modules/gc-arcfour-tests,
46646 modules/gc-arctwo-tests, modules/gc-des-tests,
46647 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46648 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46649 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46650 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46651 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46652 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46653 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46656 2006-01-18 Simon Josefsson <jas@extundo.com>
46658 * modules/socklen (Depends-on): Depend on sys_socket.
46660 2006-01-18 Simon Josefsson <jas@extundo.com>
46662 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46663 modules/des-tests, modules/gc-arcfour-tests,
46664 modules/gc-arctwo-tests, modules/gc-des-tests,
46665 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46666 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46667 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46668 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46669 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46670 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46671 $(EXEEXT) to automake TESTS variable, for mingw32.
46673 2006-01-17 Simon Josefsson <jas@extundo.com>
46675 * modules/socklen (Include): Need sys/socket.h.
46677 2006-01-17 Bruno Haible <bruno@clisp.org>
46679 * modules/ssize_t (Include): Add <sys/types.h>.
46681 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46683 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46684 it's not portable and it doesn't work with cross-compiles.
46685 Problem reported by Bruno Haible. Fix missing-$ typo in
46686 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46687 -zignore from being used with Sun's C compiler.
46689 2006-01-12 Simon Josefsson <jas@extundo.com>
46691 * lib/base64.c: Fix warning, reported by Bruno Haible
46692 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46694 2006-01-12 Bruno Haible <bruno@clisp.org>
46696 * modules/ldd: New file.
46697 * build-aux/ldd.sh.in: New file.
46698 * MODULES.html.sh (Support for building libraries and executables): Add
46701 2006-01-12 Bruno Haible <bruno@clisp.org>
46703 * m4/ldd.m4: New file.
46705 2006-01-12 Bruno Haible <bruno@clisp.org>
46707 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46708 endless loop while replacing $auxdir with build-aux.
46710 2006-01-11 Simon Josefsson <jas@extundo.com>
46712 * lib/stdint_.h (SIZE_MAX): Add missing (.
46714 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46716 Sync from coreutils.
46717 * lib/md5.c: Fix commentary typos.
46718 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46719 * lib/md5.h (__attribute__): Remove; unused.
46720 * lib/sha1.c: Fix commentary to match md5 better.
46721 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46722 so that we don't need to worry about alignment. All uses changed.
46723 This merges the 2005-10-28 md5 change into sha1.
46725 2006-01-11 Jim Meyering <jim@meyering.net>
46727 Sync from coreutils.
46728 * lib/md5.c (OP): Fix spacing.
46730 2006-01-11 Bruno Haible <bruno@clisp.org>
46732 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46733 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46734 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46736 2006-01-11 Bruno Haible <bruno@clisp.org>
46738 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46739 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46740 the "early" section as well.
46742 2006-01-11 Bruno Haible <bruno@clisp.org>
46744 Avoid "ar: no archive members specified" error on MacOS X.
46745 * gnulib-tool (func_modules_add_dummy): New function.
46746 (func_import, func_create_testdir): Invoke it.
46748 2006-01-11 Bruno Haible <bruno@clisp.org>
46750 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46751 with $auxdir in AC_CONFIG_FILES statements.
46753 2006-01-11 Bruno Haible <bruno@clisp.org>
46755 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46756 Initialize also noinst_HEADERS to empty.
46758 2006-01-11 Bruno Haible <bruno@clisp.org>
46760 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46762 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46765 2006-01-11 Bruno Haible <bruno@clisp.org>
46767 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46768 overridable by the user.
46769 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46771 2006-01-10 Simon Josefsson <jas@extundo.com>
46773 * modules/sys_socket: New file.
46775 2006-01-10 Simon Josefsson <jas@extundo.com>
46777 * m4/sys_socket_h.m4: New file.
46779 2006-01-10 Simon Josefsson <jas@extundo.com>
46781 * lib/socket_.h: New file.
46783 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46785 * modules/readutmp (Maintainer): Add myself.
46787 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46789 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46790 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46791 People who are still concerned with buggy memcmp implementations
46792 can invoke gl_FUNC_MEMCMP themselves.
46794 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46796 * lib/regex_internal.h (BITSET_WORD_BITS):
46797 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46798 preprocessor mishandles large unsigned values as if they were signed.
46799 Problem reported by Claudio Fontana in
46800 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46802 2006-01-10 Jim Meyering <jim@meyering.net>
46804 Avoid the double-free (first in fts_read, second in fts_close) that
46805 would occur when an `active' directory is made inaccessible (e.g.,
46806 via chmod a-x) during a traversal.
46807 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46808 before returning. Reproduce this failure by
46809 mkdir -p a/b; cd a; chmod a-x . b
46810 Reported by Stavros Passas.
46812 Sync from coreutils.
46813 * lib/sha1.c: Tweak grammar in a comment.
46815 2006-01-10 Jim Meyering <jim@meyering.net>
46817 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46818 Patch by Joerg Sonnenberger.
46820 2006-01-10 Bruno Haible <bruno@clisp.org>
46822 * modules/readutmp: Depend on module free.
46823 * modules/strtok_r: Depend on module restrict.
46825 2006-01-10 Bruno Haible <bruno@clisp.org>
46827 * modules/gettext (configure.ac): Add an invocation of
46828 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46830 2006-01-10 Bruno Haible <bruno@clisp.org>
46832 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46833 Reported by Werner Lemberg <wl@gnu.org>.
46835 2006-01-10 Bruno Haible <bruno@clisp.org>
46837 * lib/localcharset.c: Update from GNU gettext.
46839 2006-01-10 Bruno Haible <bruno@clisp.org>
46841 * lib/argp.h (__const): Remove macro. Use const instead.
46842 * lib/argp-fmtstream.h (__const): Likewise.
46843 * lib/glob_.h (__const): Remove macro.
46844 * lib/glob-libc.h: Use const instead of __const.
46846 2006-01-10 Bruno Haible <bruno@clisp.org>
46848 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46850 Needed to avoid an automake error regarding the 'gettext' module.
46852 2006-01-09 Simon Josefsson <jas@extundo.com>
46854 * modules/inet_ntop (Depends-on): Add restrict.
46856 2006-01-09 Simon Josefsson <jas@extundo.com>
46858 * modules/gc-rijndael-tests (License): Put under LGPL.
46860 * modules/gc-des-tests (License): Likewise.
46862 * modules/gc-arcfour-tests (License): Likewise.
46864 * modules/gc-arctwo-tests (License): Likewise.
46866 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46868 * modules/gc-hmac-sha1-tests (Files): Likewise.
46870 * modules/gc-hmac-md5-tests (License): Likewise.
46872 * modules/gc-sha1-tests (License): Likewise.
46874 * modules/gc-md5-tests (License): Likewise.
46876 * modules/gc-md4-tests (License): Likewise.
46878 * modules/gc-md2-tests (License): Likewise.
46880 * modules/gc-tests (License): Likewise.
46882 * modules/des-tests (License): Likewise.
46884 * modules/md4-tests (License): Likewise.
46886 * modules/md2-tests (License): Likewise.
46888 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46890 Sync from coreutils:
46892 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46893 * modules/lib-ignore: New file.
46894 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46895 chdir-safer.m4, lchmod.m4.
46896 * modules/openat: Add mkdirat.c, openat-priv.h.
46898 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46900 Sync from coreutils.
46901 * m4/lib-ignore.m4: New file.
46902 * m4/lchmod.m4: New file.
46904 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46906 Sync from coreutils.
46907 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46908 for write access: POSIX says that must fail.
46909 * lib/fts.c (diropen): Likewise.
46910 * lib/save-cwd.c (save_cwd): Likewise.
46911 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46912 well, for minor improvements on hosts that lack O_DIRECTORY.
46913 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46914 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46915 Fall back on chown if open failed with EACCES.
46917 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46918 Report an error at compile-time if only a 1-second nominal clock
46919 resolution is found.
46921 * lib/lchmod.h: New file.
46922 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46923 (make_dir_parents): Use lchown rather than chown, and
46924 lchmod rather than chmod.
46926 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46927 dummies too. Problem with "none" reported by Bob Proulx. Problem with
46928 "proc" reported by n0dalus.
46930 * lib/mountlist.c: Include <limits.h>.
46931 (dev_from_mount_options)
46932 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46933 New function. It no longer assumes "dev=" has the System V meaning
46934 on Linux (since it doesn't). It also parses "dev=" more carefully.
46935 (read_file_system_list)
46936 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46937 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46940 * lib/posixtm.h (PDS_PRE_2000): New macro.
46941 * lib/posixtm.c (year): Arg is now syntax_bits rather than
46942 allow_century. All usages changed. Reject dates outside the range
46943 1969-1999 if PDS_PRE_2000 is used.
46945 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46947 Sync from coreutils.
46948 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46949 (Time of day items): Mention the possibility of leap seconds.
46950 Problem reported by Dr. David Alan Gilbert.
46952 2006-01-09 Jim Meyering <jim@meyering.net>
46954 Sync from coreutils.
46956 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46958 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46960 * lib/modechange.c (mode_compile): Reject an invalid mode string
46961 that starts with an octal digit. From Andreas Gruenbacher.
46963 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46964 and dup to open_safer and dup_safer, respectively.
46965 (openat_permissive): Fix typo in comment.
46967 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46968 "gettext.h"; either no longer needed or are guaranteed by openat.h.
46969 (_): Remove; no longer needed.
46970 (openat): Renamed from rpl_openat; no need for rpl_openat
46971 since openat.h renames openat for us.
46972 Replace most of the body with a call to openat_permissive,
46973 to avoid duplicate code.
46974 Port to (probably hypothetical) environments were mode_t is
46976 (openat_permissive): Require mode arg, so that we can check
46977 types better. Put it just after flags. Change cwd failure
46978 indicator from pointer-to-bool to pointer-to-errno-value.
46979 All callers changed.
46980 Invoke openat_save_fail and/or openat_restore_fail if
46981 cwd_errno is null, so that openat can call us.
46982 (openat_permissive, fdopendir, fstatat, unlinkat):
46983 Simplify errno handling to avoid some duplicate code,
46984 as it's OK to set errno on success.
46985 * lib/openat.h: Revamp code so that function macros depend on
46986 __OPENAT_PREFIX only, not also on AT_FDCWD.
46987 (openat_ro): Remove. Caller changed to use openat_permissive.
46988 (openat_permissive): Now a macro, if not a function.
46989 (openat_restore_fail, openat_save_fail): Now always functions,
46990 since mkdirat needs them even if __OPENAT_PREFIX is defined.
46992 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46994 * lib/mkdirat.c: Include openat-priv.h.
46995 Remove definitions of macros defined therein.
46996 * lib/openat.c: Likewise.
46998 * lib/mkdirat.c (mkdirat): New file and function.
46999 * lib/openat.h (mkdirat): Declare.
47001 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47003 * lib/openat.h (openat_permissive): Declare.
47004 (openat_ro): Define.
47006 * lib/openat.c (EXPECTED_ERRNO): New macro.
47007 (openat_permissive): New function -- used in remove.c rewrite.
47008 (all functions): Set errno just before returning, only if there
47009 was an actual failure.
47010 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47012 Emulate openat-family functions using Linux's procfs, if possible.
47013 Idea and some code based on Ulrich Drepper's glibc changes.
47015 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47016 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47017 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47018 before falling back on save_cwd and restore_cwd.
47019 (fdopendir, fstatat, unlinkat): Likewise.
47021 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47022 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47024 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47025 as second argument to va_arg. Otherwise, some versions of gcc
47026 warn that `if this code is reached, the program will abort'.
47028 2006-01-09 Jim Meyering <jim@meyering.net>
47030 Sync from coreutils.
47031 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47032 Require openat-priv.h.
47034 2006-01-09 Bruno Haible <bruno@clisp.org>
47036 * modules/strnlen (Include): Use strnlen.h.
47038 2006-01-09 Bruno Haible <bruno@clisp.org>
47040 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47042 2006-01-09 Bruno Haible <bruno@clisp.org>
47044 * lib/sysexit_.h (EX_OK): New macro.
47045 Suggested by Martin Lambers <marlam@marlam.de>.
47047 2006-01-09 Bruno Haible <bruno@clisp.org>
47049 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47050 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47052 2006-01-09 Bruno Haible <bruno@clisp.org>
47054 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47057 2006-01-09 Bruno Haible <bruno@clisp.org>
47059 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47060 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47061 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47062 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47064 2006-01-09 Bruno Haible <bruno@clisp.org>
47066 * build-aux/javacomp.sh.in: New file, moved from lib/.
47067 * modules/javacomp-script (Files): Update.
47068 (configure.ac): Add AC_CONFIG_FILES invocation.
47069 (EXTRA_DIST): Remove variable.
47071 * build-aux/javaexec.sh.in: New file, moved from lib/.
47072 * modules/javaexec (Files): Update.
47073 (configure.ac): Add AC_CONFIG_FILES invocation.
47074 (EXTRA_DIST): Remove javaexec.sh.in.
47076 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47077 * modules/csharpcomp-script (Files): Update.
47078 (configure.ac): Add AC_CONFIG_FILES invocation.
47079 (EXTRA_DIST): Remove variable.
47081 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47082 * modules/csharpexec (Files): Update.
47083 (configure.ac): Add AC_CONFIG_FILES invocation.
47084 (EXTRA_DIST): Remove csharpexec.sh.in.
47086 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47088 Sync from coreutils.
47090 Add POSIX ACL support
47091 * lib/acl.h (copy_acl, set_acl): Add declarations.
47092 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47093 systems other than Linux.
47094 (chmod_or_fchmod): New function: use fchmod when possible,
47095 and chmod otherwise.
47096 (file_has_acl): Add a POSIX ACL implementation, with a
47097 Linux-specific subcase.
47098 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47099 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47100 acls are unsupported.
47101 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47102 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47105 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47107 Sync from coreutils.
47108 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47110 2006-01-07 Bruno Haible <bruno@clisp.org>
47112 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47115 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47117 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47118 Problem reported for Mingw by Mark Junker.
47120 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47122 * README: Gnulib normally doesn't generate a tarball.
47124 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47126 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47127 long int, not int, for nanosecond counts, so that people who are
47128 used to POSIX struct timespec won't be surprised. Reported by Jim
47131 2005-12-28 Bruno Haible <bruno@clisp.org>
47133 * build-aux/config.rpath: Update from GNU gettext.
47135 2005-12-16 Jim Meyering <jim@meyering.net>
47137 * modules/fprintftime: New module.
47138 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47140 2005-12-16 Jim Meyering <jim@meyering.net>
47142 * m4/fprintftime.m4: New file.
47144 2005-12-16 Jim Meyering <jim@meyering.net>
47146 * lib/fprintftime.c, lib/fprintftime.h: New files.
47148 2005-12-15 Simon Josefsson <jas@extundo.com>
47150 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47153 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47155 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47156 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47158 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47160 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47161 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47162 struct uparams is valid. Fall back to the default values if it is
47165 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47167 * modules/argp (Files): Add argp-pin.c
47168 (Depends-on): dirname
47169 (lib_SOURCES): Add argp-pin.c
47171 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47173 * m4/argp.m4: Check if program_invocation_name and
47174 program_invocation_short_name are declared and define appropriate
47175 macros if they are not.
47177 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47179 * lib/argp-help.c (__argp_base_name): New function
47180 (__argp_short_program_name): Rewrite using __argp_base_name
47181 * lib/argp-namefrob.h: Define program_invocation_name and
47182 program_invocation_short_name if requested
47183 (__argp_base_name): Add prototype
47184 * lib/argp-parse.c (argp_def): Use gettext wrappers
47185 (argp_default_parser): Use __argp_base_name
47186 * lib/argp-pin.c: New file. Defines program_invocation_name and
47187 program_invocation_short_name on systems that lack them.
47189 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47191 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47192 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47193 porting problem reported by Georg Schwarz in
47194 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47196 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47198 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47199 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47200 porting problem reported by Georg Schwarz in
47201 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47203 2005-12-05 Bruno Haible <bruno@clisp.org>
47205 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47206 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47207 Reported by Mark Junker <mjscod@gmx.de>.
47209 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47211 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47212 Use implementation from Albert Chin, with some
47213 comments/corrections by Stepan Kasal and myself.
47215 2005-12-02 Bruno Haible <bruno@clisp.org>
47217 * gnulib-tool (func_import): Accept GPLed build tool modules when
47219 * modules/csharpcomp-script: New file.
47220 * modules/csharpcomp: Depend on it.
47221 * modules/javacomp-script: New file.
47222 * modules/javacomp: Depend on it.
47223 Suggested by Simon Josefsson.
47225 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47227 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47228 statement, to work around an HP-UX 10.20 compiler bug reported by
47231 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47233 * modules/savedir (Depends-on): Add openat.
47235 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47237 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47238 (uintmax_t) [defined uintmax_t]: Do not declare.
47239 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47240 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47241 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47242 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47243 sake of portability to weird hosts that C allows (though we don't
47244 know of any practical examples).
47246 * lib/savedir.h (fdsavedir): New decl.
47247 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47248 contains most of the former guts of savedir.
47249 (savedir): Use savedirstream.
47250 Include "openat.h".
47252 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47254 * modules/obstack (Files): Add m4/ulonglong.m4.
47255 Problem reported by Davide Angelocola.
47257 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47259 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47260 coreutils no longer futzes with rounding modes.
47262 2005-11-14 Jim Meyering <jim@meyering.net>
47264 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47265 replacement of mkstemp.
47267 2005-11-10 Simon Josefsson <jas@extundo.com>
47269 * lib/readline.c: Remove EOL.
47271 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47273 * modules/gethrxtime (Depends-on): Add gettime.
47275 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47277 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47278 or gettimeofday; no longer needed.
47280 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47282 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47284 (gethrxtime) [! (HAVE_NANOUPTIME
47285 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47286 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47287 our own approximation.
47289 2005-11-08 Eric Blake <ebb9@byu.net>
47291 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47293 2005-11-08 Eric Blake <ebb9@byu.net>
47295 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47297 2005-11-04 Bruno Haible <bruno@clisp.org>
47299 * gnulib-tool: Implement --update mode.
47301 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47303 Fix porting problem reported by Theodoros V. Kalamatianos.
47304 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47305 Don't assume that futimes failing means we must fail.
47307 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47309 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47310 variables to suggest the intended function of the PATH_MAX check.
47312 2005-10-30 Kean Johnston <jkj@sco.com>
47314 Trivial changes to support SCO systems.
47315 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47317 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47318 where __ptr is null when no I/O is pending.
47320 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47322 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47323 leave errno alone. Problem reported by Dmitry V. Levin.
47325 2005-10-28 Simon Josefsson <jas@extundo.com>
47327 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47330 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47332 * modules/md2, modules/md2-tests: New files.
47334 2005-10-28 Simon Josefsson <jas@extundo.com>
47336 * m4/inet_ntop.m4: More tests.
47338 * m4/gc-md2.m4, md2.m4: New file.
47340 2005-10-28 Simon Josefsson <jas@extundo.com>
47342 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47343 "restrict" keywords, as per POSIX. Protect the function
47344 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47345 Don't use K&R prototypes. Check the sprintf return values.
47346 Re-define EAFNOSUPPORT if not present. Indent.
47348 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47349 suggested by Bruno Haible <bruno@clisp.org>.
47351 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47353 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47355 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47358 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47360 * lib/md2.h, lib/md2.c: New files.
47362 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47364 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47365 errno alone. Problem reported by Frederic Jolliton.
47367 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47369 * modules/verify (License): Change from GPL to LGPL. This is a
47370 tiny module and there are apparently near-equivalents that are
47371 under the BSD license.
47373 2005-10-24 Simon Josefsson <jas@extundo.com>
47375 * modules/sha1: Relicense to LGPL.
47377 2005-10-24 Simon Josefsson <jas@extundo.com>
47379 * lib/md4.h: Shrink buffer size, now that we changed the type.
47381 2005-10-23 Simon Josefsson <jas@extundo.com>
47383 * gnulib-tool (func_import): Fix --tests-base.
47385 2005-10-22 Simon Josefsson <jas@extundo.com>
47387 * modules/arcfour (Depends-on): Need stdint.
47389 2005-10-22 Simon Josefsson <jas@extundo.com>
47391 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47392 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47394 2005-10-22 Simon Josefsson <jas@extundo.com>
47396 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47397 suggested by Bruno Haible <bruno@clisp.org>.
47399 2005-10-22 Simon Josefsson <jas@extundo.com>
47401 * lib/crc.h: Include stddef.h, for size_t.
47403 2005-10-22 Simon Josefsson <jas@extundo.com>
47405 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47406 arcfour_context struct (simplify test vector testing in GNU
47409 2005-10-21 Simon Josefsson <jas@extundo.com>
47411 * modules/des, modules/des-tests: New files.
47413 * modules/gc-des, modules/gc-des-tests: New files.
47415 * tests/test-des.c, tests/test-gc-des.c: New file.
47417 2005-10-21 Simon Josefsson <jas@extundo.com>
47419 * modules/arctwo, modules/arctwo-tests: New files.
47421 * tests/test-arctwo.c: New file.
47423 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47425 * tests/test-gc-arctwo.c: New file.
47427 2005-10-21 Simon Josefsson <jas@extundo.com>
47429 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47430 Bruno Haible <bruno@clisp.org>.
47432 * m4/gc-des.m4: New file.
47434 2005-10-21 Simon Josefsson <jas@extundo.com>
47436 * m4/arctwo.m4: New file.
47438 * m4/gc-arctwo.m4: New file.
47440 2005-10-21 Simon Josefsson <jas@extundo.com>
47442 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47445 2005-10-21 Simon Josefsson <jas@extundo.com>
47447 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47450 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47452 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47453 Bruno Haible <bruno@clisp.org>.
47455 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47458 2005-10-21 Simon Josefsson <jas@extundo.com>
47460 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47462 2005-10-21 Simon Josefsson <jas@extundo.com>
47464 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47466 2005-10-21 Simon Josefsson <jas@extundo.com>
47468 * lib/des.h, lib/des.c: New files.
47470 * lib/gc-gnulib.c: Support DES.c
47472 2005-10-21 Simon Josefsson <jas@extundo.com>
47474 * lib/arctwo.h, lib/arctwo.c: New files.
47476 * lib/gc-gnulib.c: Support ARCTWO.
47478 2005-10-21 Simon Josefsson <jas@extundo.com>
47480 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47481 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47483 2005-10-21 Simon Josefsson <jas@extundo.com>
47485 * gnulib-tool (func_import, func_create_testdir): Define automake
47486 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47487 Makefile.am snippet),
47488 suggested by Bruno Haible <bruno@clisp.org>.
47490 * modules/gc (Makefile.am): Use it.
47492 2005-10-21 Bruno Haible <bruno@clisp.org>
47494 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47497 2005-10-19 Simon Josefsson <jas@extundo.com>
47499 * tests/test-gc-rijndael.c: New file.
47501 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47503 2005-10-19 Simon Josefsson <jas@extundo.com>
47505 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47508 2005-10-19 Simon Josefsson <jas@extundo.com>
47510 * tests/test-gc-arcfour.c: New file.
47512 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47514 2005-10-19 Simon Josefsson <jas@extundo.com>
47516 * modules/gc-md4, modules/gc-md4-tests: New file.
47518 * tests/test-gc-md4.c: New file.
47520 2005-10-19 Simon Josefsson <jas@extundo.com>
47522 * m4/gc-md4.m4: New file.
47524 2005-10-19 Simon Josefsson <jas@extundo.com>
47526 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47527 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47530 2005-10-19 Simon Josefsson <jas@extundo.com>
47532 * m4/gc-arcfour.m4: New file.
47534 * m4/gc-rijndael.m4: New file.
47536 2005-10-19 Simon Josefsson <jas@extundo.com>
47538 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47540 2005-10-19 Simon Josefsson <jas@extundo.com>
47542 * lib/gc-gnulib.c: Support ARCFOUR.
47544 2005-10-19 Simon Josefsson <jas@extundo.com>
47546 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47549 * lib/gc.h: Add ECB enum type.
47551 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47553 2005-10-18 Simon Josefsson <jas@extundo.com>
47555 * tests/test-md5.c: New file.
47557 * modules/md5-tests: New file.
47559 2005-10-18 Simon Josefsson <jas@extundo.com>
47561 * tests/test-md4.c: New file.
47563 * modules/md4, modules/md4-tests: New files.
47565 2005-10-18 Simon Josefsson <jas@extundo.com>
47567 * m4/md4.m4: New file.
47569 2005-10-18 Simon Josefsson <jas@extundo.com>
47571 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47573 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47575 * gnulib-tool (func_create_testdir): Omit the second check whether
47576 BUILT_SOURCES in nonempty.
47578 2005-10-17 Simon Josefsson <jas@extundo.com>
47580 * tests/test-rijndael.c: New file.
47582 2005-10-17 Simon Josefsson <jas@extundo.com>
47584 * modules/sha1: Depend on stdint instead of md5.
47586 * modules/md5: Depend on stdint, remove uint32_t.
47588 2005-10-17 Simon Josefsson <jas@extundo.com>
47590 * modules/gc-sha1-tests: New file.
47592 * tests/test-gc-sha1.c: New file.
47594 2005-10-17 Simon Josefsson <jas@extundo.com>
47596 * m4/md5.m4: Remove call to uint32_t.m4.
47598 2005-10-17 Simon Josefsson <jas@extundo.com>
47600 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47602 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47605 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47607 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47609 2005-10-17 Simon Josefsson <jas@extundo.com>
47611 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47613 2005-10-17 Simon Josefsson <jas@extundo.com>
47615 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47617 2005-10-17 Simon Josefsson <jas@extundo.com>
47619 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47621 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47623 2005-10-17 Bruno Haible <bruno@clisp.org>
47625 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47626 that it can also be used in a test.
47628 2005-10-16 Bruno Haible <bruno@clisp.org>
47630 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47631 TESTS_ENVIRONMENT, so that individual tests can augment it.
47633 * gnulib-tool (func_create_testdir): Use an intermediate target for
47634 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47635 macros, like $(ALLOCA_H), which cannot be passed through the command
47638 2005-10-15 Simon Josefsson <jas@extundo.com>
47640 * modules/rijndael-tests: New file.
47642 * modules/rijndael: New file.
47644 2005-10-15 Simon Josefsson <jas@extundo.com>
47646 * m4/rijndael.m4: New file.
47648 2005-10-15 Simon Josefsson <jas@extundo.com>
47650 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47652 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47654 2005-10-14 Simon Josefsson <jas@extundo.com>
47656 * tests/test-arcfour.c: New file.
47658 * modules/arcfour, modules/arcfour-tests: New files.
47660 2005-10-14 Simon Josefsson <jas@extundo.com>
47662 * m4/arcfour.m4: New file.
47664 2005-10-14 Simon Josefsson <jas@extundo.com>
47666 * lib/arcfour.h, lib/arcfour.c: New files.
47668 2005-10-14 Roland McGrath <roland@redhat.com>
47670 Import from libc. [BZ #1331]
47671 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47673 Reported by Matej Vela <vela@debian.org>.
47675 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47677 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47678 include <wchar.h>; no longer needed.
47680 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47682 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47684 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47685 and Ulrich Drepper <drepper@redhat.com>
47688 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47689 instead of inline stream orientation test and two separate
47690 function calls. Pay no attention to USE_IN_LIBIO.
47692 2005-10-13 Simon Josefsson <jas@extundo.com>
47694 * modules/gc-hmac-md5-tests: New file.
47696 * tests/test-gc-hmac-sha1.c: New file.
47698 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47700 * modules/gc-hmac-md5-tests: New file.
47702 * tests/test-gc-md5.c: New file.
47704 * modules/gc-md5-tests: New file.
47706 2005-10-13 Simon Josefsson <jas@extundo.com>
47708 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47709 Move memory allocation outside of loop.
47711 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47713 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47714 intermediate directory is in a read-only file system. Problem
47715 reported by Eric Blake.
47717 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47719 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47721 2005-10-12 Simon Josefsson <jas@extundo.com>
47723 * tests/test-hmac-sha1.c: New file.
47725 * modules/hmac-sha1-tests: New file.
47727 * modules/hmac-sha1: New file.
47729 2005-10-12 Simon Josefsson <jas@extundo.com>
47731 * modules/gc-sha1: New file.
47733 2005-10-12 Simon Josefsson <jas@extundo.com>
47735 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47737 * tests/test-gc-pbkdf2-sha1.c: New file.
47739 2005-10-12 Simon Josefsson <jas@extundo.com>
47741 * modules/gc-md5, modules/gc-hmac-md5: New files.
47743 * modules/gc (Files): Remove md5, memxor and hmac files.
47745 2005-10-12 Simon Josefsson <jas@extundo.com>
47747 * m4/gc-pbkdf2-sha1.m4: New file.
47749 * m4/gc-hmac-sha1.m4: New file.
47751 * m4/gc-sha1: New file.
47753 * m4/hmac-sha1.m4: New file.
47755 2005-10-12 Simon Josefsson <jas@extundo.com>
47757 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47759 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47761 2005-10-12 Simon Josefsson <jas@extundo.com>
47763 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47764 suggested by Bruno Haible <bruno@clisp.org>.
47766 2005-10-12 Simon Josefsson <jas@extundo.com>
47768 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47770 2005-10-12 Simon Josefsson <jas@extundo.com>
47772 * lib/gc-pbkdf2-sha1.c: New file.
47774 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47776 2005-10-12 Simon Josefsson <jas@extundo.com>
47778 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47780 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47782 2005-10-12 Simon Josefsson <jas@extundo.com>
47784 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47785 GC_USE_HMAC_MD5, respectively.
47787 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47788 (gc_md5): Fix typo.
47790 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47792 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47794 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47796 2005-10-12 Bruno Haible <bruno@clisp.org>
47798 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47799 Reported by Stepan Kasal <kasal@ucw.cz>.
47801 2005-10-11 Simon Josefsson <jas@extundo.com>
47803 * tests/test-crc.c: New file.
47805 * modules/crc, modules/crc-tests: New files.
47807 2005-10-11 Simon Josefsson <jas@extundo.com>
47809 * m4/crc.m4: New file.
47811 2005-10-11 Simon Josefsson <jas@extundo.com>
47813 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47815 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47817 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47819 2005-10-11 Simon Josefsson <jas@extundo.com>
47821 * lib/crc.h, lib/crc.c: New files.
47823 * lib/gc.h (gc_hash_buffer): Add doc.
47825 2005-10-11 Bruno Haible <bruno@clisp.org>
47827 * modules/c-strcasestr: New file.
47828 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47830 2005-10-11 Bruno Haible <bruno@clisp.org>
47832 * modules/c-strcase: New file.
47833 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47835 2005-10-11 Bruno Haible <bruno@clisp.org>
47837 * lib/strcasecmp.c: Include limits.h.
47838 (strcasecmp): Avoid integer overflow on exotic platforms.
47839 * lib/strncasecmp.c: Include limits.h.
47840 (strncasecmp): Avoid integer overflow on exotic platforms.
47841 Reported by Paul Eggert.
47843 2005-10-11 Bruno Haible <bruno@clisp.org>
47845 * lib/c-strcasestr.h: New file, from GNU gettext.
47846 * lib/c-strcasestr.c: New file, from GNU gettext.
47848 2005-10-11 Bruno Haible <bruno@clisp.org>
47850 * lib/c-strcase.h: New file, from GNU gettext.
47851 * lib/c-strcasecmp.c: New file, from GNU gettext.
47852 * lib/c-strncasecmp.c: New file, from GNU gettext.
47854 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
47856 * modules/mempcpy (License): GPL -> LGPL.
47857 * modules/strchrnul (License): Likewise.
47858 * modules/sysexits (License): Likewise.
47860 2005-10-08 Simon Josefsson <jas@extundo.com>
47862 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47864 2005-10-07 Simon Josefsson <jas@extundo.com>
47866 * m4/memxor.m4: Remove gl_C_RESTRICT call.
47868 2005-10-06 Simon Josefsson <jas@extundo.com>
47870 * tests/test-hmac-md5.c: New file.
47872 * modules/hmac-md5-tests: New file.
47874 * modules/hmac-md5: New file.
47876 2005-10-06 Simon Josefsson <jas@extundo.com>
47878 * m4/hmac-md5.m4: New file.
47880 * m4/memxor.m4: Require gl_C_RESTRICT.
47882 2005-10-06 Simon Josefsson <jas@extundo.com>
47884 * lib/memxor.c (memxor): Avoid casts and warnings.
47886 2005-10-06 Simon Josefsson <jas@extundo.com>
47888 * lib/hmac-md5.c: New file.
47890 * lib/hmac.h: New file.
47892 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
47894 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47895 promotes to int, not unsigned int, to catch the AIX 5.3
47898 2005-10-05 Simon Josefsson <jas@extundo.com>
47900 * modules/memxor: New file.
47902 * modules/iconv (Files): Move config.rpath to havelib, it is used
47905 * modules/havelib (Files): Add config.rpath.
47907 2005-10-05 Simon Josefsson <jas@extundo.com>
47909 * m4/memxor.m4: New file.
47911 2005-10-05 Simon Josefsson <jas@extundo.com>
47913 * lib/memxor.c (memxor): Fix compiler error.
47915 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47916 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47918 * lib/memxor.h, lib/memxor.c: New files.
47920 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47921 we assume all systems have it, suggested by Jim Meyering
47922 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
47923 any systems lack sys/socket.h; mingw32 is known to lack it, but we
47924 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
47927 2005-10-05 Simon Josefsson <jas@extundo.com>
47929 * config/srclist.txt: Add glibc bug 1423 for md5.h.
47931 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
47933 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47934 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47935 needed, since the source code now assumes these .h files.
47937 2005-10-05 Derek Price <derek@ximbiot.com>
47939 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47941 2005-10-05 Bruno Haible <bruno@clisp.org>
47943 * modules/stdint (License): Change to LGPL.
47945 2005-10-04 Simon Josefsson <jas@extundo.com>
47947 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47948 D. Baushke" <mdb@gnu.org>.
47950 2005-10-04 Bruno Haible <bruno@clisp.org>
47952 * lib/verify.h (verify_true): Provide alternative definition for C++.
47954 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
47956 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
47957 (SSIZE_MAX): New macro, if not already defined.
47958 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47961 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47963 Sync from coreutils.
47964 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47965 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47966 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
47967 ULLONG_MAX doesn't work with 2.7.2.1.
47969 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47971 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47974 * modules/exclude (Depends-on): Depend on verify.
47975 * modules/strtoimax (Depends-on): Likewise.
47976 * modules/utimecmp (Depends-on): Likewise.
47978 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47980 * lib/exclude.c: Include verify.h.
47981 (verify): Remove. All callers changed to use verify.h's version.
47982 * lib/strtoimax.c: Likewise.
47983 * lib/utimecmp.c: Likewis.e
47985 Sync from coreutils.
47986 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47987 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47988 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47989 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
47990 bother returning ENOSYS if settimeofday or stime fails; just let
47991 them return whatever errno they want to return.
47992 * lib/utimens.c: Include unistd.h, for dup2.
47993 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47994 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47996 2005-10-02 Jim Meyering <jim@meyering.net>
47998 Sync from coreutils.
47999 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48000 from glibc-2.2.5 that fails for read-only files.
48002 2005-10-02 Jim Meyering <jim@meyering.net>
48004 Sync from coreutils.
48005 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48006 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48007 `#if HAVE_CONFIG_H'.
48008 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48009 Remove AT_FDCWD test.
48010 Do not consume the fd unless successful.
48011 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48012 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48013 block, so that we don't even try to compile it if settimeofday is
48014 available. This works around a compilation failure on OSF1 V5.1,
48015 due to stime requiring a `long int*' while tv_sec is `int'.
48017 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48019 Sync from coreutils.
48020 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48021 against `yes', rather than just testing for nonempty.
48023 2005-10-01 Simon Josefsson <jas@extundo.com>
48025 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48028 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48029 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48030 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48031 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48032 Check if struct addrinfo is declared.
48034 2005-10-01 Simon Josefsson <jas@extundo.com>
48036 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48037 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48038 AI_* and EAI_* definitions. Protect function declarations.
48040 2005-10-01 Jim Meyering <jim@meyering.net>
48042 Sync from coreutils.
48044 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48045 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48046 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48047 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48048 in the inet and nsl libraries. Required on Solaris 5.7.
48050 2005-10-01 Jim Meyering <jim@meyering.net>
48052 Sync from coreutils.
48053 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48054 in the inet and nsl libraries. Required on Solaris 5.7.
48056 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48058 * lib/getdelim.c (getdelim): Remove unused variables.
48060 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48062 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48063 so that the code works even with ancient cpp. Portability problem
48064 with GCC 2.7.2.1 reported by Thomas M.Ott.
48066 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48068 * modules/regex (Depends-on): Add strcase.
48070 * modules/gethostname (Licence): Change from GPL to LGPL, since
48071 gethostname.c is a trivial implementation of a standard library
48073 * modules/poll (License): Change from GPL to LGPL, since it's
48074 derived from LGPL code.
48076 2005-09-27 Jim Meyering <jim@meyering.net>
48078 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48081 * lib/intprops.h (signed_type_or_expr__): Define.
48082 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48083 for unsigned types.
48085 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48087 * lib/verify.h (verify_expr): Remove, replacing with:
48088 (verify_true): New macro that returns true instead of void.
48089 (verify_type__): Remove.
48090 (verify): Use verify_true rather than verify_type__.
48092 2005-09-26 Bruno Haible <bruno@clisp.org>
48094 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48096 (lib_SOURCES): Remove mbchar.c.
48097 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48098 (Files): Add m4/mbrtowc.m4.
48099 * modules/mbiter: Likewise.
48100 * modules/mbuiter: Likewise.
48102 2005-09-26 Bruno Haible <bruno@clisp.org>
48104 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48105 compile mbchar.c if they are not both present.
48106 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48107 * m4/mbiter.m4 (gl_MBITER): Likewise.
48108 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48109 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48110 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48112 2005-09-25 Jim Meyering <jim@meyering.net>
48114 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48115 also uses socklen_t.
48117 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48119 * lib/utimens.c (ENOSYS): Define if not already defined.
48120 (futimens): Support having a null PATH if the file descriptor
48123 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48125 (__attribute): Define to empty unless GCC 3.1 or later.
48126 This works around a core dump on OpenBSD 3.4, which has GCC
48127 2.95.3, which dumps core when given __attribute__(()). It also
48128 simplifies other tests, since we really don't want to bother with
48129 worrying about which ancient version of GCC supported what.
48130 Original problem reported by Yoann Vandoorselaere, with part of
48131 the fix suggested by Derek Price.
48133 2005-09-24 Jim Meyering <jim@meyering.net>
48135 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48136 so we can once again use a positive bitfield width of 1 -- now we
48137 don't have to explain why we were using a bitfield width of 2.
48139 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48141 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48142 and similarly for the other external symbols. Problem reported
48145 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48146 bug reported by Jim Meyering.
48148 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48149 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48150 not needed, since socklen is a prerequisite module.
48152 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48154 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48155 Problem reported by Eric Blake.
48156 (getaddrinfo): Initialize se so that it's not garbage.
48157 Redo internal storage allocation so that it doesn't make unportable
48158 assumptions about alignment.
48161 * lib/utimens.c (futimens): Use futimesat if available.
48162 Prefer it to futimes since it doesn't have the futimes bug.
48164 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48165 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48166 Instead, declare a function that returns a pointer to an array,
48167 and use verify_type__ to declare the size of the array.
48168 Problem and germ of a solution reported by Bruno Haible.
48169 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48170 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48172 2005-09-23 Jim Meyering <jim@meyering.net>
48174 Sync from coreutils.
48175 Correct build failure (socklen_t not defined) on at least
48176 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48177 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48179 2005-09-23 Jim Meyering <jim@meyering.net>
48181 * modules/getaddrinfo (Depends-on): Add socklen.
48183 2005-09-23 Bruno Haible <bruno@clisp.org>
48185 * tests/test-verify.c: New file.
48187 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48189 Sync from coreutils.
48191 * modules/argmatch (Depends-on): Add verify.
48192 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48194 * modules/save-cwd (Depends-on): Likewise.
48196 * modules/openat (Files): Add lib/openat-die.c.
48197 (Depends-on): Remove error, exitfail.
48200 * modules/verify: New file.
48201 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48202 with "verify" module.
48204 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48206 Sync from coreutils.
48208 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48209 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48210 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48211 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48212 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48213 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48214 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48215 Don't bother checking for string.h, stdlib.h, unistd.h.
48216 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48217 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48219 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48220 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48222 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48223 (gl_GETDATE): Use it.
48225 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48227 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48229 Sync from coreutils.
48231 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48233 * lib/argmatch.h: Include verify.h
48234 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48235 (ARGMATCH_ASSERT): Remove; unused.
48236 * lib/canonicalize.c: Assume STDC_HEADERS.
48237 * lib/exclude.c: Include "strcase.h".
48238 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48239 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48241 (getusershell): Call fopen, not fopen_safer.
48242 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48243 Do not include unistd-safer.h.
48244 (save_cwd): Don't call fd_safer; no longer needed
48245 now that we include fcntl--.h.
48247 * lib/getdate.y (relative_time): New type.
48248 (RELATIVE_TIME_0): New constant.
48249 (parser_control): Use relative_time instead of doing it ourselves.
48250 (%union): Add new relative_time rel member.
48251 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48253 (relunit, relunit_snumber): Now of type rel.
48254 (zone, rel, relunit, get_date): Adjust to above changes.
48256 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48257 Do not include unistd-safer.h.
48258 (getloadavg): Don't call fd_safer; no longer needed
48259 now that we include fcntl--.h.
48261 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48262 (make_dir_parents): Treat ENOSYS like EEXIST.
48264 Improve quality of diagnostics on restore_cwd failure.
48265 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48266 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48267 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48268 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48269 each time through the loop. Do not diagnose restore_cwd failure;
48270 that is the caller's job (and perhaps the caller does not care).
48272 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48273 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48274 If the file already exists but is not a directory, don't bother
48275 to try to make its parents.
48276 Close potential file descriptor leak if we can't chdir("/") (!).
48277 Don't always return true if chdir($PWD) fails; return true only
48278 if the requested action was done successfully (except for the
48280 Don't log final directory unless we actually made it.
48281 Refactor to avoid duplicate code to fix up permissions.
48282 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48284 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48285 to make it a bit faster and (I hope) clearer.
48286 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48287 Fix bug in formats like %2N.
48289 * lib/verify.h: New file.
48291 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48293 Sync from coreutils.
48294 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48296 2005-09-22 Jim Meyering <jim@meyering.net>
48298 Sync from coreutils.
48300 * m4/lstat.m4 (gl_FUNC_LSTAT):
48301 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48302 Remove obsolete comment.
48303 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48304 * m4/xstrtod.m4: Likewise.
48306 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48308 2005-09-22 Jim Meyering <jim@meyering.net>
48310 Sync from coreutils.
48312 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48314 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48315 the .tm_year member, since otherwise gcc-4.0 would now warn about
48316 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48318 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48319 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48321 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48322 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48323 when run in a time zone for which daylight savings time is in effect
48324 for the starting date.
48326 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48327 stop us from restricting permissions of just-created absolute-named
48329 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48330 to restore initial working directory.
48331 * lib/mkdir-p.c (make_dir_parents): New parameter:
48332 different_working_dir, to tell caller if/when we change the working
48333 directory and are unable to return to the initial one.
48334 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48335 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48336 `return false'. This fixes a bug introduced on 2004-07-30.
48338 * lib/openat.c (fdopendir): Be sure to close the supplied
48339 file descriptor before returning. This makes our replacement
48340 implementation a little closer to Solaris's, where fdopendir
48341 ties the file descriptor to the returned DIR* pointer.
48342 * lib/openat.c (unlinkat): New function.
48343 * lib/openat.h (unlinkat): Add prototype.
48344 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48345 (openat_restore_fail): Rename from openat_restore_die.
48346 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48348 Provide an alternative to exiting immediately upon save_cwd or
48349 restore_cwd failure. Now, an application can arrange e.g.,
48350 to perform a longjump in that case.
48351 * lib/openat.c: Include dirname.h.
48352 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48353 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48354 and openat_restore_die rather than calling error directly.
48355 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48357 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48358 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48361 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48362 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48363 int utc, int nanoseconds);
48365 date should not have to allocate a megabyte of virtual memory to
48366 handle a format argument like +%1048575T. When implemented with
48367 strftime, it must allocate such a buffer, use strftime to fill it
48368 in, print it, then free it.
48369 With fprintftime, it simply prints everything and exits.
48370 With no need for memory allocation, that's one fewer way to fail.
48371 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48372 optional field width, not before, so we accept %9:z, not %:9z.
48373 (my_strftime): Be sure to use L_('x') for literals.
48375 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48376 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48377 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48378 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48379 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48380 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48381 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48382 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48383 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48384 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48385 * lib/xgethostname.c, lib/xreadlink.c:
48386 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48388 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48389 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48390 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48391 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48392 and don't include <sys/file.h>).
48394 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48396 Sync from coreutils.
48398 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48399 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48400 [!LDAV_DONE]: Avoid unused variable warning.
48402 2005-09-21 Bruno Haible <bruno@clisp.org>
48404 * lib/unicodeio.h (unicode_to_mb): New declaration.
48406 2005-09-20 Derek Price <derek@ximbiot.com>
48408 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48411 2005-09-20 Bruno Haible <bruno@clisp.org>
48413 * gnulib-tool: Remove trailing slashes from the values specified for
48414 --source-base, --m4-base, --tests-base, --aux-dir.
48415 Suggested by Simon Josefsson <jas@extundo.com>.
48417 2005-09-20 Bruno Haible <bruno@clisp.org>
48419 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48420 func_modules_to_filelist, func_import, func_create_testdir): Make all
48421 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48422 change when gnulib-tool is invoked in a different locale.
48424 2005-09-19 Simon Josefsson <jas@extundo.com>
48426 * m4/socklen.m4: Fix typo.
48428 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48430 Use a consistent style for including <config.h>.
48431 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48432 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48433 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48434 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48435 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48436 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48437 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48438 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48439 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48440 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48441 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48442 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48443 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48444 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48445 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48446 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48447 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48448 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48449 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48450 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48451 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48452 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48453 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48454 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48455 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48456 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48457 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48458 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48459 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48460 lib/xstrtoumax.c, lib/yesno.c:
48461 Standardize inclusion of config.h.
48462 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48463 lib/inttostr.h: Removed inclusion of config.h from header files.
48464 * lib/inttostr.c: Adjusted in-tree users.
48465 * lib/timespec.h: Remove superfluous warning to include config.h.
48466 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48467 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48468 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48469 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48470 config.h with HAVE_CONFIG_H.
48472 2005-09-19 Jim Meyering <jim@meyering.net>
48474 * modules/pathmax (License): Change to LGPL.
48476 2005-09-19 Derek Price <derek@ximbiot.com>
48478 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48480 2005-09-19 Bruno Haible <bruno@clisp.org>
48482 * gnulib-tool (import): Provide default for --tests-base.
48484 2005-09-19 Bruno Haible <bruno@clisp.org>
48486 * doc/quote.texi: New file, extracted from gnulib.texi.
48487 * doc/ctime.texi: New file, extracted from gnulib.texi.
48488 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48489 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48490 * doc/gnulib.texi: Include them.
48492 2005-09-18 Bruno Haible <bruno@clisp.org>
48495 * gnulib-tool (func_readlink): New function.
48496 (func_ln_if_changed): Use it.
48498 2005-09-18 Bruno Haible <bruno@clisp.org>
48500 * gnulib-tool: Support --with-tests also with --import.
48501 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48502 (func_import): Use variables $testsbase and $inctests. Emit a
48503 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48504 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48505 SUBDIRS += $testsdir.
48506 (func_create_testdir): Update.
48508 2005-09-18 Bruno Haible <bruno@clisp.org>
48510 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48511 instead of $dry_run.
48512 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48513 (func_ln_if_changed): Don't handle dry-run here.
48514 (func_import): In dry-run mode, detect more precisely which actions
48515 would be performed, and don't use "...ing" verbs.
48517 2005-09-18 Bruno Haible <bruno@clisp.org>
48519 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48520 (func_import): Use join on two temporary files instead of three nested
48521 loops, in order to determine which files are new or old.
48523 2005-09-18 Bruno Haible <bruno@clisp.org>
48525 * gnulib-tool (func_import): Comment out code that spits out the
48526 new files with --dry-run.
48528 2005-09-18 Bruno Haible <bruno@clisp.org>
48530 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48532 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48534 * lib/stat-time.h: New file.
48535 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48536 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48537 in a different way.
48538 (timespec_cmp): New function.
48539 * lib/utimecmp.c: Include stat-time.h.
48540 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48541 members exist, not on the obsolescent ST_MTIM_NSEC.
48542 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48544 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48546 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48548 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48550 * MODULES.html.sh (File system functions): Add stat-time.
48551 * modules/stat-time: New file.
48552 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48553 is now done in a different way, by the stat-time module.
48554 * modules/utimecmp (Depends-on): Add stat-time.
48556 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48558 * m4/st_mtim.m4: Remove. Superseded by...
48559 * m4/stat-time.m4: New file.
48560 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48561 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48563 2005-09-15 Derek Price <derek@ximbiot.com>
48565 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48567 2005-09-15 Derek Price <derek@ximbiot.com>
48569 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48570 * lib/regex_internal.c: Ditto, using this...
48571 (__GNUC_PREREQ): ...new macro.
48572 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48574 (__GNUC_PREREQ): ...this new macro.
48576 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48578 2005-09-15 Derek Price <derek@ximbiot.com>
48579 Paul Eggert <eggert@cs.ucla.edu>
48581 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48582 changes, consolidating in...
48583 * lib/regex_internal.h: ...this file.
48585 2005-09-13 Jim Meyering <jim@meyering.net>
48587 * lib/canon-host.c: Filter through gnu indent and reword comments
48589 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48591 2005-09-13 Derek Price <derek@ximbiot.com>
48593 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48595 Reported by Jim Meyering <jim@meyering.net>.
48597 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48599 * lib/base64.c: Typo.
48600 (base64_encode): Put b64str in initialized data section.
48602 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48604 Merge glibc and coreutils changes into gnulib, plus a few
48606 * lib/md5.c: Use #error rather than a string.
48607 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48608 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48609 (__attribute__): Define to empty for non recent-GCC.
48610 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48611 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48612 Renamed from their non-__ counterparts, with new macros replacing
48613 them if not _LIBC. Add __THROW attribute.
48615 (struct md5_ctx): Align buffer if using GCC.
48616 * lib/sha1.h (struct sha1_ctx): Likewise.
48617 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48618 The old name was backwards.
48619 (NOTSWAP): Remove; not used.
48620 (rol): New macro, moved here from md5.h.
48621 (sha1_process_block): Remove a FIXME that doesn't make sense.
48623 2005-09-12 Derek Price <derek@ximbiot.com>
48625 Return usable errors from canon-host.
48626 * lib/canon-host.h: New file.
48627 * lib/canon-host.c (canon_host): Wrap...
48628 (canon_host_r): ...this new function, which now relies exclusively on
48630 (ch_strerror): New function.
48631 (last_cherror): New global.
48632 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48634 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48636 (freeaddrinfo): Free ai->ai_canonname when set.
48638 2005-09-12 Derek Price <derek@ximbiot.com>
48640 Make canon-host require getaddrinfo.
48641 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48642 AC_LIBSOURCE canon-host.h. Call...
48643 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48645 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48647 2005-09-12 Derek Price <derek@ximbiot.com>
48649 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48651 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48653 2005-09-12 Derek Price <derek@ximbiot.com>
48655 * lib/gai_strerror.c: Include config.h when available. Include
48656 getaddrinfo.h before other headers to test interface.
48657 Reported by Larry Jones <lawrence.jones@ugs.com>.
48659 2005-09-12 Derek Price <derek@ximbiot.com>
48660 Paul Eggert <eggert@cs.ucla.edu>
48662 * modules/glob (Files): Add glob-libc.h.
48664 2005-09-12 Derek Price <derek@ximbiot.com>
48665 Paul Eggert <eggert@cs.ucla.edu>
48667 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48668 glob_.h, glob-libc.h.
48669 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48671 2005-09-12 Derek Price <derek@ximbiot.com>
48672 Paul Eggert <eggert@cs.ucla.edu>
48674 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48675 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48676 protecting things that should be done only in gnulib contexts.
48677 * lib/glob_.h: New file, containing only the glob things needed for
48679 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48680 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48681 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48682 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48683 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48684 and to respect the namespace rules better.
48686 2005-09-08 Simon Josefsson <jas@extundo.com>
48688 * modules/socklen: New file.
48690 2005-09-08 Simon Josefsson <jas@extundo.com>
48692 * m4/socklen.m4: New file.
48694 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48696 * modules/utimens (Files): Add m4/utimbuf.m4, since
48697 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48698 Reported by Sergey Poznyakoff.
48700 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48702 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48703 definitions, since that's the preferred style in glibc.
48704 Fix a minor spacing issue, and update copyright notice to match
48707 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48709 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48711 2005-09-06 Simon Josefsson <jas@extundo.com>
48713 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48714 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48716 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48718 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48721 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48723 * config/srclist.txt: Add glibc bug 1302.
48725 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48727 Change bitset word type from unsigned int to unsigned long int,
48728 as this has better performance on typical 64-bit hosts.
48729 Port bitset code to hosts with unusual word sizes.
48730 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48731 (build_collating_symbol):
48732 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48733 argument is a bitset. This is merely a style issue, but it makes
48734 it clearer that an entire array is expected.
48735 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48736 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48737 Port to the case where bitset_word is not the same as unsigned int.
48738 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48739 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48741 * lib/regexec.c (check_dst_limits_calc_pos_1,
48742 check_subexp_matching_top):
48743 (build_trtable, group_nodes_into_DFAstates):
48745 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48746 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48747 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48748 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48749 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48750 * lib/regcomp.c (optimize_subexps, lower_subexp):
48751 Work even if bitset_word has holes in its bitwise representation.
48752 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48753 * lib/regexec.c (check_dst_limits_calc_pos_1,
48754 check_subexp_matching_top):
48756 * lib/regex_internal.c (re_string_reconstruct):
48757 Don't assume UCHAR_MAX == 255.
48758 * lib/regex_internal.h (bitset_set_all): Likewise.
48759 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48761 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48762 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48764 (BITSET_WORD_MAX): New macro.
48765 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48766 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48767 (bitset_empty, bitset_copy):
48768 Prefer sizeof (bitset) to multiplying it out ourselves.
48769 (bitset_not_merge): Remove; unused.
48770 (bitset_contain): Return bool, not unsigned int with one bit on.
48771 All callers changed.
48772 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48773 alignment than re_node_set; do this by defining a new internal
48774 type struct dests_alloc and using it to allocate memory.
48776 2005-09-05 Bruno Haible <bruno@clisp.org>
48778 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48781 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48783 * modules/size_max (Makefile.am): Add size_max.h
48785 2005-09-04 Derek Price <derek@ximbiot.com>
48787 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48789 2005-09-03 Simon Josefsson <jas@extundo.com>
48791 * gnulib-tool: Fix typo.
48793 2005-09-03 Simon Josefsson <jas@extundo.com>
48795 * config/srclist.txt: Add glibc bug 1293.
48797 2005-09-03 Derek Price <derek@ximbiot.com>
48799 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48800 From Larry Jones <lawrence.jones@ugs.com>.
48802 2005-09-02 Simon Josefsson <jas@extundo.com>
48804 * modules/socklen: New file.
48806 2005-09-02 Simon Josefsson <jas@extundo.com>
48808 * modules/havelib: New module.
48810 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48813 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48815 Check for arithmetic overflow when calculating sizes, to prevent
48816 some buffer-overflow issues. These patches are conservative, in the
48817 sense that when I couldn't determine whether an overflow was possible,
48818 I inserted a run-time check.
48819 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48821 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48822 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48823 (re_xnrealloc, re_x2nrealloc): New inline functions.
48824 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48825 parse_bracket_exp):
48826 (build_equiv_class, build_charclass): Check for arithmetic overflow
48827 in size expression calculations.
48828 * lib/regex_internal.c (re_string_realloc_buffers):
48829 (build_wcs_upper_buffer, re_node_set_add_intersect):
48830 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48831 (re_dfa_add_node, register_state): Likewise.
48832 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48833 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48834 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48835 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48837 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48839 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48840 m4/ulonglong.m4. Problem reported by Martin Lambers.
48842 2005-09-02 Bruno Haible <bruno@clisp.org>
48844 Support for lib vs. lib64 distinction on biarch platforms.
48845 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48846 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48847 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48849 2005-09-02 Bruno Haible <bruno@clisp.org>
48851 * gnulib-tool (import): In the other first-use case, provide defaults
48854 2005-09-02 Bruno Haible <bruno@clisp.org>
48856 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48857 patches not yet found in the latest gettext release.
48859 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48861 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48862 to avoid a collision with bits/local_lim.h in glibc.
48863 All uses changed. Problem reported by Dmitry V. Levin in
48864 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48866 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48867 bugs in int versus size_t comparisons.
48868 (re_string_context_at): Fix bug where the code assumed that
48871 Use bool where appropriate.
48872 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48873 All callers changed.
48874 (calc_eclosure_iter): Likewise, for ROOT arg.
48875 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48876 (build_charclass_op): Likewise, for NON_MATCH arg.
48877 * lib/regex_internal.c (re_string_allocate, re_string_construct):
48878 (re_string_construct_common): Likewise, for ICASE arg.
48879 * lib/regexec.c (re_search_2_stub, re_search_stub):
48880 Likewise, for RET_LEN arg.
48881 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48882 (set_regs): Likewise, for FL_BACKTRACK arg.
48883 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48884 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48885 (calc_eclosure_iter, parse_bracket_exp):
48886 Use bool for internal variables that are booleans.
48887 * lib/regexec.c (re_search_internal, check_matching,
48888 proceed_next_node):
48889 (set_regs, build_sifted_states, sift_states_bkref):
48890 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48891 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48892 (find_collation_sequence_value):
48894 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48895 (re_node_set_compare):
48896 Return bool, not int. All callers changed.
48897 * lib/regexec.c (check_halt_node_context, check_dst_limits):
48898 (build_trtable, check_node_accept): Likewise.
48899 * lib/regex_internal.h: Include stdbool.h.
48901 Fix bugs uncovered when converting to bool.
48902 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48903 failure instead of charging ahead blindly.
48904 * lib/regex_internal.c (register_state): Likewise.
48905 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48906 for freeing internal storage.
48907 (group_nodes_into_DFA_states): Use unsigned int, not int, for
48908 bitset pieces used as boolean, to avoid undefined behavior
48909 on hosts that do int overflow checking.
48911 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48913 * config/srclist.txt: Add glibc bugs 1285-1287.
48915 2005-09-01 Jim Meyering <jim@meyering.net>
48917 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48918 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48919 Require gl_STAT_MACROS, too.
48921 2005-09-01 Bruno Haible <bruno@clisp.org>
48923 * gnulib-tool (import): In the first-use case, provide defaults.
48925 2005-09-01 Bruno Haible <bruno@clisp.org>
48927 * gnulib-tool (func_import): Remove the .tmp files.
48929 2005-09-01 Bruno Haible <bruno@clisp.org>
48931 * gnulib-tool (func_import): Fix handling of symbolic links.
48933 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48935 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48936 old glibc regex code mishandles strings longer than 2**31 bytes.
48937 This patch fixes this when the regex code is used in gnulib
48938 (i.e., outside glibc).
48940 This patch should not affect the use of the regex code inside
48941 glibc. No doubt this problem also needs to be handled for glibc
48942 as well, but the result will be an incompatible change to the
48943 glibc ABI, and the old ABI will have to be supported too. That
48944 can be the the subject for another patch.
48946 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48947 governing whether the rest of this patch is active. By default,
48948 the macro is disabled and the patch has no effect.
48949 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48950 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48951 (struct re_pattern_buffer, re_search, re_search_2, re_match):
48952 (re_match_2, re_set_registers): Use the new types.
48953 * lib/regex_internal.h (Idx, re_hashval_t): New types.
48954 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48956 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48957 (re_string_context_at, bin_tree_t, re_dfastate_t):
48958 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48959 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48960 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48961 (re_string_char_size_at, re_string_wchar_at):
48962 (re_string_elem_size_at):
48963 Use the new types and macros to port to 64-bit hosts.
48964 Use unsigned types for internal values, so that the code
48965 mostly works even for arrays larger than SSIZE_MAX.
48966 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48967 (search_duplicated_node, calc_eclosure_iter, fetch_number):
48968 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48969 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48970 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48971 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48972 (calc_inveclosure, parse_dup_op, build_range_exp):
48973 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48974 (fetch_number, create_token_tree, mark_opt_subexp):
48976 * lib/regex_internal.c (re_string_construct_common,
48977 create_ci_newstate):
48978 (create_cd_newstate, re_string_allocate, re_string_construct):
48979 (re_string_realloc_buffers, build_wcs_upper_buffer):
48980 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48981 (re_string_reconstruct, re_string_peek_byte_case):
48982 (re_string_fetch_byte_case, re_string_context_at):
48983 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48984 (re_node_set_init_copy, re_node_set_add_intersect):
48985 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48986 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48987 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48988 (re_acquire_state, re_acquire_state_context, register_state):
48990 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48991 search_cur_bkref_entry):
48992 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48993 (re_search_internal, re_search_2_stub, re_search_stub)
48994 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48995 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48996 (update_cur_sifted_state, check_dst_limits):
48997 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48998 (check_subexp_limits, sift_states_bkref, merge_state_array):
48999 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49000 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49001 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49002 (expand_bkref_cache, check_node_accept_bytes):
49003 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49004 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49005 (acquire_init_state_context, check_halt_node_context):
49006 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49007 (sift_states_backward, clean_state_log_if_needed):
49008 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49009 (find_recover_state, transit_state_sb, transit_state_mb):
49010 (transit_state_bkref, build_trtable, match_ctx_clean):
49012 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49013 to work around an assumption that REG_MISSING is negative.
49015 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49016 (seek_collating_symbol_entry) [defined _LIBC]:
49017 (lookup_collation_sequence_value) [defined _LIBC]:
49018 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49019 Use prototypes rather than old-style function definitions.
49020 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49021 (transit_state_sb) [0]:
49022 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49024 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49027 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49028 (optimize_subexps, lower_subexp):
49029 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49030 since the signed shift might overflow. Use 1u<<31 instead.
49031 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49033 * lib/regexec.c (check_dst_limits_calc_pos_1,
49034 check_subexp_matching_top): Likewise.
49036 * lib/regcomp.c (optimize_subexps, lower_subexp):
49037 Use CHAR_BIT rather than 8, for clarity.
49038 * lib/regexec.c (check_dst_limits_calc_pos_1):
49039 (check_subexp_matching_top): Likewise.
49040 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49041 have to worry about portability issues when shifting it left.
49042 Remove no-longer-needed test for table_size > 0.
49043 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49044 in a word, as the resulting behavior is undefined.
49045 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49046 in one case, a <= should have been an <, and in another case the
49047 whole test was missing.
49048 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49049 the standard name CHAR_BIT.
49050 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49051 this is not true on one's complement and signed-magnitude hosts.
49053 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49055 (struct re_dfa_t): Remove unused member states_alloc.
49056 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49058 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49060 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49061 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49062 and large-file glibc and in 32-bit large-file Solaris.
49064 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49066 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49067 lengths fit in regoff_t; this isn't true if regoff_t is the same
49069 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49070 (= START + RANGE) instead of RANGE. This avoids overflow
49071 problems when regoff_t is the same width as size_t.
49072 All callers changed.
49073 (re_search_2_stub): Check for overflow when adding the
49074 sizes of the two strings.
49075 (re_search_stub): Check for overflow when adding START
49076 to RANGE; if it occurs, substitute the extreme value.
49078 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49080 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49082 2005-08-31 Jim Meyering <jim@meyering.net>
49084 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49085 a pointer-to-const.
49086 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49087 (register_state): Likewise.
49088 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49089 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49090 (group_nodes_into_DFAstates): Likewise.
49092 2005-08-31 Jim Meyering <jim@meyering.net>
49094 * check-module: Add a FIXME comment.
49096 2005-08-31 Eric Blake <ebb9@byu.net>
49098 * modules/unistd-safer (Files): Add unistd--.h.
49099 * modules/stdio-safer (Files): Add stdio--.h.
49101 2005-08-31 Derek Price <derek@ximbiot.com>
49103 * lib/getdelim.c (getdelim): Return EOF on EOF.
49104 Reported by Larry Jones <lawrence.jones@ugs.com>.
49106 2005-08-31 Bruno Haible <bruno@clisp.org>
49108 Avoid unnecessary diffs in the generated lib/Makefile.am.
49109 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49110 the generated files.
49111 (func_import): Don't set cmd.
49113 2005-08-31 Bruno Haible <bruno@clisp.org>
49115 * lib/strstr.c: Include <stddef.h>, for NULL.
49116 * lib/strcasestr.c: Likewise.
49117 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49119 2005-08-31 Bruno Haible <bruno@clisp.org>
49121 * gnulib-tool: New option --macro-prefix.
49122 (func_import): Use macro_prefix.
49123 (import): Handle option --macro-prefix.
49125 2005-08-31 Bruno Haible <bruno@clisp.org>
49127 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49128 Also use new variables cached_lgpl, cached_libtool.
49130 2005-08-31 Bruno Haible <bruno@clisp.org>
49132 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49133 always instantiating them.
49135 2005-08-31 Bruno Haible <bruno@clisp.org>
49137 * gnulib-tool (func_import): Read the previous cached settings
49138 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49139 earlier added by gnulib but are now dropped. Warn when a gnulib file
49140 overwrites a non-gnulib file.
49142 2005-08-31 Bruno Haible <bruno@clisp.org>
49144 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49145 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49146 projects that don't keep autogenerated files in CVS. Put into
49147 actioncmd only the specified modules, not the transitive closure.
49149 2005-08-31 Bruno Haible <bruno@clisp.org>
49151 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49152 Create directories that shall be filled.
49153 (import): Don't look for gl_* macros in configure.ac. Recurse across
49154 all directories containing a gnulib-cache.m4 files, if meaningful.
49156 2005-08-31 Bruno Haible <bruno@clisp.org>
49158 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49159 (import): Set seen_libtool when we see gl_LIBTOOL.
49161 2005-08-31 Bruno Haible <bruno@clisp.org>
49163 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49164 declaration macro definitions from generated gnulib.m4.
49166 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49168 * lib/iconvme.h: Add prototype for iconv_alloc.
49170 2005-08-29 Simon Josefsson <jas@extundo.com>
49172 * lib/iconvme.c: Fix errno.
49174 2005-08-29 Bruno Haible <bruno@clisp.org>
49176 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49177 that it works when the directory contains spaces.
49179 2005-08-29 Bruno Haible <bruno@clisp.org>
49181 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49183 2005-08-29 Bruno Haible <bruno@clisp.org>
49185 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49188 2005-08-29 Bruno Haible <bruno@clisp.org>
49189 and Stepan Kasal <kasal@ucw.cz>
49191 * check-module: If more parameters are given, check each of them
49192 separately; add more exceptions, as noted by Jim Meyering.
49193 (check_module): New procedure.
49194 (%exempt_header): Now contains all exceptions.
49196 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49198 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49200 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49202 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49204 2005-08-28 Bruno Haible <bruno@clisp.org>
49206 * m4/gnulib-tool.m4: New file.
49208 2005-08-27 Jim Meyering <jim@meyering.net>
49210 * modules/unistd-safer (Files): Add pipe-safer.c.
49211 * modules/fcntl-safer (Files): Add creat-safer.c.
49213 2005-08-27 Jim Meyering <jim@meyering.net>
49215 * m4/stdlib-safer.m4: New file. From coreutils.
49216 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49217 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49218 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49219 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49220 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49222 2005-08-27 Jim Meyering <jim@meyering.net>
49224 * lib/fopen-safer.c: Merge minor changes from coreutils.
49225 * lib/dup-safer.c: Likewise.
49226 * lib/fd-safer.c: Likewise.
49228 Merge from coreutils.
49229 * lib/stdio--.h: New file.
49230 * lib/stdlib--.h: New file.
49231 * lib/mkstemp-safer.c: New file.
49233 GNU tar needs these.
49234 * lib/pipe-safer.c: New file.
49235 * lib/creat-safer.c: New file.
49236 * lib/fcntl--.h (creat): Define to creat_safer.
49237 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49238 * lib/unistd--.h (pipe): Define to pipe_safer.
49239 * lib/unistd-safer.h: Declare pipe_safer.
49241 2005-08-26 Simon Josefsson <jas@extundo.com>
49243 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49244 Haible <bruno@clisp.org>.
49246 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49248 * lib/regex_internal.h: Remove all references to
49249 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49251 (bitset_not, bitset_merge, bitset_not_merge):
49252 (bitset_mask, re_string_allocate, re_string_construct):
49253 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49254 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49255 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49256 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49257 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49258 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49259 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49260 (re_acquire_state_context):
49261 Remove unnecessary forward decls.
49262 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49263 Put __attribute at function definition,
49264 now that the function decl has been removed.
49265 * lib/regex_internal.c (re_string_peek_byte_case):
49266 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49269 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49271 * m4/regex.m4: Add AC_PREREQ(2.50).
49272 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49274 2005-08-25 Simon Josefsson <jas@extundo.com>
49276 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49279 2005-08-25 Simon Josefsson <jas@extundo.com>
49281 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49282 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49283 GLIBC specific code.
49285 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49287 Make regex safe for g++. This fixes one real bug (an "err"
49288 that should have been "*err"). g++ problem reported by
49290 * lib/regex_internal.h (re_calloc): New macro, consistent with
49291 re_malloc etc. All callers of calloc changed to use re_calloc.
49292 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49293 not int. All callers changed.
49294 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49295 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49296 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49297 (find_recover_state): Change "err" to "*err"; this fixes what
49298 appears to be a real bug.
49299 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49302 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49304 * modules/regex (Depends-on): Add malloc, since the code
49305 assumes that !malloc(0) means failure.
49307 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49309 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49311 alloca modernization/simplification for regex.
49312 * lib/regex.c: Remove portability cruft for alloca. This no longer
49313 needs to be at the start of the file, and can be moved into
49314 regex_internal.h and simplified.
49315 * lib/regex_internal.h: Include <alloca.h>.
49316 (__libc_use_alloca) [!defined _LIBC]: New macro.
49317 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49318 now works outside glibc.
49320 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49322 * config/srclist.txt: Add glibc bugs 1241, 1245.
49324 2005-08-25 Jim Meyering <jim@meyering.net>
49326 * lib/open-safer.c: Include <config.h>.
49327 Otherwise, we'd lose LARGEFILE support in any file using
49330 2005-08-25 Bruno Haible <bruno@clisp.org>
49332 * m4/minmax.m4: Require autoconf 2.52.
49333 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49334 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49335 alternatives of translit over the alphabet.
49336 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49338 2005-08-24 Simon Josefsson <jas@extundo.com>
49340 * tests/test-getpass.c: New file.
49342 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49344 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49345 for GNU regex features.
49347 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49349 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49350 * lib/regex.h (regerror): Likewise.
49352 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49353 requires this. (The code never needed it.)
49355 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49356 All uses of recently-renamed identifiers changed to use the new,
49357 POSIX-compliant names. The code will build and run just fine
49358 without these changes, but it's better to eat our own dog food
49359 and use the standard-conforming names.
49361 * lib/regex.h: Fix a multitude of POSIX name space violations.
49362 These changes have an effect only for programs that define
49363 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49364 do not change anything for programs compiled in the normal way.
49365 Also, there is no effect on the ABI.
49367 (_REGEX_SOURCE): New macro.
49368 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49369 defined and _GNU_SOURCE is not; this fixes a name space violation.
49371 Rename the following macros to obey POSIX requirements.
49372 The old names are still visible as macros if _REGEX_SOURCE is defined.
49373 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49374 RE_BACKSLASH_ESCAPE_IN_LISTS.
49375 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49376 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49377 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49378 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49379 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49380 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49381 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49382 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49383 (REG_INTERVALS): renamed from RE_INTERVALS.
49384 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49385 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49386 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49387 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49388 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49389 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49390 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49391 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49392 RE_UNMATCHED_RIGHT_PAREN_ORD.
49393 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49394 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49395 (REG_DEBUG): renamed from RE_DEBUG.
49396 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49397 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49398 unusual, since we can't clash with the POSIX REG_ICASE.
49399 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49400 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49401 (REG_NO_SUB): renamed from RE_NO_SUB.
49402 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49403 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49404 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49405 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49406 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49407 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49408 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49409 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49410 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49411 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49412 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49413 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49414 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49415 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49416 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49417 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49418 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49419 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49420 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49421 (REG_FIXED): Renamed from REGS_FIXED.
49422 (REG_NREGS): Renamed from RE_NREGS.
49424 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49425 of other REG_* macros, since POSIX says the user is allowed to
49426 #undef these macros selectively.
49428 (reg_errcode_t): Update comment stating what other tables need
49431 Rename the following enum values to obey POSIX requirements.
49432 The old names are still visible as macros.
49433 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49434 is not defined, since GNU is supposed to be a superset of POSIX as
49435 much as possible, and since we want reg_errcode_t to be a signed
49436 type for implementation consistency.
49437 (_REG_NOERROR): Renamed from REG_NOERROR.
49438 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49439 (_REG_BADPAT): Renamed from REG_BADPAT.
49440 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49441 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49442 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49443 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49444 (_REG_EBRACK): Renamed from REG_EBRACK.
49445 (_REG_EPAREN): Renamed from REG_EPAREN.
49446 (_REG_EBRACE): Renamed from REG_EBRACE.
49447 (_REG_BADBR): Renamed from REG_BADBR.
49448 (_REG_ERANGE): Renamed from REG_ERANGE.
49449 (_REG_ESPACE): Renamed from REG_ESPACE.
49450 (_REG_BADRPT): Renamed from REG_BADRPT.
49451 (_REG_EEND): Renamed from REG_EEND.
49452 (_REG_ESIZE): Renamed from REG_ESIZE.
49453 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49454 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49455 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49456 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49457 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49459 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49460 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49461 changed. But support the old name if the new one is not defined
49462 and if _REGEX_SOURCE.
49464 Change the following member names in struct re_pattern_buffer.
49465 The old names are still supported if !_REGEX_SOURCE.
49466 The new names are always supported, regardless of _REGEX_SOURCE.
49467 (re_buffer): Renamed from buffer.
49468 (re_allocated): Renamed from allocated.
49469 (re_used): Renamed from used.
49470 (re_syntax): Renamed from syntax.
49471 (re_fastmap): Renamed from fastmap.
49472 (re_translate): Renamed from translate.
49473 (re_can_be_null): Renamed from can_be_null.
49474 (re_regs_allocated): Renamed from regs_allocated.
49475 (re_fastmap_accurate): Renamed from fastmap_accurate.
49476 (re_no_sub): Renamed from no_sub.
49477 (re_not_bol): Renamed from not_bol.
49478 (re_not_eol): Renamed from not_eol.
49479 (re_newline_anchor): Renamed from newline_anchor.
49481 Change the following member names in struct re_registers.
49482 The old names are still supported if !_REGEX_SOURCE.
49483 The new names are always supported, regardless of _REGEX_SOURCE.
49484 (rm_num_regs): Renamed from num_regs.
49485 (rm_start): Renamed from start.
49486 (rm_end): Renamed from end.
49488 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49489 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49490 Prepend __ to parameter names.
49492 Undo yesterday's changes.
49494 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49496 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49497 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49500 2005-08-24 Jim Meyering <jim@meyering.net>
49502 Sync from coreutils.
49503 * m4/fcntl-safer.m4: New file.
49505 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49506 and object files for this module.
49508 2005-08-24 Jim Meyering <jim@meyering.net>
49510 Sync from coreutils.
49511 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49513 2005-08-24 Jim Meyering <jim@meyering.net>
49515 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49516 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49518 2005-08-24 Jim Meyering <jim@meyering.net>
49520 * modules/fcntl-safer: New module.
49521 * modules/fts (Depends-on): Add fcntl-safer.
49522 * MODULES.html.sh (File descriptor based Input/Output):
49525 2005-08-24 Bruno Haible <bruno@clisp.org>
49527 Support for unit test modules.
49528 * modules/README: Mention tests modules.
49529 * modules/TEMPLATE-TESTS: New file.
49530 * gnulib-tool: New options --extract-tests-module, --with-tests and
49531 --tests-base (unused for the moment).
49532 (testsbase, inctests): New variables.
49533 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49534 (func_verify_module): Exclude TEMPLATE-TESTS.
49535 (func_verify_nontests_module, func_verify_tests_module): New functions.
49536 (func_get_dependencies): Add implicit dependency for tests modules.
49537 (func_get_tests_module): New function.
49538 (func_modules_transitive_closure): When --with-tests was specified,
49539 include the unit tests as well, unless explicitly avoided.
49540 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49541 (func_emit_tests_Makefile_am): New function.
49542 (func_create_testdir): When --with-tests was specified, emit a
49544 * MODULES.html.sh (Future developments): Update.
49546 2005-08-24 Bruno Haible <bruno@clisp.org>
49548 * modules/tls-tests: New file.
49549 * tests/test-tls.c: New file, from GNU gettext.
49551 2005-08-24 Bruno Haible <bruno@clisp.org>
49553 * modules/lock-tests: New file.
49554 * tests/test-lock.c: New file, from GNU gettext.
49556 2005-08-24 Bruno Haible <bruno@clisp.org>
49558 * lib/lock.h: Add multiple inclusion guard.
49559 * lib/tls.h: Add multiple inclusion guard.
49561 2005-08-24 Bruno Haible <bruno@clisp.org>
49563 * gnulib-tool: Add support for the --aux-dir option to
49564 --create-testdir, --create-megatestdir, --test, --megatest.
49565 (func_create_testdir, func_create_megatestdir): Optionally emit a
49566 AC_CONFIG_AUX_DIR directive.
49567 (create-testdir, create-megatestdir, test, megatest): Provide a
49568 default value for $auxdir.
49570 2005-08-24 Bruno Haible <bruno@clisp.org>
49572 * gnulib-tool (import): Use compound statement instead of subshell
49575 2005-08-24 Bruno Haible <bruno@clisp.org>
49577 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49579 2005-08-24 Bruno Haible <bruno@clisp.org>
49581 * gnulib-tool (func_version): Update.
49583 2005-08-24 Bruno Haible <bruno@clisp.org>
49585 * gnulib-tool (func_import, func_create_testdir,
49586 func_create_megatestdir): Quote all autoconf macro arguments.
49588 2005-08-24 Bruno Haible <bruno@clisp.org>
49590 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49591 option --force, because --force causes the aclocal.m4 of each
49592 subdirectory to be newer than the corresponding config.h.in.
49594 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49596 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49597 All contents moved to gl_REGEX.
49598 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49599 assume that it does.
49601 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49603 * lib/regex.h (REG_NOSYS)
49604 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49605 Define, since POSIX requires it as of 2001.
49607 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49608 New private symbol, used to keep the enum signed in all cases.
49609 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49611 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49613 * lib/regex_internal.c (re_string_skip_chars, register_state):
49615 Remove forward decls; no longer needed now that we use prototypes.
49616 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49617 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49618 (clean_state_log_if_needed): Likewise.
49620 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49622 * config/srclist.txt: Add glibc bugs 1231-1233.
49624 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49626 Fix problems reported by Sam Steingold in
49627 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49628 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49629 assumed that reg_errcode_t is a signed type, which is not
49630 necessarily true if _XOPEN_SOURCE is not defined.
49631 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49632 since some compilers warn about it otherwise.
49634 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49636 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49637 (init_word_char, create_initial_state, duplicate_node_closure):
49638 (fetch_token, peek_token_bracket, build_range_exp):
49639 (build_collating_symbol): Remove forward decls; no longer needed
49640 now that we use prototypes.
49643 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49644 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49645 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49646 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49647 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49648 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49649 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49650 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49651 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49652 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49653 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49654 (build_charclass, build_charclass_op, fetch_number, create_tree):
49655 (create_token_tree, mark_opt_subexp, duplicate_tree):
49656 Use prototypes rather than old-style definitions.
49658 * lib/regex_internal.c:
49659 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49660 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49661 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49662 (re_string_reconstruct, re_string_peek_byte_case):
49663 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49664 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49665 (re_node_set_init_copy, re_node_set_add_intersect):
49666 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49667 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49668 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49669 (re_acquire_state, re_acquire_state_context, register_state):
49670 (create_ci_newstate, create_cd_newstate, free_state):
49672 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49674 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49675 (re_search_internal, prune_impossible_nodes):
49676 (acquire_init_state_context, check_matching, static):
49677 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49678 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49679 (update_regs, sift_states_backward, build_sifted_states):
49680 (clean_state_log_if_needed, merge_state_array):
49681 (update_cur_sifted_state, add_epsilon_src_nodes):
49682 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49683 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49684 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49685 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49686 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49687 (check_arrival, check_arrival_add_next_nodes):
49688 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49689 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49690 (check_node_accept_bytes, check_node_accept, extend_buffers):
49691 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49692 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49696 * lib/regex_internal.h:
49697 (re_string_allocate, re_string_construct, re_string_reconstruct):
49698 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49699 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49700 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49701 (re_string_context_at, re_string_peek_byte_case):
49702 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49703 is defined, since we now use prototypes always.
49705 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49706 C89 or better. All uses removed.
49708 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49710 * config/srclist.txt: Add glibc bugs 1220-1227.
49712 2005-08-20 Jim Meyering <jim@meyering.net>
49714 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49715 of unused local, dfa.
49717 2005-08-20 Bruno Haible <bruno@clisp.org>
49719 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49721 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49723 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49724 (re_node_set_insert_last, re_dfa_add_node):
49725 Rename local variables to avoid GCC shadowing warnings.
49727 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49729 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49730 [defined lint]: Suppress bogus uninitialized-variable warnings.
49732 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49733 and let the caller return REG_ESPACE if out of space. This
49734 removes an uninitialied-variable warning with GCC 4.0.1, and also
49735 avoids taking the address of a local variable. All callers
49738 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49740 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49741 $LIBCSRC/posix/regexec.c.
49742 Add glibc bug 1217 for regcomp.c.
49744 2005-08-19 Jim Meyering <jim@meyering.net>
49746 * lib/regexec.c (proceed_next_node): Redo local variables to
49747 avoid GCC shadowing warnings.
49749 2005-08-18 Bruno Haible <bruno@clisp.org>
49751 * lib/strstr.c (strstr): Fix return value in multibyte case.
49752 * lib/strcasestr.c (strcasestr): Likewise.
49754 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49756 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49758 2005-08-17 Jim Meyering <jim@meyering.net>
49760 Make the %s format (seconds since the epoch) work for a negative
49761 number and when used with a zero-padded field width, e.g. %015s.
49763 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49764 label so that it precedes the code to set `digits'. Otherwise,
49765 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49766 print `00-22'. Now, it prints `-0022', as it should.
49768 2005-08-17 Bruno Haible <bruno@clisp.org>
49770 * modules/strstr (Files): Add m4/mbrtowc.m4.
49771 (Depends-on): Add mbuiter.
49773 2005-08-17 Bruno Haible <bruno@clisp.org>
49775 * modules/strcasestr: New file.
49776 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49779 2005-08-17 Bruno Haible <bruno@clisp.org>
49781 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49783 2005-08-17 Bruno Haible <bruno@clisp.org>
49785 * modules/mbuiter: New file.
49786 * MODULES.html.sh (Extended multibyte and wide character utilities):
49789 2005-08-17 Bruno Haible <bruno@clisp.org>
49791 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49792 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49794 2005-08-17 Bruno Haible <bruno@clisp.org>
49796 * m4/strcasestr.m4: New file.
49798 2005-08-17 Bruno Haible <bruno@clisp.org>
49800 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49801 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49803 2005-08-17 Bruno Haible <bruno@clisp.org>
49805 * lib/strcasestr.h: New file.
49806 * lib/strcasestr.c: New file.
49808 2005-08-17 Bruno Haible <bruno@clisp.org>
49810 * lib/strcasecmp.c: Use mbuiter.h.
49812 2005-08-17 Bruno Haible <bruno@clisp.org>
49814 * lib/mbuiter.h: New file.
49816 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49818 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49819 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49820 and gl_GETOPT are both invoked via different paths (as happens
49821 with GNU tar CVS because it uses both argp and getopt), the former
49824 2005-08-16 Bruno Haible <bruno@clisp.org>
49826 * modules/tls: New file.
49827 * MODULES.html.sh (Multithreading): Add tls.
49829 2005-08-16 Bruno Haible <bruno@clisp.org>
49831 * modules/strnlen1: New file.
49832 * MODULES.html.sh (String handling): Add strnlen1.
49834 2005-08-16 Bruno Haible <bruno@clisp.org>
49836 * modules/strcase (Files): Add m4/mbrtowc.m4.
49837 (Depends-on): Add strnlen1, mbchar.
49839 2005-08-16 Bruno Haible <bruno@clisp.org>
49841 * modules/mbiter: New file.
49842 * MODULES.html.sh (Extended multibyte and wide character utilities):
49845 2005-08-16 Bruno Haible <bruno@clisp.org>
49847 * modules/mbfile: New file.
49848 * MODULES.html.sh (Extended multibyte and wide character utilities):
49851 2005-08-16 Bruno Haible <bruno@clisp.org>
49853 * modules/mbchar: New file.
49854 * MODULES.html.sh (Extended multibyte and wide character utilities):
49857 2005-08-16 Bruno Haible <bruno@clisp.org>
49859 * m4/tls.m4: New file, from GNU gettext.
49861 2005-08-16 Bruno Haible <bruno@clisp.org>
49863 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49865 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49867 2005-08-16 Bruno Haible <bruno@clisp.org>
49869 * m4/mbiter.m4: New file.
49871 2005-08-16 Bruno Haible <bruno@clisp.org>
49873 * m4/mbfile.m4: New file.
49875 2005-08-16 Bruno Haible <bruno@clisp.org>
49877 * m4/mbchar.m4: New file.
49879 2005-08-16 Bruno Haible <bruno@clisp.org>
49881 * lib/tls.h: New file, from GNU gettext.
49882 * lib/tls.c: New file, from GNU gettext.
49884 2005-08-16 Bruno Haible <bruno@clisp.org>
49886 * lib/strnlen1.h: New file.
49887 * lib/strnlen1.c: New file.
49889 2005-08-16 Bruno Haible <bruno@clisp.org>
49891 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49892 (mbi_init): Update.
49893 (mbi_avail, mbi_advance): Let the iteration end before the terminating
49894 NUL byte, not after it.
49896 2005-08-16 Bruno Haible <bruno@clisp.org>
49898 * lib/strcase.h (strcasecmp): Add note in comments.
49899 * lib/strncasecmp.c: Use code from strcasecmp.c.
49900 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49901 (strcasecmp): Work correctly in multibyte locales.
49903 2005-08-16 Bruno Haible <bruno@clisp.org>
49905 * lib/mbiter.h: New file.
49907 2005-08-16 Bruno Haible <bruno@clisp.org>
49909 * lib/mbfile.h: New file.
49911 2005-08-16 Bruno Haible <bruno@clisp.org>
49913 * lib/mbchar.h: New file.
49914 * lib/mbchar.c: New file.
49916 2005-08-16 Bruno Haible <bruno@clisp.org>
49918 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49919 the valid ones. Makes the comparison operations transitive:
49920 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49921 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49923 2005-08-15 Simon Josefsson <jas@extundo.com>
49925 * modules/ssize_t (License): Change to 'unlimited'.
49927 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49929 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
49931 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49932 Add comments for each pending glibc patch.
49934 2005-08-15 Bruno Haible <bruno@clisp.org>
49936 * lib/regex.h (__restrict_arr): Don't define to __restrict if
49937 __cplusplus is defined.
49939 2005-08-14 Jim Meyering <jim@meyering.net>
49941 Sync from coreutils.
49943 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49944 Use the hash-table-based cycle-detection code not just when
49945 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49946 Reported by James Youngman in
49947 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49948 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49949 FTS_TIGHT_CYCLE_CHECK.
49950 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49951 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49953 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49954 * lib/fts.c (fd_safer): Remove decl.
49955 Include fcntl--.h rather than unistd-safer.h
49956 (fts_safe_changedir): Don't call fd_safer; no longer needed
49957 now that we include fcntl--.h.
49959 2005-08-12 Simon Josefsson <jas@extundo.com>
49961 * modules/getndelim2: Use ssize_t module.
49962 * modules/getnline: Likewise.
49963 * modules/safe-read: Likewise.
49964 * modules/xreadlink: Likewise.
49966 * modules/ssize_t: New file.
49968 2005-08-12 Simon Josefsson <jas@extundo.com>
49970 * m4/readline.m4: Look for termcap, curses or ncurses if required.
49972 2005-08-12 Simon Josefsson <jas@extundo.com>
49974 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49977 2005-08-12 Simon Josefsson <jas@extundo.com>
49979 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49980 readline, getdelim and check_version.
49981 (Support for systems lacking ISO C 99: Sizes of integer types):
49984 2005-08-12 Bruno Haible <bruno@clisp.org>
49986 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49988 2005-08-11 Simon Josefsson <jas@extundo.com>
49990 * modules/readline: New file.
49992 * modules/strnlen (Files): Add strnlen.h.
49994 2005-08-11 Simon Josefsson <jas@extundo.com>
49996 * m4/readline.m4: New file.
49998 2005-08-11 Simon Josefsson <jas@extundo.com>
50000 * lib/readline.h, readline.c: New file.
50002 2005-08-11 Simon Josefsson <jas@extundo.com>
50004 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50007 2005-08-11 Bruno Haible <bruno@clisp.org>
50009 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50011 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50013 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50015 2005-08-10 Simon Josefsson <jas@extundo.com>
50017 * tests/test-iconvme.c: New file.
50019 2005-08-10 Simon Josefsson <jas@extundo.com>
50021 * m4/strnlen.m4: New file.
50023 * m4/strndup.m4: Don't check for strnlen declaration, done in
50026 2005-08-10 Simon Josefsson <jas@extundo.com>
50028 * lib/strndup.c: Use strnlen.h.
50030 * lib/strnlen.h: New file.
50032 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50036 2005-08-02 Simon Josefsson <jas@extundo.com>
50038 * modules/readline: New file.
50040 2005-08-02 Simon Josefsson <jas@extundo.com>
50042 * modules/getdelim: New file.
50044 * modules/getline: Rewrite, don't use getndelim2.
50046 2005-08-02 Simon Josefsson <jas@extundo.com>
50048 * m4/getline.m4: Separate out getdelim stuff into separate module.
50050 * m4/getdelim.m4: New file.
50052 2005-08-02 Simon Josefsson <jas@extundo.com>
50054 * lib/getline.h, getline.c: Rewrite.
50056 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50058 2005-07-31 Bruno Haible <bruno@clisp.org>
50060 * lib/lock.h (gl_lock_initializer): New macro.
50061 (gl_lock_define_initialized): Use it.
50062 (gl_rwlock_initializer): New macro.
50063 (gl_rwlock_define_initialized): Use it.
50064 (gl_recursive_lock_initializer): New macro.
50065 (gl_recursive_lock_define_initialized): Use it.
50067 2005-07-30 Karl Berry <karl@gnu.org>
50069 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50070 Report from Ben Pfaff, regarding getopt.
50072 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50074 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50076 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50077 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50078 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50079 (gl_GETOPT): Use the new macros. Most of the implementation
50080 is moved to the new macros. This is for programs like Emacs
50081 that don't want all the functionality of gl_GETOPT.
50083 2005-07-26 Bruno Haible <bruno@clisp.org>
50085 * m4/lock.m4: Update from GNU gettext.
50087 2005-07-26 Bruno Haible <bruno@clisp.org>
50089 * lib/lock.h: Update from GNU gettext.
50090 * lib/lock.c: Update from GNU gettext.
50092 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50094 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50095 obsolescent AC_TRY_RUN. Include the default includes files, for
50098 2005-07-24 Bruno Haible <bruno@clisp.org>
50100 * modules/visibility: New file.
50101 * MODULES.html.sh (Misc): Add visibility.
50103 2005-07-24 Bruno Haible <bruno@clisp.org>
50105 * m4/visibility.m4: New file.
50107 2005-07-24 Bruno Haible <bruno@clisp.org>
50109 * doc/visibility.texi: New file.
50111 2005-07-22 Bruno Haible <bruno@clisp.org>
50113 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50114 $(ALLOCA_H), redundant through BUILT_SOURCES.
50115 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50116 redundant through BUILT_SOURCES.
50117 * modules/byteswap (Makefile.am): Remove explicit dependency on
50118 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50119 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50120 $(FNMATCH_H), redundant through BUILT_SOURCES.
50121 * modules/getopt (Makefile.am): Remove explicit dependency on
50122 $(GETOPT_H), redundant through BUILT_SOURCES.
50123 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50124 redundant through BUILT_SOURCES.
50125 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50126 redundant through BUILT_SOURCES.
50127 * modules/stdbool (Makefile.am): Remove explicit dependency on
50128 $(STDBOOL_H), redundant through BUILT_SOURCES.
50129 * modules/stdint (Makefile.am): Remove explicit dependency on
50130 $(STDINT_H), redundant through BUILT_SOURCES.
50131 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50132 Remove explicit dependency on $(SYSEXITS_H).
50133 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50135 2005-07-18 Simon Josefsson <jas@extundo.com>
50137 * lib/check-version.c (check_version): Accept identical versions too.
50139 2005-07-18 Bruno Haible <bruno@clisp.org>
50141 * modules/lock: New file.
50142 * MODULES.html.sh (Multithreading): New section.
50144 2005-07-18 Bruno Haible <bruno@clisp.org>
50146 * m4/lock.m4: New file, from GNU gettext.
50148 2005-07-18 Bruno Haible <bruno@clisp.org>
50150 * lib/lock.h: New file, from GNU gettext.
50151 * lib/lock.c: New file, from GNU gettext.
50153 2005-07-18 Bruno Haible <bruno@clisp.org>
50155 * lib/lock.h (gl_once_t): New type.
50156 (gl_once_define, gl_once): New macros.
50157 * lib/lock.c (fresh_once): New variable.
50158 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50161 2005-07-16 Simon Josefsson <jas@extundo.com>
50163 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50164 workaround, suggested by Bruno.
50166 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50168 * modules/xalloc (Depends-on): Add xalloc-die.
50169 * modules/xvasprintf (Depends-on): Add xalloc-die.
50171 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50173 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50174 with a minor change.
50176 2005-07-15 Bruno Haible <bruno@clisp.org>
50178 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50179 When using lib/poll.c, define poll as rpl_poll.
50181 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50183 * modules/argp (Depends-on): Remove unlocked-io.
50185 2005-07-14 Derek Price <derek@ximbiot.com>
50187 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50188 for glob symlink bug.
50190 2005-07-14 Bruno Haible <bruno@clisp.org>
50192 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50193 Instead, test for *_unlocked function declarations directly.
50195 2005-07-11 Simon Josefsson <jas@extundo.com>
50197 * modules/size_max: New file.
50199 * modules/xsize: Depend on size_max module for size_max.m4.
50201 2005-07-11 Simon Josefsson <jas@extundo.com>
50203 * lib/size_max.h: New file.
50205 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50207 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50208 copyright symbol and the year.
50209 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50210 (version_etc_va): Use parameterized copyright notice.
50211 Reword to conform to the current GNU coding standards.
50213 2005-07-11 Karl Berry <karl@gnu.org>
50215 * doc/gnulib.texi (Quoting): new node.
50216 (Initial import): more info, from Patrice.
50218 2005-07-11 Bruno Haible <bruno@clisp.org>
50220 * gnulib-tool (func_usage): Document option --avoid.
50221 (Command line options): Handle --avoid.
50222 (func_acceptable): New function.
50223 (func_modules_transitive_closure): Use it.
50225 2005-07-11 Bruno Haible <bruno@clisp.org>
50227 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50228 Reported by Jim Meyering.
50230 2005-07-10 Bruno Haible <bruno@clisp.org>
50232 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50233 Needed when size_t is smaller than 'unsigned int'.
50234 Reported by Paul Eggert.
50236 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50238 * modules/argp (Depends-on): Add unlocked-io
50240 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50242 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50245 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50247 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50250 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50251 and Paul Eggert <eggert@cs.ucla.edu>
50253 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50254 in wint_t, not wchar_t. Remove now-unnecessary cast.
50256 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50258 * modules/regex (Files): Add lib/regex_internal.c,
50259 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50260 (Depends-on): Add extensions.
50261 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50263 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50265 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50267 * m4/same.m4 (gl_SAME): Likewise.
50268 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50270 * m4/regex.m4: Adjust to new libc regex implementation.
50271 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50272 all the .c and .h parts of (the new) regex.
50273 Quote the m4 stuff better.
50274 Check for RE_ICASE bug of old gnulib.
50275 Check for REG_STARTEND of recent libc.
50276 Rename local variables from jm_* to gl_*.
50277 Quote operand of "test -f".
50278 Say "recent enough" version of libc, not "version 2".
50279 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50280 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50281 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50282 Remove check for btowc, isascii.
50283 Require AM_LANGINFO_CODESET.
50285 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50287 * lib/regex.c, regex.h: Sync from libc.
50288 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50290 New files, synced from libc, except that regex_internal.h
50291 currently has a small porting fix.
50293 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50295 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50296 regex_internal.c, regexec.c.
50297 Add regex_internal.h too, but as a comment, since the libc version
50298 is currently broken in gnulib mode.
50300 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50302 Support programs like Emacs that use gnulib but not gettext.
50303 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50304 * modules/gettext-h: New file.
50305 * modules/gettext (Files): Remove lib/gettext.h.
50306 (Depends-on): Add gettext-h.
50307 (Makefile.am): Remove lib_SOURCES.
50308 * modules/argmatch, modules/c-stack, modules/closeout:
50309 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50310 * modules/execute, modules/file-type, modules/getaddrinfo:
50311 * modules/getopt, modules/human, modules/javacomp:
50312 * modules/javaexec, modules/mkdir-p, modules/obstack:
50313 * modules/openat, modules/pagealign_alloc, modules/pipe:
50314 * modules/quotearg, modules/regex, modules/rpmatch:
50315 * modules/unicodeio, modules/userspec, modules/version-etc:
50316 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50318 Depend on gettext-h, not gettext.
50320 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50322 * gnulib-tool (func_import): Add support for 'public domain' license.
50323 * modules/alloca, modules/atexit, modules/memmove:
50324 Now public domain, not GPL.
50325 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50326 * modules/realloc, modules/strerror, modules/strtod:
50329 2005-07-05 Bruno Haible <bruno@clisp.org>
50331 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50332 autoconf CVS. Needed for mingw.
50334 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50336 Remove the dependency of the strftime module on the tzset module.
50337 * modules/strftime (Depends-on): Remove dependency on tzset.
50339 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50341 Remove the dependency of the strftime module on the tzset module.
50342 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50343 gl_FUNC_TZSET_CLOBBER.
50345 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50347 Remove the dependency of the strftime module on the tzset module.
50348 * lib/strftime.c (my_strftime)
50349 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50350 Copy the input structure, to work around some of the bug with
50351 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50352 Solaris releases, you should also use the tzset module, but we won't
50353 require it as a dependency any more since we don't want LGPLed code
50354 to depend on GPLed code.
50356 2005-07-02 Jim Meyering <jim@meyering.net>
50358 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50359 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50360 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50361 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50363 2005-07-02 Jim Meyering <jim@meyering.net>
50365 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50367 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50369 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50370 declares only 'struct timespec;' (!).
50372 2005-07-01 Jim Meyering <jim@meyering.net>
50374 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50375 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50376 * lib/save-cwd.c, tempname.c:
50377 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50378 and don't include <sys/file.h>).
50380 2005-06-29 Jim Meyering <jim@meyering.net>
50382 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50383 type name. Use the variable name instead.
50384 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50387 2005-06-28 Simon Josefsson <jas@extundo.com>
50389 * modules/check-version (Files): Add check-version.m4.
50391 2005-06-28 Simon Josefsson <jas@extundo.com>
50393 * m4/check-version.m4: New file, suggested by Jim Meyering
50394 <jim@meyering.net>.
50396 2005-06-28 Simon Josefsson <jas@extundo.com>
50398 * lib/check-version.h, lib/check-version.c: New files.
50400 2005-06-28 Simon Josefsson <jas@extundo.com>
50402 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50403 collision with global variable. Better indentation. Don't
50404 increment buffer pointer beyond buffer end. Based on comments
50405 from Paul Eggert <eggert@cs.ucla.edu>.
50407 * lib/base64.h: Indent.
50409 2005-06-28 Simon Josefsson <jas@extundo.com>
50411 * doc/gnulib.texi (Library version handling): New section.
50413 2005-06-28 Jim Meyering <jim@meyering.net>
50415 * check-module (find_included_lib_files): Hard-code another
50416 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50417 but modules/fts-lgpl (correctly) does not list those files.
50419 * modules/canonicalize (Files): Add lib/pathmax.h.
50421 2005-06-25 Simon Josefsson <jas@extundo.com>
50423 * modules/check-version: New file.
50425 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50427 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50428 initializer of struct addrinfo, as an indication that we don't
50429 care how many members the structure has.
50431 2005-06-24 Derek Price <derek@ximbiot.com>
50432 and Bruno Haible <bruno@clisp.org>
50434 Remove stat module & update lstat.
50435 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50436 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50437 * m4/stat.m4: Remove this file.
50439 2005-06-24 Derek Price <derek@ximbiot.com>
50440 and Bruno Haible <bruno@clisp.org>
50442 Remove stat module & update lstat.
50443 * lib/stat.c: Remove this file...
50444 (slash_aware_lstat): ...moving this content and its support...
50445 * lib/lstat.c (rpl_lstat): ...into here.
50446 * lib/lstat.h: New file.
50448 2005-06-24 Derek Price <derek@ximbiot.com>
50449 and Bruno Haible <bruno@clisp.org>
50451 Remove stat module & update lstat.
50452 * config/srclist.txt (libc sources): Remove stat.
50454 2005-06-24 Derek Price <derek@ximbiot.com>
50455 and Bruno Haible <bruno@clisp.org>
50457 Remove stat module & update lstat.
50458 * MODULES.html.sh (stat): Remove.
50459 * MODULES.html: Regenerated.
50460 * modules/lstat (Description): Correct function name.
50461 (Files): Add "lstat.h".
50462 (Depends-on): Remove stat, add xalloc, stat-macros.
50463 * modules/stat: Remove this file.
50464 (Include): Add "lstat.h", remove <sys/stat.h>.
50466 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50468 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50469 (ranged_convert): Don't save conversion in a temporary struct.
50470 This causes a warning with GCC 4.0.0, and anyway in the typical
50471 case it's not worth the extra 100 bytes or so of code.
50472 (ranged_convert, __mktime_internal): When calling a function via a
50473 pointer P, use P () rather than (*P) (), as we now assume C89 or
50476 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50478 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50479 "who -r" failed to give output. Problem reported by Tim Waugh.
50481 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50482 (xcalloc): Use it to avoid needless tests.
50483 Problem reported by Jim Meyering.
50485 2005-06-20 Derek Price <derek@ximbiot.com>
50487 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50488 unnecessary for Autoconfs > 2.59c.
50490 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50492 * lib/argp.h (__option_is_short): Check upper limit of
50493 __key. Isprint() requires its argument to have the value
50494 of an unsigned char or EOF.
50496 2005-06-16 Jim Meyering <jim@meyering.net>
50498 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50499 when either N or S is zero.
50501 2005-06-16 Derek Price <derek@ximbiot.com>
50503 * m4/bison.m4: Declare YACC & YFLAGS precious.
50505 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50507 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50508 multibyte string or pattern, fall back on unibyte matching.
50509 Problem reported by James Youngman.
50511 2005-06-08 Bruno Haible <bruno@clisp.org>
50513 * modules/csharpcomp: New file.
50514 * MODULES.html.sh (C#): Add csharpcomp.
50516 2005-06-08 Bruno Haible <bruno@clisp.org>
50518 * m4/csharpcomp.m4: New file, from GNU gettext.
50520 2005-06-08 Bruno Haible <bruno@clisp.org>
50522 * lib/csharpcomp.h: New file, from GNU gettext.
50523 * lib/csharpcomp.c: New file, from GNU gettext.
50524 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50526 2005-06-08 Bruno Haible <bruno@clisp.org>
50528 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50531 2005-06-07 Derek Price <derek@ximbiot.com>
50534 * lib/glob_.h: Indent nested #ifdef.
50536 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50538 Sync from coreutils.
50539 Use "file name" when talking about file names, instead of "filename"
50540 or "path", as per the GNU coding standards.
50541 * lib/mkdir-p.c: Renamed from makepath.c.
50542 (make_dir_parents): Renamed from make_path. All callers changed.
50543 * lib/mkdir-p.h: Likewise. All includers changed.
50544 * lib/filenamecat.c: Renamed from path-concat.c.
50545 (file_name_concat): Renamed from path_concat. All callers changed.
50546 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50547 * lib/filenamecat.h: Likewise. All includers changed.
50548 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50549 in comments or local variable names.
50550 * lib/basename.c: Likewise.
50551 * lib/canonicalize.c, canonicalize.h: Likewise.
50552 * lib/dirname.c, dirname.h: Likewise.
50553 * lib/euidaccess.c: Likewise.
50554 * lib/exclude.c: Likewise
50555 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50556 * lib/fsusage.c, fsuage.h: Likewise.
50557 * lib/fts.c, fts_.h: Likewise.
50558 * lib/getcwd.c: Likewise.
50559 * lib/getloadavg.c: Likewise.
50560 * lib/mkstemp.c: Likewise.
50561 * lib/mountlist.c, mountlist.h: Likewise.
50562 * lib/openat.c, openat.h: Likewise.
50563 * lib/readlink-stub.c: Likewise.
50564 * lib/readutmp.c, readutmp.h: Likewise.
50565 * lib/rename.c: Likewise.
50566 * lib/rmdir.c: Likewise.
50567 * lib/same.c: Likewise.
50568 * lib/savedir.c: Likewise.
50569 * lib/stripslash.c: Likewise.
50570 * lib/tempname.c: Likewise.
50571 * lib/xreadlink.c: Likewise.
50572 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50574 * lib/exclude.h: Likewise.
50576 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50577 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50578 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50579 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50580 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50581 files have been getting away with it for years (MORE/BSD 4.3
50583 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50584 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50586 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50587 Define to 256, not 255, as per modern POSIX.
50589 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50591 Sync from coreutils.
50592 Use "file name" when talking about file names, instead of "filename"
50593 or "path", as per the GNU coding standards.
50594 * MODULES.html.sh: mkdir-p renamed from makepath.
50595 filenamecat renamed from path-concat.
50596 * modules/filenamecat: Renamed from modules/path-concat.
50597 (Files): filenamecat.h and filenamecat.c renamed from
50598 path-concat.h and path-concat.c.
50599 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50600 (Include): filenamecat.h, not path-concat.h.
50601 * modules/mkdir-p: Renamed from modules/makepath.
50602 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50604 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50605 (Include): mkdir-p.h, not makepath.h.
50607 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50609 Sync from coreutils.
50610 * m4/mkdir-p.m4: Renamed from makepath.m4.
50611 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50612 Rename files from makepath.c to mkdir-p.c, and from
50613 makepath.h to mkdir-p.h.
50614 * m4/filenamecat.m4: Renamed from path-concat.m4.
50615 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50616 Rename files from path-concat.c to filenamecat.c,
50617 and from path-concat.h to filenamecat.h.
50618 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50619 "file name" in local variables or comments.
50620 * m4/rename.m4: Likewise.
50622 2005-06-01 Bruno Haible <bruno@clisp.org>
50624 * modules/csharpexec: New file.
50625 * MODULES.html.sh (C#): New section.
50627 2005-06-01 Bruno Haible <bruno@clisp.org>
50629 * m4/csharp.m4: New file, from GNU gettext.
50630 * m4/csharpexec.m4: New file, from GNU gettext.
50632 2005-06-01 Bruno Haible <bruno@clisp.org>
50634 * lib/csharpexec.h: New file, from GNU gettext.
50635 * lib/csharpexec.c: New file, from GNU gettext.
50636 * lib/csharpexec.sh.in: New file, from GNU gettext.
50638 2005-05-31 Derek Price <derek@ximbiot.com>
50639 Paul Eggert <eggert@cs.ucla.edu>
50642 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50644 2005-05-31 Derek Price <derek@ximbiot.com>
50645 Paul Eggert <eggert@cs.ucla.edu>
50648 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50650 2005-05-29 Derek Price <derek@ximbiot.com>
50652 * config/srclist.txt (glob_.h, glob.c): Add these files.
50654 2005-05-29 Derek Price <derek@ximbiot.com>
50656 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50657 * modules/glob: New file.
50658 * modules/getlogin_r: Add link to POSIX spec in description.
50660 2005-05-29 Derek Price <derek@ximbiot.com>
50661 Paul Eggert <eggert@cs.ucla.edu>
50663 * m4/glob.m4: New file.
50665 2005-05-29 Derek Price <derek@ximbiot.com>
50666 Paul Eggert <eggert@cs.ucla.edu>
50668 * lib/glob_.h, lib/glob.c: New files.
50670 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50672 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50673 * modules/fts-lgpl (Depends-on): Remove gettext.
50675 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50677 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50678 and don't require gt_INTTYPES_PRI.
50680 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50682 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50684 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50685 the configuration hassle isn't worth it.
50686 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50687 (LONGEST_MODIFIER, PRIuMAX): Remove.
50689 2005-05-27 Bruno Haible <bruno@clisp.org>
50691 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50693 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50695 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50696 _POSIX_PTHREAD_SEMANTICS for Solaris.
50698 2005-05-25 Derek Price <derek@ximbiot.com>
50700 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50702 2005-05-25 Derek Price <derek@ximbiot.com>
50703 Paul Eggert <eggert@cs.ucla.edu>
50705 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50706 * lib/getlogin_r.c, getlogin_r.h: New files.
50708 2005-05-25 Bruno Haible <bruno@clisp.org>
50709 Derek Price <derek@ximbiot.com>
50711 * lib/getlogin_r.h: Simplify API documentation.
50713 2005-05-23 Derek Price <derek@ximbiot.com>
50715 * modules/minmax (Files): Add m4/minmax.m4.
50716 (configure.ac): Add gl_MINMAX.
50718 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50720 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50721 so that unistd-safer.h (GPL'ed code) need not be included.
50723 2005-05-22 Bruno Haible <bruno@clisp.org>
50725 * m4/minmax.m4: New file.
50726 Based on a patch by Derek Price <derek@ximbiot.com>.
50728 2005-05-22 Bruno Haible <bruno@clisp.org>
50730 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50731 (INT64_MIN): Fix definition.
50732 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50734 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50735 NEED_SIGNED_INT_TYPES.
50737 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50738 HAVE_SYSTEM_INTTYPES.
50740 2005-05-22 Bruno Haible <bruno@clisp.org>
50742 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50743 Also include <sys/param.h> if it defines MIN, MAX.
50744 Based on a patch by Derek Price <derek@ximbiot.com>.
50746 2005-05-21 Jim Meyering <jim@meyering.net>
50748 * modules/fts (Files): Add m4/inttypes-pri.m4.
50749 (Depends-on): Add lstat and remove gettext. Alphabetize.
50751 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50754 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50755 (setup_dir, free_dir): New functions.
50756 (enter_dir, leave_dir): Define trivial
50757 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50758 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50759 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50760 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50761 Move to fts-cycle.c.
50762 (fts_open): Use setup_dir.
50763 (fts_close): Use free_dir.
50764 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50765 This adds a label and some gotos, but the alternatives were messier.
50766 Check for memory allocation failure when entering a dir.
50767 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50768 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50769 (FTS): New member fts_cycle, that is a union that contains the
50770 old active_dir_ht and cycle_state. All uses changed to mention
50771 fts_cycle.ht and fts_cycle.state.
50772 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50773 fts.c, with the following changes:
50774 (setup_dir, free_dir): New functions.
50775 (enter_dir): Now returns bool. Return true if successful, false
50776 if memory exhausted. All callers changed.
50777 Do not bother partly cleaning up on
50778 memory allocation failure; that is free_dir's job.
50779 However, free ad if hash_insert fails, to avoid memory leak.
50780 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50781 fts->fts_options to see which union member to use.
50783 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50785 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50786 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50788 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50790 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50792 2005-05-20 Jim Meyering <jim@meyering.net>
50794 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50795 Now a macro, to pacify GCC.
50797 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50799 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50802 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50804 * lib/chown.c (rpl_chown): Return -1 on failure.
50806 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50808 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50809 Don't check for stddef.h.
50810 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50811 don't use its results.
50812 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50813 since we include them unconditionally. Don't require
50814 AM_STDBOOL_H, since stdbool is a prerequisite.
50815 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50816 since we assume C89 or better.
50817 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50818 as we don't use their results.
50819 Don't check for fchdir, memmove, memset, strrchr, as we use
50820 them unconditionally.
50821 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50822 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50824 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50826 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50827 Include <stddef.h> unconditionally, since we assume C89 now.
50828 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50829 * lib/fts.c: Include fts_.h first, to check interface.
50830 Do not include intprops.h; no longer needed.
50831 Include cycle-check.h and hash.h, since fts_.h no longer does.
50832 Remove unnecessary casts of closedir to void.
50833 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50834 decide whether to decrement nlinks.
50835 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50836 (FTS): Use struct hash_table * instead of Hash_table, so that
50837 we no longer need to include hash.h here.
50839 2005-05-18 Jim Meyering <jim@meyering.net>
50841 * modules/dirfd (License): Change to LGPL. Most of the code
50842 is already in the public domain.
50844 2005-05-18 Jim Meyering <jim@meyering.net>
50846 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50847 Reported by Yoann Vandoorselaere.
50849 2005-05-17 Jim Meyering <jim@meyering.net>
50851 * m4/fts.m4: New file, from coreutils.
50853 2005-05-17 Jim Meyering <jim@meyering.net>
50855 * lib/fts.c, lib/fts_.h: New files, from coreutils.
50857 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50859 Sync from coreutils.
50860 * m4/unlinkdir.m4: New file.
50862 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50864 Sync from coreutils.
50865 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50866 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50867 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50868 White space changes only.
50869 * lib/makepath.c (make_path): Port to hosts where leading "//" is
50871 * lib/yesno.c: Include getline.h, not ctype.h.
50872 (yesno): Don't remove leading white space; POSIX doesn't allow it.
50873 Use getline to remove arbitrary restriction on response length.
50875 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50877 * config/srclist-update: Spell out "Street" in FSF postal
50878 mail address; this is the style the FSF seems to prefer.
50880 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50881 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50882 this updates FSF postal mail address.
50884 Sync from coreutils.
50885 * modules/unlinkdir: New file.
50886 * modules/yesno (Depends-on): Add getline.
50887 * MODULES.html.sh (File system functions): Add unlinkdir.
50889 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50891 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50893 Change the initial comment to refer to GPL, not LGPL.
50894 gnulib-tool will change it to LGPL as needed.
50896 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50897 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50898 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50899 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50900 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50901 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50902 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50903 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50904 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50905 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50906 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50907 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50908 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50909 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50910 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50911 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50912 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50913 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50914 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50915 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50916 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50917 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50918 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50919 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50920 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50921 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50922 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50923 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50924 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50925 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50926 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50927 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50928 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50929 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50930 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50931 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50932 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50933 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50934 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50935 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50936 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50937 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50938 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50939 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50940 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50941 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50942 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50943 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50944 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50945 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50946 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50947 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50948 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50949 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50950 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50951 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50952 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50953 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50954 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50955 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50956 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50957 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50958 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50959 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50960 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50961 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50962 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50963 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50964 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50965 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50966 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50967 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50968 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50969 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50970 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50971 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50972 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50973 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50974 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50975 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50976 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50977 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50978 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50979 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50980 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50981 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50982 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50983 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50984 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50985 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50986 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50987 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50988 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50989 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50990 lib/yesno.c, lib/yesno.h:
50991 Update FSF postal mail address.
50993 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50995 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50996 tests/test-memmem.c, tests/test-stpncpy.c:
50997 Update FSF postal mail address.
50999 2005-05-13 Bruno Haible <bruno@clisp.org>
51001 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51002 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51003 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51004 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51005 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51006 Add support for 64-bit integers in the MSVC compiler.
51008 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51010 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51012 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51014 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51016 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51018 * doc/getdate.texi (General date syntax): Don't say that date
51019 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51020 Problem reported by Nic Ferrier.
51022 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51024 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51025 specified in ai_socktype. Fix invalid ai_protocol
51026 check. ai_protocol is usually set to 0 or depending on
51027 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51028 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51029 ai_socktype / ai_protocol in the returned addrinfo structure.
51031 2005-05-10 Simon Josefsson <jas@extundo.com>
51033 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51034 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51036 2005-05-10 Karl Berry <karl@gnu.org>
51038 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51039 (from http://www.gnu.org/licenses).
51040 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51041 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51044 2005-05-10 Karl Berry <karl@gnu.org>
51046 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51047 (COPYING.DOC): remove.
51049 * config/srclist-update: new FSF address.
51051 2005-05-10 Derek Price <derek@ximbiot.com>
51053 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51056 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51057 Bruno Haible <bruno@clisp.org>
51059 * modules/inet_ntop: New file.
51060 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51063 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51064 Bruno Haible <bruno@clisp.org>
51066 * m4/inet_ntop.m4: New file.
51068 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51069 Bruno Haible <bruno@clisp.org>
51071 * lib/inet_ntop.h: New file.
51072 * lib/inet_ntop.c: New file, from glibc with modifications.
51074 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51076 * modules/time_r (License): Change to LGPL.
51077 * modules/extensions (License): Change to LGPL. Actually,
51078 the license is more permissive than that, but currently gnulib-tool
51079 doesn't know how to handle more-permissive licenses.
51081 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51082 Problem reported by Dave Love.
51084 2005-05-08 Jim Meyering <jim@meyering.net>
51086 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51089 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51091 * modules/argmatch (Depends-on): Add stdbool.
51092 * modules/backupfile (Depends-on): Likewise.
51093 * modules/chdir-long (Depends-on): Likewise.
51094 * modules/closeout (Depends-on): Likewise.
51095 * modules/cycle-check (Depends-on): Likewise.
51096 * modules/dirname (Depends-on): Likewise.
51097 * modules/fnmatch (Depends-on): Likewise.
51098 * modules/fsusage (Depends-on): Likewise.
51099 * modules/fwriteerror (Depends-on): Likewise.
51100 * modules/getcwd (Depends-on): Likewise.
51101 * modules/getloadavg (Depends-on): Likewise.
51102 * modules/hard-locale (Depends-on): Likewise.
51103 * modules/makepath (Depends-on): Likewise.
51104 * modules/mountlist (Depends-on): Likewise.
51105 * modules/nanosleep (Depends-on): Likewise.
51106 * modules/posixtm (Depends-on): Likewise.
51107 * modules/quotearg (Depends-on): Likewise.
51108 * modules/readtokens (Depends-on): Likewise.
51109 * modules/readtokens0 (Depends-on): Likewise.
51110 * modules/readutmp (Depends-on): Likewise.
51111 * modules/save-cwd (Depends-on): Likewise.
51112 * modules/strftime (Depends-on): Likewise.
51113 * modules/userspec (Depends-on): Likewise.
51114 * modules/utimecmp (Depends-on): Likewise.
51115 * modules/xgetcwd (Depends-on): Likewise.
51116 * modules/xnanosleep (Depends-on): Likewise.
51117 * modules/xstrtod (Depends-on): Likewise.
51118 * modules/yesno (Depends-on): Likewise.
51120 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51122 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51125 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51127 Merge from coreutils. Among other things,
51128 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51129 * lib/fd-safer.c: New file.
51130 * lib/fcntl-safer.h, open-safer.c: Remove.
51131 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51132 * lib/dup-safer.c: Include unistd-safer.h first.
51133 Don't include errno.h.
51134 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51135 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51136 * lib/file-type.c: Rely on file-type.h change.
51137 * lib/getloadavg.c: Include unistd-safer.h.
51138 (getloadavg): Use safer open.
51139 * lib/getusershell.c: Include "stdio-safer.h".
51140 (getusershell): Use safer fopen.
51141 * lib/long-options.c (long_options): Use NULL rather than 0.
51142 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51144 * lib/modechange.c: Likewise.
51145 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51146 (MODE_DONE): New constant.
51147 (struct mode_change): Remove 'next' member.
51148 (make_node_op_equals): New function; like the old one of the
51149 same name, except it allocates an array.
51150 (mode_compile, mode_create_from_ref): Use it.
51151 (mode_compile): Allocate result as an array, not a linked list.
51152 Parse octal string ourself, so that we catch mistakes like "+0".
51153 (mode_adjust): Arg is an array, not a linked list.
51154 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51155 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51156 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51157 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51158 Remove. This is now stat-macros.h's job.
51159 (talloc): Remove. All callers replaced by xalloc, so that
51160 our invokers don't have to worry about reporting memory failures.
51161 (make_node_op_equals): Remove.
51162 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51164 (struct mode_change): Moved here from modechange.h.
51165 (mode_append_entry): Remove.
51166 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51167 apps to have incorrect behavior. Use simpler algorithm for head
51168 and tail. Don't futz with umask; that's now the job of mode_adjust.
51169 Detect more invalid usages rather than having somewhat-random behavior.
51170 Don't insert an "a=" action, as that leads to incorrect behavior.
51171 (mode_compile, mode_create_from_ref): Return NULL on error instead
51172 of an enum, since now there's only one way to have an error. All
51174 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51175 at the correct time. Simplify calculation of "+u" and its ilk.
51176 Don't mishandle "+X".
51177 (mode_free): Remove "register" and localize decls.
51178 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51179 (struct mode_change): Move to modechange.c; callers don't
51180 need to see this stuff.
51181 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51182 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51183 (mode_change, mode_adjust): Reflect the new signatures noted above.
51184 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51185 that might redefine system include files.
51186 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51187 (my_usleep): Use NULL rather than (void *) 0.
51188 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51189 Use siginterrupt to specify that system calls should be interrupted.
51190 (rpl_nanosleep): Move initialization of suspended closer to call of
51192 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51193 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51194 (desirable_utmp_entry): New function.
51195 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51196 using x2nrealloc, to simplify logic.
51197 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51198 size calculation. Do not assume utmp file is a regular file.
51199 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51200 (READ_UTMP_CHECK_PIDS): New constant.
51201 * lib/save-cwd.c: Include unistd-safer.h.
51202 (save_cwd): Use fd_safer.
51203 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51204 [!_LIBC] Include "stat-macros.h" instead.
51205 * lib/unistd-safer.h (fd_safer): New decl.
51207 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51209 * modules/getloadavg (Depends-on): Add unistd-safer.
51210 * modules/getusershell (Depends-on): Add stdio-safer.
51211 * modules/lstat (Depends-on): Remove xalloc.
51212 * modules/mkstemp (Depends-on): Add stat-macros.
51213 * modules/modechange (Depends-on): Remove xstrtol.
51214 Add stat-macros, xalloc.
51215 * modules/save-cwd (Depends-on): Add unistd-safer.
51216 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51217 * modules/unistd-safer (Files): Add lib/fd-safer.c
51218 (Makefile.am): Remove lib_SOURCES.
51220 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51221 Remove fcntl-safer; unistd-safer supersedes it.
51223 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51225 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51227 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51228 (gl_PREREQ_CHOWN): Remove.
51229 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51230 it. Don't require AC_HEADER_STAT.
51231 (gl_PREREQ_LSTAT): Remove.
51232 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51233 Don't require AC_HEADER_STAT.
51234 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51235 (gl_PREREQ_RMDIR): Remove.
51236 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51237 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51238 the stat-macros module a prerequisite.
51239 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51240 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51241 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51242 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51243 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51245 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51246 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51248 * m4/fcntl-safer.m4: Remove.
51249 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51250 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51251 Invoke gl_PREREQ_FD_SAFER.
51252 (gl_PREREQ_FD_SAFER): New macro.
51253 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51254 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51255 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51256 Remove duplicate call to AC_LIBOBJ(readutmp).
51257 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51259 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51260 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51262 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51264 * MODULES.html.sh (Misc): Add byteswap.
51266 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51268 * modules/getcwd (Depends-on): Add extensions.
51269 * modules/openat (Depends-on): Likewise.
51271 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51273 * modules/byteswap: New file.
51275 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51277 * m4/byteswap.m4: New file.
51279 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51281 * lib/byteswap_.h: New file.
51283 2005-04-25 Karl Berry <karl@gnu.org>
51285 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51287 2005-04-25 Albert Chin <china@thewrittenword.com>
51289 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51292 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51294 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51295 (func_ln_if_changed) Remove forcibly for no error message
51296 in case file does not exist.
51298 2005-04-19 Simon Josefsson <jas@extundo.com>
51300 * gnulib-tool (Options): Make --symlink mean --symbolic.
51302 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51304 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51306 2005-04-16 Simon Josefsson <jas@extundo.com>
51308 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51310 2005-04-15 Simon Josefsson <jas@extundo.com>
51312 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51314 2005-04-15 Simon Josefsson <jas@extundo.com>
51316 * gnulib-tool: Rename --symlink to --symbolic.
51318 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51320 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51321 symbolic links to files instead of copying/moving. Add --aux-dir,
51322 specifying directory relative --dir where auxiliary build tools
51325 2005-04-14 Bruno Haible <bruno@clisp.org>
51327 * modules/allocsa (License): Change to LGPL.
51328 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51330 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51332 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51333 that "UTC +1 second" continues to work. Problem reported
51334 by Dmitry V. Levin.
51335 (relunit_snumber): New rule.
51338 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51340 * lib/getdate.y (universal_time_zone_table): New constant.
51341 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51342 universal_time_zone_table.
51343 (lookup_zone): Prefer universal_time_zone_table to
51344 local_time_zone_table, so that "GMT" time stamps are allowed in
51345 London during the summer. Problem reported by Ian Abbott.
51347 2005-04-12 Jim Meyering <jim@meyering.net>
51349 * lib/human.c (humblock): Set *options even when returning due to
51350 xstrtoumax conversion failure. Thanks to a used-uninitialized
51351 warning from gcc-4.
51353 2005-04-09 Jim Meyering <jim@meyering.net>
51355 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51356 -Wuninitialized: initialize tm0.tm_year.
51358 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51360 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51361 count, since there's no maximum. All uses changed.
51362 Add member dsts_seen.
51363 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51365 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51366 Use pc_rels_seen to decide whther a date is absolute.
51368 * lib/getdate.y (number): Don't overwrite year.
51369 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51372 2005-04-02 Simon Josefsson <jas@extundo.com>
51374 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51375 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51377 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51379 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51380 where no absolute path name can be longer than PATH_MAX.
51382 2005-03-27 Jim Meyering <jim@meyering.net>
51384 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51386 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51388 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51389 "one's complement" -> "ones' complement" in comment, as per Knuth.
51390 "value of type" -> "type or expression" in comment.
51391 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51393 2005-03-26 Jim Meyering <jim@meyering.net>
51396 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51397 Correct typos: s/or/of/.
51399 2005-03-26 Jim Meyering <jim@meyering.net>
51401 * modules/check-include-files: Move to ../ and rename to...
51402 * check-module: ...this.
51404 2005-03-25 Jim Meyering <jim@meyering.net>
51406 * modules/xvasprintf (Files): Add xalloc.h.
51408 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51410 * modules/gettext (Files): config/config.rpath ->
51411 build-aux/config.rpath
51412 * modules/iconv (Files): Likewise.
51413 Problem reported by Oskar Liljeblad.
51415 2005-03-23 Jim Meyering <jim@meyering.net>
51417 * modules/check-include-files: New script to check for
51418 missing dependencies, multiple includes, etc.
51420 * modules/c-strtold (Depends-on): Add xalloc.
51421 * modules/c-strtod (Depends-on): Add xalloc.
51422 * modules/hash (Depends-on): Add xalloc.
51423 (Files): Remove lib/xalloc.h.
51425 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51426 * modules/userspec (Files): Add lib/inttostr.h.
51428 2005-03-23 Jim Meyering <jim@meyering.net>
51430 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51432 2005-03-22 Jim Meyering <jim@meyering.net>
51434 * modules/stat-macros: New module.
51435 * modules/canonicalize, modules/euidaccess, modules/file-type,
51436 * modules/filemode, modules/lchown, modules/makepath,
51437 * modules/rmdir, modules/stat: Depend on new stat-macros module
51438 rather than listing lib/stat-macros.h manually.
51439 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51441 2005-03-22 Jim Meyering <jim@meyering.net>
51443 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51445 2005-03-22 Bruno Haible <bruno@clisp.org>
51447 * config/srclist.txt: Replace target directory 'config' with
51449 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51450 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51453 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51455 * modules/chdir-long (Depends-on): Add mempcpy.
51457 * modules/acl, modules/backupfile, modules/c-strtod,
51458 modules/c-strtold, modules/canon-host, modules/canonicalize,
51459 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51460 modules/exclude, modules/exitfail, modules/file-type,
51461 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51462 modules/getdate, modules/getline, modules/getpagesize,
51463 modules/getpass, modules/getugroups, modules/group-member,
51464 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51465 modules/inttostr, modules/long-options, modules/makepath,
51466 modules/md5, modules/memcasecmp, modules/memcoll,
51467 modules/modechange, modules/mountlist, modules/path-concat,
51468 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51469 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51470 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51471 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51472 modules/strftime, modules/strndup, modules/strverscmp,
51473 modules/timespec, modules/unlocked-io, modules/userspec,
51474 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51476 Remove lib_SOURCES line from Makefile.am section, as this is now
51477 done automatically by the corresponding Autoconf macro.
51479 2005-03-21 Jim Meyering <jim@meyering.net>
51481 Changes imported from coreutils.
51483 * lib/cycle-check.c: Don't include xalloc.h.
51485 * lib/path-concat.c: Don't include assert.h.
51486 (path_concat): Remove assertion that would have triggered
51487 for ABASE starting with more than one slash.
51488 Reported by Andreas Schwab.
51490 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51491 properly when ABASE is an absolute file name.
51492 Correct the description of this function.
51493 Include <assert.h>.
51494 Add an assertion and a test driver.
51495 This fixes a bug introduced on 2004-07-02.
51496 Andreas Schwab reported the resulting failure of cp --parents:
51497 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51499 2005-03-21 Jim Meyering <jim@meyering.net>
51501 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51502 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51504 2005-03-21 Jim Meyering <jim@meyering.net>
51505 and Paul Eggert <eggert@cs.ucla.edu>
51507 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51508 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51509 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51510 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51511 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51512 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51513 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51514 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51515 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51516 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51517 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51518 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51519 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51520 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51521 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51522 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51523 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51526 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51528 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51529 (which shouldn't happen), generate nothing instead of returning 0
51530 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51532 2005-03-16 Bruno Haible <bruno@clisp.org>
51534 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51535 HAVE_LONGLONG_64BIT.
51537 2005-03-16 Bruno Haible <bruno@clisp.org>
51539 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51540 HAVE_LONGLONG_64BIT.
51542 2005-03-16 Bruno Haible <bruno@clisp.org>
51544 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51545 HAVE_LONGLONG_64BIT.
51547 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51549 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51550 reliably distinguish strftime failure from empty output on POSIX
51553 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51555 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51556 (iconv_string): Don't guess a size-zero buffer, as that might cause
51557 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51558 result would be 'too large', where 'too large' is (heuristically)
51559 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51560 overflow concerns. This will prevent some unwanted malloc failures
51561 when the inputs are very large.
51563 2005-03-15 Karl Berry <karl@gnu.org>
51565 * config/srclist.txt (config.rpath): from gettext.
51566 * config/config.rpath: update.
51568 2005-03-15 Bruno Haible <bruno@clisp.org>
51570 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51573 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51576 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51579 2005-03-14 Simon Josefsson <jas@extundo.com>
51581 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51584 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51586 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51587 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51589 * lib/strtol.c: Likewise.
51591 2005-03-14 Jim Meyering <jim@meyering.net>
51593 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51594 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51595 to be nonzero so that we (and caller) can detect the difference
51596 between a valid zero-length expansion and an error return, even
51597 when the underlying strftime fails before writing anything into
51600 2005-03-14 Bruno Haible <bruno@clisp.org>
51602 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51603 Update from GNU gettext 0.14.3.
51605 2005-03-10 Jim Meyering <jim@meyering.net>
51607 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51609 2005-03-10 Jim Meyering <jim@meyering.net>
51611 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51612 so that this module works on systems without fchdir.
51614 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51616 Factor int-properties macros into a single file, except for
51617 glibc-related files.
51618 * lib/intprops.h: New file.
51619 * lib/getloadavg.c: Include it instead of limits.h.
51620 (INT_STRLEN_BOUND): Remove.
51621 * lib/human.c: Include intprops.h.
51622 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51623 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51625 * lib/inttostr.h: Include intprops.h instead of limits.h.
51626 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51627 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51628 for consistency with intprops.h.
51629 (time_t_is_integer, twos_complement_arithmetic): Use them.
51630 * lib/sig2str.h: Include <signal.h>, intprops.h.
51631 (INT_STRLEN_BOUND): Remove.
51632 * lib/strftime.c (TYPE_SIGNED): Remove.
51633 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51634 * lib/strtol.c: Adjust comments to match intprops.h.
51635 * lib/userspec.c: Include intprops.h.
51636 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51637 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51638 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51639 instead of rolling our own expressions.
51640 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51642 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51644 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51645 the right thing even if adding 1900 would overflow. Similarly
51646 for tm_mon + 1 and tm_yday + 1.
51647 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51648 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51649 (DO_SIGNED_NUMBER): New macro.
51650 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51652 2005-03-07 Bruno Haible <bruno@clisp.org>
51654 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51656 2005-03-07 Bruno Haible <bruno@clisp.org>
51658 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51660 2005-03-04 Derek R. Price <derek@ximbiot.com>
51662 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51663 (func_import): Only replace files via --import when they have actually
51666 2005-03-03 Derek R. Price <derek@ximbiot.com>
51668 * m4/mmap-anon.m4: New file.
51669 * m4/pagealign_alloc.m4: New file.
51671 2005-03-03 Derek R. Price <derek@ximbiot.com>
51672 Bruno Haible <bruno@clisp.org>
51674 * modules/pagealign_alloc: New file.
51675 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51677 2005-03-03 Derek R. Price <derek@ximbiot.com>
51678 Bruno Haible <bruno@clisp.org>
51680 * lib/pagealign_alloc.h: New file.
51681 * lib/pagealign_alloc.c: New file.
51683 2005-03-03 Bruno Haible <bruno@clisp.org>
51685 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51686 Use an all-permissive copyright notice, recommended by RMS.
51688 2005-03-02 Bruno Haible <bruno@clisp.org>
51690 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51691 of AIX, the replacement has to be done only after <string.h> is
51692 included, therefore not in config.h. stpncpy.h does the replacement,
51693 and stpncpy.c uses it.
51695 2005-03-02 Bruno Haible <bruno@clisp.org>
51697 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51700 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51702 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51703 The workaround isn't strictly needed for POSIX conformance, and
51704 it's too much of a pain to configure and maintain. We'll ask
51705 people to fix their kernels instead.
51706 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51707 (NANOSLEEP_BUG_WORKAROUND): Remove.
51708 (xnanosleep): Remove the workaround.
51710 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51712 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51713 Reported by Derek Price.
51714 (Include): Add "timespec.h".
51716 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51718 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51720 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51721 to detect nanosleep bug.
51723 2005-03-01 Bruno Haible <bruno@clisp.org>
51725 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51727 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51729 * modules/gethrxtime: New file.
51730 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51731 (Depends-on): Add gethrxtime.
51732 (configure.ac): Add gl_XNANOSLEEP.
51733 (Makefile.am): Remove lib_SOURCES line.
51735 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51737 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51738 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51740 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51742 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51743 * lib/timespec.h (gettime): Return void, since it always
51744 succeeds now. All uses changed.
51745 * lib/gettime.c (gettime) Likewise.
51746 [HAVE_NANOTIME]: Prefer nanotime.
51747 Assume gettimeofday succeeds, as POSIX requires.
51748 Assime time () succeeds, since other code already does.
51749 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51750 (timespec_subtract): Remove.
51751 (NANOSLEEP_BUG_WORKAROUND): New constant.
51752 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51753 things considerably. Use it only on GNU/Linux hosts, since the
51754 workaround shouldn't be needed elsewhere.
51756 2005-02-24 Bruno Haible <bruno@clisp.org>
51758 * modules/gettext (Files): Add m4/glibc2.m4.
51760 2005-02-24 Bruno Haible <bruno@clisp.org>
51762 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51763 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51765 Update from GNU gettext 0.14.2.
51766 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51768 2005-02-24 Bruno Haible <bruno@clisp.org>
51770 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51771 * lib/config.charset: Update from GNU gettext 0.14.2.
51773 2005-02-24 Bruno Haible <bruno@clisp.org>
51775 * lib/gettext.h: Update from GNU gettext 0.14.2.
51777 2005-02-23 Simon Josefsson <jas@extundo.com>
51779 * m4/iconvme.m4: New file.
51781 2005-02-23 Jim Meyering <jim@meyering.net>
51783 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51785 Thanks to Bruno Haible for catching it.
51787 2005-02-22 Simon Josefsson <jas@extundo.com>
51789 * modules/iconvme: New file.
51791 * MODULES.html.sh: Add iconvme.
51793 2005-02-22 Simon Josefsson <jas@extundo.com>
51795 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51797 2005-02-22 Simon Josefsson <jas@extundo.com>
51799 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51801 2005-02-22 Jim Meyering <jim@meyering.net>
51803 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51806 2005-02-20 Neil Conway <neilc@samurai.com>
51808 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51809 returned by OSX/Darwin if the specified buffer is not large
51810 enough for the hostname.
51812 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51814 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51815 pass it to _help, otherwise the latter coredumps trying to
51816 dereference state.root_argp.
51818 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51820 * modules/chdir-long (Depends-on): Add memrchr.
51821 * modules/memrchr (Files): Add lib/memrchr.h.
51822 (Include): "memrchr.h".
51824 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51826 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51828 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51830 * lib/memrchr.h: New file.
51831 * lib/chdir-long.c: Include it.
51832 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51833 Don't bother including stddef.h.
51835 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
51837 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51839 Include <sys/types.h>, for dev_t.
51840 (ME_DUMMY, ME_REMOTE): Move from here....
51841 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51842 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
51844 Include mountlist.h first, to test the interface.
51846 2005-01-29 Bruno Haible <bruno@clisp.org>
51848 * lib/progname.c (program_name): Initialize.
51849 Needed when linking statically on MacOS X.
51851 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51853 Sync from coreutils.
51854 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51855 (Depends-on): Add c-strtod.
51856 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51858 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51860 Sync from coreutils.
51861 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51863 Remove files that are specific to coreutils.
51864 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51866 2005-01-28 Bruno Haible <bruno@clisp.org>
51868 * modules/javacomp: New file.
51869 * MODULES.html.sh (Java): Add javacomp.
51871 2005-01-28 Bruno Haible <bruno@clisp.org>
51873 * m4/javacomp.m4: New file, from GNU gettext.
51875 2005-01-28 Bruno Haible <bruno@clisp.org>
51877 * lib/javacomp.sh.in: New file, from GNU gettext.
51878 * lib/javacomp.h: New file, from GNU gettext.
51879 * lib/javacomp.c: New file, from GNU gettext.
51881 2005-01-26 Simon Josefsson <jas@extundo.com>
51883 * lib/gai_strerror.c: Use GPL in header.
51885 2005-01-26 Bruno Haible <bruno@clisp.org>
51887 * modules/javaexec: New file.
51888 * MODULES.html.sh (Java): Add javaexec.
51890 2005-01-26 Bruno Haible <bruno@clisp.org>
51892 * m4/javaexec.m4: New file, from GNU gettext.
51894 2005-01-26 Bruno Haible <bruno@clisp.org>
51896 * lib/javaexec.sh.in: New file, from GNU gettext.
51897 * lib/javaexec.h: New file, from GNU gettext.
51898 * lib/javaexec.c: New file, from GNU gettext.
51900 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51902 * modules/lchown (Depends-on): Remove lchown.h
51904 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51906 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51907 must be defined if the header file was not found, in order
51908 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51910 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51912 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51913 initializers for struct pentry_state.
51914 (__argp_error): Check return value of __asprintf
51915 (__argp_failure): Translate error message
51917 * lib/argp-parse.c: Removed braces around the expansion of N_()
51919 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
51921 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51922 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51923 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51924 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51925 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51926 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51927 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51928 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51929 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51930 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51931 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51932 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51933 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51934 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51935 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51936 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51937 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51938 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51939 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51940 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51941 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51942 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51943 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51944 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51945 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51946 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51947 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51948 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51949 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51950 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51951 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51952 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51953 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51954 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51955 xstrtol.m4, xstrtoumax.m4, yesno.m4:
51956 Use an all-permissive copyright notice, recommended by RMS.
51958 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
51960 * modules/chdir-long (Depends-on): Remove mempcpy.
51962 2005-01-21 Jim Meyering <jim@meyering.net>
51964 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51965 same value as for Solaris 9.
51967 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51968 component length. This included changing the parameter to be
51969 of type `char *' rather than `char const *'.
51970 * lib/chdir-long.h (chdir_long): Update prototype.
51972 * lib/openat.c (fdopendir, fstatat): New functions.
51973 * lib/openat.h: Include headers required for use of DIR and struct
51975 [AT_SYMLINK_NOFOLLOW]: Define.
51976 (fdopendir, fstatat): Add prototypes.
51978 2005-01-21 Bruno Haible <bruno@clisp.org>
51980 * modules/classpath: New file.
51981 * MODULES.html.sh (Java): Add classpath.
51983 2005-01-21 Bruno Haible <bruno@clisp.org>
51985 * lib/classpath.h: New file, from GNU gettext.
51986 * lib/classpath.c: New file, from GNU gettext.
51988 2005-01-20 Simon Josefsson <jas@extundo.com>
51990 * modules/version-etc-fsf: New file.
51992 2005-01-20 Simon Josefsson <jas@extundo.com>
51994 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51995 * lib/version-etc.c: Remove version_etc_copyright.
51996 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51997 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51999 2005-01-20 Simon Josefsson <jas@extundo.com>
52001 * lib/base64.h (isbase64): Add.
52003 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52004 using a unsigned prototype, don't inline.
52005 (base64_decode): Use it.
52007 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52009 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52012 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52014 * lib/save-cwd.c (save_cwd): Remove code to support the case
52015 where fchdir is missing or flaky.
52017 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52019 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52021 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52023 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52024 AC_LIBSOURCES now does this.
52025 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52026 with new ullong_max module.
52028 2005-01-19 Bruno Haible <bruno@clisp.org>
52030 * modules/sh-quote: New file.
52031 * MODULES.html.sh (Executing programs): Add sh-quote.
52033 2005-01-19 Bruno Haible <bruno@clisp.org>
52035 * lib/sh-quote.h: New file, from GNU gettext.
52036 * lib/sh-quote.c: New file, from GNU gettext.
52038 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52040 Merge from coreutils.
52041 * m4/ullong_max.m4: New file.
52042 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52043 (gl_MACROS): Assume localeconv exists.
52045 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52047 Merge changes from coreutils, as described below in several
52048 changelogs dated today.
52050 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52051 (O_DIRECTORY): Remove; not needed here, since "." must be
52052 a directory. All uses removed.
52053 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52054 universal on Suns, and we also need to test for IRIX.
52055 Revamp code to use 'if' rather than '#if'.
52056 Avoid unnecessary comparison of cwd->desc to 0.
52058 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52059 for known valid error numbers rather than observed invalid ones.
52061 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52063 * modules/ullong_max: New file.
52065 * modules/chdir-long, modules/openat: New files.
52066 * modules/save-cwd (Depends-on): Depend on chdir-long.
52067 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52069 2005-01-18 Jim Meyering <jim@meyering.net>
52071 Merge from coreutils.
52072 * m4/chdir-long.m4, m4/openat.m4: New files.
52073 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52074 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52075 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52076 is sane and DOES follow symlinks. Besides, testing 20 different
52077 systems found no broken chown implementations.
52078 Prompted by a change in rsync's copy of this macro.
52079 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52081 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52083 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52084 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52085 NULL-means-set-to-current-time semantics.
52086 Remove temporary file immediately, rather than waiting
52087 for configure's at-exit trap code to do it.
52089 2005-01-18 Jim Meyering <jim@meyering.net>
52091 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52093 * lib/utimens.c (futimens): Account for the fact that futimes
52094 can also fail with errno == ENOSYS or errno == ENOENT.
52095 Patch from Dmitry V. Levin.
52097 Change the name of the robust chdir function from chdir to chdir_long.
52098 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52099 (restore_cwd): Use chdir_long, not chdir.
52100 * lib/chdir-long.c: Renamed from chdir.c.
52101 * lib/chdir-long.h: Renamed from chdir.h.
52102 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52105 2005-01-18 Bruno Haible <bruno@clisp.org>
52107 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52108 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52109 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52110 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52111 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52112 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52113 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52114 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52115 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52116 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52117 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52118 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52119 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52120 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52121 Use an all-permissive copyright notice, recommended by RMS.
52123 2005-01-18 Bob Proulx <bob@proulx.com>
52125 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52126 simplify offsetof() macro construct to avoid compile failure with
52127 native HP-UX 11.0 ANSI C compiler.
52129 2005-01-17 Bruno Haible <bruno@clisp.org>
52131 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52132 redundant because stpncpy.m4 takes care of it.
52134 2005-01-17 Bruno Haible <bruno@clisp.org>
52136 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52138 2005-01-17 Bruno Haible <bruno@clisp.org>
52140 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52143 2005-01-17 Bruno Haible <bruno@clisp.org>
52145 * lib/fwriteerror.h (fwriteerror): Change specification to include
52147 * lib/fwriteerror.c: Include <stdbool.h>.
52148 (fwriteerror): At the end, close the file stream. Record whether
52149 stdout was already closed.
52151 2005-01-17 Bruno Haible <bruno@clisp.org>
52153 * lib/execute.c (environ): Declare if needed.
52154 * lib/pipe.c (environ): Likewise.
52155 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52157 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52159 * modules/argp: Depend on vsnprintf
52161 2005-01-10 Jim Meyering <jim@meyering.net>
52163 * modules/closeout (Depends-on): Add atexit.
52165 2005-01-06 Bruno Haible <bruno@clisp.org>
52167 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52169 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52171 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52172 definitions to be after all include files, to avoid collisions.
52173 Problem reported by Bob Proulx.
52175 2005-01-04 Jim Meyering <jim@meyering.net>
52177 Changes imported from coreutils.
52178 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52179 as the mkstemp template, use a temporary directory and an
52180 8.3-friendly template to avoid trouble on systems like DJGPP.
52181 Reported by Juan M. Guerrero via Stepan Kasal.
52182 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52183 close. Remove the temporary directory right away, rather than waiting
52184 for configure's at-exit trap code to do it.
52185 Suggestion from Stepan Kasal.
52187 2005-01-01 Simon Josefsson <jas@extundo.com>
52189 * gnulib-tool: Print #include directives when --import'ing.
52191 2004-12-28 Simon Josefsson <jas@extundo.com>
52193 * tests/test-base64.c: Include required header files. Remove
52196 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52198 * modules/error (Depends-on): Remove gettext.
52200 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52202 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52203 not needed. This removes a dependency on the gettext module.
52204 [defined _LIBC]: Do not include <libintl.h>; not needed.
52206 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52208 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52209 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52211 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52213 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52216 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52218 * modules/getdate (Depends-on): Remove alloca-opt.
52220 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52222 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52224 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52226 * lib/argp-parse.c: Include <stddef.h>.
52227 (alignof, alignto): New macros.
52228 (parser_init): Don't assume that void * is aligned sufficiently
52231 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52232 need to extend the stack.
52233 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52236 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52238 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52240 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52242 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52243 (2004-10-24) change. Apparently this was a false alarm.
52245 * modules/getdate: Depend on alloca-opt, not alloca.
52247 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52249 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52250 Remove now-obsolete comment about AIX.
52251 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52252 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52253 (YYMAXDEPTH): New macro.
52255 2004-12-18 Simon Josefsson <jas@extundo.com>
52257 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52259 2004-12-18 Bruno Haible <bruno@clisp.org>
52261 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52263 2004-12-18 Bruno Haible <bruno@clisp.org>
52265 * lib/fatal-signal.c (fatal_signals): Make non-const.
52266 (init_fatal_signals): New function.
52267 (uninstall_handlers, install_handlers): Ignore signals that were set to
52269 (at_fatal_signal): Call init_fatal_signals.
52270 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52272 Reported by Paul Eggert.
52274 2004-12-18 Bruno Haible <bruno@clisp.org>
52276 * doc/alloca.texi: New file.
52277 * doc/alloca-opt.texi: New file.
52279 2004-12-17 Jim Meyering <jim@meyering.net>
52281 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52282 Otherwise, install-sh could exit with improper exit status when
52283 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52285 2004-12-16 Simon Josefsson <jas@extundo.com>
52287 * tests/test-base64.c: Add license.
52289 2004-12-15 Stepan Kasal <address@hidden>
52291 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52293 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52295 * modules/getcwd (Files): Add m4/d-ino.m4.
52296 Suggested by Mark D. Baushke.
52298 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52300 * lib/getdate.y (textint): New member "negative".
52301 (time_zone_hhmm): New function.
52302 Expect 14 shift-reduce conflicts, not 13.
52303 (o_colon_minutes): New rule.
52304 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52305 (yylex): Set the "negative" member of signed numbers.
52307 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52309 * doc/getdate.texi (Time of day items, Time zone items):
52310 Describe new formats +00:00, UTC+00:00.
52312 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52314 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52315 spurious "-l"s. Problem reported by Stepan Kasal.
52317 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52319 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52320 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52322 2004-12-04 Simon Josefsson <jas@extundo.com>
52324 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52325 Vandoorselaere <yoann@prelude-ids.org>.
52327 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52329 Changes imported from coreutils.
52330 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52332 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52334 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52336 Changes imported from coreutils.
52337 * lib/hard-locale.c: Assume <locale.h> exists.
52338 Include "strdup.h".
52339 (GLIBC_VERSION): New macro.
52340 (hard_locale): Assume setlocale exists.
52341 Rewrite to avoid #ifdef.
52342 Use strdup rather than malloc + strcpy.
52343 * lib/human.c: Assume <locale.h> exists.
52344 (human_readable): Assume localeconv exists.
52346 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52348 * modules/hard-locale (Depends-on): Add strdup.
52350 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52352 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52353 convert T2, not T. (Imported from libc.)
52355 2004-11-30 Simon Josefsson <jas@extundo.com>
52357 * modules/restrict (License): Change to LGPL.
52359 2004-11-30 Simon Josefsson <jas@extundo.com>
52361 * m4/restrict.m4: Add copyright and copying conditions.
52363 2004-11-30 Simon Josefsson <jas@extundo.com>
52365 * m4/base64.m4: New file.
52367 2004-11-30 Simon Josefsson <jas@extundo.com>
52369 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52372 * tests/test-base64.c: New file.
52374 * modules/base64: New file.
52376 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52378 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52379 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52381 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52383 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52385 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52386 (__getcwd.c): Don't restore errno; glibc doesn't.
52387 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52388 first, falling back to our code only if its results look suspicious.
52389 Ensure that the resulting buffer is only as large as necessary.
52391 * lib/readutmp.c: Include readutmp.h first.
52392 Include <errno.h>, since readutmp.h no longer does that.
52393 * lib/readutmp.h: Don't include <errno.h>,
52394 <sys/param.h>, <time.h>; not needed to establish interface.
52395 (errno): Remove decl.
52396 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52397 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52398 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52400 2004-11-28 Simon Josefsson <jas@extundo.com>
52402 * lib/base64.h, base64.c: New file.
52404 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52406 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52408 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52410 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52411 (Depends-on): Remove pathmax, same. Add mempcpy.
52412 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52413 (Makefile.am): Append getcwd.h to lib_SOURCES.
52414 (Include): Add getcwd.h.
52415 (Maintainer): Change from Jim Meyering to "all, glibc",
52416 since getdate now uses intended-for-glibc code.
52417 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52418 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52420 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52422 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52423 HP's ANSI C compiler.
52424 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52425 Declaring int functions causes warnings on some modern systems and
52426 shouldn't be needed to compile on ancient ones.
52427 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52430 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52431 with the following changes.
52432 (__set_errno): Parenthesize properly.
52433 Include <stdbool.h>.
52434 (MIN, MAX, MATCHING_INO): New macros.
52435 (__getcwd): Define with prototype, not K&R form.
52436 Use heuristics to allocate default buffer on stack if possible.
52437 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52438 behavior, and to avoid the PATH_MAX limit when computing
52440 Use MATCHING_INO to compare inode number to file.
52441 Check for arithmetic overflow in size calculations.
52442 Fix bug in reallocation of dot array that caused getcwd to fail
52443 on directories nested deeper than 75.
52444 Be more careful about saving errno on error.
52445 Do not use realloc; use only free+malloc, as this is a bit
52446 more flexible and avoids a needless copy operation.
52447 Do not inspect st_dev and st_ino for symbolic links; POSIX
52448 doesn't specify the latter.
52449 Check for closedir errors.
52450 Avoid needless casts.
52451 Use "#ifdef weak_alias" around weak_alias, to be like other
52453 The following changes to getcwd.c have effect only when used in
52454 gnulib; they have no effect inside glibc proper.
52455 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52456 as alloca isn't used.
52457 (alloca, __alloca): Likewise.
52458 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52459 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52460 unconditionally, as gnulib assumes C89 or better.
52461 Do not include <sys/param.h>.
52462 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52463 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52465 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52466 Include <dirent.h> in a way that is compatible with modern Autoconf.
52467 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52468 New macros, if not already defined.
52469 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52470 Use "_LIBC", not "defined _LIBC", for consistency.
52471 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52473 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52474 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52475 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52476 credit only to Jim Meyering and adjust the copyright dates.
52477 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52478 <stdlib.h>, <unistd.h>, "pathmax.h".
52479 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52480 (INITIAL_BUFFER_SIZE): Remove.
52481 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52483 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52485 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52486 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52487 Use the _ONCE methods, for efficiency.
52488 Check for fcntl.h. In test program, include <errno.h>
52489 and <fcntl.h> if available. Remove old K&R cruft from
52490 test program. Check for common errors in GNU/Linux,
52491 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52492 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52493 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52494 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52496 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52497 accommodate new getcwd.c.
52498 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52499 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52500 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52501 that's all we need now.
52503 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52505 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52506 argp-parse.c depends on getopt internals, that means we should
52507 always use our getopt, to be on the safe side.
52508 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52509 order not to spoil the result of an eventual previous invocation
52510 of gl_GETOPT_SUBSTITUTE.
52512 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52514 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52515 redefinition warnings. To avoid them, include the defines
52516 in `#if !defined __need_getopt ... #endif'. The only place
52517 where __getopt_argv_const is used is in definitions
52518 of getopt_long and getopt_long_only below, which are as well
52519 protected by `#ifndef __need_getopt'.
52520 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52521 __need_getopt after including <stdio.h> and <unistd.h> These
52522 headers might have defined it.
52524 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52526 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52528 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52530 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52531 (futimens): New function, which uses futimes if available.
52532 (futimens, utimens): Support timespec==NULL, with same semantics
52533 as utime and utimens.
52534 * lib/utimens.h (futimens): New decl.
52536 2004-11-23 Jim Meyering <jim@meyering.net>
52538 * lib/getopt_.h: Remove trailing blanks.
52540 2004-11-23 Jim Meyering <jim@meyering.net>
52542 * lib/__fpending.c: Add comment.
52544 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52546 * modules/canonicalize (Depends-on): Add xreadlink.
52547 Problem reported by James Youngman.
52549 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52551 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52553 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52554 optopt): Use them instead of invoking ## directly; otherwise, the
52555 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52557 2004-11-19 Bruno Haible <bruno@clisp.org>
52559 * lib/strtok_r.c: Move comments from here...
52560 * lib/strtok_r.h: ... to here.
52562 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52564 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52565 implementations that mishandle size_t overflow.
52567 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52569 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52570 might fail. Problem reported by Yoann Vandoorselaere.
52571 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52572 implementations that mishandle size_t overflow.
52574 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52576 * modules/canon-host (Depends-on): Add strdup.
52578 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52580 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52582 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52584 * lib/canon-host.c: Include "strdup.h".
52585 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52586 Use strdup instead of malloc/strcpy to duplicate strings.
52588 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52589 (human_space_before_unit): New constant.
52590 * lib/human.c (human_readable): Support it.
52592 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52593 (xgetcwd): Set errno correctly when failing.
52594 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52595 the failure is actually due to a PATH_MAX problem.
52597 Further getopt changes to make it more likely that glibc will
52598 buy the changes back.
52599 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52600 (getopt): Use it, so to preserve glibc semantic
52601 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52602 when compiling for libc.
52603 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52604 (getopt_long, getopt_long_only): Use it.
52606 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52607 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52608 (getopt): Argv is now char * const *, as per standard.
52609 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52610 not char *__getopt_argv_const *.
52611 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52612 _getopt_long_only_r): Likewise.
52613 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52614 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52615 _getopt_long_r, _getopt_long_only_r): Likewise.
52616 * lib/getopt_.h (__getopt_argv_const): Remove.
52617 (getopt): Argv is now char * const *, as per standard.
52619 * lib/getdate.y (tORDINAL): New token.
52620 (day, relunit): Allow it for relative times.
52621 (relative_time_table): Use tORDINAL for ordinals.
52623 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52625 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52626 Document that "second" isn't allowed as an ordinal number.
52628 2004-11-16 Jim Meyering <jim@meyering.net>
52630 * modules/closeout (Depends-on): Add fpending.
52632 2004-11-15 Jim Meyering <jim@meyering.net>
52634 * lib/closeout.c: Include "__fpending.h" once again.
52635 Include <stdbool.h>.
52636 (close_stdout): Don't fail just because stdout was closed initially,
52637 since some programs don't write to stdout in the normal course of
52638 operation (other than --version and --help), and we don't want this
52639 function to make e.g. `touch file >&-' fail.
52640 But do fail if it was closed and someone has tried to write to it.
52641 E.g., `printf foo >&-' must fail.
52643 2004-11-13 Jim Meyering <jim@meyering.net>
52645 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52647 2004-11-12 Simon Josefsson <jas@extundo.com>
52649 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52650 small doc fix is still pending.
52652 2004-11-11 Simon Josefsson <jas@extundo.com>
52654 * modules/strtok_r: New file.
52656 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52659 2004-11-11 Simon Josefsson <jas@extundo.com>
52661 * m4/strtok_r.m4: New file.
52663 * m4/getopt.m4: Replace opterr.
52665 2004-11-11 Simon Josefsson <jas@extundo.com>
52667 * lib/strtok_r.h, strtok_r.c: New file.
52669 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52671 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52672 of replacing opterr, getopt, etc. This should handle the
52673 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52675 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52677 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52678 we can stop lying to compilers about the constness of argv when we
52679 are compiled outside glibc.
52680 (getopt, getopt_long, getopt_long_only): Use it.
52681 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52682 _getopt_internal, getopt): Likewise.
52683 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52684 _getopt_long_only_r): Likewise.
52685 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52686 _getopt_long_r, _getopt_long_only_r): Likewise.
52688 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52689 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52690 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52691 the other external symbols.
52692 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52693 declaration, since the above renaming now works around collisions.
52695 2004-11-11 Jim Meyering <jim@meyering.net>
52697 * lib/linebreak.c: Remove trailing blanks.
52698 * lib/alloca_.h: Likewise.
52699 * lib/acosl.c: Likewise.
52700 * lib/euidaccess.c: Likewise.
52701 * lib/allocsa.h: Likewise.
52703 2004-11-10 Simon Josefsson <jas@extundo.com>
52705 * m4/getaddrinfo.m4: New file.
52707 2004-11-10 Simon Josefsson <jas@extundo.com>
52709 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52711 2004-11-10 Simon Josefsson <jas@extundo.com>
52713 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52716 * modules/getaddrinfo: New file.
52718 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52720 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52722 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52724 * lib/mktime.c (SHR): New macro, which is a portable
52725 substitute for >> that should work even on Crays.
52726 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52727 Problem reported by Mark D. Baushke in
52728 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52729 * lib/getdate.y (SHR): Likewise.
52731 * lib/strftime.c (SHR): Likewise.
52733 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52734 quote_these_too, so that right shifts are well defined. All uses
52737 2004-11-10 Jim Meyering <jim@meyering.net>
52739 Ensure that no close failure goes unreported.
52740 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52741 return early when it seems there's nothing to flush.
52742 Don't include __fpending.h.
52744 2004-11-10 Jim Meyering <jim@meyering.net>
52746 * modules/closeout (Depends-on): Remove fpending.
52748 2004-11-10 Jim Meyering <jim@meyering.net>
52750 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52752 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52754 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52756 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52757 and AC_REQUIRE when possible, to avoid duplicate checks.
52758 Check for <wchar.h>.
52760 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52762 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52764 2004-11-09 Bruno Haible <bruno@clisp.org>
52766 * m4/sockpfaf.m4: New file.
52768 2004-11-05 Bruno Haible <bruno@clisp.org>
52770 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52771 Reported by Mark D. Baushke <mdb@cvshome.org>.
52773 2004-11-04 Bruno Haible <bruno@clisp.org>
52775 2004-09-11 Bruno Haible <bruno@clisp.org>
52776 * allocsa.valgrind: New file.
52777 2004-02-06 Bruno Haible <bruno@clisp.org>
52778 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52779 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52780 Reported by Christopher Seip <chris.seip@hp.com>.
52782 2004-11-04 Bruno Haible <bruno@clisp.org>
52784 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52785 (Makefile.am): Distribute it.
52787 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52789 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52790 with errno == ERANGE if the buffer is too small.
52791 Problem reported by Mark D. Baushke.
52793 2004-11-03 Albert Chin <china@thewrittenword.com>
52794 Paul Eggert <eggert@cs.ucla.edu>
52796 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52797 equivalent, substitute $ac_type for equivalent type rather than
52798 blindly using uint32_t *always* which won't work if uint32_t is not
52799 available. Define _UINT32_T to work around typedef of uint32_t if
52800 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52803 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52805 * m4/jm-macros.m4: Sync from coreutils.
52806 (gl_MACROS): Check for mbrlen, for pathchk.
52807 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52809 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52811 * lib/xreadlink.c (MAXSIZE): New macro.
52812 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52813 size does not exceed MAXSIZE. Avoid cast.
52814 As suggested by Mark D. Baushke in
52815 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52816 if readlink fails with buffer size just under MAXSIZE, try again
52819 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52821 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52823 2004-11-02 Derek R. Price <derek@ximbiot.com>
52824 and Paul Eggert <eggert@cs.ucla.edu>
52826 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52827 (get_date): Overparenthesize to avoid GCC warning.
52829 2004-11-02 Bruno Haible <bruno@clisp.org>
52831 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52834 2004-11-02 Bruno Haible <bruno@clisp.org>
52836 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52837 function returns void.
52839 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52841 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52842 fflush_unlocked, flockfile, funlockfile, funlockfile,
52843 fputs_unlocked, putc_unlocked.
52845 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52847 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52848 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52851 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52853 * modules/getdate (Files): Add doc/getdate.texi.
52854 (Depends-on): Add setenv, xalloc.
52856 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52858 * lib/getdate.y: Add support for TZ="foo" within a date string.
52859 Fix some bugs near time_t boundaries. Reject dates with
52860 out-of-range components, e.g., "Sept 31".
52861 Include <stdlib.h>, "setenv.h", "xalloc.h".
52862 (ISDIGIT_LOCALE): Remove; unused.
52863 Note that the TZ and time functions used here are not reentrant.
52864 (mktime_ok, get_tz): New functions.
52865 (TZBUFSIZE): New constant.
52866 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
52867 This requires that we sometimes generate our own TZ="XXX..." setting.
52869 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52871 * doc/getdate.texi: New file, from coreutils with modifications for
52872 the new TZ parsing.
52874 2004-10-27 Derek R. Price <derek@ximbiot.com>
52876 * lib/mktime.c (not_equal_tm): Remove redundant check.
52878 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52880 * modules/regex (lib_SOURCES): Add regex.c.
52881 Reported by James Youngman in
52882 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52884 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52886 * lib/getdate.y: Use Bison 1.875 features, and some minor
52887 code cleanups. This change does not affect semantics.
52888 Don't include <stdlib.h>; no longer needed.
52889 Don't include unlocked-io.h; only the "#if TEST" code uses
52890 stdio, and performance isn't crucial there.
52891 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52892 Bison 1.875 features as described below.
52893 All uses of "PC." replaced by "pc->".
52894 (YYSTYPE): Add a forward declaration.
52895 (yylex, yyerror): Use full prototypes in forward decls.
52896 Use "%pure-parser" rather than obsolescent "%pure_parser".
52897 Use %parse-param and %lex-param instead of obsolescent
52898 YYPARSE_PARAM and YYLEX_PARAM.
52899 (meridian_table, month_and_day_table, time_units_table,
52900 relative_time_table, time_zone_table, military_table,
52901 lookup_zone, lookup_word, get_date):
52902 Use NULL instead of 0 where appropriate.
52903 (to_hour): Avoid abort (), to avoid a dependency on
52905 (yyerror, yylex): Now accepts parser_control * arg.
52906 (main) [TEST]: Use '\0' rather than 0 for char.
52908 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52910 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52912 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52914 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52915 It's now the caller's responsibility to handle the case where
52916 !HAVE_GETPAGESIZE && !defined getpagesize.
52918 * lib/mktime.c (leapyear): Arg is long int, not int.
52920 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
52922 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52924 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
52926 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52927 missing. Problem reported by James Youngman.
52929 2004-10-16 Simon Josefsson <jas@extundo.com>
52931 * gnulib-tool: Fix comments. Fix parse problem.
52932 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52934 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
52936 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52937 implementation of getopt_long. Problem reported by Alexander Taler in:
52938 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52940 2004-10-15 Bruno Haible <bruno@clisp.org>
52942 * gnulib-tool: Untabify. Initialize supplied_libname.
52943 (func_usage): More homogenous output.
52944 (func_modules_transitive_closure, func_modules_to_filelist,
52945 func_emit_lib_Makefile_am): New functions.
52946 (func_import): New function, extracted from big case statement. Use
52947 func_get_license, func_modules_transitive_closure,
52948 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52949 opt_lgpl. Don't use test -a, as it's not portable.
52950 (func_create_testdir): Use func_modules_transitive_closure,
52951 func_modules_to_filelist, func_emit_lib_Makefile_am.
52953 2004-10-15 Bruno Haible <bruno@clisp.org>
52955 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52957 2004-10-15 Bruno Haible <bruno@clisp.org>
52959 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52960 the portions belonging to each module.
52961 Suggested by Derek Robert Price <derek@ximbiot.com>.
52963 2004-10-12 Simon Josefsson <jas@extundo.com>
52965 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52966 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52969 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52971 * modules/vsnprintf: New file.
52973 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52975 * m4/vsnprintf.m4: New file.
52977 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52979 * lib/vsnprintf.h: New file.
52980 * lib/vsnprintf.c: New file.
52982 2004-10-11 Bruno Haible <bruno@clisp.org>
52984 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52987 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
52989 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52991 2004-10-07 Bruno Haible <bruno@clisp.org>
52993 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52994 fits into the provided buffer.
52996 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
52998 * lib/diacrit.c, diacrit.h: Add GPL notice.
53000 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53002 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53003 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53004 This avoids a potential constant-folding bug.
53006 2004-10-05 Bruno Haible <bruno@clisp.org>
53008 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53009 for the declaration of strsep.
53011 2004-10-05 Bruno Haible <bruno@clisp.org>
53013 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53015 2004-10-04 Simon Josefsson <jas@extundo.com>
53017 * modules/memmem: New file.
53018 * tests/test-memmem.c: New file.
53019 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53021 2004-10-04 Simon Josefsson <jas@extundo.com>
53023 * m4/memmem.m4: New file.
53025 2004-10-04 Simon Josefsson <jas@extundo.com>
53027 * lib/memmem.h: New file.
53028 * lib/memmem.c: New file, taken from glibc.
53030 2004-10-04 Simon Josefsson <jas@extundo.com>
53032 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53033 '#ifdef USE_UNLOCKED_IO'.
53035 2004-10-04 Simon Josefsson <jas@extundo.com>
53037 * config/srclist.txt: Add memmem from glibc.
53039 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53041 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53043 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53044 modules/exclude, modules/getdate, modules/getline,
53045 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53046 modules/getusershell, modules/linebuffer, modules/md5,
53047 modules/mountlist, modules/posixtm, modules/readtokens,
53048 modules/readutmp, modules/regex, modules/sha1,
53049 modules/version-etc, modules/yesno:
53050 Remove dependency on unlocked-io.
53052 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53054 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53056 * m4/unlocked-io.m4: Add copyright notice.
53057 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53059 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53061 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53062 * lib/xmalloc.c (xmemdup): Likewise.
53063 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53064 XFREE): Remove these long-obsolescent macros.
53065 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53066 * lib/xstrdup.c: Remove.
53068 * lib/regex.c (re_comp): Cast gettext return value to char *,
53069 Problem reported by Martin Neitzel via Mark D. Baushke.
53071 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53073 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53074 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53075 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53076 regex.c, sha1.c, version-etc.c, yesno.c:
53077 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53078 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53079 the includer's responsibility.
53081 Sync from coreutils.
53083 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53084 points to the start of a string, as the C Standard says the
53085 resulting behavior is undefined.
53087 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53088 simple -> simple_backups, numbered_existing ->
53089 numbered_existing_backups, numbered -> numbered_backups
53090 to avoid shadowing problems. All uses changed.
53091 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53092 * lib/backupfile.c (check_extension, numbered_backup):
53093 Rename locals to avoid shadowing 'basename'.
53094 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53097 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53098 * lib/.cvsignore: Add getopt.h.
53100 2004-10-04 Bruno Haible <bruno@clisp.org>
53102 * modules/README: New file.
53103 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53106 2004-10-02 Jim Meyering <jim@meyering.net>
53108 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53110 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53112 * modules/strsep: New file.
53114 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53116 * m4/strsep.m4: New file.
53118 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53120 * lib/strsep.h: New file.
53121 * lib/strsep.c: New file.
53123 2004-10-01 Simon Josefsson <jas@extundo.com>
53125 * lib/snprintf.c (snprintf): Handle size==0.
53127 2004-10-01 Simon Josefsson <jas@extundo.com>
53128 Bruno Haible <bruno@clisp.org>
53130 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53131 (snprintf): Declare 'args'.
53133 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53135 * lib/snprintf.c: Remove comments as to why each header is needed.
53137 2004-10-01 Bruno Haible <bruno@clisp.org>
53139 * MODULES.html.sh: Add strsep.
53141 2004-09-30 Simon Josefsson <jas@extundo.com>
53143 * modules/snprintf: New file.
53145 2004-09-30 Simon Josefsson <jas@extundo.com>
53147 * m4/snprintf.m4: New file.
53149 2004-09-30 Simon Josefsson <jas@extundo.com>
53151 * lib/snprintf.h, lib/snprintf.c: New files.
53153 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53155 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53156 (hol_entry_help): Never translate an empty string.
53157 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53158 * lib/argp.h (OPTION_NO_TRANS): New option.
53160 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53162 * modules/argp (Maintainer): Replace Simon Josefsson
53163 by Sergey Poznyakoff.
53165 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53167 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53168 changes merged back into glibc.
53170 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53172 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53174 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53176 * lib/xvasprintf.c: Include xalloc.h.
53177 (xvasprintf): Use xalloc_die, not xmalloc_die.
53179 2004-09-29 Bruno Haible <bruno@clisp.org>
53181 * modules/alloca-opt: New file, derived from modules/alloca.
53182 * modules/allocsa: Depend on alloca-opt instead of alloca.
53183 * modules/setenv: Likewise.
53184 * modules/vasnprintf: Likewise.
53185 * MODULES.html.sh: Add alloca-opt.
53187 2004-09-28 Simon Josefsson <jas@extundo.com>
53189 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53190 LGPL, and to replace license template from GPL to LGPL.
53192 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53194 * modules/dummy: Change license to LGPL.
53196 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53198 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53200 2004-09-24 Simon Josefsson <jas@extundo.com>
53202 * modules/minmax (License): Change from GPL to LGPL.
53204 2004-09-23 Simon Josefsson <jas@extundo.com>
53206 * gnulib-tool (--import): Typo.
53208 2004-09-23 Simon Josefsson <jas@extundo.com>
53210 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53212 2004-09-22 Bruno Haible <bruno@clisp.org>
53214 * modules/*: Add 'License' field.
53215 * gnulib-tool: Accept --extract-license option.
53216 (func_get_license): New function.
53218 2004-09-21 Bruno Haible <bruno@clisp.org>
53220 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53221 Reported by Simon Josefsson.
53223 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53225 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53226 gl_AC_TYPE_LONG_LONG.
53228 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53230 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53232 2004-09-18 Simon Josefsson <jas@extundo.com>
53233 and Paul Eggert <eggert@cs.ucla.edu>
53235 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53236 calls with autoreconf. Define GL_LIB.
53238 2004-09-14 Karl Berry <karl@gnu.org>
53240 * config/srclist.txt: unsync setenv.c, sigh.
53242 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53244 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53245 Problem reported by Bruno Haible in:
53246 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53248 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53250 * config/srclist.txt: Comment out argp-pvh.c.
53252 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53254 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53255 in case some system header has #define'd it. Problem reported by
53256 Soeren D. Schulze in
53257 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53259 2004-09-09 Karl Berry <karl@gnu.org>
53261 * regex.[ch]: delete from the root. These were supposed to be
53262 synced with emacs cvs, but this has not happened for about
53263 a year, and anyway nothing else uses emacs regex.[ch].
53264 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53265 lib/regex[.ch] is untouched.
53267 2004-09-09 Bruno Haible <bruno@clisp.org>
53269 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53271 2004-09-09 Bruno Haible <bruno@clisp.org>
53273 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53275 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53277 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53279 * modules/xvasprintf: New file.
53280 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53282 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53284 * lib/xvasprintf.h: New file.
53285 * lib/xvasprintf.c: New file.
53286 * lib/xasprintf.c: New file.
53288 2004-09-08 Bruno Haible <bruno@clisp.org>
53290 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53292 2004-09-08 Bruno Haible <bruno@clisp.org>
53294 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53295 length is > INT_MAX.
53296 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53299 2004-09-08 Bruno Haible <bruno@clisp.org>
53301 * lib/stdint_.h: New file, taken from GNU clisp.
53303 2004-09-08 Bruno Haible <bruno@clisp.org>
53304 Oskar Liljeblad <oskar@osk.mine.nu>
53306 * modules/stdint: New file.
53307 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53309 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53311 Import from coreutils.
53312 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53313 strings on unbounded length. alloca's performance benefits aren't
53314 that important here.
53315 (V_STRDUP): Remove.
53316 (parse_with_separator): New function, with most of the internals
53317 of the old parse_user_spec. Allow user to omit both user and group,
53318 for compatibility with FreeBSD.
53319 Clone only the user name, not the entire spec.
53320 Do not set *uid, *gid unless entirely successful.
53321 Avoid memory leak in some failing cases.
53322 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53323 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53324 (parse_user_spec): Rewrite to use parse_with_separator.
53326 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53328 * modules/userspec: Don't depend on alloca.
53330 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53332 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53334 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53336 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53337 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53338 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53340 2004-08-16 Simon Josefsson <jas@extundo.com>
53342 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53343 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53344 Add --dry-run for --import.
53345 Let user provided command line parameters override configure.ac
53348 2004-08-12 Simon Josefsson <jas@extundo.com>
53350 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53351 as discussed with Paul Eggert in threads rooted at
53352 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53354 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53355 Before, the test was empty, and relied on ELIDE_CODE in source
53357 (gl_PREREQ_GETOPT): New macro.
53358 (gl_GETOPT): Use them.
53360 2004-08-12 Simon Josefsson <jas@extundo.com>
53362 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53363 * lib/getopt_.h: Renamed from getopt.h.
53365 2004-08-12 Simon Josefsson <jas@extundo.com>
53367 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53368 Change default library name from libfoo to libgnu.
53369 Now, if you have a configure.ac that says:
53372 gl_MODULES(error getopt etcetera)
53374 you can import all you need by running:
53375 ../gnulib/gnulib-tool --import
53377 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53378 (Makefile.am): Rewrite, use logic from argz.
53379 (Include): Use <getopt.h> instead of "getopt.h".
53381 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53383 * modules/argp (Files): Add m4/unlocked-io.m4.
53384 (Depends-on): Add extensions.
53386 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53388 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53389 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53390 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53391 Check for program_invocation_name, program_invocation_short_name,
53392 flockfile, funlockfile, features.h, _getopt_long_only_r.
53394 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53396 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53397 its complicated substitute.
53398 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53399 and program_invocation_name.
53400 (__argp_basename) [!_LIBC]: Remove; the only use was
53401 replaced by its body.
53402 (__argp_short_program_name): Change condition from
53403 !defined __argp_short_program_name to
53404 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53405 to match argp-namefrob.h.
53406 (__argp_failure): Don't assume strerror_r returns char *.
53407 * lib/argp-parse.c (N_): Define unconditionally.
53408 (argp_default_options): Fill out initializers with 0 to avoid
53411 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53413 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53416 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53418 Merge from coreutils.
53420 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53422 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53423 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53425 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53427 Merge from coreutils.
53429 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53430 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53431 for Reliant Unix 5.43.
53433 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53434 (union fooround): Use uintmax_t, not long int.
53435 The rest is a merge from libc:
53436 [defined _LIBC]: Include <shlib-compat.h>.
53437 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53439 * lib/settime.c (settime): Recode to avoid warning with
53442 * lib/strverscmp.c: Convert to UTF-8.
53444 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53446 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53449 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53451 * modules/xalloc-die: New file.
53452 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53454 * modules/md5 (Files): Add m4/uint32_t.m4.
53455 * modules/sha1: Renamed from modules/sha.
53457 Rename lib/sha.h to lib/sha1.h.
53458 Rename lib/sha.c to lib/sha1.c.
53459 Rename m4/sha.m4 to m4/sha1.m4.
53460 (lib_SOURCES): Likewise.
53461 (configure.ac): Rename gl_SHA to gl_SHA1.
53462 (Include): sha.h -> sha1.h.
53464 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53466 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53467 * m4/sha1.m4: Renamed from sha.m4.
53468 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53470 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53472 * lib/obstack.h (obstack_empty_p):
53473 Don't assume that chunk->contents is suitably aligned.
53474 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53475 Likewise. Problem reported by Benno in
53476 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53478 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53479 readable. This could be improved further but it'd take some work.
53481 2004-08-08 Simon Josefsson <jas@extundo.com>
53483 * modules/xgethostname (Depends-on): Remove exit and error (not
53486 * modules/getpass-gnu: Add getpass.h.
53487 (Depends-on): Add stdbool.
53488 * modules/getpass: Add getpass.h.
53490 2004-08-08 Simon Josefsson <jas@extundo.com>
53492 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53493 Check getpass declaration.
53495 2004-08-08 Simon Josefsson <jas@extundo.com>
53497 * lib/xgethostname.c: Don't include error.h (not used).
53499 * lib/getpass.h: Add.
53500 * lib/getpass.c: Include getpass.h first.
53502 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53504 * lib/xalloc-die.c: New file.
53505 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53507 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53508 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53510 (_, N_, xalloc_die): Move to xalloc-die.c.
53511 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53512 so that we needn't mess with xalloc_msg_memory_exhausted.
53514 * lib/sha1.h: Renamed from sha.h.
53515 (SHA1_H): Renamed from _SHA_H.
53516 (sha1_ctx): Renamed from sha_ctx.
53517 (sha1_init_ctx): Renamed from sha_init_ctx.
53518 (sha1_process_block): Renamed from sha_process_block.
53519 (sha1_process_bytes): Renamed from sha_process_bytes.
53520 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53521 (sha1_read_ctx): Renamed from sha_read_ctx.
53522 (sha1_stream): Renamed from sha_stream.
53523 (sha1_buffer): Renamed from sha_buffer.
53524 * lib/sha1.c: Likewise; renamed from sha.c.
53525 Do not include <sys/types.h>.
53526 Include <stddef.h> rather than <stdlib.h>.
53528 2004-08-08 Bruno Haible <bruno@clisp.org>
53530 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53531 FILESYSTEM_PREFIX_LEN.
53532 * lib/progreloc.c: Likewise.
53533 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53535 2004-08-06 Simon Josefsson <jas@extundo.com>
53537 * modules/progname (Depends-on): Don't depend on stdbool.
53539 2004-08-06 Simon Josefsson <jas@extundo.com>
53541 * modules/getsubopt: New file.
53542 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53545 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53547 More merge from coreutils.
53549 * m4/utimens.m4, m4/utimecmp.m4: New files.
53550 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53551 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53552 prereq.m4, sha.m4: Import changes from coreutils.
53554 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53556 More merge from coreutils.
53557 * modules/raise, modules/readtokens0, modules/utimens:
53558 * modules/utimecmp, module/xnanosleep: New files.
53559 * modules/strftime: Add lib/strftime.h.
53560 Change include from <time.h> to "strftime.h".
53561 * modules/yesno: Add lib/yesno.h.
53562 * modules/backupfile: Remove lib/addext.c.
53563 * modules/euidaccess: Add stat-macros.h.
53564 * modules/canonicalize, modules/euidaccess,
53565 modules/filemode, modules/lchown, modules/makepath,
53566 modules/rmdir, modules/stat: Likewise.
53568 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53571 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53572 SIZE_MAX is a valid preprocessor constant.
53573 (__argp_basename): Change from "#ifndef _LIBC"
53574 to "#ifndef __argp_short_program_name", so that
53575 we don't compile these functions for tar.
53577 More merges from coreutils.
53578 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53579 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53580 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53581 * lib/addext.c: Remove; no longer needed.
53582 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53583 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53584 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53585 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53586 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53587 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53588 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53589 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53590 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53591 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53592 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53593 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53594 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53595 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53596 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53597 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53598 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53599 Import changes from coreutils.
53601 2004-08-05 Simon Josefsson <jas@extundo.com>
53603 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53605 2004-08-05 Simon Josefsson <jas@extundo.com>
53607 * m4/getsubopt.m4: New file.
53609 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53611 Merge from coreutils.
53613 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53614 * m4/getcwd-path-max.m4: New files.
53616 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53617 FILESYSTEM_PREFIX_LEN ->
53618 FILE_SYSTEM_PREFIX_LEN.
53619 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53620 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53621 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53622 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53624 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53625 prerequisite modules now handle the DOS stuff.
53626 Don't check for unistd.h.
53628 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53630 Merge from coreutils.
53632 * lib/.gdb-history: Remove; this doesn't belong here.
53634 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53635 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53636 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53637 * lib/getcwd.c: New files.
53639 * lib/dirname.h: Include <stdbool.h>.
53640 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53641 for consistency with POSIX terminology. All uses changed.
53642 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53643 (strip_trailing_slashes): Use bool for booleans.
53644 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53646 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53647 sometimes returns a positive errno value even when it succeeds.
53648 (print_errno_message) [!LIBC]: Fall back on strerror if
53649 __strerror_r fails.
53651 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53652 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53653 (longest_relative_suffix): New function.
53654 (path_concat): Use it. Assume first argument is not NULL.
53655 Port to DOS. Omit redundant separators.
53656 Report an error instead of returning NULL.
53657 Use mempcpy instead of memcpy.
53658 (xpath_concat): Remove: not declared or used.
53660 * lib/same.h: Include <stdbool.h>
53661 (same_name): Return bool, not int.
53662 * lib/same.c (same_name): Likewise.
53663 (errno): Don't declare; we assume C89 or better now.
53665 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53666 if not already defined.
53668 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53669 * lib/dup-safer.c (errno): Likewise.
53671 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53673 Merge from coreutils.
53674 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53675 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53676 * modules/path-concat: Don't depend on strdup.
53678 2004-08-03 Simon Josefsson <jas@extundo.com>
53680 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53681 * lib/progname.h: Don't include stdbool.h.
53683 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53685 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53686 * MODULES.html.sh (func_all_modules): Remove fatal.
53688 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53690 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53692 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53694 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53697 2004-08-02 Simon Josefsson <jas@extundo.com>
53699 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53700 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53701 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53703 2004-08-01 Simon Josefsson <jas@extundo.com>
53705 * lib/xgetdomainname.c: Include stdlib.h, for free().
53707 2004-07-19 Bruno Haible <bruno@clisp.org>
53709 * MODULES.html.sh (func_all_modules): Add dummy.
53711 2004-07-16 Simon Josefsson <jas@extundo.com>
53713 * modules/dummy: New file.
53715 2004-07-16 Simon Josefsson <jas@extundo.com>
53717 * lib/dummy.c: New file.
53719 2004-07-16 Bruno Haible <bruno@clisp.org>
53721 * lib/backupfile.h: Add extern "C" for C++.
53722 * lib/closeout.h: Likewise.
53723 * lib/copy-file.h: Likewise.
53724 * lib/findprog.h: Likewise.
53725 * lib/full-write.h: Likewise.
53726 * lib/pathname.h: Likewise.
53727 * lib/progname.h: Likewise.
53728 * lib/stpcpy.h: Likewise.
53729 * lib/stpncpy.h: Likewise.
53730 * lib/strcase.h: Likewise.
53731 * lib/strstr.h: Likewise.
53732 * lib/xalloc.h: Likewise.
53734 * lib/mbswidth.h: Add extern "C" for C++.
53735 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53737 2004-07-13 Robert Millan <robertmh@gnu.org>
53739 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53741 2004-07-09 Simon Josefsson <jas@extundo.com>
53743 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53744 failed without this.)
53746 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53748 * modules/chown (Files): Add lib/fchown-stub.c, since
53749 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53751 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53753 * lib/fchown-stub.c: New file.
53755 2004-06-24 Jim Meyering <jim@meyering.net>
53757 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53759 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53761 * modules/argz: Omit "#include".
53763 * MODULES.html.sh (func_all_modules): Add calloc, to match
53764 2004-06-01 addition of calloc module.
53766 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53768 * m4/argz.m4: New file, which is autoupdated from libtool.
53770 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53772 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53775 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53777 * config/srclist-update: Don't insist on "USA." before the
53778 close-comment, as libtool omits the period and puts the */ on a
53780 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53781 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53783 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53785 * modules/argz: New file.
53786 * MODULES.html.sh (func_all_modules): Add argz.
53788 2004-06-12 Jim Meyering <jim@meyering.net>
53789 and Paul Eggert <eggert@cs.ucla.edu>
53791 * modules/hash (Files): Add lib/xalloc.h.
53792 * modules/pipe (Depends-on): Add wait-process.
53793 * modules/stat (Depends-on): Add xalloc.
53794 * modules/userspec (Files): Add lib/userspec.h.
53797 Upgrade from gettext-0.13.
53798 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53799 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53800 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53802 2004-06-10 Jim Meyering <jim@meyering.net>
53804 * lib/calloc.c: New file.
53806 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53808 * lib/getdate.y (yylex): Allow space between sign and number.
53809 Problem reported by Dan Jacobson.
53811 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53813 Merge from coreutils CVS.
53815 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53816 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53817 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53818 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53819 xstrtol.m4: Fix copyright date and/or serial number.
53821 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53822 See if we need an fchown replacement.
53823 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53824 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53825 and use the replacement function if we detect either defect.
53827 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53830 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53831 and Jim Meyering <jim@meyering.net>
53833 Merge from coreutils CVS.
53835 * lib/stat-macros.h: New file, with contents from file-type.h
53836 and coreutils' system.h.
53837 * lib/file-type.c: Include "stat-macros.h".
53838 * lib/file-type.h (file_type): Move all macro definitions to new file,
53841 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53842 Wrap old code with this conditional.
53843 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53844 function that does not dereference symlinks.
53845 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53847 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53848 dependency problems.
53849 (xreadlink): Accept new arg SIZE, for efficiency.
53850 All decls and uses changed.
53851 * lib/xreadlink.h: Include <stddef.h>, for size_t.
53853 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53854 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53856 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53859 2004-06-01 Jim Meyering <jim@meyering.net>
53861 * m4/calloc.m4: New file.
53863 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
53865 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53866 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
53867 Also, fix a typo in a diagnostic.
53869 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53871 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53872 or AC_FUNC_REALLOC.
53874 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53876 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53877 macros to be defined.
53878 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53879 the allocator returns NULL because the requested size is zero.
53881 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
53883 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53884 var. Add comment explaining why libc still defines it. This
53885 merges the following patch from glibc:
53886 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53888 2004-05-20 Andreas Schwab <schwab@suse.de>
53890 * m4/free.m4: Replace free if it not known to work, not the other
53893 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
53895 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
53896 present in glibc since revision 1.1 of this file.
53897 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53898 obstack_alignment_mask, obstack_alloc, obstack_base,
53899 obstack_blank, obstack_blank_fast, obstack_chunk_size,
53900 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53901 obstack_grow0, obstack_init, obstack_int_grow,
53902 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53903 obstack_next_free, obstack_object_size, obstack_ptr_grow,
53904 obstack_ptr_grow_fast, obstack_room): Remove declarations of
53905 nonexistent functions.
53907 2004-05-18 Karl Berry <karl@gnu.org>
53909 * config/srclist.txt: break link for vasnprintf.c.
53911 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53913 Port obstack to the AS/400, where pointers are 16 bytes wide and
53914 you cannot cast an integer to a valid pointer. This patch is
53915 currently waiting to be integrated into glibc; see
53916 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53918 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53919 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53920 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53921 (struct obstack): temp member is now a union of a pointer and
53922 an integer, instead of an integer. All integer uses changed.
53923 This does not affect the physical layout of struct obstack,
53924 except on hosts (like the AS/400) where the size or alignment of
53925 void * is greater than that of ptrdiff_t.
53926 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53927 __STDC__)]: Store temporary in pointer member of union, not
53929 * lib/obstack.c: Include <stddef.h>, for offsetof.
53930 (struct fooalign): Remove; it doesn't need a name.
53931 (union fooround): Change double to long double, and add void *.
53932 (DEFAULT_ALIGNMENT): Use offsetof to compute.
53933 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53934 not a macro. Hence the values are always int; so remove all
53935 casts-to-int in uses.
53937 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53939 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53940 we can get this patch merged into glibc.
53942 2004-05-17 Derek R. Price <derek@ximbiot.com>
53943 Paul Eggert <eggert@cs.ucla.edu>
53945 * m4/argp: Depend on alloca.
53947 2004-05-17 Derek R. Price <derek@ximbiot.com>
53948 Paul Eggert <eggert@cs.ucla.edu>
53950 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53953 2004-05-17 Bruno Haible <bruno@clisp.org>
53955 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53956 precision that consists of a '.' followed by an empty digit string.
53957 Patch by Tor Lillqvist <tml@iki.fi>.
53959 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53961 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53962 for backward compatibility with older code. We need our own
53963 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
53964 it under some other name, and our alloca.h will define it.
53966 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53967 Derek Price <derek@ximbiot.com>
53969 * lib/alloca.c: Include <alloca.h>, to get our interface.
53970 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53971 include <alloca.h> first. Use C89 prototype for alloca; this
53972 requires including <stddef.h> for size_t. Use extern "C" if C++.
53973 Use #elif for simplicity, since we can assume C89 now.
53974 Don't try to source the system alloca.h since it will not be found
53975 and to prevent recursively including its replacement.
53976 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53977 * lib/regex.c: Likewise.
53979 2004-05-16 Derek Price <derek@ximbiot.com>
53980 Paul Eggert <eggert@cs.ucla.edu>
53982 getline cleanup. This changes the getndelim2 API: both order of
53983 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53986 * lib/getline.c: Don't include stddef.h or stdio.h, since our
53987 interface does that.
53988 (getline): Always use getdelim, so that we don't have two
53989 copies of this code.
53990 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53992 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53993 (GETNDELIM2_MAXIMUM): New macro.
53994 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
53995 instead of the old practice of delim2==0. All callers changed.
53996 Return -1 on overflow, instead of returning junk.
53997 Do not set *linesize unless allocation succeeds.
53998 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53999 that we include sys/types.h.
54000 * lib/getnline.h: Likewise.
54001 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54002 (getndelim2): Reorder arguments.
54003 * lib/getnline.c (getnline, getndelim):
54004 Don't discard the NMAX argument.
54005 (getnline): Invoke getndelim, to avoid code duplication.
54006 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54007 of (size_t) -1 by callers of the getnline family.
54009 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54011 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54012 Check for gettimeofday.
54013 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54014 Check for settimeofday, stime.
54016 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54018 * lib/nanosleep.c (suspended): Change its type from int to
54019 sig_atomic_t volatile.
54020 (first_call): Make it private to rpl_nanosleep, and have it
54021 be zero initially as that's a bit faster.
54022 (my_usleep): Round up fractional times instead of truncating them,
54023 as this is the usual meaning for 'sleep'.
54025 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54027 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54028 (ENOSYS): Define if not defined.
54029 (settime): Fall back on stime if it exists and settimeofday fails.
54030 But don't bother with fallbacks if a method fails with errno == EPERM.
54032 2004-05-11 Jim Meyering <jim@meyering.net>
54034 Prior to this change, the save_cwd caller required read access to the
54035 current directory on most systems (ones with the fchdir function).
54037 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54038 fails, try write-only, and finally, resort to using xgetcwd.
54040 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54042 * lib/obstack.c, obstack.h: Import changes from libc.
54044 2004-04-28 Bruno Haible <bruno@clisp.org>
54046 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54047 also implicitly appends .exe to executables.
54048 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54049 accepts Windows pathnames.
54050 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54051 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54052 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54053 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54054 Reported by Derek Robert Price <derek@ximbiot.com>.
54056 2004-04-21 Karl Berry <karl@gnu.org>
54058 * config/srclist.txt (localcharset.c): break sync.
54060 2004-04-20 Paul Eggert <eggert@twinsun.com>
54062 * m4/host-os.m4: Add a copyright notice.
54064 2004-04-20 Jim Meyering <jim@meyering.net>
54066 Change UTILS_ to gl_ in AC_DEFINE'd names.
54067 Change utils_- and jm_-prefixed variables, too.
54068 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54069 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54070 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54072 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54073 Don't emit trailing blanks.
54074 Also rename jm_-prefixed variables to have gl_ prefix.
54076 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54077 Also rename jm_-prefixed variables to have gl_ prefix.
54079 * m4/jm-macros.m4: Reflect the renamings.
54080 * m4/prereq.m4: Likewise.
54082 2004-04-20 Jim Meyering <jim@meyering.net>
54084 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54087 2004-04-20 Jim Meyering <jim@meyering.net>
54088 Bruno Haible <bruno@clisp.org>
54090 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54091 memory when realloc fails.
54093 2004-04-19 Jim Meyering <jim@meyering.net>
54095 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54096 now that readutmp.c may call `free (0)'.
54098 2004-04-19 Bruno Haible <bruno@clisp.org>
54100 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54101 * m4/inttypes_h.m4: Likewise.
54102 * m4/stdint_h.m4: Likewise.
54103 * m4/intmax_t.m4: Likewise.
54104 * m4/uintmax_t.m4: Likewise.
54106 2004-04-18 Jim Meyering <jim@meyering.net>
54108 * m4/prereq.m4: Don't forbid jm_ prefix.
54110 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54111 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54112 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54113 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54114 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54115 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54116 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54117 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54118 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54119 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54120 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54121 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54122 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54123 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54124 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54125 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54126 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54127 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54128 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54130 2004-04-18 Jim Meyering <jim@meyering.net>
54132 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54133 failure, don't leak memory and do call END_UTMP_ENT.
54135 2004-04-16 Jim Meyering <jim@meyering.net>
54137 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54138 coreutils' stat program.
54139 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54141 2004-04-11 Paul Eggert <eggert@twinsun.com>
54143 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54145 (CHAR_BIT): Remove, since we assume C89.
54146 Include <stdint.h> if available, as per current Autoconf CVS advice.
54148 2004-03-31 Jim Meyering <jim@meyering.net>
54150 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54151 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54152 * m4/xalloc.m4: Likewise.
54154 2004-03-30 Paul Eggert <eggert@twinsun.com>
54156 Merge from coreutils.
54158 * m4/inttostr.m4: New file.
54159 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54160 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54161 Require gl_CLOCK_TIME.
54162 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54164 2004-03-30 Paul Eggert <eggert@twinsun.com>
54166 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54167 not bool, to be more consistent with Unix conventions.
54168 Suggested by Bruno Haible.
54170 Merge from coreutils.
54172 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54173 * lib/umaxtostr.c: New files.
54175 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54176 the usual <time.h> dance.
54177 (get_date): Change signature to support fractional time stamps.
54178 All callers changed.
54179 * lib/getdate.y: Include "getdate.h" first, as we can now
54180 assume C89 and don't need to worry about 'const'.
54181 Similarly, include "unlocked-io.h" near start, not in middle.
54182 Include <limits.h>.
54183 (textint.value): Use long int rather than int.
54184 (textint.digits): Use size_t rather than int.
54185 (BILLION, LOG10_BILLION): New constants.
54186 (parser_control): New member rel_ns. Members day_ordinal,
54187 time_zone, month, day, hour, minutes, rel_year, rel_month,
54188 rel_day, rel_hour, rel_minutes, rel_seconds
54189 are now long int, not int. Member seconds is now struct timespec,
54190 not int. New member timespec_seen. Members dates_seen, days_seen,
54191 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54193 (%union.intval): Now long int, not int.
54194 New member timespec.
54195 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54196 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54197 (spec): Now is a timespec or an item list.
54198 (timespec, items): New nonterminals.
54199 (time, rel, relunit, number, get_date):
54200 Add support for fractional seconds.
54201 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54202 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54203 (to_hour): First arg is now long int, not int.
54204 (to_year): Returns long int, not int.
54205 Don't treat year -70 like 70.
54206 (tm_diff): Returns long int, not int.
54207 (lookup_word): Use bool instead of int when appropriate.
54208 (yylex): Use size_t for count, not int.
54209 Detect overflow when parsing large integer constants.
54210 Add support for fractions.
54211 (get_date): Make pointers 'const' if possible.
54212 Use more-portable code to detect integer overflow.
54213 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54214 Don't use ctime; it's not reliable if the year has >4 digits.
54216 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54217 This is for compatibility with BSD.
54219 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54220 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54221 From coreutils' system.h.
54223 * lib/userspec.c: Don't include "posixver.h".
54224 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54225 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54226 compatible extension. Simplify code by removing a boolean int
54227 that was always nonzero if a string was nonnull.
54229 2004-03-30 Jim Meyering <jim@meyering.net>
54231 Merge from coreutils.
54233 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54234 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54235 on some systems one must include <grp.h> before it.
54236 Reported by Christian Krackowizer.
54238 2004-03-30 Jim Meyering <jim@meyering.net>
54240 Merge from coreutils.
54242 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54244 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54245 an empty input stream.
54247 * lib/readtokens.c: Include <stdbool.h>.
54248 (readtoken): Use `size_t' rather than int/long.
54249 All callers adjusted.
54250 Use `bool' rather than `int' where appropriate.
54251 Use memset rather than an explicit loop.
54252 Use x2nrealloc rather than xrealloc.
54253 Allow the use of `\0' as a delimiter.
54254 (readtokens): Likewise.
54255 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54257 2004-03-30 Jim Meyering <jim@meyering.net>
54259 * m4/realloc.m4: Remove file, since now it does no more than
54260 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54261 the `configure.ac' section of module/realloc.
54262 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54264 2004-03-30 Bruno Haible <bruno@clisp.org>
54266 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54269 2004-03-29 Paul Eggert <eggert@twinsun.com>
54271 Merge changes to getloadavg.c from coreutils and Emacs.
54273 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54274 Define to an expression, not to the empty string.
54275 Include cloexec.h and xalloc.h.
54276 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54277 Use set_cloexec_flag rather than rolling our own.
54278 * lib/cloexec.c, lib/cloexec.h: New files.
54280 2004-03-29 Paul Eggert <eggert@twinsun.com>
54282 * m4/cloexec.m4: New file.
54284 2004-03-18 Paul Eggert <eggert@twinsun.com>
54286 * lib/getopt.h: Sync with libc CVS.
54288 2004-03-18 Paul Eggert <eggert@twinsun.com>
54289 Bruno Haible <bruno@clisp.org>
54291 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54294 2004-03-18 Paul Eggert <eggert@twinsun.com>
54295 Bruno Haible <bruno@clisp.org>
54297 * lib/mbswidth.h: Include <wchar.h> only if
54298 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54300 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54302 2004-03-09 Paul Eggert <eggert@twinsun.com>
54304 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54305 Sync with libc CVS.
54306 * lib/getopt_int.h: New file, also synced from libc.
54308 2004-03-09 Paul Eggert <eggert@twinsun.com>
54310 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54311 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54312 Bring back getopt.c, getopt.h, getopt1.c.
54314 2004-03-07 Paul Eggert <eggert@twinsun.com>
54316 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54317 All uses changed. Check for sa_sigaction member; this fixes
54318 a bug first reported by Jason Andrade in
54319 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54321 2004-03-07 Paul Eggert <eggert@twinsun.com>
54323 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54324 '#if' expressions. Unlike the code it replaces, it does not
54325 depend on (defined _SC_PAGESIZE). However, it does depend on
54326 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54327 first reported by Jason Andrade in
54328 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54330 2004-02-25 Simon Josefsson <jas@extundo.com>
54332 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54334 2004-02-25 Simon Josefsson <jas@extundo.com>
54336 * lib/strdup.h: New file.
54337 * lib/strdup.c: Include it.
54338 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54339 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54341 2004-02-23 Karl Berry <karl@gnu.org>
54343 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54344 (from fencepost.gnu.org:/gd/gnuorg).
54346 2004-02-23 Karl Berry <karl@gnu.org>
54348 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54349 * config/srclist.txt: add maintain/standards documents.
54351 2004-02-18 Bruno Haible <bruno@clisp.org>
54353 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54354 Reported by Derek Robert Price <derek@ximbiot.com>.
54356 2004-02-16 Karl Berry <karl@gnu.org>
54358 * config/mkinstalldirs, install-sh: update from automake.
54360 2004-02-06 Karl Berry <karl@gnu.org>
54362 * m4/po.m4: update from gettext 0.14.1.
54364 2004-02-06 Karl Berry <karl@gnu.org>
54366 * lib/config.charset: update from gettext 0.14.1.
54368 2004-02-05 Paul Eggert <eggert@twinsun.com>
54370 Add comments and code, prompted by suggestions from Bruno Haible
54372 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54373 describing the enum quoting_style values.
54374 * lib/quotearg.c (quotearg_alloc): New function.
54375 (quotearg_buffer_restyled): Treat lone { and } as special.
54376 Treat = as special. Work around bug with older shells
54377 that "see" a '\' that is really the 2nd byte of a multibyte char.
54378 Quote empty string with shell_quoting_style.
54380 2004-02-03 Bruno Haible <bruno@clisp.org>
54382 * m4/pipe.m4: New file, from GNU gettext.
54384 2004-02-03 Bruno Haible <bruno@clisp.org>
54386 * lib/pipe.h: New file, from GNU gettext.
54387 * lib/pipe.c: New file, from GNU gettext.
54389 2004-01-27 Bruno Haible <bruno@clisp.org>
54391 * m4/execute.m4: New file, from GNU gettext.
54393 2004-01-27 Bruno Haible <bruno@clisp.org>
54395 * lib/execute.h: New file, from GNU gettext.
54396 * lib/execute.c: New file, from GNU gettext.
54397 * lib/w32spawn.h: New file, from GNU gettext.
54399 2004-01-24 Paul Eggert <eggert@twinsun.com>
54401 Merge from diffutils.
54403 * lib/file-type.c (file_type): Add typed memory objects.
54404 * lib/file-type.h (S_TYPEISTMO): New macro.
54406 * lib/c-stack.h (c_stack_action): Remove argv argument.
54407 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54408 (die): Don't calculate message unless segv_action returns.
54409 (get_stack_location, min_address_from_argv, max_address_from_argv,
54410 volatile stack_base, volatile_stack_size): Remove.
54411 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54412 that every segmentation violation is a stack overflow. (Ouch!)
54413 See Debian bug 136249 (still outstanding) for more info about why
54414 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54416 2004-01-24 Paul Eggert <eggert@twinsun.com>
54418 Exit-status fix from coreutils.
54420 Use exit_failure consistently in place of EXIT_FAILURE,
54421 so that program exit statuses are consistent on failure.
54423 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54424 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54425 * lib/argmatch.h: Comment fix to match the above.
54426 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54427 Now a macro referring to exit_failure, instead of a separate
54428 variable. Include "exitfail.h" to get it.
54429 * lib/xstrtol.h: Include "exitfail.h".
54430 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54432 * lib/long-options.c (parse_long_options): Use prototype
54433 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54436 2004-01-21 Jim Meyering <jim@meyering.net>
54438 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54439 so as not to conflict with a different-sized __mktime_internal
54440 function in GNU libc.
54441 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54442 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54444 2004-01-20 Karl Berry <karl@gnu.org>
54446 * config/config.guess: update from config.
54448 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54450 2004-01-20 Bruno Haible <bruno@clisp.org>
54452 Safer stack allocation.
54453 * lib/setenv.c: Include allocsa.h.
54454 (alloca): Remove fallback definition.
54455 (freea): Remove macro.
54456 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54459 2004-01-20 Bruno Haible <bruno@clisp.org>
54461 * m4/eealloc.m4: New file, from GNU gettext.
54463 2004-01-20 Bruno Haible <bruno@clisp.org>
54465 * m4/allocsa.m4: New file, from GNU gettext.
54467 2004-01-20 Bruno Haible <bruno@clisp.org>
54469 * lib/xallocsa.h: New file, from GNU gettext.
54470 * lib/xallocsa.c: New file, from GNU gettext.
54472 2004-01-20 Bruno Haible <bruno@clisp.org>
54474 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54476 2004-01-20 Bruno Haible <bruno@clisp.org>
54478 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54479 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54482 2004-01-20 Bruno Haible <bruno@clisp.org>
54484 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54487 2004-01-20 Bruno Haible <bruno@clisp.org>
54489 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54491 2004-01-20 Bruno Haible <bruno@clisp.org>
54493 * lib/eealloc.h: New file.
54495 2004-01-20 Bruno Haible <bruno@clisp.org>
54497 * lib/binary-io.h: Avoid warnings on Cygwin.
54499 2004-01-20 Bruno Haible <bruno@clisp.org>
54501 * lib/allocsa.h: New file, from GNU gettext.
54502 * lib/allocsa.c: New file, from GNU gettext.
54504 2004-01-18 Karl Berry <karl@gnu.org>
54506 * doc/gpl.texi, doc/lgpl.texi: new files.
54508 2004-01-18 Karl Berry <karl@gnu.org>
54510 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54511 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54513 2004-01-15 Paul Eggert <eggert@twinsun.com>
54515 Merge from coreutils.
54517 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54518 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54519 (gl_DEFAULT_POSIX2_VERSION): Move
54520 the documentation from 'configure' into 'config.hin',
54521 so that 'configure --help' isn't burdened by it and
54522 we don't have to worry about its formatting there.
54523 Reword the documentation so that it's more succinct
54524 and can be run together into a single paragraph.
54525 * m4/same.m4 (gl_SAME): Check for pathconf.
54527 2004-01-15 Paul Eggert <eggert@twinsun.com>
54529 Merge from coreutils.
54531 * lib/posixver.c: Include posixver.h.
54533 * lib/same.c: Include <stdbool.h>, <limits.h>.
54534 (_POSIX_NAME_MAX): Define if not defined.
54536 (same_name): If file names are silently truncated, report
54537 that the file names are the same if they are the same after
54538 the silent truncation.
54540 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54541 conversion function.
54542 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54543 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54546 2004-01-15 Jim Meyering <jim@meyering.net>
54548 Merge from coreutils.
54550 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54551 if no library is required.
54552 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54553 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54554 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54555 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54556 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54557 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54558 value, $ac_cv_search_crypt, if it's "none required".
54559 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54560 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54561 not gl_FUNC_GETLOADAVG.
54562 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54563 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54565 2004-01-15 Jim Meyering <jim@meyering.net>
54567 Merge from coreutils.
54569 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54570 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54571 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54573 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54574 optional configure-time default.
54576 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54578 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54580 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54582 Merge from coreutils.
54584 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54585 value, $ac_cv_search_nanosleep, if it's "none required".
54587 2004-01-14 Paul Eggert <eggert@twinsun.com>
54589 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54590 with like-named macro in fnmatch.c.
54591 (EXT): Use an internal constant instead.
54593 Merge fnmatch patches from glibc.
54594 * lib/fnmatch.c (mbsinit): Remove define.
54595 Add libc_hidden_ver (__fnmatch, fnmatch).
54596 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54597 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54599 2004-01-14 Karl Berry <karl@gnu.org>
54601 * config/install-sh: update from automake.
54603 2004-01-13 Karl Berry <karl@gnu.org>
54605 * config/install-sh: update from automake.
54607 2004-01-09 Karl Berry <karl@gnu.org>
54609 * config/install-sh: update from automake.
54611 2004-01-05 Karl Berry <karl@gnu.org>
54613 * config/config.{sub,guess}: update from config.
54615 2003-12-31 Karl Berry <karl@gnu.org>
54617 * config/depcomp: update from automake.
54619 2003-12-14 Karl Berry <karl@gnu.org>
54621 * lib/config.charset: update from gettext-runtime.
54623 2003-12-03 Paul Eggert <eggert@twinsun.com>
54625 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54626 Bug reported by Alfred M. Szmidt.
54628 2003-12-03 Bruno Haible <bruno@clisp.org>
54630 * m4/gettext.m4: Upgrade from gettext-0.13.
54631 * m4/po.m4: Upgrade from gettext-0.13.
54632 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54633 * m4/intmax.m4: New file, from gettext-0.13.
54634 * m4/printf-posix.m4: New file, from gettext-0.13.
54636 2003-11-29 Karl Berry <karl@gnu.org>
54638 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54640 2003-11-25 Paul Eggert <eggert@twinsun.com>
54641 Bruno Haible <bruno@clisp.org>
54643 * lib/printf-parse.h: Don't include sys/types.h.
54644 (ARG_NONE): New macro.
54645 (char_directive): Change type of *arg_index fields to size_t.
54646 * lib/printf-parse.c: Don't include sys/types.h.
54647 (SSIZE_MAX): Remove macro.
54648 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54649 Remove unnecessary overflow check.
54650 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54653 2003-11-25 Bruno Haible <bruno@clisp.org>
54655 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54657 2003-11-25 Bruno Haible <bruno@clisp.org>
54659 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54662 2003-11-24 Paul Eggert <eggert@twinsun.com>
54664 * modules/alloca: Remove dependency on xalloc.
54666 2003-11-24 Paul Eggert <eggert@twinsun.com>
54668 * lib/alloca.c: Remove dependency on xalloc module.
54669 (xalloc_die): Remove.
54670 (memory_full) [!defined emacs]: New macro.
54671 [!defined emacs]: Don't include xalloc.h.
54672 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54673 address arithmetic overflows. Change datatypes a bit to avoid
54676 2003-11-22 Jim Meyering <jim@meyering.net>
54678 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54681 2003-11-21 Karl Berry <karl@gnu.org>
54683 * config/config.{sub,guess}: update from config.
54685 2003-11-18 Karl Berry <karl@gnu.org>
54687 * config/config.{sub,guess}: update from config.
54689 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54691 2003-11-17 Paul Eggert <eggert@twinsun.com>
54693 * README: Mention that S+T cannot overflow if S is the size of
54694 an existing object and T is sufficiently small.
54696 2003-11-17 Jim Meyering <jim@meyering.net>
54698 On systems without utime and without a utimes function capable of
54699 dealing with a NULL struct utimbuf* argument, this utime replacement
54700 could -- in unusual circumstances -- leak a file descriptor.
54701 * lib/utime.c: Include <unistd.h> and <errno.h>.
54702 (utime_null): Be sure to close `fd' and to preserve errno.
54703 Reported by Geoff Collyer via Arnold Robbins.
54705 2003-11-17 Bruno Haible <bruno@clisp.org>
54707 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54708 (Depends-on): Add xsize.
54710 2003-11-17 Bruno Haible <bruno@clisp.org>
54712 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54714 2003-11-17 Bruno Haible <bruno@clisp.org>
54716 * lib/vasnprintf.c (alloca): Remove fallback definition.
54717 (freea): Remove definition.
54718 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54719 Reported by Paul Eggert.
54721 2003-11-16 Paul Eggert <eggert@twinsun.com>
54722 Bruno Haible <bruno@clisp.org>
54724 Protect against address arithmetic overflow.
54725 * lib/printf-args.h: Include stddef.h.
54726 (arguments): Change type of field 'count' to size_t.
54727 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54728 'unsigned int' where appropriate.
54729 * lib/printf-parse.h: Include sys/types.h.
54730 (char_directive): Change type of *arg_index fields to ssize_t.
54731 (char_directives): Change type of fields 'count', max_*_length to
54733 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54734 (SSIZE_MAX): Define fallback value.
54735 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54736 instead of 'int' where appropriate. Check a_allocated, d_allocated
54737 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54738 * lib/vasnprintf.c: Include xsize.h.
54739 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54740 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54741 overflow. Avoid wraparound when converting a width or precision from
54744 2003-11-16 Bruno Haible <bruno@clisp.org>
54746 Update from GNU gettext.
54747 * lib/printf-parse.c: Generalize to it can be compiled for wide
54749 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54750 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54751 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54752 SNPRINTF): New macros.
54753 Don't include <alloca.h> if the file is used inside libintl.
54754 (local_wcslen): New function, for Solaris 2.5.1.
54755 (VASNPRINTF): Use it instead of wcslen.
54757 2003-11-16 Bruno Haible <bruno@clisp.org>
54759 * lib/xsize.h (xmax): New function.
54760 (xsum, xsum3, xsum4): Declare as "pure" functions.
54762 2003-11-12 Paul Eggert <eggert@twinsun.com>
54764 * modules/xalloc (Files): Undo latest change, since xalloc.h
54765 no longer needs SIZE_MAX or PTRDIFF_MAX.
54767 2003-11-12 Paul Eggert <eggert@twinsun.com>
54769 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54772 2003-11-12 Paul Eggert <eggert@twinsun.com>
54774 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54775 "return", to pacify some unknown compiler. Problem reported
54776 by Joerg Schilling.
54778 2003-11-12 Paul Eggert <eggert@twinsun.com>
54780 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54781 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54782 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54783 heuristic is just as accurate as far as we know, and it removes a
54784 dependency on size_max.m4 and ptrdiff_max.m4.
54786 2003-11-11 Bruno Haible <bruno@clisp.org>
54788 * modules/xsize (Files): Add m4/size_max.m4.
54789 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54791 2003-11-11 Bruno Haible <bruno@clisp.org>
54793 * m4/size_max.m4: New file.
54794 * m4/ptrdiff_max.m4: New file.
54795 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54796 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54797 (gl_XALLOC): Invoke it.
54799 2003-11-11 Bruno Haible <bruno@clisp.org>
54801 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54802 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54805 2003-11-10 Paul Eggert <eggert@twinsun.com>
54807 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54808 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54809 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54811 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54812 not (size_t) -1, since it's defined here.
54814 2003-11-09 Karl Berry <karl@gnu.org>
54816 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54818 2003-11-06 Paul Eggert <eggert@twinsun.com>
54820 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54821 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54822 Reject sizes of exactly SIZE_MAX bytes.
54823 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54824 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54826 2003-11-05 Bruno Haible <bruno@clisp.org>
54828 * lib/xsize.h: Include limits.h, to avoid a possible collision with
54829 SIZE_MAX defined in <limits.h> on Solaris.
54831 2003-11-04 Jim Meyering <jim@meyering.net>
54833 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54834 variable names, rather than @VAR@.
54835 * modules/poll: Likewise.
54837 2003-11-04 Bruno Haible <bruno@clisp.org>
54839 * modules/xsize: New file.
54840 * modules/linebreak: Depend on xsize.
54841 * MODULES.html.sh (func_all_modules): Add xsize.
54843 2003-11-04 Bruno Haible <bruno@clisp.org>
54845 * m4/xsize.m4: New file.
54847 2003-11-04 Bruno Haible <bruno@clisp.org>
54849 * lib/xsize.h: New file.
54850 * lib/linebreak.c: Include xsize.h.
54851 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54852 argument for overflow.
54853 Suggested by Paul Eggert.
54855 2003-11-03 Karl Berry <karl@gnu.org>
54857 * config/config.{guess,sub}: update from config.
54859 2003-11-03 Jim Meyering <jim@meyering.net>
54861 * modules/userspec (lib_SOURCES): Add userspec.h.
54862 (Include): Add "userspec.h".
54863 Improve description.
54865 2003-11-03 Jim Meyering <jim@meyering.net>
54867 * lib/userspec.c: Include "userspec.h".
54868 * lib/userspec.h: New file.
54870 2003-11-03 Bruno Haible <bruno@clisp.org>
54872 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54874 2003-11-03 Bruno Haible <bruno@clisp.org>
54876 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54877 available, to avoid (extremely rare) race condition.
54878 Suggested by Paul Eggert.
54880 2003-11-02 Karl Berry <karl@gnu.org>
54882 * config/srclist.txt (vasprintf.c): sync broken, sigh.
54884 2003-10-31 Paul Eggert <eggert@twinsun.com>
54886 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54887 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54888 (read_filesystem_list): Set and use me_type_malloced.
54889 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54890 whatever the type happens to be), for brevity and consistency.
54891 Check for size calculation overflow on Alphas running OSF/1.
54893 2003-10-31 Jim Meyering <jim@meyering.net>
54895 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54897 * lib/linebuffer.c: Include <string.h> for declaration of memset.
54899 2003-10-30 Paul Eggert <eggert@twinsun.com>
54900 Bruno Haible <bruno@clisp.org>
54902 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54903 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54905 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
54907 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54908 netbsd*-gnu*. Suggested by Robert Millan.
54910 2003-10-29 Paul Eggert <eggert@twinsun.com>
54912 * modules/group-member: Depend on stdbool.
54914 2003-10-29 Paul Eggert <eggert@twinsun.com>
54916 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54918 2003-10-29 Paul Eggert <eggert@twinsun.com>
54920 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
54921 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
54922 after the 'gnu' in these cases. This fixes some bugs in the
54923 previous change, and is based on suggestions by Robert Millan.
54925 2003-10-29 Paul Eggert <eggert@twinsun.com>
54927 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54928 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
54930 * lib/quotearg.c (quotearg_n_options): Use it.
54931 * lib/group-member.c: Include <stdbool.h>.
54932 (free_group_info): Arg is now const *; don't free arg.
54933 (get_group_info): Now returns bool and accepts struct group_info *,
54934 rather than returning a malloc'ed struct group_info *.
54935 All uses changed. Check for overflow in internal size calculation.
54937 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54938 rather than xmalloc/xrealloc.
54939 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54940 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
54941 conformance bug: the old code used a pointer after freeing the
54942 storage that it addressed.
54943 * lib/hash.c (hash_initialize): Simplify the code by using
54944 xalloc_oversized rather than doing it by hand.
54945 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54946 the buffer preserved. Use free and xmalloc instead.
54947 * lib/quotearg.c (quotearg_n_options): Likewise.
54948 Use a simpler test for size overflow. Don't use xalloc_oversized
54949 because unsigned int might be wider than size_t (!); this suggests
54950 that we should switch from unsigned int to size_t for slot numbers.
54952 2003-10-28 Paul Eggert <eggert@twinsun.com>
54954 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54955 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
54956 NetBSD kernels. Requested by Richard Stallman.
54958 2003-10-27 Paul Eggert <eggert@twinsun.com>
54960 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54961 to allocate the returned structure. Do not allocate a subarray,
54962 as x2nrealloc will do that.
54963 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54964 instead of xnrealloc.
54965 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54967 2003-10-27 Bruno Haible <bruno@clisp.org>
54969 * lib/stdbool_.h: Better support for BeOS.
54971 2003-10-26 Paul Eggert <eggert@twinsun.com>
54973 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54976 2003-10-26 Paul Eggert <eggert@twinsun.com>
54978 * lib/xalloc.h (xalloc_oversized): New static inline function, for
54979 callers that want to do their own size-overflow checking. Include
54980 <stdbool.h>, since xalloc_oversized returns bool.
54981 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
54982 to use xalloc_oversized.
54984 Add two functions x2realloc, x2nrealloc, for programs that grow
54985 arrays dynamically by doubling their sizes.
54986 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54987 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54990 Port to C99 semantics for 'inline' of external functions.
54991 Bug reported by Bruno Haible.
54992 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54993 with the old contents of xnmalloc.
54994 (xnmalloc, xmalloc): Use it.
54995 (xnrealloc_inline): New static inline function,
54996 with the old contents of xnrealloc.
54997 (xnrealloc, xrealloc): Use it.
54999 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55002 2003-10-26 Karl Berry <karl@gnu.org>
55004 * config/srclist.txt (COPYING.DOC): no longer available from
55005 /gd/gnuorg; don't know where the ultimate source is.
55007 2003-10-25 Paul Eggert <eggert@twinsun.com>
55009 Fix several address-calculation bugs in the hash modules,
55010 plus some minor code cleanup.
55012 * lib/hash.h: Include <stdbool.h>, for bool.
55013 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55014 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55015 hash_get_n_entries, hash_get_max_bucket_length,
55016 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55017 hash_rehash): Use size_t rather than unsigned.
55018 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55019 hash_get_n_buckets_used, hash_get_n_entries,
55020 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55021 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55022 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55024 (SIZE_MAX): Define if not defined.
55025 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55026 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55028 Use const * when possible.
55029 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55030 (check_tuning): Fix bug: if tuning parameters were very close to
55031 0 or 1, rounding errors could have caused subscript violations.
55032 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55033 (hash_initialize): Add 'fail:' label
55034 to free table and return NULL, and use it to simplify code.
55035 Use calloc rather than clearing the storage ourself.
55036 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55037 buffer size calculations.
55038 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55039 Include <stddef.h>, for size_t.
55040 * lib/hash-pjw.c (hash_pjw): Likewise.
55041 Switch to method described by Bruno Haible.
55042 Include <limits.h>, for CHAR_BIT.
55043 (SIZE_BITS): New macro.
55045 2003-10-23 Paul Eggert <eggert@twinsun.com>
55047 * m4/getline.m4 (AM_FUNC_GETLINE):
55048 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55049 hosts. Problem reported by Derek Robert Price in
55050 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55051 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55052 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55054 2003-10-21 Paul Eggert <eggert@twinsun.com>
55056 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55057 ceiling the allocation at NMAX bytes rather than silently
55058 discarding input bytes before NMAX is reached. This makes
55059 a difference only if NMAX exceeds SIZE_MAX / 2.
55061 * lib/obstack.c: Merge from glibc.
55062 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55063 Add libc_hidden_def (_obstack_newchunk).
55064 (_obstack_free) [! defined _LIBC]: Remove.
55065 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55066 a clone of the function body.
55067 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55068 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55070 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55072 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55075 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55076 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55077 Don't use lvalue casts, as GCC plans to remove support for them
55078 in GCC 3.5. Reported by Joseph S. Myers. This bug
55079 was also present in the non-GCC version, indicating that this
55080 code had always been buggy and had never been widely used.
55081 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55082 Use the fast variant of each macro, rather than copying the
55083 definiens of the fast variant; that way, we'll be more likely to
55084 catch future bugs in the fast variants.
55086 2003-10-20 Bruno Haible <bruno@clisp.org>
55088 * modules/wait-process: New file.
55089 * MODULES.html.sh (func_all_modules): Add wait-process.
55091 2003-10-20 Bruno Haible <bruno@clisp.org>
55093 * m4/wait-process.m4: New file.
55095 2003-10-20 Bruno Haible <bruno@clisp.org>
55097 * lib/wait-process.h: New file, from GNU gettext.
55098 * lib/wait-process.c: New file, from GNU gettext.
55100 2003-10-19 Jim Meyering <jim@meyering.net>
55102 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55105 2003-10-18 Karl Berry <karl@gnu.org>
55107 * config/config.guess: update from config.
55109 2003-10-16 Paul Eggert <eggert@twinsun.com>
55111 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55112 (getgroups): First arg is int, not size_t.
55113 Don't let 'free' mangle errno.
55115 2003-10-16 Paul Eggert <eggert@twinsun.com>
55117 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55119 2003-10-16 Karl Berry <karl@gnu.org>
55121 * config/config.{guess,sub}: update from config.
55123 2003-10-16 Jim Meyering <jim@meyering.net>
55125 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55128 2003-10-15 Paul Eggert <eggert@twinsun.com>
55130 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55131 (SIZE_MAX): Remove.
55132 (new_exclude, add_exclude_file): Initial size no longer needs to
55134 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55135 our own address arithmetic overflow checking.
55137 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55138 (fnmatch): Do not alloca more than 2000 wide characters;
55139 instead, use malloc for large buffers.
55140 Check for address arithmetic overflow, and return -1
55141 with errno set to ENOMEM in that case.
55142 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55143 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55144 instead, return -1. Check for address arithmetic overflow.
55146 2003-10-14 Paul Eggert <eggert@twinsun.com>
55148 Handle invalid suffixes and overflow independently, so that
55149 callers can treat them independently as needed. Fix some bugs in
55150 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55151 suffix for a human-readable blocksize. The major caller-visible
55152 change is the addition of a new
55153 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55154 that both overflow and suffix chars were found.
55156 * lib/human.c (humblock): Don't check separately for invalid suffix
55157 char; that is xstrtoumax's job (now that its bug is fixed).
55158 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55159 INTMAX_MAX]: New macros.
55160 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55161 TYPE_MAXIMUM): New macros.
55162 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55163 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55164 if overflow occurs, as it's what __strtol does and it's more useful
55166 (__xstrtol): If __strtol reports some error other than ERANGE,
55167 reflect it to the caller as LONGINT_INVALID. If it reports
55168 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55169 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55170 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55172 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55173 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55174 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55175 [defined UINTMAX_MAX]: New macros.
55177 2003-10-14 Bruno Haible <bruno@clisp.org>
55179 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55181 2003-10-14 Bruno Haible <bruno@clisp.org>
55183 * m4/sig_atomic_t: New file, from GNU gettext.
55184 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55186 2003-10-14 Bruno Haible <bruno@clisp.org>
55188 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55189 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55190 Also use volatile where needed.
55192 2003-10-12 Paul Eggert <eggert@twinsun.com>
55194 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55195 Change maintainer from Bruno Haible to 'all'.
55197 2003-10-12 Paul Eggert <eggert@twinsun.com>
55199 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55201 2003-10-12 Paul Eggert <eggert@twinsun.com>
55203 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55204 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55205 and define in terms of the other primitives.
55206 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55207 (SIZE_MAX): Define if not already defined.
55208 (array_size_overflow): New function.
55209 (xalloc_die): Abort instead of exiting if 'error' returns.
55210 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55211 (xmalloc, xrealloc): Use them.
55212 (xcalloc): Check for address arithmetic overflow.
55213 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55214 a bit faster than strcpy.
55216 2003-10-10 Simon Josefsson <jas@extundo.com>
55218 * modules/argp (Depends-on): Add restrict and strcase.
55220 2003-10-10 Simon Josefsson <jas@extundo.com>
55222 * m4/argp.m4: Add AC_C_INLINE.
55224 2003-10-08 Paul Eggert <eggert@twinsun.com>
55226 Merge getpass from libc, plus a few fixes.
55228 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55229 Include <stdbool.h>.
55230 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55231 __fsetlocking to empty.
55232 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55233 do include <bits/libc-lock.h>.
55234 Do not include <fcntl.h>; not needed.
55235 [_LIBC]: Include <wchar.h>.
55236 (NOTCANCEL_MODE): New macro.
55237 (flockfile, funlockfile) [_LIBC]: New macros.
55238 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55239 [!_LIBC]: New macros.
55240 (call_fclose): New function.
55241 (getpass): Use it. Save tty stream separately; this simplifies the
55242 code and makes it more reliable if stdin happens to equal stdout.
55243 Invoke __fsetlocking on tty.
55244 Handle thread cancellation if needed.
55245 Namespace cleanup (use __tcgetattr, __getline).
55246 Use bool for Booleans.
55247 [USE_IN_LIBIO]: Handle wide streams.
55248 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55249 stream might go where.
55251 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55252 doesn't have to include <stdio.h> before us.
55253 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55254 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55255 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55256 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55257 if not declared, so that we can use getpass.c code from libc without
55259 (flockfile, ftrylockfile, funlockfile): New macros.
55261 2003-10-08 Paul Eggert <eggert@twinsun.com>
55263 * modules/getpass: Depend on stdbool.
55265 2003-10-08 Paul Eggert <eggert@twinsun.com>
55267 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55269 2003-10-07 Karl Berry <karl@gnu.org>
55271 * config/config.{guess,sub}: update from config.
55273 2003-10-06 Jim Meyering <jim@meyering.net>
55274 Bruno Haible <bruno@clisp.org>
55276 This lets translators provide better translations for the
55277 "Written by ..." part of --version output.
55278 * lib/version-etc.h: Include stdarg.h.
55279 (version_etc_copyright): Declare as readonly.
55280 (version_etc): Make this function variadic with a NULL-terminated list
55281 of author name strings.
55282 (version_etc_va): New declaration.
55283 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55284 (version_etc_copyright): Declare as readonly.
55285 (version_etc_va): New function. Provide a different translatable string
55286 for each possible number of authors < 10. Abbreviate when there are 10
55288 (version_etc): Make this function variadic. Call version_etc_va.
55289 Suggestion from Gary V. Vaughan.
55291 * lib/long-options.h (parse_long_options): Change prototype: the
55292 authors string is moved to the end and becomes variadic.
55293 * lib/long-options.c: Include stdarg.h.
55294 (parse_long_options): Make this function variadic, too.
55295 Call version_etc_va, not version_etc.
55297 2003-10-06 Bruno Haible <bruno@clisp.org>
55299 * modules/version-etc-2: Remove file.
55300 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55302 2003-10-06 Bruno Haible <bruno@clisp.org>
55304 * modules/fatal-signal: New file.
55305 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55307 2003-10-06 Bruno Haible <bruno@clisp.org>
55309 * m4/fatal-signal.m4: New file.
55310 * m4/signalblocking.m4: New file, from GNU gettext.
55312 2003-10-06 Bruno Haible <bruno@clisp.org>
55314 * lib/version-etc-2.h: Remove file.
55315 * lib/version-etc-2.c: Remove file.
55317 2003-10-06 Bruno Haible <bruno@clisp.org>
55319 * lib/fatal-signal.h: New file, from GNU gettext.
55320 * lib/fatal-signal.c: New file, from GNU gettext.
55322 2003-10-05 Paul Eggert <eggert@twinsun.com>
55324 * README: Rework advice for preventing empty .o files.
55325 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55328 2003-10-04 Karl Berry <karl@gnu.org>
55330 * lib/argp*: update from libc.
55332 2003-10-04 Karl Berry <karl@gnu.org>
55334 * config/config.{guess,sub}: update from config.
55336 2003-10-02 Bruno Haible <bruno@clisp.org>
55338 * modules/lchown (Include): Add lchown.h.
55339 * modules/time_r (Include): Use "..." syntax.
55340 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55342 2003-10-01 Simon Josefsson <jas@extundo.com>
55344 * MODULES.html.sh (func_all_modules): Move gethostname from section
55345 'based on' to section 'lacking' POSIX:2001.
55347 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55349 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55350 to output mode on the same stream.
55352 2003-09-29 Paul Eggert <eggert@twinsun.com>
55354 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55355 Fix arg typo in previous patch.
55357 2003-09-28 Jim Meyering <jim@meyering.net>
55359 * lib/error.c: Correct cpp indentation.
55361 2003-09-27 Paul Eggert <eggert@twinsun.com>
55363 * modules/free: New file.
55365 2003-09-27 Paul Eggert <eggert@twinsun.com>
55367 * m4/free.m4: New file.
55369 2003-09-27 Paul Eggert <eggert@twinsun.com>
55371 * lib/minmax.h (MIN, MAX)
55372 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55373 Omit the special code that used __typeof__, since we worry that
55374 it could be more trouble than it's worth. See:
55375 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55376 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55378 * lib/free.c: New file.
55380 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55382 Trivial fixes to Makefile.am parts of module listings.
55383 * modules/strstr: Append strstr.h to lib_SOURCES.
55384 * modules/strcase: Likewise, for strcase.h.
55386 2003-09-27 Karl Berry <karl@gnu.org>
55388 * config/mkinstalldirs: update from automake.
55390 2003-09-26 Paul Eggert <eggert@twinsun.com>
55392 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55393 (error_tail): Do not loop, reallocating temporary buffer, since
55394 the output cannot contain more wide characters than the input
55395 contains bytes, the size must be big enough already. This avoids
55396 one potential size overflow calculation. Check for size overflow
55397 when calculating temporary buffer size. Free temporary buffer
55398 when done, if it was allocated with malloc; this plugs a memory
55399 leak. Remove casts from void * to pointers, that are no longer
55400 needed now that we're assuming C89 or better.
55402 Merge error changes from glibc.
55404 * lib/error.c, error.h: Update copyright notice header to match glibc.
55405 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55406 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55407 Disable cancellation while printing error.
55408 * lib/error.h: Prepend __ to parameter names.
55410 2003-09-26 Jim Meyering <jim@meyering.net>
55412 * lib/error.c (error_tail): Move some declarations
55413 into inner scope where the local variables are used.
55415 2003-09-26 Bruno Haible <bruno@clisp.org>
55417 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55419 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55421 2003-09-26 Bruno Haible <bruno@clisp.org>
55423 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55424 (stpncpy): Define as alias for gnu_stpncpy.
55425 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55427 2003-09-25 Simon Josefsson <jas@extundo.com>
55429 * lib/xgetdomainname.h: New file.
55430 * lib/xgetdomainname.c: New file.
55432 2003-09-25 Simon Josefsson <jas@extundo.com>
55433 Bruno Haible <bruno@clisp.org>
55435 * modules/getdomainname: New file.
55436 * modules/xgetdomainname: New file.
55437 * MODULES.html.sh (func_all_modules): Add getdomainname,
55440 2003-09-25 Simon Josefsson <jas@extundo.com>
55441 Bruno Haible <bruno@clisp.org>
55443 * m4/getdomainname.m4: New file.
55445 2003-09-25 Simon Josefsson <jas@extundo.com>
55446 Bruno Haible <bruno@clisp.org>
55448 * lib/getdomainname.h: New file.
55449 * lib/getdomainname.c: New file.
55451 2003-09-25 Karl Berry <karl@gnu.org>
55453 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55455 2003-09-25 Karl Berry <karl@gnu.org>
55457 * config/install-sh: update from automake.
55459 2003-09-25 Bruno Haible <bruno@clisp.org>
55461 * modules/version-etc-2: New file, from modules/version-etc with
55463 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55465 2003-09-25 Bruno Haible <bruno@clisp.org>
55467 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55468 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55470 2003-09-24 Simon Josefsson <jas@extundo.com>
55472 * modules/xgethostname: Add xgethostname.h.
55474 2003-09-24 Paul Eggert <eggert@twinsun.com>
55476 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55477 the buffer associated with the argument. Bug reported by
55480 2003-09-24 Paul Eggert <eggert@twinsun.com>
55482 * README: Document assumptions that 'int' is at least 32 bits
55483 wide, that integer arithmetic is 2's complement without overflow,
55484 that there are no holes in integer values, that adding sizes of
55485 two nonoverlapping objects can't overflow, and that all-bits-zero
55486 yields scalar zero. Fix spelling and capitalization typos.
55488 2003-09-19 Karl Berry <karl@gnu.org>
55490 * lib/argp.h: update from libc.
55492 2003-09-17 Paul Eggert <eggert@twinsun.com>
55494 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55495 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55496 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55498 2003-09-17 Paul Eggert <eggert@twinsun.com>
55500 * gnulib-tool: Use "test -h", not "test -L", for portability
55501 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55502 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55503 (sed_extract_prog): Issue s commands one-by-one, rather than
55504 using \| in one s command.
55506 2003-09-16 Paul Eggert <eggert@twinsun.com>
55508 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55509 input error, instead of returning NULL the next time we are called
55510 (and therefore losing track of errno).
55512 2003-09-16 Bruno Haible <bruno@clisp.org>
55514 * gnulib-tool (func_create_testdir): Warn about duplicated
55517 2003-09-15 Paul Eggert <eggert@twinsun.com>
55519 * modules/argmatch, modules/fatal, modules/obstack,
55520 modules/xalloc, modules/xgethostname: Sort dependencies by
55521 importance, not alphabetically.
55523 2003-09-15 Paul Eggert <eggert@twinsun.com>
55525 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55526 fails, so that the caller gets the proper errno.
55528 * lib/readutmp.c (read_utmp): Likewise.
55529 Check for fstat error. Close stream and free storage
55532 2003-09-14 Karl Berry <karl@gnu.org>
55534 * config/srclist.txt (strdup.c): disable for c89 changes.
55536 2003-09-14 Jim Meyering <jim@meyering.net>
55538 * lib/getloadavg.c: Correct cpp indentation.
55539 * lib/strdup.c: Likewise.
55540 * lib/vasnprintf.c: Likewise.
55542 2003-09-14 Bruno Haible <bruno@clisp.org>
55544 * modules/fwriteerror: New file.
55545 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55547 2003-09-14 Bruno Haible <bruno@clisp.org>
55549 * lib/fwriteerror.h: New file.
55550 * lib/fwriteerror.c: New file.
55552 2003-09-12 Paul Eggert <eggert@twinsun.com>
55554 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55555 modules/xgethostname, modules/xalloc: Depend on exit.
55557 2003-09-12 Paul Eggert <eggert@twinsun.com>
55559 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55561 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55562 and AC_MINIX, too, so that their extensions are available.
55564 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55565 This macro has been superseded by gl_BACKUPFILE.
55567 More patches to assume C89 or better.
55569 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55571 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55573 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55574 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55575 Include <string.h>, <stdlib.h> unconditionally.
55576 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55577 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55578 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55579 headers or for string.h.
55580 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55583 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55585 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55586 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55587 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55588 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55589 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55590 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55592 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55593 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55594 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55596 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55597 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55598 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55601 2003-09-12 Paul Eggert <eggert@twinsun.com>
55603 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55604 * lib/obstack.c [!defined _LIBC]: Likewise.
55605 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55606 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55607 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55609 More changes to assume C89 or better.
55611 * lib/error.c (error_tail): Assume vprintf.
55613 * lib/argmatch.c (getenv): Remove decl.
55614 * lib/progreloc.c (get_full_program_name): Define via prototype.
55615 * lib/setenv.c (clearenv): Likewise.
55616 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55618 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55619 (malloc, memcpy): Remove decls.
55620 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55621 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55622 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55623 (memcpy): Remove macro.
55624 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55625 (__P): Remove. All uses removed.
55626 (PTR): Remove. All uses changed to void *.
55627 (CHAR_BIT, NULL): Remove.
55628 (spaces, zeros, memset_space, memset_zero)
55629 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55631 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55632 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55633 Define with prototype.
55634 Remove now-unnecessary prototype decl.
55635 (extra_args_spec): Assume ANSI C. All uses changed.
55636 (extra_args_spec_iso): Remove.
55637 (my_strftime, emacs_strftimeu): Define via prototype.
55638 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55640 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55641 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55642 (strtoul, strtol): Remove decls.
55643 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55645 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55646 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55647 (LOCALE_PARAM_PROTO): New macro.
55648 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55649 (INTERNAL (strtol), strtol): Define with a prototype.
55650 (PARAMS): Remove. All uses removed.
55651 * lib/tempname.c: Include <string.h> unconditionally.
55652 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55653 * lib/xgethostname.c (main): Define with a prototype.
55654 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55655 Include <stdlib.h> unconditionally.
55656 (calloc, malloc, realloc, free): Remove decls.
55657 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55658 Include <stdlib.h> unconditionally. Sort include file names.
55660 (xstrtod): Define with a prototype.
55661 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55662 (strtol, strtoul): Remove decls.
55664 2003-09-11 Paul Eggert <eggert@twinsun.com>
55666 More patches to assume C89 or better.
55667 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55668 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55669 string.h, memchr, STDC_HEADERS.
55671 2003-09-11 Paul Eggert <eggert@twinsun.com>
55673 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55674 Include <stdlib.h>, <string.h> unconditionally.
55675 Remove now-unnecessary cast to char *.
55676 * lib/strnlen.c: Include <string.h> unconditionally.
55677 * lib/yesno.c (yesno): Define with a prototype.
55679 2003-09-11 Bruno Haible <bruno@clisp.org>
55681 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55683 2003-09-10 Jim Meyering <jim@meyering.net>
55685 * lib/error.c: Correct indentation of cpp directives.
55687 2003-09-10 Bruno Haible <bruno@clisp.org>
55689 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55690 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55691 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55692 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55693 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55694 <stdlib.h> and <string.h> checks.
55695 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55696 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55698 2003-09-10 Bruno Haible <bruno@clisp.org>
55700 * lib/strcspn.c: Include <string.h> unconditionally.
55701 * lib/strpbrk.c: Include <string.h> unconditionally.
55702 * lib/strstr.c: Include <string.h> unconditionally.
55703 * lib/unicodeio.c: Include <string.h> unconditionally.
55704 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55705 * lib/unsetenv.c: Likewise.
55706 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55707 * lib/yesno.c: Include <stdlib.h> unconditionally.
55708 (rpmatch): Add prototype.
55710 2003-09-09 Paul Eggert <eggert@twinsun.com>
55712 More patches to assume C89 or better.
55713 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55714 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55715 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55717 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55719 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55721 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55723 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55724 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55725 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55727 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55728 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55730 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55732 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55733 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55734 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55735 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55736 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55737 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55739 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55740 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55741 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55742 C headers, or for string.h.
55743 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55744 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55745 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55746 headers, memory.h, stdlib.h, string.h, strings.h.
55747 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55748 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55749 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55751 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55752 headers, memory.h, string.h.
55753 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55754 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55756 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55758 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55759 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55760 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55761 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55762 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55764 2003-09-09 Paul Eggert <eggert@twinsun.com>
55768 * lib/acosl.c (main): Use a prototype.
55769 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55772 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55774 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55775 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55776 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55778 * lib/getopt.c (const): Remove macro.
55779 Include <string.h> unconditionally.
55780 (my_index): Remove; all uses changed to strchr.
55781 (strlen): Remove decl.
55782 (exchange): Remove forward decl; no longer needed.
55783 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55784 Define with prototype.
55785 * lib/getopt1.c (const): Remove macro.
55786 (getopt_long, getopt_long_only, main): Define with prototype.
55788 * lib/getugroups.c: Include <string.h> unconditionally.
55790 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55791 (getusershell, setusershell, endusershell, readname, main):
55792 Define with prototypes.
55794 * lib/group-member.c: Include group-member.h first.
55795 Include <stdlib.h> unconditionally.
55797 * lib/hard-locale.c: Include hard-locale.h first.
55798 Include <stdlib.h>, <string.h> unconditionally.
55800 * lib/hash.c (free, malloc): Remove decls.
55801 Include <stdlib.h> unconditionally.
55803 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55804 (getenv): Do not declare.
55806 * lib/idcache.c: Include <string.h> unconditionally.
55808 * lib/long-options.c: Include long-options.h first, to test interface.
55809 Include <stdlib.h> unconditionally.
55811 * lib/makepath.c: Include makepath.h first, to test interface.
55812 Include <stdlib.h> and <string.h> unconditionally.
55814 * lib/linebuffer.c: Include <stdlib.h>.
55815 (free): Remove decl.
55817 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55818 stddef.h. rpl_malloc returns void *, not char *.
55819 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55822 * lib/md5.h: Include <limits.h> unconditionally.
55823 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55824 (__P): Remove; all uses removed.
55825 * lib/md5.c: Include "md5.h" first.
55826 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55827 md5_buffer, md5_process_bytes, md5_process_block):
55828 Define with prototypes.
55829 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
55830 * lib/sha.c: Include "sha.h" first.
55831 Include <stdlib.h>, <string.h> unconditionally.
55833 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55834 * lib/memcmp.c (__ptr_t): Likewise.
55835 * lib/memrchr.c (__ptr_t): Likewise.
55836 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55837 Include <string.h> unconditionally.
55838 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55839 * lib/memchr.c: Include <stdlib.h> unconditionally.
55840 * lib/memchr.c (LONG_MAX): Remove.
55841 * lib/memrchr.c (LONG_MAX): Likewise.
55842 * lib/memchr.c (__memchr): Define via a prototype.
55843 * lib/memrchr.c (__memrchr): Likewise.
55844 * lib/memcmp.c (__P): Remove, and remove all uses.
55845 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55846 Remove forward decls; no longer needed.
55847 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55848 Use types required by C89 in prototype.
55850 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55851 * lib/savedir.c: Likewise.
55852 * lib/mkdir.c (free): Remove decl.
55853 * lib/rmdir.c (rmdir): Define with a prototype.
55854 * lib/savedir.c: Include savedir.h first, to test interface.
55856 * lib/mktime.c (STDC_HEADERS): Remove.
55857 Include <stdlib.h>, <string.h> unconditionally.
55859 * lib/modechange.c: Include <stdlib.h> unconditionally.
55860 (malloc): Remove decl.
55862 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55863 (free): Remove decl.
55865 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55866 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55867 (This type really should be intptr_t, but that's a C99ism.)
55868 (_obstack_memcpy): Remove: all uses changed to memcpy.
55869 Include <string.h> unconditionally.
55870 (struct obstack): Assume __STDC__ for types of members
55871 chunkfun, freefun, extra_arg.
55872 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55873 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55874 obstack_begin, obstack_specify_allocation,
55875 obstack_specify_allocation_with_arg, obstack_chunkfun,
55876 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55877 Remove unprototyped decls and the macros that use them.
55878 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
55879 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55880 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55881 (defined __STDC__ && __STDC__)]:
55882 Remove nonprototyped code.
55883 Include <stdlib.h> unconditionally.
55884 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55885 _obstack_allocated_p, _obstack_free, obstack_free,
55886 _obstack_memory_used, print_and_abort):
55887 Define using prototypes.
55888 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55889 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55890 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55891 obstack_next_free, obstack_object_size, obstack_room) [0]:
55892 Remove unused, unprototyped code.
55894 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55896 * lib/physmem.c (physmem_total, physmem_available, main): Define
55899 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55900 (main): Define with a prototype.
55902 * lib/posixver.c (getenv): Remove decl.
55904 * lib/putenv.c (malloc): Returns void *, not char *.
55905 Include <string.h> unconditionally.
55906 (strchr, memcpy, NULL): Do not define.
55908 * lib/readtokens.c: Include readtokens.h first, to test interface.
55909 Include <stdlib.h>, <string.h> unconditionally.
55910 (init_tokenbuffer): Define with a prototype.
55912 * lib/regex.c (PARAMS): Remove. All uses removed.
55913 All uses of _RE_ARGS removed, too.
55914 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55916 (bzero): Assume memset exists.
55917 (memcmp, memcpy, NULL): Remove.
55918 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55919 char, or assignments to local vars of type signed char.
55920 (init_syntax_once, PREFIX(extract_number_and_incr),
55921 PREFIX(print_partial_compiled_pattern),
55922 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55923 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55924 PREFIX(regex_grow_registers), PREFIX(regex_compile),
55925 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55926 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55927 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55928 wcs_compile_range, byte_compile_range, truncate_wchar,
55929 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55930 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55931 count_mbs_length, wcs_re_match_2_internal,
55932 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55933 PREFIX(alt_match_null_string_p),
55934 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55935 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55936 regfree, PREFIX(extract_number)): Define with prototype. Remove
55937 now-unnecessary declaration, if any.
55938 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55940 Remove now-unnecessary casts among pointer types.
55941 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
55943 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55944 (free): Remove decl.
55946 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55948 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55949 (free): Remove decl.
55951 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55952 * lib/xgetcwd.c: Likewise.
55954 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55955 (free): Remove decl.
55957 * lib/strchrnul.c (strchrnul): Define with a prototype.
55958 Fix bug: c_in was not converted to char before searching.
55960 The following changes are not K&R related:
55962 * lib/group-member.h: Include <sys/types.h>, so that this file is
55964 * lib/makepath.h: Likewise.
55966 * lib/getusershell.c (readname, default_index, line_size, readname):
55967 Use size_t, not int, for sizes.
55968 (readname): If the size overflows, report an error instead of
55971 2003-09-09 Paul Eggert <eggert@twinsun.com>
55973 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55976 2003-09-09 Paul Eggert <eggert@twinsun.com>
55978 * README: New section: portability guidelines.
55980 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55982 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55985 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55987 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55989 2003-09-08 Paul Eggert <eggert@twinsun.com>
55991 Assume C89 or better; remove K&R cruft.
55992 A few of these changes were first proposed by Derek Robert Price
55993 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55995 * lib/addext.c: Include <string.h> unconditionally.
55996 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55997 Don't declare getenv or malloc.
55999 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56000 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56002 (find_stack_direction, alloca): Use prototypes.
56004 * lib/atexit.c (atexit): Define using a prototype.
56006 * lib/basename.c, dirname.c, stripslash.c:
56007 Include <string.h> unconditionally.
56009 * lib/bcopy.c: Include <stddef.h>.
56010 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56012 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56014 * lib/error.h (error, error_at_line, error_print_progname)
56015 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56016 * lib/error.c: Include error.h first, to check interface.
56017 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56018 (VA_START): Remove; all uses changeed to va_start.
56019 (exit, strerror): Remove decls.
56020 (error_print_progname): Prototype uncondionally.
56021 Don't include <errno.h>; no longer needed.
56022 (private_strerror): Remove.
56023 (error_tail): Always define.
56024 (error, error_at_line): Assume C89 or better; always use prototypes.
56025 * lib/fatal.c: Include "fatal.h" first, to test interface.
56026 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56027 (VA_START): Remove; all uses changed to va_start.
56028 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56030 (exit): Remove decl.
56031 (fatal): Prototype unconditionally. Assume va_start works.
56032 Abort at end, to pacify gcc.
56034 * lib/euidaccess.c (main): Define with a prototype.
56036 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56038 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56040 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56042 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56043 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56044 (getenv): Remove decl.
56045 (fnmatch): Define using a prototype.
56046 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56047 (FCT): Define using a prototype.
56049 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56051 * lib/gethostname.c: Include <stddef.h>.
56052 (gethostname): Define with prototype. Length is size_t, not int.
56054 2003-09-08 Paul Eggert <eggert@twinsun.com>
56056 Assume C89 or better; remove K&R cruft.
56057 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56058 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56059 string.h, getenv, malloc.
56060 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56062 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56063 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56064 do not check for strerror.
56065 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56066 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56067 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56068 do not check for doprnt or vprintf.
56069 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56070 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56072 2003-09-08 Paul Eggert <eggert@twinsun.com>
56074 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56075 getversion.c should have been removed then, but was accidentally
56078 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56079 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56081 2003-09-08 Karl Berry <karl@gnu.org>
56083 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56084 config, forget about prep.
56086 * config/depcomp, missing: update from automake.
56088 2003-09-07 Paul Eggert <eggert@twinsun.com>
56090 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56091 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56093 2003-09-07 Paul Eggert <eggert@twinsun.com>
56095 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56096 copy_tm_result. Bug reported by Simon Josefsson in
56097 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56099 2003-09-06 Paul Eggert <eggert@twinsun.com>
56101 * m4/time_r.m4: New file.
56102 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56103 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56104 is. Check for timegm declaration.
56105 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56106 Do not check for gmtime_r.
56107 Replace mktime if __mktime_internal does not exist and if mktime
56108 hasn't been replaced already.
56110 2003-09-06 Paul Eggert <eggert@twinsun.com>
56112 * lib/time_r.c, lib/time_r.h: New files.
56114 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56116 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56117 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56119 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56121 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56122 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56123 Include <time_r.h>.
56125 * lib/timegm.c: Switch to glibc implementation, with the following
56127 [defined HAVE_CONFIG_H]: Include <config.h>.
56128 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56129 (__mktime_internal) [!defined _LIBC]: New decl.
56130 (__gmtime_r) [!defined _LIBC]: New macro and function.
56131 (timegm): Use a prototype, since gnulib assumes C89.
56132 Do not bother declaring tmp to be const, as it's not really usefu.
56133 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56134 (timegm): Declare only if HAVE_DECL_TIMEGM.
56136 2003-09-06 Paul Eggert <eggert@twinsun.com>
56138 * MODULES.html.sh (func_all_modules): Add time_r.
56139 * modules/time_r: New file.
56140 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56141 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56143 2003-09-03 Paul Eggert <eggert@twinsun.com>
56145 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56146 Bug reported by Lute Kamstra in
56147 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56149 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56150 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56151 course with correspondingly smaller numbers for tomorrow and
56152 yesterday. From Tadayoshi Funaba. Originally installed into
56153 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56156 2003-08-31 Simon Josefsson <jas@extundo.com>
56158 * modules/timegm: New file.
56159 * MODULES.html.sh (func_all_modules): Add timegm.
56161 2003-08-31 Simon Josefsson <jas@extundo.com>
56163 * m4/timegm.m4: New file.
56165 2003-08-31 Simon Josefsson <jas@extundo.com>
56167 * lib/timegm.h: New file.
56168 * lib/timegm.c: New file. Based on
56169 wget-1.8.2/src/http.c:mktime_from_utc.
56171 2003-08-31 Karl Berry <karl@gnu.org>
56173 * lib/argp.h: update from libc.
56175 2003-08-28 Bruno Haible <bruno@clisp.org>
56177 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56178 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56179 followed by '#define fnmatch fnmatch_posix' gives an error.
56181 2003-08-28 Bruno Haible <bruno@clisp.org>
56183 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56184 warning on QNX, which defines O_BINARY to 000000.
56186 2003-08-27 Jim Meyering <jim@meyering.net>
56188 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56189 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56190 would fail after 32. Reported by Danny Levinson. Details here:
56191 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56193 2003-08-24 Bruno Haible <bruno@clisp.org>
56195 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56196 MSVC7 <stdio.h> is included later.
56198 2003-08-22 Simon Josefsson <jas@extundo.com>
56200 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56202 2003-08-20 Karl Berry <karl@gnu.org>
56204 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56206 2003-08-20 Bruno Haible <bruno@clisp.org>
56208 * modules/progname: New file.
56209 * MODULES.html.sh (func_all_modules): Add progname.
56211 2003-08-20 Bruno Haible <bruno@clisp.org>
56213 * lib/progname.h: New file, from GNU gettext.
56214 * lib/progname.c: New file, from GNU gettext.
56215 * lib/progreloc.c: New file, from GNU gettext.
56217 2003-08-19 Jim Meyering <jim@meyering.net>
56219 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56220 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56222 2003-08-19 Bruno Haible <bruno@clisp.org>
56224 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56227 2003-08-19 Bruno Haible <bruno@clisp.org>
56229 * lib/xstrdup.c: Assume <string.h> exists.
56231 2003-08-18 Paul Eggert <eggert@twinsun.com>
56233 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56236 2003-08-18 Jim Meyering <jim@meyering.net>
56238 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56239 * m4/lib-ld.m4: Likewise.
56241 2003-08-18 Jim Meyering <jim@meyering.net>
56243 * lib/setenv.h: Indent nested cpp directive.
56244 * lib/vasnprintf.c: Remove trailing blanks.
56246 2003-08-17 Simon Josefsson <jas@extundo.com>
56248 * modules/xstrndup: New file.
56249 * MODULES.html.sh (func_all_modules): Add xstrndup.
56251 2003-08-17 Simon Josefsson <jas@extundo.com>
56253 * modules/argp: Fix autoconf macro name. Add more dependencies.
56255 2003-08-17 Simon Josefsson <jas@extundo.com>
56257 * m4/xstrndup.m4: New file.
56259 2003-08-17 Simon Josefsson <jas@extundo.com>
56261 * m4/argp.m4: New file.
56263 2003-08-17 Simon Josefsson <jas@extundo.com>
56264 Bruno Haible <bruno@clisp.org>
56266 * lib/xstrndup.h: New file.
56267 * lib/xstrndup.c: New file.
56269 2003-08-17 Bruno Haible <bruno@clisp.org>
56271 * modules/strndup (Files, Include): Add lib/strndup.h.
56273 2003-08-17 Bruno Haible <bruno@clisp.org>
56275 * modules/euidaccess (Files): Add lib/euidaccess.h.
56277 2003-08-17 Bruno Haible <bruno@clisp.org>
56279 * lib/strndup.h: New file.
56281 2003-08-17 Bruno Haible <bruno@clisp.org>
56283 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56284 like AC_GNU_SOURCE.
56285 * modules/extensions (configure.ac): Comment out the invocation of
56286 gl_USE_SYSTEM_EXTENSIONS.
56288 2003-08-16 Paul Eggert <eggert@twinsun.com>
56290 Merges from coreutils, etc.
56291 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56292 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56293 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56295 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56296 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56298 2003-08-16 Paul Eggert <eggert@twinsun.com>
56300 Document merge from coreutils.
56301 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56302 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56303 * modules/utime: Add m4/utimes-null.m4.
56305 2003-08-16 Paul Eggert <eggert@twinsun.com>
56307 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56308 space, undoing this 2003-08-12 change:
56309 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56311 2003-08-16 Paul Eggert <eggert@twinsun.com>
56313 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56314 strtoul.c from libc, undoing this 2003-08-12 change:
56315 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56317 2003-08-16 Jim Meyering <jim@meyering.net>
56319 Merges from coreutils.
56320 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56321 prefix. Adjust cache variables similarly. Create 500 rather than
56322 just 300 files, to exercise bug on Darwin6.5, too.
56323 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56325 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56326 AM_SYS_POSIX_TERMIOS.
56327 Reported by mkc@mathdogs.com.
56328 Also change use of $am_cv_sys_posix_termios
56329 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56330 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56331 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56332 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56333 in /proc/mounts until it finds one with matching device number. This
56334 is unnecessary when the FILE argument *is* a mount point. No stat call
56335 is necessary in that case. So, disable the statvfs-testing code on
56336 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56337 as RedHat bug# 84846.
56338 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56339 to 1MB, so as not to render systems with no stack size limit (e.g.,
56340 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56341 Include <unistd.h>. On some systems,
56342 it is required for the definition of _SC_PAGESIZE.
56344 2003-08-16 Jim Meyering <jim@meyering.net>
56346 Merge from coreutils.
56347 * lib/xstrtoimax.c: #else #if -> #elif.
56348 * lib/xstrtoumax.c: Likewise.
56350 2003-08-16 Jim Meyering <jim@meyering.net>
56352 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56353 * m4/utimes.m4: Removed.
56354 * m4/utimes-null.m4: Renamed from utimes.m4.
56356 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56357 to 1MB, so as not to render systems with no stack size limit (e.g.,
56358 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56359 Include <unistd.h>. On some systems,
56360 it is required for the definition of _SC_PAGESIZE.
56362 2003-08-16 Jim Meyering <jim@meyering.net>
56363 and Paul Eggert <eggert@cs.ucla.edu>
56365 Merges from coreutils, etc.
56367 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56368 using the latest version from cvs. This avoids problems with #line
56369 directives using a vendor (Sun) compiler.
56370 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56371 Don't set GETGROUPS_LIB here; now it's
56372 done via getgroups.m4's wrapper function.
56373 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56374 rather than just in sh-util/configure.in, so that the
56375 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56377 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56378 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56379 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56380 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56381 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56382 Remove code that is now done by the newly-required macros.
56383 Append $(EXEEXT) to DF_PROG.
56384 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56385 Do not invoke or require the following here,
56386 since prereq.m4 or some gnulib .m4 now does this for us:
56387 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56388 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56389 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56390 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56391 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56392 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56393 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56395 Do not replace the following functions, as this is now the job
56396 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56397 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56398 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56399 atexit getpass, strdup, getpagesize.
56401 Do not check for the following functions, as this is now the job
56402 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56403 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56405 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56406 Check for sys/sysctl.h.
56407 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56408 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56409 of checking for ssize_t ourselves.
56411 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56412 Require every macro that gnulib/modules/* suggests for us.
56413 (jm_PREREQ_ADDEXT): New macro.
56414 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56415 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56417 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56418 (gl_PHYSMEM): Use it.
56419 Also check for `table' function.
56420 Check for new headers and functions.
56421 Add check for sys/sysmp.h.
56422 With suggestions from Kaveh Ghazi.
56423 Ignore headers that are present but cannot be compiled. This
56424 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56427 2003-08-15 Paul Eggert <eggert@twinsun.com>
56429 Document merge from coreutils.
56430 * modules/userspec: Depend on posixver.
56431 * modules/strftime: Depend on tzset.
56433 2003-08-15 Paul Eggert <eggert@twinsun.com>
56435 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56436 rather than tab, after '#' in shell-script copyright notices.
56437 Suggested by Bruno Haible.
56439 2003-08-15 Paul Eggert <eggert@twinsun.com>
56441 * config/srclist-update: Use three spaces, rather than tab, after '#'
56442 in shell-script copyright notices. Suggested by Bruno Haible.
56443 Remove unnecessary parenthesization in regular expression.
56445 2003-08-15 Jim Meyering <jim@meyering.net>
56447 Merge from coreutils.
56448 * lib/xgethostname.c: Include <stdlib.h>.
56449 (xghostname): Don't exit for anything other than memory-related
56450 failure; just return NULL.
56451 * lib/userspec.c: Include "posixver.h".
56452 (parse_user_spec): Accept `.' as a separator only
56453 in pre-POSIX-200112 mode.
56454 * lib/strtoimax.c: Use #elif rather than #else #if.
56455 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56456 Remove function, now that we can rely on a working tzset function.
56457 [!_LIBC]: Ensure that the required autoconf test has been run.
56458 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56459 Use underlying_strftime for %r.
56460 * lib/sha.c: Merge in some clean-up and optimization changes from
56462 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56463 Ensure that it is a multiple of 64.
56464 Rearrange loop exit tests so as to avoid performing an
56465 additional fread after encountering an error or EOF.
56466 * lib/realloc.c: Update copyright date.
56468 2003-08-15 Jim Meyering <jim@meyering.net>
56469 and Paul Eggert <eggert@twinsun.com>
56471 Merge from coreutils.
56472 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56473 member but strut utmpx does not. Needed for AIX 4.3.3.
56474 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56476 2003-08-15 Jim Meyering <jim@meyering.net>
56477 and Paul Eggert <eggert@cs.ucla.edu>
56479 Merges from coreutils, etc.
56480 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56481 Require gl_FUNC_TZSET_CLOBBER.
56482 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56483 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56486 2003-08-14 Paul Eggert <eggert@twinsun.com>
56488 Help the merge from coreutils.
56489 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56490 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56491 * m4/tzset.m4: Use it too.
56493 2003-08-14 Paul Eggert <eggert@twinsun.com>
56495 * modules/tzset: New file.
56497 2003-08-14 Jim Meyering <jim@meyering.net>
56499 Merges from coreutils.
56500 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56501 variable names, rather than @FNMATCH_H@.
56502 * modules/alloca: Likewise for $(ALLOCA_H).
56504 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56505 the three copies of the literal target, `fnmatch.h'.
56506 * modules/alloca (alloca.h): Likewise.
56508 2003-08-14 Jim Meyering <jim@meyering.net>
56510 Merge from coreutils.
56511 * m4/tzset.m4: New file.
56512 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56513 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56514 otherwise, AIX 5.1 systems would end up using the latter.
56515 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56516 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56517 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56518 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56520 2003-08-14 Jim Meyering <jim@meyering.net>
56522 Merge from coreutils.
56523 * lib/obstack.h: Whitespace changes.
56524 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56525 and xcalloc return values.
56526 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56527 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56528 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56529 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56530 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56532 Use mntctl's return value to drive the entry-processing loop, since
56533 we can't rely on the value of the vmt_length member in the last
56534 entry. On some systems doing so could result in exhausting
56535 virtual memory. Based in part on a patch from Mike Jetzer.
56537 2003-08-14 Jim Meyering <jim@meyering.net>
56538 and Paul Eggert <eggert@twinsun.com>
56540 Merges from coreutils, plus other fixes.
56541 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56542 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56543 for credits and details. Thanks to Kaveh Ghazi for helping
56544 to keep these files in sync.
56545 (ARRAY_SIZE): Define it.
56546 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56547 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56548 (memcasecmp): Don't assume size_t fits in unsigned int.
56549 Remove casts and duplicate code.
56550 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56551 (memcpy): Remove definition.
56552 Merge in some clean-up and optimization changes from glibc.
56553 [BLOCKSIZE]: Move definition to top of file.
56554 Ensure that it is a multiple of 64.
56555 Rearrange loop exit tests so as to avoid performing an
56556 additional fread after encountering an error or EOF.
56557 * lib/md5.h (md5_uintptr): Define.
56558 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56559 return to the initial working directory. Preserve errno
56561 * lib/idcache.c: Include "xalloc.h".
56562 (xmalloc, xrealloc): Remove decls.
56563 (getuser): Remove casts no longer required in C89.
56564 * lib/human.c: Include stdio.h, for sprintf.
56565 * lib/group-member.c: Include "xalloc.h".
56566 (xmalloc, xrealloc): Remove decls.
56567 (get_group_info): Remove casts no longer required in C89.
56568 * lib/getusershell.c (readname): Remove casts no longer required in
56570 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56571 * lib/getline.c: Whitespace fix, from coreutils.
56573 2003-08-13 Paul Eggert <eggert@twinsun.com>
56575 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56578 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56579 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56580 Undo previous (whitespace-only) change.
56582 2003-08-13 Paul Eggert <eggert@twinsun.com>
56584 * lib/exclude.c: Include <ctype.h>
56585 (IN_CTYPE_DOMAIN): New macro.
56586 (is_space): New fn.
56587 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56590 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56591 Undo previous (whitespace-only) change.
56593 2003-08-13 Paul Eggert <eggert@twinsun.com>
56595 * config/srclist-update: Change update back to the old behavior,
56596 leaving whitespace alone. Use one 'sed' command rather than a
56598 (fixlicense): Now a variable, not a function.
56599 (remove_trailing_blanks): Remove.
56600 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56601 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56602 Undo previous (whitespace-only) change.
56604 2003-08-12 Paul Eggert <eggert@twinsun.com>
56606 Merge from coreutils.
56607 * modules/euidaccess: Add lib_SOURCES, include for new
56610 2003-08-12 Paul Eggert <eggert@twinsun.com>
56612 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56613 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56614 Normalize leading white space and remove trailing white space.
56616 Merge from coreutils
56617 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56619 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56620 0.12.1. These files are now being upgraded automatically by
56621 ../config/srclist-update.
56623 2003-08-12 Paul Eggert <eggert@twinsun.com>
56625 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56626 Normalize leading white space and remove trailing white space.
56627 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56628 notice, as per ../config/srclist-update.
56630 Merge from coreutils.
56631 * lib/euidaccess.h: New file.
56632 * lib/euidaccess.c: Include it.
56633 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56634 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56635 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56637 2003-08-12 Paul Eggert <eggert@twinsun.com>
56639 * config/srclist-update: Add copyright notice.
56640 (remove_id_lines, remove_trailing_blanks): New constants.
56641 (fixfile): Use them to normalize spacing a bit in copied files.
56642 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56643 Normalize leading white space and remove trailing white space.
56645 * config/texinfo.tex: Sync with texinfo.
56647 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56648 strtoul.c from libc, to merge coreutils whitespace changes.
56650 * config/srclist.txt: Get the following m4 files from gettext:
56651 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56652 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56653 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56656 2003-08-12 Karl Berry <karl@gnu.org>
56658 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56661 2003-08-11 Paul Eggert <eggert@twinsun.com>
56663 * modules/gnu-source, m4/gnu-source.m4:
56664 Remove; we're assuming Autoconf 2.54 or later now.
56665 Suggested by Bruno Haible.
56666 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56668 2003-08-11 Bruno Haible <bruno@clisp.org>
56670 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56672 2003-08-11 Bruno Haible <bruno@clisp.org>
56674 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56675 (vasnprintf): Use it instead of wcslen.
56677 2003-08-11 Bruno Haible <bruno@clisp.org>
56679 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56680 value to ensure that _Bool promotes to int. Use #define for _Bool when
56681 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56683 2003-08-10 Karl Berry <karl@gnu.org>
56685 * lib/regex.h: update from libc (whitespace fix).
56687 2003-08-09 Paul Eggert <eggert@twinsun.com>
56689 Merge some files from coreutils. These changes were
56690 originally made by Jim Meyering.
56691 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56692 many older Unixes require this.
56693 * lib/alloca.c (alloca): Remove cast to argument of free;
56694 no longer needed in C89.
56695 * lib/alloca_.h, regex.h: Fix white space to match
56696 what GNU indent does.
56698 2003-08-09 Paul Eggert <eggert@twinsun.com>
56700 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56701 apparently Emacs's Unicode mode got confused before my 2003-08-05
56704 2003-08-08 Paul Eggert <eggert@twinsun.com>
56706 * m4/extensions.m4: New file.
56707 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56708 Require gl_USE_SYSTEM_EXTENSIONS.
56709 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56710 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56712 2003-08-08 Paul Eggert <eggert@twinsun.com>
56714 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56715 * modules/extensions, modules/gnu-source: New files.
56716 * modules/timespec, modules/unlocked-io: Depend on extensions.
56718 2003-08-07 Paul Eggert <eggert@twinsun.com>
56720 * modules/restrict: New file.
56721 * MODULES.html.sh (func_all_modules): Add restrict.
56722 * modules/regex: Depend on restrict.
56724 2003-08-07 Paul Eggert <eggert@twinsun.com>
56726 * m4/restrict.m4: New file.
56727 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56729 2003-08-07 Bruno Haible <bruno@clisp.org>
56731 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56732 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56734 2003-08-07 Bruno Haible <bruno@clisp.org>
56736 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56737 makes the module 'getndelim2' compatible with the module 'getline'.
56739 2003-08-05 Paul Eggert <eggert@twinsun.com>
56741 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56742 byte with "\201" to avoid glitches when editing that source file
56743 with multi-gnome-terminal.
56745 2003-08-05 Paul Eggert <eggert@twinsun.com>
56747 * lib/bumpalloc.h: Remove.
56749 2003-08-05 Paul Eggert <eggert@twinsun.com>
56751 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56752 * modules/bumpalloc: Remove.
56754 2003-08-04 Paul Eggert <eggert@twinsun.com>
56756 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56759 Merge from coreutils.
56760 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56762 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56763 from Karl Berry, implemented by Jim Meyering.
56764 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56765 from Dmitry V. Levin.
56766 Remove anachronistic cast of xrealloc.
56767 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56768 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56769 type. Otherwise, it wouldn't compile with at least /bin/cc on
56770 ymp-cray-unicos9.0.2.X.
56771 Combine two mostly-identical uses of alloca into one.
56772 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56774 2003-08-04 Dave Love <d.love@dl.ac.uk>
56778 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56779 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56780 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56781 obsolete NLIST_NAME_UNION.
56782 [__GNU__]: Undef BSD and FSCALE.
56783 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56785 2003-08-03 Paul Eggert <eggert@twinsun.com>
56787 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56788 an enum type, so that it's guaranteed to promote to int. See:
56789 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56791 2003-08-03 Karl Berry <karl@gnu.org>
56793 * config/depcomp: update from automake.
56795 2003-07-31 Paul Eggert <eggert@twinsun.com>
56797 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56798 (strerror): Don't assume that a printable int fits in 14 bytes.
56800 2003-07-31 Bruno Haible <bruno@clisp.org>
56802 * modules/getpass-gnu: New file.
56803 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56805 2003-07-31 Bruno Haible <bruno@clisp.org>
56807 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56809 2003-07-24 Karl Berry <karl@gnu.org>
56811 * config/missing: update from automake.
56813 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56814 Bruno Haible <bruno@clisp.org>
56816 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56817 * lib/getline.c (getline, getdelim): Likewise.
56818 Remove _GNU_SOURCE define; now it's defined in config.h through
56821 2003-07-23 Karl Berry <karl@gnu.org>
56823 * config/config.sub: update from prep.
56825 2003-07-22 Paul Eggert <eggert@twinsun.com>
56827 * modules/xalloc (Depends-on): Add exitfail.
56828 * modules/xmemcoll: Likewise.
56830 2003-07-22 Paul Eggert <eggert@twinsun.com>
56832 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56833 over-parenthesization in macros.
56835 Sync with coreutils.
56837 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56840 Use `exit_failure' for xalloc and xmemcoll instead of their own
56841 private exit-failure variables.
56842 * lib/xalloc.h (xalloc_exit_failure): Remove.
56843 * lib/xmalloc.c: Likewise. Include exitfail.h.
56844 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56845 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56846 * lib/xmemcoll.c: Likewise. Include exitfail.h.
56847 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56849 2003-07-20 Jim Meyering <jim@meyering.net>
56851 * modules/closeout (Depends-on): Add exitfail.
56852 Suggestion from Bruno Haible.
56854 2003-07-19 Karl Berry <karl@gnu.org>
56856 * config/config.sub: update from prep.
56858 2003-07-18 Paul Eggert <eggert@twinsun.com>
56860 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56862 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
56863 to test that it can stand by itself. Include "exitfail.h".
56864 Clients should set exit_failure instead.
56865 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
56867 2003-07-18 Bruno Haible <bruno@clisp.org>
56869 * modules/getndelim2: New file.
56870 * modules/getline: Share files with module getndelim2.
56871 * modules/getnline: Depend on getndelim2 instead of sharing files with
56872 it. Add getnline.c to lib_SOURCES.
56873 * MODULES.html.sh (func_all_modules): Add getndelim2.
56875 2003-07-18 Bruno Haible <bruno@clisp.org>
56877 * m4/getndelim2.m4: New file.
56878 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56879 invoke gl_PREREQ_GETNDELIM2.
56880 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56881 gl_PREREQ_GETNDELIM2.
56882 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56885 2003-07-18 Bruno Haible <bruno@clisp.org>
56887 * lib/getndelim2.h: New file.
56888 * lib/getndelim2.c: Make into a module of its own. Include config.h,
56890 (getndelim2): Make non-static. Change return type to ssize_t.
56891 * lib/getline.h: Change argument names.
56892 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56893 * lib/getnline.c: Include getndelim2.h.
56895 2003-07-18 Andreas Schwab <schwab@suse.de>
56897 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56899 2003-07-17 Karl Berry <karl@gnu.org>
56901 * config/config.sub: update from prep.
56903 2003-07-17 Bruno Haible <bruno@clisp.org>
56905 * modules/getnline: New file.
56906 * modules/getline: Add lib/getndelim2.c to source file list.
56907 * MODULES.html.sh (func_all_modules): Add getnline.
56909 2003-07-17 Bruno Haible <bruno@clisp.org>
56911 * m4/getnline.m4: New file.
56913 2003-07-17 Bruno Haible <bruno@clisp.org>
56915 * m4/Makefile.am.in: Remove file.
56916 * m4/Makefile.am: Remove file.
56917 * m4/Makefile.in: Remove file.
56919 2003-07-17 Bruno Haible <bruno@clisp.org>
56921 * lib/getnline.h: New file.
56922 * lib/getnline.c: New file.
56923 * lib/getndelim2.c: New file, extracted from getline.c.
56924 (getndelim2): Renamed from getdelim2, with added nmax argument.
56925 * lib/getline.c: Include getndelim2.c.
56926 (getdelim2): Moved out to getndelim2.c.
56927 (getline, getdelim): Update.
56929 2003-07-17 Bruno Haible <bruno@clisp.org>
56931 * lib/Makefile.am: Remove file.
56932 * lib/Makefile.in: Remove file.
56934 2003-07-17 Bruno Haible <bruno@clisp.org>
56936 * configure.in: Remove file.
56937 * Makefile.in: Remove file.
56939 2003-07-17 Bruno Haible <bruno@clisp.org>
56941 * MODULES.html.sh: Put the </BODY> right before </HTML>.
56943 2003-07-16 Karl Berry <karl@gnu.org>
56945 * config/srclist-update: was running fixlicense twice, which caused
56946 texinfo.tex to be nullified for some reason. Simplify,
56947 $gplsrc is no longer needed as far as I can see?
56949 2003-07-16 Jim Meyering <jim@meyering.net>
56951 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
56953 2003-07-15 Paul Eggert <eggert@twinsun.com>
56955 * config/srclist.txt: Get the following files from gettext-runtime/intl
56956 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56957 ref-del.sin. From Bruno Haible.
56958 * config/srclist-update (fixfile): Change grep pattern again, since the
56959 previous fix didn't work (there was another trailing $). Use
56960 '[$]' to escape the $s.
56962 2003-07-15 Karl Berry <karl@gnu.org>
56964 * lib/vasnprintf.c: update from gettext.
56966 2003-07-15 Karl Berry <karl@gnu.org>
56968 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56969 gets expanded when surrounded by '$'.
56971 2003-07-15 Jim Meyering <jim@meyering.net>
56973 * modules/save-cwd: Don't depend on error. From Derek Price.
56975 2003-07-15 Jim Meyering <jim@meyering.net>
56977 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56979 2003-07-14 Simon Josefsson <jas@extundo.com>
56981 * modules/mempcpy: New file.
56982 * MODULES.html.sh (func_all_modules): Add mempcpy.
56984 2003-07-14 Simon Josefsson <jas@extundo.com>
56986 * m4/mempcpy.m4: New file.
56988 2003-07-14 Simon Josefsson <jas@extundo.com>
56990 * lib/mempcpy.h: New file.
56991 * lib/mempcpy.c: New file.
56993 2003-07-14 Paul Eggert <eggert@twinsun.com>
56995 * modules/getdate, modules/posixtm: Depend on mktime.
56997 2003-07-14 Paul Eggert <eggert@twinsun.com>
56999 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57000 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57001 unicodeio.c, unicodeio.h, unlocked-io.h:
57002 Switch from LGPL to GPL.
57004 2003-07-14 Paul Eggert <eggert@twinsun.com>
57006 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57007 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57008 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57009 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57010 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57011 updated automatically by ../config/srclist-update. This changes
57012 their license from LPGL to GPL.
57014 2003-07-14 Paul Eggert <eggert@twinsun.com>
57016 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57017 assumed to refer to the root of the most recent stable gettext version.
57018 * config/srclistvars.sh: Add defaults for eggert.
57019 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57020 Match "This program" as well as "The program". This is needed
57023 2003-07-14 Jim Meyering <jim@meyering.net>
57025 Don't emit diagnostics. Let callers do that.
57026 * lib/save-cwd.c: Don't include "error.h".
57027 (save_cwd): Don't call error. Ensure that errno is valid
57028 when returning nonzero.
57030 * lib/save-cwd.h (restore_cwd): Update prototype.
57031 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57032 Simplify. Don't call error upon failure. Let callers do that.
57033 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57034 when auditing is enabled. But don't bother updating the #if.
57036 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57038 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57039 it breaks C++ compilation.
57040 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57042 2003-07-10 Simon Josefsson <jas@extundo.com>
57044 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57046 2003-07-10 Jim Meyering <jim@meyering.net>
57048 * m4/clock_time.m4: Remove trailing blank.
57049 * m4/intmax_t.m4: Likewise.
57051 2003-07-10 Jim Meyering <jim@meyering.net>
57053 * lib/vasnprintf.c: Remove trailing blanks.
57054 Make cpp indentation consistent.
57056 2003-07-09 Paul Eggert <eggert@twinsun.com>
57058 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57059 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57060 Switch from LGPL to GPL.
57062 2003-07-09 Paul Eggert <eggert@twinsun.com>
57064 * config/srclist.txt: Sort sublists. Add
57065 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57066 that differ from gnulib for one reason or another; we'd like this list
57067 to be smaller but for now let's document what we have.
57069 2003-07-08 Paul Eggert <eggert@twinsun.com>
57071 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57072 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57073 and sweeter "eval x=$x".
57074 * config/srclist.txt: Get lib/argp* from glibc.
57076 2003-07-07 Paul Eggert <eggert@twinsun.com>
57078 * lib/mktime.c: Fix some boundary cases and remove need for floating
57081 Issue a compile-time diagnostic if time_t is floating point, or if
57082 two's complement arithmetic is not in effect, or if arithmetic
57083 right shift does not propagate the sign. These assumptions were
57084 all in the original code but they weren't checked.
57086 (TIME_T_MIDPOINT, verify): New macros.
57087 (__isleap): Remove; it has integer overflow problems.
57088 (leapyear): New function, without those problems.
57089 (ydhms_tm_diff): Remove; splitting into two parts.
57090 (ydhms_diff): New function, containing the arithmetic part of
57091 the old ydhms_tm_diff function. Issue a compile-time
57092 diagnostic if we are not using C99 integer division.
57093 Avoid casts when possible.
57094 (guess_time_tm): New function, containing the checking part of
57095 the old ydhms_tm_diff function. Return the new value, rather than
57096 the difference between it and the old. Accept a new argument T
57097 so that *T specifies the old value. Check for overflow in the result.
57099 (__mktime_internal): Use a time_t offset, not a long int offset.
57100 This undoes the 2003-06-04 change, which is no longer needed now
57101 that we have better overflow checking.
57102 (localtime_offset): Likewise.
57104 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57105 and long are 64-bit but int is only 32-bit.
57106 (ydhms_diff): Use long int to store year1 and yday1.
57107 Issue a compile-time diagnostic if long int is not wide enough.
57109 (__mktime_internal): Use long int to store adjusted year and yday.
57110 Use plain C rather than preprocessor commands, if that doesn't
57112 Check for overflow (and try to repair) after each probe
57113 rather than checking only at the very end. This avoids some bugs
57114 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57115 does not equal GMT offset at maximum time).
57116 Use integer to check for overflow rather than floating point; this
57117 is more portable to non-IEEE hosts, and is a tad faster.
57118 When we detect that we are oscillating between two values,
57119 don't check whether tm_isdst has the requested value, since
57120 we already know the answer. When tm_isdst has the wrong value,
57121 use a different heuristic to find the right one, based on the
57122 extreme values actually observed in practice in tz2003a,
57123 rather than the (overly optimistic) "previous 3 calendar quarters".
57125 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57126 "T const" to accommodate glibc style.
57127 (check_result): Use less-confusing report format. "long" -> "long int.
57129 Don't loop if the iteration overflows time_t.
57130 Allow a negative step in the iteration.
57132 2003-07-06 Karl Berry <karl@gnu.org>
57134 * config/depcomp: update from automake.
57135 * config/config.sub: update from prep.
57137 2003-07-03 Karl Berry <karl@gnu.org>
57139 * config/config.guess: update from prep.
57141 2003-07-01 Paul Eggert <eggert@twinsun.com>
57143 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57144 xreadlink.c now includes it unconditionally.
57146 2003-07-01 Paul Eggert <eggert@twinsun.com>
57148 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57149 having it depend on HAVE_SYS_TYPES_H.
57151 2003-07-01 Bruno Haible <bruno@clisp.org>
57153 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57154 <sys/types.h> should be sufficient.
57155 Reported by Paul Eggert.
57157 2003-06-26 Karl Berry <karl@gnu.org>
57159 * config/depcomp: update from automake.
57161 2003-06-26 Bruno Haible <bruno@clisp.org>
57163 * modules/human: Depend on module stdbool.
57165 2003-06-25 Bruno Haible <bruno@clisp.org>
57167 * modules/readlink: New file.
57168 * modules/xreadlink: Depend on it.
57169 * MODULES.html.sh (func_all_modules): Add readlink.
57171 2003-06-25 Bruno Haible <bruno@clisp.org>
57173 * m4/readlink.m4: New file.
57175 2003-06-25 Bruno Haible <bruno@clisp.org>
57177 * lib/readlink.c: New file.
57179 2003-06-22 Karl Berry <karl@gnu.org>
57181 * config/srclist.txt: update mkinstalldirs from automake.
57182 * config/mkinstalldirs: update.
57184 2003-06-22 Bruno Haible <bruno@clisp.org>
57186 Portability to mingw32.
57187 * m4/ssize_t.m4: New file, from GNU gettext.
57188 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57189 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57191 2003-06-22 Bruno Haible <bruno@clisp.org>
57193 * modules/safe-read: Add m4/ssize_t.m4.
57194 * modules/xreadlink: Add m4/ssize_t.m4.
57196 2003-06-20 Bruno Haible <bruno@clisp.org>
57198 Assume C89, so PARAMS isn't needed.
57199 * lib/unicodeio.h (PARAMS): Remove.
57200 * lib/unicodeio.c: Don't use PARAMS.
57202 2003-06-18 Karl Berry <karl@gnu.org>
57204 * config/config.{guess,sub}: update from prep.
57206 2003-06-18 Jim Meyering <jim@meyering.net>
57208 Merge changes from coreutils.
57209 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57210 Remove explicit declarations of xmalloc and realloc.
57212 (read_utmp): Remove anachronistic cast of xmalloc.
57214 2003-06-17 Paul Eggert <eggert@twinsun.com>
57216 Assume C89, so PARAMS isn't needed.
57217 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57218 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57219 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57220 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57221 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57222 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57223 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57224 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57225 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57226 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57227 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57228 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57229 no longer needed. Anyway, config.h should always be included before any
57232 2003-06-11 Simon Josefsson <jas@extundo.com>
57234 * modules/sysexits: New file.
57235 * MODULES.html.sh (func_all_modules): Add sysexits.
57237 2003-06-11 Simon Josefsson <jas@extundo.com>
57239 * lib/sysexit_.h: New file.
57241 2003-06-11 Derek Price <derek@ximbiot.com>
57243 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57246 2003-06-11 Bruno Haible <bruno@clisp.org>
57248 * m4/sysexits.m4: New file.
57250 2003-06-10 Simon Josefsson <jas@extundo.com>
57252 * lib/argp.h: New file, from glibc.
57253 * lib/argp-ba.c: New file, from glibc.
57254 * lib/argp-eexst.c: New file, from glibc.
57255 * lib/argp-fmtstream.c: New file, from glibc.
57256 * lib/argp-fmtstream.h: New file, from glibc.
57257 * lib/argp-fs-xinl.c: New file, from glibc.
57258 * lib/argp-help.c: New file, from glibc.
57259 * lib/argp-namefrob.h: New file, from glibc.
57260 * lib/argp-parse.c: New file, from glibc.
57261 * lib/argp-pv.c: New file, from glibc.
57262 * lib/argp-pvh.c: New file, from glibc.
57263 * lib/argp-xinl.c: New file, from glibc.
57265 2003-06-10 Simon Josefsson <jas@extundo.com>
57267 * modules/strchrnul: New file.
57269 2003-06-10 Simon Josefsson <jas@extundo.com>
57271 * modules/argp: New file.
57273 2003-06-10 Simon Josefsson <jas@extundo.com>
57275 * m4/strchrnul.m4: New file.
57277 2003-06-10 Simon Josefsson <jas@extundo.com>
57279 * lib/strchrnul.h: New file.
57280 * lib/strchrnul.c: New file.
57282 2003-06-10 Bruno Haible <bruno@clisp.org>
57284 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57286 2003-06-07 Karl Berry <karl@gnu.org>
57288 * config/config.{guess,sub}: update from prep.
57290 2003-06-07 Jim Meyering <jim@meyering.net>
57292 * modules/strtod: Use $(...) notation, not @...@ for
57293 AC_REPLACE'd variables.
57294 * modules/localcharset: Likewise.
57296 2003-06-07 Jim Meyering <jim@meyering.net>
57298 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57299 in place of my name in the copyright comment.
57300 Remove definition and uses of __P.
57303 * lib/stat.c: Don't declare xmalloc explicitly.
57304 Instead, include "xalloc.h".
57305 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57306 xrealloc, and xcalloc return values.
57307 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57309 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57311 2003-06-07 Bruno Haible <bruno@clisp.org>
57313 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57314 avoid AC_CONFIG_LINKS.
57315 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57316 fnmatch.h, to avoid AC_CONFIG_LINKS.
57317 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57319 2003-06-07 Bruno Haible <bruno@clisp.org>
57321 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57322 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57323 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57325 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57326 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57329 2003-06-06 Jim Meyering <jim@meyering.net>
57331 Merge from coreutils.
57332 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57333 Consolidate declarations and initializations of *_base* locals.
57335 Merge from coreutils.
57336 This avoids a core dump on systems without GNU putenv,
57337 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57338 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57339 (unsetenv): New static function, from GNU libc.
57340 (rpl_putenv): Use it.
57342 * lib/modechange.c: Remove trailing blanks.
57344 Merge from coreutils.
57345 * lib/fsusage.c: Remove declaration of statfs.
57346 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57348 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57350 2003-06-06 Jim Meyering <jim@meyering.net>
57352 * lib/stdbool_.h: Renamed from stdbool.h.in.
57354 2003-06-06 Jim Meyering <jim@meyering.net>
57355 Bruno Haible <bruno@clisp.org>
57357 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57358 Adjust Makefile.am snippet not to redirect directly to target.
57359 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57361 2003-06-05 Paul Eggert <eggert@twinsun.com>
57363 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57364 mismatch, look in future quarters as well as past. This fixes a
57365 bug when processing fall-backwards gaps immediately after a long
57366 period of daylight-saving time.
57368 * lib/mktime.c: Assume freestanding C89 or better.
57369 (HAVE_LIMITS_H): Remove. Assume it's 1.
57370 (__P): Remove; not used.
57371 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57372 (mktime, not_equal_tm, print_tm, check_result,
57373 main): Use prototypes. Use const * where appropriate.
57374 (main): Fix typo in testing code that uncovered by above changes.
57375 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57377 2003-06-04 Paul Eggert <eggert@twinsun.com>
57379 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57380 locale.h, localeconv. This merges changes from coreutils.
57382 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57383 It can be removed after the next Autoconf is released.
57384 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57387 2003-06-04 Paul Eggert <eggert@twinsun.com>
57389 * lib/mktime.c: Fix Debian bug 177940
57390 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57391 (localtime_offset): Now long int, not time_t, because we want it
57392 to be guaranteed to be signed. All uses changed.
57393 (__mktime_internal): If overflow would occur when adding offset,
57396 Merge 'human' changes from coreutils. Rewrite to support
57397 locale-specific notations like thousands separators.
57398 * lib/human.c: Simplify authorship notice.
57399 Include human.h immediately after config.h.
57400 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57401 <limits.h>: Do not include, since human.h does.
57402 (SIZE_MAX, UINTMAX_MAX): New macros.
57403 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57404 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57405 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57406 (power_letter): Renamed from suffixes.
57407 (generate_suffix_backwards): Remove.
57408 (adjust_value): Now takes int style (because of human.h changes)
57409 and long double value (for greater precision on some platforms).
57410 (group_number): New function.
57411 (human_readable): Use it. Use integer options, not enum.
57412 Put the options before the sizes in the arg list.
57413 Support all the new options.
57414 The old human_readable function has been removed;
57415 use inttostr.h instead.
57416 (human_readable, default_block_size, humblock):
57417 Use uintmax_t, not int, for block sizes.
57418 (human_readable_inexact, block_size_types): Remove.
57419 (block_size_opts): New constant.
57420 (human_options): Renamed from human_block_size, with new signature
57421 that allows block sizes up to UINTMAX_MAX. All callers changed.
57422 * lib/human.h: Add copyright and authorship notice.
57423 Include <limits.h> and <stdbool.h> unconditionally.
57424 (PARAMS): Remove. All uses removed.
57425 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57426 (enum human_inexact_style): Remove tag; now a nameless enum.
57427 (human_floor, human_ceiling, human_round_to_even): Now have
57428 values 2, 0, 1 rather than -1, 1, 0.
57429 (human_group_digits, human_suppress_point_zero, human_autoscale,
57430 human_base_1024, human_SI, human_B): New constants.
57431 (human_readable_inexact, human_block_size): Remove.
57432 (human_readable): Size args are now uintmax_t, not int.
57433 (human_options): New decl.
57435 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57436 unnecessary now that we assume C89 or better. This change
57437 imported from coreutils.
57439 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57440 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57441 in the 2003-05-30 sync from glibc.
57443 .h files should stand alone, but we shouldn't include <sys/types.h>
57444 if we can get away with just <stddef.h>.
57446 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57447 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57448 rather than <sys/types.h>, as we merely need size_t.
57449 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57451 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57452 Include <stdio.h>, to get FILE.
57453 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57454 memcasecmp.h has included <stddef.h> and all we need is size_t.
57455 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57456 our interface, instead of including <sys/types.h>
57458 2003-06-04 Paul Eggert <eggert@twinsun.com>
57460 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57461 now, as glibc mktime is buggy on non-glibc systems.
57463 2003-06-03 Karl Berry <karl@gnu.org>
57465 * config/config.sub: update from prep.
57467 2003-06-02 Paul Eggert <eggert@twinsun.com>
57470 Fix some minor time-related bugs with POSIX time arguments.
57471 Some valid time stamps were being rejected (notably -1, and
57472 time stamps before 1900 on 64-bit hosts). And some invalid
57473 time stamps were being accepted, e.g. September 31.
57475 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57476 that we can return (time_t) -1 successfully.
57477 * lib/posixtm.c: Likewise.
57478 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57479 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57480 (t): Remove static var.
57481 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57482 of static var. All uses changed.
57483 (year): Do not reject years before 1900; they can occur with
57485 (posix_time_parse): Do not check for out-of-range components;
57486 that is now the caller's responsibility, since our checks were
57487 only approximations.
57488 (posixtime): Use mktime to check for out-of-range components,
57489 since it knows them exactly.
57490 If mktime returns (time_t) -1, check whether an error actually occurred
57491 by invoking localtime on -1.
57492 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57493 posixtime failures better.
57494 Improve the test data (in comments only).
57496 2003-06-02 Karl Berry <karl@gnu.org>
57498 * config/mkinstalldirs (version): new variable.
57499 (--version): new option.
57500 (usage): improve message.
57502 2003-05-30 Karl Berry <karl@gnu.org>
57504 * lib/mktime.c: update from libc.
57506 2003-05-30 Bruno Haible <bruno@clisp.org>
57508 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57509 * config/config.rpath: Upgrade to gettext-0.12.1.
57511 2003-05-30 Bruno Haible <bruno@clisp.org>
57513 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57514 * m4/nls.m4: New file, from gettext-0.12.1.
57515 * m4/po.m4: New file, from gettext-0.12.1.
57516 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57518 2003-05-30 Bruno Haible <bruno@clisp.org>
57520 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57521 * lib/localcharset.h: Likewise.
57522 * lib/localcharset.c: Likewise.
57524 2003-05-29 Karl Berry <karl@gnu.org>
57526 * config/config.rpath: update from gettext.
57528 2003-05-28 Paul Eggert <eggert@twinsun.com>
57530 Assume the headers required for C89 freestanding compilers.
57531 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57532 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57533 * m4/human.m4 (gl_HUMAN): Likewise.
57534 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57535 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57536 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57537 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57538 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57539 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57541 2003-05-28 Paul Eggert <eggert@twinsun.com>
57543 Assume the headers required for C89 freestanding compilers.
57544 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57545 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57546 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57547 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57548 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57549 define, since <limits.h> is guaranteed to do that.
57550 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57551 * lib/exclude.c: Include <stdbool.h> unconditionally.
57552 * lib/tempname.c: Include <stddef.h> unconditionally.
57553 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57554 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57555 <stddef.h> does that.
57556 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57557 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57558 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57560 * lib/xstrtol.c: Likewise.
57561 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57562 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57564 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57565 warnings on some platforms.
57567 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57570 2003-05-26 Jim Meyering <jim@meyering.net>
57572 Merge in a change from coreutils:
57573 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57574 that is guaranteed to be `no'. Use `no_such_member' to indicate
57575 that condition, rather than `-1' which is slightly misleading.
57576 Change the name of the cache variable to have the gl_ prefix.
57577 Prompted by a patch from Richard Dawe for DJGPP.
57579 2003-05-24 Karl Berry <karl@gnu.org>
57581 * config/config.guess: update from prep.
57583 2003-05-22 Karl Berry <karl@gnu.org>
57585 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57587 2003-05-20 Karl Berry <karl@gnu.org>
57589 * config/config.guess: update from prep.
57591 2003-05-18 Karl Berry <karl@gnu.org>
57593 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57594 might actually be set by the user.
57596 * config/depcomp, install-sh, mdate-sh: update from automake.
57598 2003-05-17 Bruno Haible <bruno@clisp.org>
57600 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57601 invalid expansion for AC_EGREP_CPP.
57602 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57603 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57604 Suggested by Akim Demaille <akim@epita.fr> in
57605 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57607 2003-05-12 Jim Meyering <jim@meyering.net>
57609 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57610 the space-padded-by-default conversion specifiers, %e, %k, %l.
57612 2003-05-12 Bruno Haible <bruno@clisp.org>
57614 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57615 the string is longer than 4 KB.
57617 2003-05-11 Karl Berry <karl@gnu.org>
57619 * config/config.{guess,sub}: update from prep.
57621 2003-05-09 Bruno Haible <bruno@clisp.org>
57623 * modules/error: Add m4/strerror_r.m4 to file list.
57625 2003-05-03 Bruno Haible <bruno@clisp.org>
57627 Upgrade to Unicode-4.0.
57628 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57629 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57630 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57631 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57632 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57633 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57634 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57635 Change width of U+E0100..U+E01EF from 1 to 0.
57637 2003-04-25 Jim Meyering <jim@meyering.net>
57639 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57640 of type size_t, not int.
57642 2003-04-25 Bruno Haible <bruno@clisp.org>
57644 * lib/copy-file.c: Include <stddef.h>, for size_t.
57646 2003-04-21 Paul Eggert <eggert@twinsun.com>
57648 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57649 code which expansion is under static control. Patch imported from
57650 Akim Demaille's patch to Bison; see
57651 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57653 2003-04-14 Bruno Haible <bruno@clisp.org>
57655 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57657 2003-04-11 Jim Meyering <jim@meyering.net>
57659 Merge changes from Coreutils.
57661 2003-03-22 Jim Meyering <jim@meyering.net>
57663 * lib/strftime.c (widen): Cast alloca return value to proper type.
57665 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57668 * lib/strftime.c (my_strftime): Handle very large width
57669 specifications for numeric values correctly. Improve checks for
57672 2003-01-19 Jim Meyering <jim@meyering.net>
57674 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57676 (nl_get_alt_digit) [! defined my_strftime]: Define.
57677 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57678 _nl_get_alt_digit and _nl_get_walt_digit.
57680 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57681 libc. These changes have no effect outside of _LIBC.
57683 2003-04-10 Bruno Haible <bruno@clisp.org>
57685 * modules/findprog: New file.
57686 * MODULES.html.sh (func_all_modules): Add it.
57688 2003-04-10 Bruno Haible <bruno@clisp.org>
57690 * m4/findprog.m4: New file.
57691 * m4/eaccess.m4: New file.
57693 2003-04-10 Bruno Haible <bruno@clisp.org>
57695 * lib/findprog.h: New file, from GNU gettext.
57696 * lib/findprog.c: New file, from GNU gettext.
57698 2003-04-05 Jim Meyering <jim@meyering.net>
57700 Merge changes from Coreutils.
57702 * lib/exclude.h (PARAMS): Remove definition and uses.
57703 * lib/exclude.c: Remove uses of `PARAMS'.
57705 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57706 Add test-cases for DOS filenames. Declare program_name.
57707 (main): Set up program_name. Patch by Rich Dawe.
57709 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57711 Use mntctl's return value to drive the entry-processing loop, since
57712 we can't rely on the value of the vmt_length member in the last
57713 entry. On some systems doing so could result in exhausting
57714 virtual memory. Based in part on a patch from Mike Jetzer.
57716 2003-04-04 Bruno Haible <bruno@clisp.org>
57718 * modules/linebreak: New file.
57719 * MODULES.html.sh (func_all_modules): Add it.
57721 2003-04-04 Bruno Haible <bruno@clisp.org>
57723 * m4/linebreak.m4: New file.
57725 2003-04-04 Bruno Haible <bruno@clisp.org>
57727 * lib/linebreak.h: New file, from GNU gettext.
57728 * lib/linebreak.c: New file, from GNU gettext with slight
57730 * lib/lbrkprop.h: New file, from GNU gettext.
57732 2003-04-03 Bruno Haible <bruno@clisp.org>
57734 * modules/utf8-ucs4: New file.
57735 * modules/utf16-ucs4: New file.
57736 * modules/ucs4-utf8: New file.
57737 * modules/ucs4-utf16: New file.
57738 * MODULES.html.sh (func_all_modules): Add them.
57740 2003-04-03 Bruno Haible <bruno@clisp.org>
57742 * m4/utf-ucs4.m4: New file.
57743 * m4/ucs4-utf.m4: New file.
57745 2003-04-03 Bruno Haible <bruno@clisp.org>
57747 * lib/utf8-ucs4.h: New file, from GNU gettext.
57748 * lib/utf16-ucs4.h: New file, from GNU gettext.
57749 * lib/ucs4-utf8.h: New file, from GNU gettext.
57750 * lib/ucs4-utf16.h: New file, from GNU gettext.
57752 2003-04-02 Bruno Haible <bruno@clisp.org>
57754 * modules/binary-io: New file.
57755 * MODULES.html.sh (func_all_modules): Add it.
57757 2003-04-02 Bruno Haible <bruno@clisp.org>
57759 * lib/binary-io.h: New file, from GNU gettext.
57761 2003-04-01 Bruno Haible <bruno@clisp.org>
57763 * modules/pathname: New file.
57764 * MODULES.html.sh (func_all_modules): Add it.
57766 2003-04-01 Bruno Haible <bruno@clisp.org>
57768 * lib/pathname.h: New file, from GNU gettext.
57769 * lib/concatpath.c: New file, from GNU gettext.
57771 2003-03-30 Bruno Haible <bruno@clisp.org>
57773 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57775 2003-03-30 Bruno Haible <bruno@clisp.org>
57777 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57778 function chown() doesn't exist.
57780 2003-03-28 Bruno Haible <bruno@clisp.org>
57782 * modules/copy-file: New file.
57783 * MODULES.html.sh (func_all_modules): Add it.
57785 2003-03-28 Bruno Haible <bruno@clisp.org>
57787 * m4/copy-file.m4: New file.
57789 2003-03-28 Bruno Haible <bruno@clisp.org>
57791 * lib/copy-file.h: New file, from GNU gettext.
57792 * lib/copy-file.c: New file, from GNU gettext.
57794 2003-03-18 Jim Meyering <jim@meyering.net>
57796 * lib/quote.c (quote_n): Fix typo in comment.
57798 2003-03-18 Bruno Haible <bruno@clisp.org>
57800 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57802 * m4/onceonly_2_57.m4: Likewise.
57804 2003-03-17 Bruno Haible <bruno@clisp.org>
57806 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57807 (m4_quote): Remove macro.
57808 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57810 2003-03-14 Jim Meyering <jim@meyering.net>
57812 Merge changes from Coreutils.
57813 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57814 to be const, in order to avoid warnings.
57815 (obstack_room): Likewise.
57816 (obstack_empty_p): Likewise.
57818 2003-03-14 Bruno Haible <bruno@clisp.org>
57820 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57821 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57823 2003-03-13 Paul Eggert <eggert@twinsun.com>
57825 Merge changes from Bison.
57826 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57827 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57828 when compiling Bison 1.875's `bitset bset = obstack_alloc
57829 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
57830 * lib/hash.c: Include <stdbool.h> unconditionally.
57832 2003-03-13 Paul Eggert <eggert@twinsun.com>
57834 * m4/onceonly.m4 (m4_quote): New macro.
57835 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57836 Quote AC_FOREACH variable-expansions properly.
57838 2003-03-13 Paul Eggert <eggert@twinsun.com>
57840 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57842 2003-03-09 Paul Eggert <eggert@twinsun.com>
57844 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57845 Reported by Bruce Becker; see:
57846 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57848 2003-03-03 Paul Eggert <eggert@twinsun.com>
57849 Bruno Haible <bruno@clisp.org>
57851 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57852 Reported by John Hughes, see
57853 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57855 2003-02-20 Bruno Haible <bruno@clisp.org>
57857 * MODULES.html.sh (func_all_modules): Add poll.
57859 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57861 * modules/poll: New file.
57863 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57865 * lib/poll_.h: New file.
57866 * lib/poll.c: New file.
57868 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57870 * m4/poll.m4: New file.
57872 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57874 * modules/mathl: New file.
57876 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57878 * lib/mathl.h: New file.
57879 * lib/acosl.c: New file.
57880 * lib/asinl.c: New file.
57881 * lib/atanl.c: New file.
57882 * lib/ceill.c: New file.
57883 * lib/cosl.c: New file.
57884 * lib/expl.c: New file.
57885 * lib/floorl.c: New file.
57886 * lib/frexpl.c: New file.
57887 * lib/ldexpl.c: New file.
57888 * lib/logl.c: New file.
57889 * lib/sincosl.c: New file.
57890 * lib/sinl.c: New file.
57891 * lib/sqrtl.c: New file.
57892 * lib/tanl.c: New file.
57893 * lib/trigl.c: New file.
57894 * lib/trigl.h: New file.
57896 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57898 * m4/mathl.m4: New file.
57900 2003-02-18 Bruno Haible <bruno@clisp.org>
57902 * MODULES.html.sh (func_all_modules): Add mathl.
57904 2003-02-17 Bruno Haible <bruno@clisp.org>
57906 * modules/mkdtemp: New module.
57907 * MODULES.html.sh (func_all_modules): Add it.
57909 2003-02-17 Bruno Haible <bruno@clisp.org>
57911 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57913 2003-02-17 Bruno Haible <bruno@clisp.org>
57915 * lib/mkdtemp.h: New file, from GNU gettext.
57916 * lib/mkdtemp.c: New file, from GNU gettext.
57918 2003-02-02 Jim Meyering <jim@meyering.net>
57920 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57923 2003-01-31 Bruno Haible <bruno@clisp.org>
57925 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57927 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57929 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57931 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57934 2003-01-31 Bruno Haible <bruno@clisp.org>
57936 * lib/rename.c: #undef rename before defining rpl_rename.
57937 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57939 2003-01-30 Bruno Haible <bruno@clisp.org>
57941 * modules/vasnprintf, modules/vasprintf: New modules.
57942 * MODULES.html.sh (func_all_modules): Add them.
57944 2003-01-30 Bruno Haible <bruno@clisp.org>
57946 * m4/signed.m4: New file, from GNU gettext.
57947 * m4/longdouble.m4: New file, from GNU gettext.
57948 * m4/wchar_t.m4: New file, from GNU gettext.
57949 * m4/wint_t.m4: New file, from GNU gettext.
57950 * m4/vasnprintf.m4: New file.
57951 * m4/vasprintf.m4: New file.
57953 2003-01-30 Bruno Haible <bruno@clisp.org>
57955 * lib/printf-args.h: New file, from GNU gettext.
57956 * lib/printf-args.c: New file, from GNU gettext.
57957 * lib/printf-parse.h: New file, from GNU gettext.
57958 * lib/printf-parse.c: New file, from GNU gettext.
57959 * lib/vasnprintf.h: New file, from GNU gettext.
57960 * lib/vasnprintf.c: New file, from GNU gettext.
57961 * lib/asnprintf.c: New file, from GNU gettext.
57962 * lib/vasprintf.h: New file, from GNU gettext with modifications.
57963 * lib/vasprintf.c: New file, from GNU gettext.
57964 * lib/asprintf.c: New file, from GNU gettext.
57966 2003-01-29 Bruno Haible <bruno@clisp.org>
57968 * modules/stpncpy: New module.
57969 * MODULES.html.sh (func_all_modules): Add it.
57971 2003-01-29 Bruno Haible <bruno@clisp.org>
57973 * m4/stpncpy.m4: New file.
57975 2003-01-29 Bruno Haible <bruno@clisp.org>
57977 * lib/stpncpy.h: New file, from GNU gettext with modifications.
57978 * lib/stpncpy.c: New file, from GNU gettext with modifications.
57980 2003-01-28 Bruno Haible <bruno@clisp.org>
57982 * modules/c-ctype: New module.
57983 * MODULES.html.sh (func_all_modules): Add it.
57985 2003-01-28 Bruno Haible <bruno@clisp.org>
57987 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57989 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57992 2003-01-27 Bruno Haible <bruno@clisp.org>
57994 * modules/xsetenv: New module.
57995 * MODULES.html.sh (func_all_modules): Add it.
57997 2003-01-27 Bruno Haible <bruno@clisp.org>
57999 * lib/xsetenv.h: New file, from GNU gettext.
58000 * lib/xsetenv.c: New file, from GNU gettext.
58002 2003-01-23 Jim Meyering <jim@meyering.net>
58004 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58005 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58007 2003-01-23 Bruno Haible <bruno@clisp.org>
58009 * modules/minmax: New module.
58010 * MODULES.html.sh (func_all_modules): Add it.
58012 2003-01-23 Bruno Haible <bruno@clisp.org>
58014 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58017 2003-01-22 Bruno Haible <bruno@clisp.org>
58019 * modules/exit: New module.
58020 * MODULES.html.sh (func_all_modules): Add it.
58022 2003-01-22 Bruno Haible <bruno@clisp.org>
58024 * lib/exit.h: New file, from GNU gettext.
58026 2003-01-19 Bruno Haible <bruno@clisp.org>
58028 * gnulib-tool: Recognize option --extract-maintainer.
58029 (func_get_maintainer): New function.
58030 * modules/*: Add Maintainer entry.
58032 2003-01-16 Jim Meyering <jim@meyering.net>
58034 * m4/regex.m4: The `regex' struct is both input and output.
58035 Initialize it before each use. Patch by Tim Waugh.
58037 2003-01-16 Bruno Haible <bruno@clisp.org>
58039 * MODULES.html.sh: Add a table of contents. Add the module name as
58040 leftmost column. Add hyperlinks.
58042 2003-01-15 Bruno Haible <bruno@clisp.org>
58044 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58046 2003-01-15 Bruno Haible <bruno@clisp.org>
58048 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58049 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58052 2003-01-15 Bruno Haible <bruno@clisp.org>
58054 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58056 2003-01-15 Bruno Haible <bruno@clisp.org>
58058 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58059 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58061 2003-01-14 Jim Meyering <jim@meyering.net>
58063 * lib/same.c (same_name): Tweak a comment.
58065 2003-01-14 Bruno Haible <bruno@clisp.org>
58067 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58068 when a string comparison is sufficient.
58070 2003-01-14 Bruno Haible <bruno@clisp.org>
58072 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58075 2003-01-14 Bruno Haible <bruno@clisp.org>
58077 * lib/hash-pjw.c: Add comment about low quality of this function.
58079 2003-01-13 Bruno Haible <bruno@clisp.org>
58081 * modules/stpcpy: Distribute lib/stpcpy.h.
58082 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58084 2003-01-13 Bruno Haible <bruno@clisp.org>
58086 * modules/*: Add a description.
58087 * modules/strpbrk: Fix Makefile.am snippet.
58088 * modules/strtoimax: Fix dependencies.
58089 * modules/strtoumax: Likewise.
58091 2003-01-13 Bruno Haible <bruno@clisp.org>
58093 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58094 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58095 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58097 2003-01-13 Bruno Haible <bruno@clisp.org>
58099 * gnulib-tool (func_create_testdir): Store config/* files in the main
58101 * config.rpath: Move to ...
58102 * config/config.rpath: ... here.
58103 * modules/gettext: Contains config/config.rpath, not config.rpath.
58104 * modules/iconv: Likewise.
58106 2003-01-12 Paul Eggert <eggert@twinsun.com>
58108 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58109 to avoid collisions with libcurses and libreadline.
58111 * m4/getstr.m4: Remove.
58112 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58114 2003-01-12 Paul Eggert <eggert@twinsun.com>
58116 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58117 to avoid collisions with libcurses and libreadline.
58119 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58120 * lib/getstr.h, getstr.c: Remove.
58121 * lib/getline.c: Include "getline.h", to check interface.
58122 Move body of old getstr.c here: this defines MIN_CHUNK and
58123 declares getdelim2, which is renamed from getstr.
58124 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58126 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58128 * lib/linebuffer.h: Likewise.
58129 (readline): Remove backward-compatibility macro.
58131 2003-01-12 Paul Eggert <eggert@twinsun.com>
58133 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58134 to avoid collisions with libcurses and libreadline.
58136 * MODULES.html.sh: Remove getstr.
58137 * modules/getline: Depend on unlocked-io, not getstr.
58139 2003-01-12 Jim Meyering <jim@meyering.net>
58141 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58143 2003-01-10 Bruno Haible <bruno@clisp.org>
58145 * modules/alloca: Change Makefile.am requirements. Simplify Include
58146 requirements. Add lib/alloca_.h to file list.
58148 2003-01-10 Bruno Haible <bruno@clisp.org>
58150 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58152 2003-01-10 Bruno Haible <bruno@clisp.org>
58154 * lib/alloca_.h: New file.
58155 * lib/getdate.y: Unconditionally include alloca.h.
58156 * lib/makepath.c: Likewise.
58157 * lib/setenv.c: Likewise.
58158 * lib/userspec.c: Likewise.
58160 2003-01-09 Karl Berry <karl@gnu.org>
58162 * MODULES.html.sh: include `dirname $0` in PATH, to find
58165 2003-01-09 Bruno Haible <bruno@clisp.org>
58167 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58168 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58170 2003-01-09 Bruno Haible <bruno@clisp.org>
58172 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58174 2003-01-09 Bruno Haible <bruno@clisp.org>
58176 * lib/stdbool.h.in: New file.
58178 2003-01-09 Bruno Haible <bruno@clisp.org>
58180 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58181 * MODULES.html.sh: Likewise.
58183 2003-01-08 Jim Meyering <jim@meyering.net>
58185 * lib/full-write.c: Undefine and define-away `const' after inclusion
58186 of errno.h, not before. Suggestion from Bruno Haible.
58188 2003-01-08 Bruno Haible <bruno@clisp.org>
58190 * modules/full-read: Depend on full-write.
58192 2003-01-08 Bruno Haible <bruno@clisp.org>
58194 * lib/safe-read.c: Include specification header first, to ensure its
58196 * lib/full-write.c: Likewise.
58198 2003-01-07 Jim Meyering <jim@meyering.net>
58200 * lib/full-write.c: Rework so that it may serve to define full_read,
58202 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58204 2003-01-07 Bruno Haible <bruno@clisp.org>
58206 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58208 * lib/xstrtol.h: Likewise.
58209 * lib/xstrtoimax.c: Likewise.
58210 * lib/xstrtoumax.c: Likewise.
58211 * lib/human.h: Likewise.
58213 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58214 on systems that have <inttypes.h> but not <stdint.h>.
58216 2003-01-07 Bruno Haible <bruno@clisp.org>
58218 * MODULES.html.sh: Add copyright notice.
58219 (missed_files): Omit CVS directory entries.
58220 (func_module): Make it work with sed-3.02.
58221 * MODULES.txt: Remove file.
58223 2003-01-06 Jim Meyering <jim@meyering.net>
58225 * lib/version-etc.c: Update year in translatable copyright string.
58227 2003-01-03 Karl Berry <karl@gnu.org>
58229 * config/config.{guess,sub}: update from prep.
58231 2003-01-02 Karl Berry <karl@gnu.org>
58233 * doc/COPYING.DOC: belatedly updated to 1.2.
58235 2003-01-01 Karl Berry <karl@gnu.org>
58237 * gnulib-tool (func_verify_module): report module name $module in
58238 error message, not $1.
58239 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58240 be created, only if it doesn't exist.
58241 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58243 2002-12-31 Paul Eggert <eggert@twinsun.com>
58245 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58247 2002-12-31 Paul Eggert <eggert@twinsun.com>
58249 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58250 memcmp if strcoll doesn't work.
58252 2002-12-31 Bruno Haible <bruno@clisp.org>
58254 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58257 2002-12-31 Bruno Haible <bruno@clisp.org>
58259 * lib/memcoll.c (STRCOLL): New macro.
58262 2002-12-31 Bruno Haible <bruno@clisp.org>
58264 * lib/localcharset.h: New file.
58265 * lib/localcharset.c: Include it.
58266 * lib/unicodeio.c: Likewise.
58268 2002-12-31 Bruno Haible <bruno@clisp.org>
58270 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58271 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58273 2002-12-31 Bruno Haible <bruno@clisp.org>
58275 * lib/getline.h: Include <stddef.h>, for size_t.
58277 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58278 * lib/unicodeio.c: Don't include <stddef.h>.
58280 2002-12-31 Bruno Haible <bruno@clisp.org>
58282 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58285 2002-12-24 Karl Berry <karl@gnu.org>
58287 * config/config.guess: update from prep.
58289 2002-12-24 Bruno Haible <bruno@clisp.org>
58291 General infrasructure.
58292 * m4/README: Rewritten.
58293 * m4/onceonly.m4: New file.
58294 * m4/onceonly_2_57.m4: New file.
58297 * m4/atexit.m4: New file.
58300 * m4/strtod.m4: New file.
58303 * m4/strtol.m4: New file.
58306 * m4/strtoul.m4: New file.
58309 * m4/memchr.m4: New file.
58312 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58313 (jm_FUNC_MEMCMP): Invoke it.
58316 * m4/memcpy.m4: New file.
58319 * m4/memmove.m4: New file.
58322 * m4/memset.m4: New file.
58325 * m4/strcspn.m4: New file.
58328 * m4/strpbrk.m4: New file.
58331 * m4/strstr.m4: New file.
58334 * m4/strerror.m4: New file.
58337 * m4/mktime.m4: Renamed from jm-mktime.m4.
58338 (gl_PREREQ_MKTIME): New macro.
58339 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58342 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58343 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58344 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58347 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58348 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58349 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58352 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58353 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58354 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58356 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58359 * m4/xalloc.m4: New file.
58362 * m4/alloca.m4: New file.
58365 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58366 (jm_FUNC_PUTENV): Invoke it.
58369 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58370 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58371 when invoked twice.
58372 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58376 * m4/memrchr.m4: New file.
58379 * m4/stpcpy.m4: New file.
58382 * m4/strcase.m4: New file.
58385 * m4/strdup.m4: New file.
58388 * m4/strnlen.m4: New file.
58391 * m4/strndup.m4: New file.
58394 * m4/xstrtod.m4: New file.
58397 * m4/xstrtol.m4: New file.
58400 * m4/getdate.m4: New file.
58402 Module unlocked-io.
58403 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58404 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58405 * m4/jm-glibc-io.m4n: Remove file.
58407 Module long-options.
58408 * m4/long-options.m4: New file.
58411 * m4/md5.m4: New file.
58414 * m4/sha.m4: New file.
58417 * m4/getstr.m4: New file.
58420 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58421 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58422 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58423 simply getline. Infoke gl_PREREQ_GETLINE.
58426 * m4/obstack.m4: New file.
58429 * m4/hash.m4: New file.
58432 * m4/readtokens.m4: New file.
58435 * m4/strverscmp.m4: New file.
58438 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58442 * m4/strtoll.m4: New file.
58445 * m4/strtoull.m4: New file.
58448 * m4/strtoimax.m4: New file.
58451 * m4/strtoumax.m4: New file.
58454 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58455 jm_AC_PREREQ_XSTRTOIMAX.
58456 Moved the strtol prerequisites to strtol.m4.
58457 Moved the strtoll prerequisites to strtoll.m4.
58458 Moved the strtoimax prerequisites to strtoimax.m4.
58461 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58462 jm_AC_PREREQ_XSTRTOUMAX.
58463 Moved the strtoul prerequisites to strtoul.m4.
58464 Moved the strtoull prerequisites to strtoull.m4.
58465 Moved the strtoumax prerequisites to strtoumax.m4.
58468 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58469 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58472 * m4/dup2.m4: New file.
58475 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58476 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58479 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58480 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58482 Module gettimeofday.
58483 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58484 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58485 gl_PREREQ_GETTIMEOFDAY.
58488 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58489 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58492 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58493 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58494 jm_AC_TYPE_UINTMAX_T.
58495 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58498 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58499 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58502 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58503 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58506 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58507 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58508 * m4/st_mtim.m4: Indentation.
58511 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58512 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58513 gl_PREREQ_NANOSLEEP.
58516 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58517 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58518 (gl_REGEX): New macro.
58521 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58522 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58525 * m4/rmdir.m4: New file.
58528 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58529 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58530 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58533 * m4/dirname.m4: New file.
58536 * m4/getopt.m4: New file.
58538 Module unistd-safer.
58539 * m4/unistd-safer.m4: New file.
58542 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58544 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58545 (gl_FUNC_FNMATCH_POSIX): New macro.
58546 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58547 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58551 * m4/exclude.m4: New file.
58554 * m4/human.m4: New file.
58560 * m4/backupfile.m4: New file.
58561 * m4/d-ino.m4: Indentation.
58564 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58565 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58566 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58569 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58573 * m4/euidaccess.m4: New file.
58576 * m4/file-type.m4: New file.
58579 * m4/fileblocks.m4: New file.
58582 * m4/filemode.m4: New file.
58585 * m4/isdir.m4: New file.
58588 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58589 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58592 * m4/makepath.m4: New file.
58595 * m4/modechange.m4: New file.
58598 * m4/mountlist.m4: New file.
58599 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58602 Module path-concat.
58603 * m4/path-concat.m4: New file.
58606 * m4/pathmax.m4: New file.
58609 * m4/same.m4: New file.
58612 * m4/save-cwd.m4: New file.
58615 * m4/savedir.m4: New file.
58618 * m4/xgetcwd.m4: New file.
58619 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58622 * m4/xreadlink.m4: New file.
58625 * m4/safe-read.m4: New file.
58628 * m4/safe-write.m4: New file.
58631 * m4/closeout.m4: New file.
58633 Module stdio-safer.
58634 * m4/stdio-safer.m4: New file.
58637 * m4/getpass.m4: New file.
58640 * m4/getugroups.m4: New file.
58642 Module group-member.
58643 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58644 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58647 * m4/idcache.m4: New file.
58650 * m4/userspec.m4: New file.
58653 * m4/clock_time.m4: New file.
58654 * m4/gettime.m4: New file.
58657 * m4/settime.m4: New file.
58660 * m4/posixtm.m4: New file.
58662 Module gethostname.
58663 * m4/gethostname.m4: New file.
58666 * m4/canon-host.m4: New file.
58669 * m4/codeset.m4: New file, from gettext-0.11.5.
58670 * m4/gettext.m4: New file, from gettext-0.11.5.
58671 * m4/glibc21.m4: New file, from gettext-0.11.5.
58672 * m4/iconv.m4: New file, from gettext-0.11.5.
58673 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58674 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58675 * m4/inttypes.m4: New file, from gettext-0.11.5.
58676 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58677 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58678 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58679 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58680 * m4/lib-link.m4: New file, from gettext-0.11.5.
58681 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58682 * m4/progtest.m4: New file, from gettext-0.11.5.
58683 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58684 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58685 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58687 Module localcharset.
58688 * m4/localcharset.m4: New file.
58690 Module hard-locale.
58691 * m4/hard-locale.m4: New file.
58694 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58696 * m4/mbrtowc.m4: Add comment.
58699 * m4/memcasecmp.m4: New file.
58702 * m4/memcoll.m4: New file.
58705 * m4/unicodeio.m4: New file.
58708 * m4/rpmatch.m4: New file.
58711 * m4/yesno.m4: New file.
58714 * m4/exitfail.m4: New file.
58717 * m4/c-stack.m4 (gl_C_STACK): New macro.
58718 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58721 * m4/error.m4 (gl_ERROR): New macro.
58722 (jm_PREREQ_ERROR): Use onceonly macros.
58725 * m4/fatal.m4: New file.
58728 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58729 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58731 Module getpagesize.
58732 * m4/getpagesize.m4: New file.
58734 Module getusershell.
58735 * m4/getusershell.m4: New file.
58738 * m4/physmem.m4: New file.
58741 * m4/posixver.m4: New file.
58744 * m4/quotearg.m4: New file.
58747 * m4/quote.m4: New file.
58750 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58753 * m4/sig2str.m4: New file.
58756 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58758 * m4/intmax_t.m4: New file.
58759 * m4/d-type.m4: Indentation.
58760 * m4/jm-macros.m4: Update.
58761 * m4/prereq.m4 (jm_PREREQ): Update.
58762 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58763 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58764 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58765 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58766 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58767 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58768 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58769 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58770 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58771 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58772 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58773 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58774 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58775 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58776 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58777 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58778 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58779 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58780 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58782 2002-12-24 Bruno Haible <bruno@clisp.org>
58784 * MODULES.txt: Update according to m4/ changes.
58787 * config.rpath: New file, from gettext-0.11.5.
58789 * modules/*: New module descriptions.
58790 * gnulib-tool: New file.
58791 * MODULES.html.sh: New file.
58793 2002-12-21 Karl Berry <karl@gnu.org>
58795 * doc/fdl.texi: update to version 1.2.
58797 2002-12-19 Karl Berry <karl@gnu.org>
58799 * config/config.guess: update from prep.
58801 2002-12-18 Bruno Haible <bruno@clisp.org>
58803 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58804 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58806 2002-12-17 Bruno Haible <bruno@clisp.org>
58808 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58809 stdlib.h, string.h.
58811 2002-12-17 Bruno Haible <bruno@clisp.org>
58813 * lib/canon-host.c (strdup): Remove unused declaration.
58815 * lib/fsusage.c: Include full_read.h.
58816 (get_fs_usage): Use full_read instead of safe_read.
58818 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58820 2002-12-12 Karl Berry <karl@gnu.org>
58822 * config/config.guess: update from prep.
58824 2002-12-11 Bruno Haible <bruno@clisp.org>
58826 * m4/setenv.m4: New file, from gettext-0.11.5.
58828 2002-12-11 Bruno Haible <bruno@clisp.org>
58830 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58832 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58835 2002-12-11 Bruno Haible <bruno@clisp.org>
58837 * setenv.c (alloca): Fall back to malloc.
58838 (freea): New macro.
58839 (setenv): Use freea() to free memory allocated with alloca().
58841 2002-11-13 Bruno Haible <bruno@clisp.org>
58843 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58844 function declarations.
58845 * unsetenv.c (unsetenv): Likewise.
58847 2002-03-04 Bruno Haible <bruno@clisp.org>
58849 Portability to AIX 4.3.3.
58850 * unsetenv.c: New file, extracted from setenv.c.
58851 * setenv.c: Move the unsetenv() function to unsetenv.c.
58853 2001-12-20 Bruno Haible <bruno@clisp.org>
58855 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58856 use malloc instead. For SunOS 4.
58858 2001-12-11 Bruno Haible <bruno@clisp.org>
58860 * setenv.c: Declare alloca.
58861 (compar_fn_t): New typedef.
58862 (KNOWN_VALUE, STORE_VALUE): Use it.
58864 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58867 2002-12-10 Paul Eggert <eggert@twinsun.com>
58869 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58870 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58871 Choose values that are less likely to collide with system fnmatch
58873 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58874 defined (e.g., a pure POSIX system).
58875 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58876 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58878 2002-12-06 Paul Eggert <eggert@twinsun.com>
58880 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58881 a pain in practice to deal with generated m4 files. This change
58882 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58884 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58885 and jm-glibc-io.m4, as they are no longer a special case.
58886 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58887 kludge and the auto-generation stuff. Check only whether the
58888 functions are declared, not whether they exist, since older hosts
58889 that don't declare the functions can't use the optimization anyway.
58891 2002-12-06 Jim Meyering <jim@meyering.net>
58893 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58895 Merge in changes from libc's misc/error.c, in preparation
58896 for the merge of gnulib's changes back into libc.
58898 * lib/error.c (_): Define only if not already defined.
58899 Move definition to follow all #include directives.
58900 Include unlocked-io.h only if !_LIBC.
58901 [_LIBC]: Include <libio/libioP.h>.
58902 [USE_IN_LIBIO]: Include <libio/iolibio.h>
58903 (fflush): Tweak definition to use INTUSE.
58906 2002-12-05 Paul Eggert <eggert@twinsun.com>
58908 * lib/alloca.c [defined emacs]: Include "lisp.h".
58909 (xalloc_die) [defined emacs]: New macro.
58910 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58911 [! defined emacs]: Include <xalloc.h>.
58912 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58913 (pointer): Typedef to POINTER_TYPE *.
58914 (malloc): Remove decl; we now always use xmalloc.
58915 (alloca): Use old-style definition, since Emacs needs this.
58916 Check for arithmetic overflow when computing combined size.
58918 2002-12-04 Paul Eggert <eggert@twinsun.com>
58920 Do not generate unlocked-io.h automatically, since it's easier to
58921 maintain it by hand.
58923 * lib/unlocked-io.h: New file, from GNU diffutils,
58924 but with proper copyright notice and attribution.
58925 * lib/gen-uio: Remove.
58926 * lib/Makefile.am: Add copyright notice.
58927 (libfetish_a_SOURCES): Add unlocked-io.h.
58928 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58929 (DISTCLEANFILES, io_functions): Remove macros.
58930 (EXTRA_DIST): Remove gen_uio.
58931 (unlocked-io.h): Remove rule.
58933 2002-12-04 Jim Meyering <jim@meyering.net>
58935 Reflect the fact that stat.c and lstat.c are no longer generated.
58936 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58937 (DISTCLEANFILES): Likewise.
58938 (EXTRA_DIST): Likewise.
58939 (all_local): Don't depend on stat.c or lstat.c.
58940 (stat.c, lstat.c): Remove rules.
58941 (EXTRA_DIST): Remove xstat.in.
58943 * lib/xstat.in: Remove file. Contents moved into stat.c.
58944 * lib/stat.c: New file. Contents mostly from xstat.in.
58945 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58946 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58948 * lib/safe-read.c: Rework so that it may serve to define safe_write,
58950 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58952 2002-12-03 Jim Meyering <jim@meyering.net>
58954 * lib/safe-read.c, safe-write.c: Change variable names and comments,
58955 but not semantics, to minimize the differences between these two files.
58956 (safe_read): Change comment to mention SAFE_READ_ERROR.
58958 * lib/safe-read.c (IS_EINTR): Define.
58959 (safe_read): Use IS_EINTR in place of in-function cpp directives.
58961 2002-12-02 Jim Meyering <jim@meyering.net>
58963 * lib/safe-read.c (EINTR): Define.
58964 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58965 (INT_MAX): Provide fallback.
58966 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58968 * lib/safe-read.h (SAFE_READ_ERROR): Define.
58970 2002-12-02 Bruno Haible <bruno@clisp.org>
58972 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58973 Define, taken from safe-read.c.
58974 (INT_MAX): Provide fallback.
58975 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58976 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58978 * lib/safe-read.c (EINTR): Remove definition.
58979 (safe_read): Don't use EINTR if it is absent.
58981 2002-12-01 Jim Meyering <jim@meyering.net>
58983 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58985 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58987 2002-11-27 Paul Eggert <eggert@twinsun.com>
58989 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58990 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58991 with `if (! (value < limit)) abort ();', for readability.
58993 2002-11-26 Karl Berry <karl@gnu.org>
58995 * lib/strdup.c: copy from libc again, with jim's ok.
58996 * lib/.cppi-disable: re-add strdup.c
58998 2002-11-25 Karl Berry <karl@gnu.org>
59000 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59001 instead of "strtol.c".
59003 2002-11-25 Karl Berry <karl@gnu.org>
59005 * config/install-sh: update from automake for variable quoting, $0 in
59008 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59009 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59012 2002-11-25 Jim Meyering <jim@meyering.net>
59014 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59016 2002-11-24 Karl Berry <karl@gnu.org>
59018 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59019 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59021 2002-11-24 Jim Meyering <jim@meyering.net>
59023 Update from coreutils:
59025 * lib/mktime.c: Merge in changes from libc.
59027 Avoid a link-time failure on some Linux systems.
59028 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59030 (__mon_yday): Declare with the STATIC attribute.
59031 (__mktime_internal): Likewise.
59032 Based on a report from Greg Schafer.
59034 2002-11-23 Jim Meyering <jim@meyering.net>
59036 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59037 Use `unsigned', not `int', as type of index.
59039 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59041 * lib/fsusage.c: Remove unneeded parentheses around operands of
59044 2002-11-22 Paul Eggert <eggert@twinsun.com>
59046 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59047 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59048 so that we can be included first.
59049 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59050 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59051 No need to include stddef.h or sys/types.h any more.
59052 Surround local include files with "", not "<>".
59053 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59054 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59055 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59056 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59057 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59058 (ISPRINT): Remove; no longer needed now that we assume C89.
59060 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59063 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59064 quotearg_char): Use SIZE_MAX rather than
59065 (size_t) -1 when we are talking about "infinity".
59067 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59069 2002-11-22 Paul Eggert <eggert@twinsun.com>
59071 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59072 hint that one should use `if (! x) abort ();' rather than `assert
59073 (x);', and anyway it's one less thing to worry about configuring.
59074 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59075 hash_rehash, hash_insert): Use abort rather than assert.
59077 2002-11-22 Bruno Haible <bruno@clisp.org>
59079 * lib/safe-read.h: Assume C89. Add comments.
59080 (safe_read): Change return type to size_t.
59081 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59082 byte counts > SSIZE_MAX correctly.
59083 * lib/safe-write.h: New file.
59084 * lib/safe-write.c: New file.
59085 * lib/full-read.h: New file.
59086 * lib/full-read.c: New file.
59087 * lib/full-write.h: Assume C89. Add comments.
59088 * lib/full-write.c: Include safe-write.h.
59089 (full_write): Rewritten to use safe_write.
59090 Suggested by Jim Meyering and Paul Eggert.
59092 2002-11-21 Jim Meyering <jim@meyering.net>
59094 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59096 Merge in changes from the coreutils.
59098 2002-09-25 Paul Eggert <eggert@twinsun.com>
59099 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59101 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59102 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59103 int. Work more efficiently if X is the same width as uintmax_t.
59104 Do not compare X to -1, to avoid bogus compiler warning.
59105 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59106 Don't assume that f_frsize and f_bsize are the same type.
59108 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59109 warning on FreeBSD.
59111 * lib/makepath.c (make_path): Restore umask *before* creating the final
59113 (make_path): Minor reformatting.
59115 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59116 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59117 HAVE_MALLOC/HAVE_REALLOC.
59119 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59120 dummy ones. At least on GNU/Linux systems, `auto' means something
59122 From Michael Stone.
59124 2002-11-21 Bruno Haible <bruno@clisp.org>
59126 Remove case insensitive option matching.
59127 * lib/argmatch.h (argcasematch): Remove declaration.
59128 (ARGCASEMATCH): Remove macro.
59129 (__xargmatch_internal): Remove case_sensitive argument.
59130 (XARGMATCH): Update.
59131 (XARGCASEMATCH): Remove macro.
59132 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59133 case_sensitive argument.
59134 (argcasematch): Remove function.
59135 (__xargmatch_internal): Remove case_sensitive argument.
59136 (main): Use XARGMATCH instead of XARGCASEMATCH.
59138 * lib/xmalloc.c: Change compile-time error message. Add comment about
59139 required autoconf version.
59141 2002-11-20 Paul Eggert <eggert@twinsun.com>
59143 Merge argmatch cleanups from Bison. Assume C89.
59145 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59146 Include stdlib.h, for EXIT_FAILURE.
59147 Always include <string.h>, since we assume C89.
59148 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59149 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59150 Include <stddef.h> instead, since it's all we need for size_t.
59151 (PARAMS): Remove. All uses removed.
59152 (ARRAY_CARDINALITY): Do not bother to #undef.
59153 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59154 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59155 Remove unnecessary parentheses.
59156 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59157 Insert necessary parentheses.
59158 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59159 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59161 2002-11-19 Bruno Haible <bruno@clisp.org>
59163 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59164 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59166 * lib/mbswidth.h (PARAMS): Remove macro.
59167 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59168 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59170 * lib/gcd.h (PARAMS): Remove macro.
59171 (gcd): Use ANSI C function declarations.
59172 * lib/gcd.c (gcd): Likewise.
59174 2002-11-15 Bruno Haible <bruno@clisp.org>
59176 * lib/strcspn.c: Include <stddef.h>.
59177 (strcspn): Use ANSI C function declaration. Change return type to
59179 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59180 (strpbrk): Use NULL.
59181 * lib/strpbrk.h (PARAMS): Remove macro.
59182 (strpbrk): Use ANSI C function declaration.
59183 * lib/strstr.c: Don't include <sys/types.h>.
59184 * lib/strstr.h (PARAMS): Remove macro.
59185 (strstr): Use ANSI C function declarations.
59187 2002-11-14 Karl Berry <karl@gnu.org>
59189 * config/mkinstalldirs: `do' on separate line, instead of
59192 2002-11-06 Bruno Haible <bruno@clisp.org>
59194 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59195 * lib/gcd.c (gcd): Likewise.
59197 2002-11-05 Bruno Haible <bruno@clisp.org>
59199 * lib/gcd.h: New file, from gettext-0.11.5.
59200 * lib/gcd.c: New file, from gettext-0.11.5.
59202 2002-11-05 Bruno Haible <bruno@clisp.org>
59204 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59205 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59206 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59207 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59209 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59211 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59214 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59215 * lib/human.c: Include gettext.h instead of <libintl.h>.
59216 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59217 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59218 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59219 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59220 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59221 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59222 (textdomain): Remove definition.
59223 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59225 * lib/long-options.c: Remove include of <libintl.h> and definition of
59227 * lib/same.c: Remove include of <libintl.h> and definition of _.
59229 2002-11-04 Owen Taylor <otaylor@redhat.com>
59231 * lib/config.charset: A few additions for Solaris.
59233 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59235 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59236 * lib/localcharset.c (locale_charset): Declare as extern "C".
59238 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59240 * lib/config.charset: msdos in uk_UA uses CP1125.
59242 2002-11-04 Bruno Haible <bruno@clisp.org>
59244 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59245 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59246 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59247 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59248 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59250 2002-11-04 Bruno Haible <bruno@clisp.org>
59252 * lib/localcharset.c (locale_charset): Don't return an empty string.
59254 2002-11-04 Bruno Haible <bruno@clisp.org>
59256 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59259 2002-11-04 Bruno Haible <bruno@clisp.org>
59261 * lib/config.charset: Update for newest glibc. Add canonical names
59262 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59264 2002-11-04 Bruno Haible <bruno@clisp.org>
59266 * lib/config.charset: Add support for NetBSD.
59268 2002-11-04 Bruno Haible <bruno@clisp.org>
59270 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59272 2002-11-01 Bruno Haible <bruno@clisp.org>
59274 * configure.in: Add AC_CONFIG_AUX_DIR call.
59275 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59277 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59279 2002-09-28 Karl Berry <karl@gnu.org>
59281 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59282 installed automake until the next release, since changes have been
59285 2002-09-25 Karl Berry <karl@gnu.org>
59287 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59288 * lib/getopt*: copy from libc/posix.
59289 * lib/gettext.h: copy from gettext.
59290 * lib/.cppi-disable: add strdup.c, gettext.h.
59292 2002-09-25 Karl Berry <karl@gnu.org>
59294 * config/srclist.txt: enable gettext.h check.
59295 * config/config.{guess,sub}: update from prep.
59296 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59297 from automake 1.6.3.
59300 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59302 * regex.c (PATFETCH): Remove the translating fetch.
59303 (PATFETCH_RAW): Rename to PATFETCH.
59304 (set_image_of_range): New fun.
59305 (SET_RANGE_TABLE_WORK_AREA): Use it.
59306 (regex_compile): Don't translate the pattern chars so eagerly.
59307 Only do it when inserting an `exactn' bytecode or when handling
59309 (mutually_exclusive_p): Avoid empty statement.
59311 2002-07-06 Jim Meyering <meyering@lucent.com>
59313 * m4/README: Don't mention Makefile.am.in.
59314 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59316 2002-07-01 Jim Meyering <meyering@lucent.com>
59318 * lib/c-stack.c: Include sys/time.h.
59319 From Volker Borchert.
59321 2002-06-26 Paul Eggert <eggert@twinsun.com>
59323 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59325 2002-06-26 Paul Eggert <eggert@twinsun.com>
59327 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59328 New macro. Use it uniformly instead of
59329 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59330 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59331 reported by Vin Shelton.
59333 2002-06-22 Paul Eggert <eggert@twinsun.com>
59335 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59336 Do not assume SA_SIGINFO behavior.
59337 Bug reported by Jim Meyering on NetBSD 1.5.2.
59339 2002-06-22 Jim Meyering <meyering@lucent.com>
59341 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59342 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59344 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59345 now that configure.ac uses AC_GNU_SOURCE.
59346 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59347 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59349 Update to latest tools. Suggestions from Paul Eggert.
59350 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59351 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59352 * m4/fnmatch.m4: Likewise.
59353 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59354 to AC_HEADER_STDBOOL
59356 2002-06-22 Jim Meyering <meyering@lucent.com>
59358 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59359 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59361 2002-06-22 Jim Meyering <meyering@lucent.com>
59363 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59365 * lib/exitfail.c, exitfail.h: Likewise.
59366 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59368 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59370 (EXTRA_DIST): Add fnmatch_loop.c.
59371 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59373 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59374 * lib/fnmatch.c: Update from diffutils-2.8.2.
59375 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59376 * lib/fnmatch.h: Remove file.
59378 2002-06-21 Jim Meyering <meyering@lucent.com>
59380 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59381 * m4/mbrtowc.m4: Likewise.
59383 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59384 * m4/mbswidth.m4: Reflect name change:
59385 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59386 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59388 * m4/lib-link.m4: Update from gettext-0.11.2.
59389 * m4/gettext.m4: Likewise.
59391 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59392 From Alfred M. Szmidt.
59394 2002-06-18 Paul Eggert <eggert@twinsun.com>
59396 * lib/file-type.h: Report an error if neither S_ISREG nor
59397 S_IFREG is defined, instead of using a test specific to glibc
59398 2.2. This should be safe, since POSIX requires S_ISREG and
59399 Unix Version 7 had S_IFREG. We don't need to check for
59400 <sys/types.h> since we don't use any symbols that it defines.
59402 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59404 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59405 $@-t, so that each temporary file name is unique and valid in the first
59406 8 characters, for operation under DOS.
59408 2002-06-15 Paul Eggert <eggert@twinsun.com>
59410 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59412 2002-06-15 Jim Meyering <meyering@lucent.com>
59414 Work even with DJGPP 2.03, which lacks support for symlinks.
59416 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59418 * lib/lchown.c (S_ISLNK): Likewise.
59420 2002-06-15 Jim Meyering <meyering@lucent.com>
59422 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59423 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59424 have been included before this file.
59426 2002-06-14 Jim Meyering <meyering@lucent.com>
59428 * lib/file-type.h: Use the version from diffutils-2.8.2.
59429 * lib/file-type.c: Likewise.
59431 2002-06-07 Jim Meyering <meyering@lucent.com>
59433 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59434 They're needed at least for NetBSD 1.5.2.
59435 ($statxfs_includes): Include those same headers.
59436 ($statxfs_includes): Include sys/vfs.h if available.
59437 ($statxfs_includes): Likewise for sys/statvfs.h.
59438 Check for the following members in both structs statfs and statvfs:
59439 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59441 2002-06-01 Jim Meyering <meyering@lucent.com>
59443 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59444 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59446 2002-05-28 Jim Meyering <meyering@lucent.com>
59448 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59449 Reported by Volker Borchert.
59451 2002-05-27 Jim Meyering <meyering@lucent.com>
59453 Fix a problem seen only on nonconforming systems whereby ls.c's
59454 use of localtime, and then of gettimeofday would cause trouble:
59455 the localtime call used to initialize rpl_gettimeofday's save
59456 mechanism would clobber ls's current local time information so
59457 that in any long listing the first file would always be listed
59458 with date 1970-01-01. Analysis by Volker Borchert.
59460 * lib/gettimeofday.c (localtime): Undefine.
59461 (rpl_localtime): New function.
59463 2002-05-27 Jim Meyering <meyering@lucent.com>
59465 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59468 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59469 use the replacement function; it wouldn't resolve at link time.
59470 Reported by Volker Borchert.
59472 2002-05-22 Jim Meyering <meyering@lucent.com>
59474 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59476 * lib/file-type.h: New file.
59477 * lib/file-type.c (file_type): New file/function. Extracted from
59480 2002-04-30 Jim Meyering <meyering@lucent.com>
59482 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59484 2002-04-29 Paul Eggert <eggert@twinsun.com>
59486 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59488 2002-04-29 Paul Eggert <eggert@twinsun.com>
59490 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59491 Do not check for alloca.h (no longer used) or stdbool.h (was never
59492 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59494 2002-04-29 Paul Eggert <eggert@twinsun.com>
59496 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59498 2002-04-29 Jim Meyering <meyering@lucent.com>
59500 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59501 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59502 Use AC_FUNC_STRNLEN here instead.
59504 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59505 With autoconf-2.53a, it's part of AC_PROG_CC.
59507 2002-04-28 Paul Eggert <eggert@twinsun.com>
59509 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59510 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59512 2002-04-28 Paul Eggert <eggert@twinsun.com>
59514 * lib/sig2str.h, lib/sig2str.c: New files.
59515 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59517 2002-04-28 Paul Eggert <eggert@twinsun.com>
59519 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59520 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59521 of 127, since 64 is the largest conceivable number for ancient
59523 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59525 2002-04-28 Jim Meyering <meyering@lucent.com>
59527 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59529 2002-04-24 Jim Meyering <meyering@lucent.com>
59531 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59532 (jm_PREREQ): Use it.
59534 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59535 mach/mach.h fcntl.h.
59536 Check for this function: setlocale.
59538 2002-04-24 Jim Meyering <meyering@lucent.com>
59540 * lib/gettext.h: New file, from Gettext.
59541 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59542 (libfetish_a_SOURCES): Add gettext.h.
59544 2002-04-16 Jim Meyering <meyering@lucent.com>
59546 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59547 ut_pid, ut_id, ut_exit.
59549 2002-04-16 Jim Meyering <meyering@lucent.com>
59551 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59552 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59553 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59555 2002-04-12 Jim Meyering <meyering@lucent.com>
59557 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59558 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59559 existence of the getmntinfo function. Needed for Darwin 5.3.
59561 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59562 This is necessary at least on Darwin 5.3.
59564 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59565 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59566 strnlen.o in the library, and that makes some versions of ranlib
59569 2002-04-12 Jim Meyering <meyering@lucent.com>
59571 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59573 2002-04-09 Jim Meyering <meyering@lucent.com>
59575 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59576 to be more precise. Rather than saying we're checking whether the
59577 function `works', say what we're testing.
59578 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59579 Reported by Bruno Haible.
59581 2002-03-10 Jim Meyering <meyering@lucent.com>
59583 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59584 Suggestion from Santiago Vila.
59586 2002-03-08 Jim Meyering <meyering@lucent.com>
59588 * lib/rename.c: Mention that this wrapper is needed also on
59589 mips-dec-ultrix4.4 systems.
59591 2002-03-02 Jim Meyering <meyering@lucent.com>
59593 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59594 not HAVE_CLOCK_SETTIME.
59596 2002-02-27 Paul Eggert <eggert@twinsun.com>
59598 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59599 Check for clock_settime.
59601 2002-02-27 Paul Eggert <eggert@twinsun.com>
59603 * lib/nanosleep.h: Rename to....
59604 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59606 * lib/gettime.c: New file.
59607 * lib/settime.c: New file.
59608 * lib/stime.c: Remove.
59610 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59611 timespec.h. Remove nanosleep.h.
59613 2002-02-25 Paul Eggert <eggert@twinsun.com>
59615 * m4/acl.m4: New file.
59616 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59617 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59619 2002-02-25 Paul Eggert <eggert@twinsun.com>
59621 * lib/acl.c, lib/acl.h: New files.
59622 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59624 2002-02-24 Jim Meyering <meyering@lucent.com>
59626 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59627 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59628 cause trouble. Reported by Nelson Beebe.
59630 2002-02-23 Paul Eggert <eggert@twinsun.com>
59632 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59633 compilers that don't know that xalloc_die never returns.
59635 2002-02-20 Jim Meyering <meyering@lucent.com>
59637 * lib/getdate.c: Regenerate using bison-1.33.
59639 2002-02-17 Jim Meyering <meyering@lucent.com>
59641 * config/config.guess (main): Don't use `head -1'; it's no longer
59642 portable. Use `sed 1q' instead.
59644 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59646 * m4/codeset.m4: Upgrade to gettext-0.11.
59647 * m4/gettext.m4: Upgrade to gettext-0.11.
59648 * m4/glibc21.m4: Upgrade to gettext-0.11.
59649 * m4/iconv.m4: Upgrade to gettext-0.11.
59650 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59651 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59652 * m4/lib-ld.m4: New file, from gettext-0.11.
59653 * m4/lib-link.m4: New file, from gettext-0.11.
59654 * m4/lib-prefix.m4: New file, from gettext-0.11.
59655 * m4/progtest.m4: Upgrade to gettext-0.11.
59657 2002-02-15 Paul Eggert <eggert@twinsun.com>
59659 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59660 (jm_PREREQ): Use it.
59662 2002-02-15 Paul Eggert <eggert@twinsun.com>
59664 * lib/posixver.c, lib/posixver.h: New files.
59665 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59667 2002-02-02 Paul Eggert <eggert@twinsun.com>
59668 Bruno Haible <bruno@clisp.org>
59670 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59671 (fwrite_success_callback): New declaration.
59672 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59673 print_unicode_char. Call failure callback instead of error.
59674 (fwrite_success_callback): New function.
59675 (exit_failure_callback): New function.
59676 (fallback_failure_callback): New function.
59677 (print_unicode_char): Call unicode_to_mb.
59679 2002-01-26 Jim Meyering <meyering@lucent.com>
59681 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59682 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59684 2002-01-26 Jim Meyering <meyering@lucent.com>
59686 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59688 2002-01-22 Paul Eggert <eggert@twinsun.com>
59690 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59692 2002-01-22 Jim Meyering <meyering@lucent.com>
59694 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59695 Otherwise, some versions of automake would omit the rule that makes
59696 Makefile from Makefile.in.
59698 2002-01-21 Paul Eggert <eggert@twinsun.com>
59700 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59701 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59702 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59703 (memcoll): Set errno to zero if there is no error.
59705 * lib/quotearg.c (quotearg_buffer_restyled):
59706 Fix bug with quoting buffers containing NUL when backslashing escapes.
59707 This bug was exposed by the other changes in this patch.
59708 (quotearg_n_options): New arg ARGSIZE.
59709 All callers changed.
59710 (quoting_options_from_style): New function.
59711 (quotearg_n_style): Use it.
59712 (quotearg_n_style_mem): New function.
59714 * lib/quotearg.h (quotearg_n_style_mem): New function.
59716 2002-01-19 Jim Meyering <meyering@lucent.com>
59718 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59719 Remove useless quotes: DF_PROG="df".
59720 * m4/strnlen.m4: New file.
59722 2002-01-16 Paul Eggert <eggert@twinsun.com>
59724 * lib/backupfile.c (ISDIGIT): Comment fix.
59725 * lib/getdate.y (ISDIGIT): Likewise.
59726 * lib/posixtm.c (ISDIGIT, year): Likewise.
59727 * lib/strverscmp.c (ISDIGIT): Likewise.
59728 * lib/userspec.c (ISDIGIT): Likewise.
59730 2002-01-16 Jim Meyering <meyering@lucent.com>
59732 * lib/getdate.y: Add three semicolons, each just before a closing
59733 brace. Bison (as of version 1.31) no longer papers over that mistake.
59735 2002-01-05 Jim Meyering <meyering@lucent.com>
59737 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59739 2001-12-19 Paul Eggert <eggert@twinsun.com>
59741 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59742 not silently exit merely because the output buffer happens to
59743 have nothing pending.
59745 2001-12-18 Paul Eggert <eggert@twinsun.com>
59747 See the big note in ../ChangeLog.
59748 * lib/human.c (suffixes): Prefer K to k for 1024.
59749 (generate_suffix_backwards): New function.
59750 (human_readable_inexact): Use it.
59751 * lib/xstrtol.c (__xstrtol): If there is no number but there
59752 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59753 Accept 'K' as well as 'k'.
59755 2001-12-15 Jim Meyering <meyering@lucent.com>
59757 * lib/regex.h (__restrict_arr): Update from libc.
59759 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59760 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59763 2001-12-14 Jim Meyering <meyering@lucent.com>
59765 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59766 Suggestion from Bruno Haible.
59768 2001-12-10 Jim Meyering <meyering@lucent.com>
59770 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59771 xrealloc, Instead, include "xalloc.h".
59772 (initbuffer): Don't cast xmalloc return value to char*.
59773 (readline): Reword comment.
59774 Don't cast xrealloc return value to char*
59775 Return NULL, not 0.
59777 2001-12-09 Jim Meyering <meyering@lucent.com>
59779 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59780 about `signed and unsigned type in conditional expression'.
59781 * lib/posixtm.c (posix_time_parse): Likewise.
59783 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59785 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59786 to avoid a pedantic warning.
59788 * lib/getstr.c: Don't include assert.h.
59789 (getstr): Remove warning-evoking assertions.
59790 Return -1 if offset parameter is out of bounds.
59791 Change the type of a local from int to size_t.
59793 * lib/strftime.c (my_strftime_localtime_r): Include this function
59794 definition in the `#if ! HAVE_TM_GMTOFF' block.
59796 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59797 Include xalloc.h instead.
59799 2001-12-02 Jim Meyering <meyering@lucent.com>
59801 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59802 2001-11-18. It's no longer necessary, now that stdlib.h is always
59805 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59806 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59808 2001-11-30 Akim Demaille <akim@epita.fr>
59810 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59811 before being defined.
59813 2001-11-27 Paul Eggert <eggert@twinsun.com>
59815 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59816 First arg is int, not unsigned.
59817 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59818 (SIZE_MAX, UINT_MAX): New macros.
59819 (quotearg_n_options): Abort if N is negative.
59820 Avoid overflow check on hosts where size_t is 64 bits and int
59821 is 32 bits, as overflow is impossible there.
59822 Fix off-by-one typo that caused unnecessary reallocation.
59824 2001-11-27 Jim Meyering <meyering@lucent.com>
59826 * lib/tempname.c: Merge with version from libc.
59827 * lib/regex.c: Likewise.
59829 * lib/tempname.c: Include stdlib.h unconditionally. On some old
59830 systems for which STDC_HEADERS is 0, it was not included, resulting in
59831 a warning about an integer-to-pointer conversion problem with getenv.
59832 Reported by Volker Borchert.
59834 2001-11-26 Jim Meyering <meyering@lucent.com>
59836 * lib/gtod.h: Remove file.
59837 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59838 * lib/gettimeofday.c: Don't include gtod.h.
59839 (GTOD_init): Remove function.
59840 (rpl_gettimeofday): Do its job here instead, rather than aborting.
59841 Suggestion from Volker Borchert.
59843 2001-11-23 Jim Meyering <meyering@lucent.com>
59845 * lib/hash.h (struct hash_table): Don't define here. Merely declare
59847 * lib/hash.c (struct hash_table): Define it here instead.
59849 2001-11-22 Jim Meyering <meyering@lucent.com>
59851 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59853 2001-11-20 Jim Meyering <meyering@lucent.com>
59855 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59856 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59858 2001-11-19 Jim Meyering <meyering@lucent.com>
59860 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59861 directory. Use "conftestXXXXXX" as the template.
59862 Suggestion from Paul Eggert.
59864 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59865 immediately, so the test doesn't mistakenly hit the max-open-files
59868 2001-11-18 Paul Eggert <eggert@twinsun.com>
59870 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59871 (TEMPORARIES): New macro.
59872 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
59873 removes an artificial limitation (e.g. HP-UX 10.20, where
59876 2001-11-18 Jim Meyering <meyering@lucent.com>
59878 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59880 2001-11-18 Jim Meyering <meyering@lucent.com>
59882 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59885 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59886 files will be created before anything else.
59888 2001-11-17 Paul Eggert <eggert@twinsun.com>
59890 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59891 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59893 2001-11-17 Jim Meyering <meyering@lucent.com>
59895 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59896 Prompted by a report from Bob Proulx.
59898 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59899 Instead, require UTILS_FUNC_MKSTEMP.
59901 2001-11-17 Jim Meyering <meyering@lucent.com>
59903 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59904 Now, that's done as part of AC_FUNC_STRTOD.
59906 2001-11-17 Jim Meyering <meyering@lucent.com>
59908 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59909 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59910 rather than group writable. Patch by Juan F. Codagnone.
59912 * lib/readtokens.c: Remove explicit declarations of xmalloc and
59913 xrealloc, Instead, include "xalloc.h".
59915 * lib/mountlist.c: Include unlocked-io.h after all system headers.
59916 Remove explicit declarations of xmalloc, xrealloc,
59917 and xstrdup. Instead, include "xalloc.h".
59919 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59921 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59923 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59925 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59926 Reported by Padraig Brady.
59928 * lib/mkstemp.c: #undef mkstemp.
59930 (rpl_mkstemp): Rename from mkstemp.
59933 2001-11-16 Jim Meyering <meyering@lucent.com>
59935 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59936 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59937 determine the amount of total physical memory, use pstat_getstatic.
59938 HPUX-11 doesn't define _SC_PHYS_PAGES.
59939 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59940 If sysconf couldn't be used to determine the amount of available
59941 physical memory, use both pstat_getstatic and pstat_getdynamic.
59942 Based on a patch from Bob Proulx.
59944 2001-11-10 Jim Meyering <meyering@lucent.com>
59946 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59947 (jm_PREREQ): Use it.
59949 2001-11-09 Jim Meyering <meyering@lucent.com>
59951 * m4/jm-macros.m4: Require autoconf-2.52f.
59952 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59953 Use these AC_-prefixed names, not the AM_-prefixed ones.
59955 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
59957 2001-11-05 Jim Meyering <meyering@lucent.com>
59959 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59961 2001-11-04 Jim Meyering <meyering@lucent.com>
59963 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59966 2001-11-03 Jim Meyering <meyering@lucent.com>
59968 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59971 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59972 know the name of the variable in the macro definition.
59974 2001-11-03 Jim Meyering <meyering@lucent.com>
59976 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59977 in argmatch_to_argument call.
59979 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59982 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59983 e.g., a fault due to an attempt to free a NULL pointer.
59985 2001-11-01 Jim Meyering <meyering@lucent.com>
59987 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59988 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59990 2001-11-01 Jim Meyering <meyering@lucent.com>
59992 * lib/dirfd.c, lib/dirfd.h: New files.
59993 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59995 * lib/hash.c (hash_print) [TESTING]: Clean up.
59997 2001-10-22 Paul Eggert <eggert@twinsun.com>
59999 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60000 to avoid a warning if -Wall.
60002 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60005 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60006 (per RMS's instructions, this is now the canonical source)
60007 * lgpl/, gpl/: New directories.
60009 2001-10-21 Paul Eggert <eggert@twinsun.com>
60011 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60013 2001-10-21 Jim Meyering <meyering@lucent.com>
60015 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60016 this code would end up calling gettext even in packages built
60017 with --disable-nls.
60018 * lib/getopt.c (_): Likewise.
60019 * lib/regex.c (_): Likewise.
60021 2001-10-20 Paul Eggert <eggert@twinsun.com>
60023 * m4/error.m4 (jm_PREREQ_ERROR):
60024 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60025 AC_FUNC_STRERROR_R does that.
60026 Check for strerror declaration.
60028 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60029 are supposed to have them these days.
60030 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60031 Merge changes from latest Autoconf CVS.
60032 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60033 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60034 POSIX decided to standardize on the int flavor of strerror_r.
60036 2001-10-20 Paul Eggert <eggert@twinsun.com>
60038 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60039 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60040 Use strerror_r that is only a macro, even if it is not a function.
60041 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60042 (private_strerror): Use prototypes, not old-style function definition.
60043 (print_errno_message): New function.
60044 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60045 char*-flavored one.
60046 (error_tail, error, error_at_line): Use it.
60048 2001-10-11 Jim Meyering <meyering@lucent.com>
60050 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60051 and quote_n (1, ... to avoid clobbering a buffer.
60053 2001-10-05 Jim Meyering <meyering@lucent.com>
60055 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60057 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60058 * lib/hash-pjw.h: New file.
60060 2001-09-30 Jim Meyering <meyering@lucent.com>
60062 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60063 `struct fsstat' has the `f_fstypename' member.
60064 Use that to define FS_TYPE, which is now used to make
60065 the getfsstat link test tighter.
60067 2001-09-30 Jim Meyering <meyering@lucent.com>
60069 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60070 Include <sys/ucred.h>, for Apple Darwin.
60071 Include sys/mount.h and sys/fs_types.h only if available.
60073 (read_filesystem_list): Use FS_TYPE.
60075 2001-09-29 Paul Eggert <eggert@twinsun.com>
60077 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60080 2001-09-29 Jim Meyering <meyering@lucent.com>
60082 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60083 [one-argument getmntent function]): Include stdio.h before mntent.h.
60084 SunOS 4.1.x needs it for the declaration of `FILE'.
60085 Patch by Volker Borchert.
60087 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60088 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60089 sys/fs_types.h, and make the link-test for getfsstat guard #include
60090 directives with appropriate #if HAVE_*_H tests so that we can
60091 detect getfsstat on Apple Darwin1.3.7 systems.
60092 Reported by Nelson Beebe.
60093 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60095 2001-09-28 Paul Eggert <eggert@twinsun.com>
60097 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60098 #defines strtoimax. Also treat the other strto* functions
60101 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60102 Check for strtoul and strtoumax,
60103 as those declarations are made even in the signed case.
60104 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60105 Likewise, for strtol and strtoimax.
60107 2001-09-28 Paul Eggert <eggert@twinsun.com>
60109 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60110 #defines strtoimax. Also treat the other strto* functions
60113 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60114 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60115 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60117 2001-09-26 Jim Meyering <meyering@lucent.com>
60119 Most macros in unlocked-io.h had the wrong number of arguments.
60120 * lib/gen-uio: New script.
60121 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60122 * lib/unlocked-io.hin: Remove file.
60123 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60124 rather than trying to embed it here.
60125 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60126 Reported by Padraig Brady.
60128 2001-09-25 Volker Borchert <bt@teknon.de>
60130 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60133 2001-09-24 Jim Meyering <meyering@lucent.com>
60135 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60137 2001-09-23 Jim Meyering <meyering@lucent.com>
60139 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60140 instead of the mere test for existence of mntent.h. The latter
60141 would get a false-positive on AIX 3.4 systems.
60142 In the outer getmntent if-block, don't die if neither of the getmntent
60143 tests succeeds. Instead, just fall through and continue with the
60146 2001-09-23 Jim Meyering <meyering@lucent.com>
60148 * lib/mountlist.c: Remove useless parentheses in #if directives.
60149 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60150 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60152 2001-09-22 Jim Meyering <meyering@lucent.com>
60154 * m4/gettext.m4: New file. From gettext.
60155 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60156 * m4/progtest.m4: Likewise
60157 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60158 * m4/glibc21.m4: Likewise.
60160 * m4/libintl.m4: Remove. No longer used.
60162 2001-09-22 Jim Meyering <meyering@lucent.com>
60164 * lib/localcharset.c: Update from latest gettext.
60165 * lib/config.charset: Likewise.
60167 2001-09-20 Jim Meyering <meyering@lucent.com>
60169 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60171 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60174 2001-09-20 Jim Meyering <meyering@lucent.com>
60176 * lib/xstrtol.c (strtoimax): Guard declaration with
60177 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60178 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60179 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60180 (strtoumax): Likewise, for completeness (it wasn't necessary).
60182 2001-09-17 Paul Eggert <eggert@twinsun.com>
60184 * lib/strtoimax.c (HAVE_LONG_LONG):
60185 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60186 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60187 to work around bug in IBM C compiler.
60189 2001-09-17 Jim Meyering <meyering@lucent.com>
60191 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60192 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60193 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60194 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60195 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60196 whenever the right hand side need not be expanded by the shell.
60198 2001-09-16 Paul Eggert <eggert@twinsun.com>
60200 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60201 library. It's not correct, as some older glibcs are buggy.
60202 fnmatch wasn't fixed until glibc 2.2.
60204 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60205 special shell magic here.
60207 2001-09-16 Jim Meyering <meyering@lucent.com>
60209 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60210 * m4/jm-macros.m4: Require it.
60212 2001-09-16 Jim Meyering <meyering@lucent.com>
60214 * lib/mkdir.c: New file.
60216 2001-09-15 Jim Meyering <meyering@lucent.com>
60218 * m4/jm-macros.m4: Check for help2man.
60220 2001-09-11 Jim Meyering <meyering@lucent.com>
60222 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60223 The body, by Paul Eggert, was moved here from configure.in.
60224 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60226 2001-09-04 Paul Eggert <eggert@twinsun.com>
60228 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60229 (jm_PREREQ): Use it.
60231 2001-09-04 Paul Eggert <eggert@twinsun.com>
60233 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60234 Use ssize_t, not int, to store result of readlink.
60235 Check for ssize_t overflow as well as size_t overflow,
60236 as POSIX says the result of readlink is implementation-defined
60237 when ssize_t overflows.
60238 Remove unnecessary cast to char*.
60239 Use free+malloc instead of realloc, as the storage doesn't need
60240 to be preserved and it's clearer and can be more efficient that way.
60241 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60242 * lib/xreadlink.h (xreadlink): Update prototype.
60244 2001-09-04 Paul Eggert <eggert@twinsun.com>
60246 * lib/xgetcwd.c: Revert some of the previous change; intead,
60247 fix the HAVE_GETCWD_NULL code to behave more like the
60248 !HAVE_GETCWD_NULL code used to.
60250 Include "xalloc.h".
60251 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60254 2001-09-03 Paul Eggert <eggert@twinsun.com>
60256 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60257 sys/param.h, as pathmax.h includes them.
60259 2001-09-03 Paul Eggert <eggert@twinsun.com>
60261 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60262 (jm_PREREQ_XGETCWD): New macro.
60264 * m4/getcwd.m4: New file.
60266 2001-09-03 Paul Eggert <eggert@twinsun.com>
60268 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60269 like the HAVE_GETCWD_NULL code.
60270 Include pathmax.h if not HAVE_GETCWD.
60271 Do not include xalloc.h.
60272 (INITIAL_BUFFER_SIZE): New symbol.
60273 Do not use xmalloc / xrealloc, since the caller is responsible for
60274 handling errors. Preserve errno around `free' during failure.
60275 Do not overrun buffer when using getwd.
60277 2001-09-03 Paul Eggert <eggert@twinsun.com>
60279 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60280 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60283 2001-09-03 Paul Eggert <eggert@twinsun.com>
60285 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60286 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60287 spotted by Jim Meyering.
60289 2001-09-03 Jim Meyering <meyering@lucent.com>
60291 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60294 2001-09-02 Jim Meyering <meyering@lucent.com>
60296 * lib/error.c: Update from GNU libc.
60298 2001-09-01 Jim Meyering <meyering@lucent.com>
60300 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60303 2001-09-01 Jim Meyering <meyering@lucent.com>
60305 * lib/xreadlink.c: New file.
60306 * lib/xreadlink.h: New file.
60307 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60310 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60311 doesn't conflict with sparc Solaris 7's definition in
60312 /usr/include/sys/int_types.h.
60314 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60316 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60317 and strncasecmp as r-values. Unixware didn't have declarations.
60319 2001-08-31 Paul Eggert <eggert@twinsun.com>
60321 * lib/xstrtol.h: Add copyright notice.
60322 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60323 LONGINT_INVALID_SUFFIX_CHAR.
60325 2001-08-31 Paul Eggert <eggert@twinsun.com>
60327 * lib/xstrtol.c (strtoimax): New decl.
60329 2001-08-31 Paul Eggert <eggert@twinsun.com>
60331 * lib/xgetcwd.c: Don't include pathmax.h.
60332 Include stdlib.h and unistd.h if available.
60334 (xmalloc, xstrdup, free): Remove decls.
60335 (xgetcwd): Don't assume sizes fit in unsigned.
60336 Check for overflow when computing sizes.
60337 Simplify reallocation code.
60339 2001-08-31 Paul Eggert <eggert@twinsun.com>
60341 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60342 a directory's st_size can have an arbitrary value, so the old
60343 usage could waste an arbitrary amount of memory. All uses
60345 * lib/savedir.h: Update prototype.
60347 2001-08-31 Paul Eggert <eggert@twinsun.com>
60349 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60351 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60354 Also, make the following further changes to make this file's
60355 configuration more similar to that of strtol.c:
60356 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60357 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60358 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60359 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60360 changed to signed values.
60362 And make the following changes as well:
60363 Fix copyright notice, as 1999 was missing.
60364 (verify): New macro.
60365 (strtoimax): Check sizes at compile-time, not run-time.
60366 Prefer strtol to strtoll if both work.
60367 (main): Remove; it was not that useful and was a pain to maintain.
60369 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60371 2001-08-31 Jim Meyering <meyering@lucent.com>
60373 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60374 Use an initial, malloc'd, buffer of length 128 rather than
60375 a statically allocated one of length 1024.
60377 2001-08-30 Paul Eggert <eggert@twinsun.com>
60379 Simplify code, partly by assuming autoconf 2.52 semantics.
60381 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60383 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60384 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60386 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60387 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60388 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60389 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60390 jm_AC_HEADER_INTTYPES_H.
60391 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60393 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60395 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60396 Quote first arg of AC_DEFUN.
60397 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60398 since they are needed to parse the include file even if we need
60399 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60400 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60401 but with opposite signedness.
60403 2001-08-30 Paul Eggert <eggert@twinsun.com>
60405 Merge 'exclude' changes from tar 1.13.22.
60406 This fixes one or two unlikely storage allocation overflow bugs,
60407 but doesn't change user-visible behavior otherwise.
60409 2001-08-30 Paul Eggert <eggert@twinsun.com>
60411 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60412 (jm_PREREQ_EXCLUDE): New macro.
60414 2001-08-30 Paul Eggert <eggert@twinsun.com>
60416 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60419 2001-08-30 Paul Eggert <eggert@twinsun.com>
60421 * lib/hash.c: Remove '2001' from copyright notice.
60423 2001-08-30 Paul Eggert <eggert@twinsun.com>
60425 * lib/full-write.h: New file.
60426 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60427 * lib/full-write.c: Correct credits, as cccp.c no longer
60428 exists and anyway it was so heavily changed from the old cccp
60429 code as to be unrecognizable. Include full-write.h.
60430 (full_write) Return size_t, with short writes meaning failure.
60431 All callers changed. This fixes a bug with large buffers
60433 * lib/utime.c: Include full-write.h.
60435 2001-08-30 Paul Eggert <eggert@twinsun.com>
60437 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60438 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60439 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60440 Include if available.
60441 (<xalloc.h>): Include
60442 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60443 (verify): New macro. Use it to verify that EXCLUDE macros do not
60444 collide with FNM macros.
60445 (struct patopts): New struct.
60446 (struct exclude): Use it, as exclude patterns now come with options.
60447 (new_exclude): Support above changes.
60448 (new_exclude, add_exclude_file):
60449 Initial size must now be a power of two to simplify overflow checking.
60450 (free_exclude, fnmatch_no_wildcards): New function.
60451 (excluded_filename): No longer requires options arg, as the options
60452 are determined by add_exclude. Now returns bool, not int.
60453 (excluded_filename, add_exclude):
60454 Add support for the fancy new exclusion options.
60455 (add_exclude, add_exclude_file): Now takes int options arg.
60456 Check for arithmetic overflow when computing sizes.
60457 (add_exclude_file): xrealloc might modify errno, so don't
60458 realloc until after errno might be used.
60460 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60462 (free_exclude): New decl.
60463 (add_exclude, add_exclude_file): Now takes int options arg.
60464 (excluded_filename): No longer requires options arg, as the options
60465 are determined by add_exclude. Now returns bool, not int.
60467 2001-08-30 Paul Eggert <eggert@twinsun.com>
60469 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60471 2001-08-27 Jim Meyering <meyering@lucent.com>
60473 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60475 * lib/version-etc.c (N_): Remove definition.
60476 Revert most of last change.
60477 Instead, simply don't mark the `Copyright...' string for translation.
60478 Based on advice from Paul Eggert.
60480 * lib/strtoxmax.c: Tweak comment.
60482 2001-08-26 Jim Meyering <meyering@lucent.com>
60484 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60486 * m4/xstrtoimax.m4: New file.
60487 * m4/xstrtoumax.m4: Add comments explaining why we
60488 AC_REPLACE_FUNCS(strtol).
60490 2001-08-26 Jim Meyering <meyering@lucent.com>
60492 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60493 of copyright with `%s' so translators don't get an untranslated
60495 (COPYRIGHT_YEAR): Define.
60496 (version_etc): Use fprintf rather than fputs.
60497 Suggestion from Ulrich Drepper.
60499 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60501 * lib/strtoll.c: New file, from GNU libc.
60502 * lib/xstrtoimax.c: New file.
60504 * lib/xstrtol.h: Add xstrtoimax.
60505 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60506 * lib/strtoimax.c: New file. Likewise, but first define
60509 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60511 * lib/strtoxmax.c: ... then renamed to this.
60513 2001-08-18 Paul Eggert <eggert@twinsun.com>
60515 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60516 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60517 (jm_AC_TYPE_INTMAX_T): New macro.
60518 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60520 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60522 * m4/longlong.m4: Renamed from ulonglong.m4.
60523 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60524 * m4/uintmax_t.m4: Removed.
60526 2001-08-13 Paul Eggert <eggert@twinsun.com>
60528 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60529 Port to Solaris 8, where 'sed' requires a space after the 'r'
60530 command, and where sh dislikes "$/". Clean up the spacing a bit.
60531 Redirect output to $tmp just once.
60533 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60535 * lib/addext.c (<errno.h>): Include.
60536 (errno): Declare if not defined.
60537 (addext): Work correctly when pathconf returns -1 and leaves
60538 errno alone because there is no limit. Also, work even if
60539 pathconf returns a value greater than SIZE_MAX.
60541 2001-08-12 Jim Meyering <meyering@lucent.com>
60543 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60544 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60545 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60546 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60547 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60548 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60549 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60550 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60551 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60552 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60553 utime.m4, utimes.m4, xstrtoumax.m4:
60554 Quote the first argument in each use of AC_DEFUN.
60556 2001-08-12 Jim Meyering <meyering@lucent.com>
60558 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60559 Simply `return getcwd (NULL, 0);'.
60560 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60561 Use 1300 as initial value for length, not PATH_MAX.
60563 * lib/pathmax.h: Clean up cpp syntax.
60565 2001-08-12 Jim Meyering <meyering@lucent.com>
60567 * lib/gettimeofday.c: New file.
60568 * lib/gtod.h: New file.
60569 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60571 2001-08-05 Jim Meyering <meyering@lucent.com>
60573 * m4/jm-macros.m4: Require autoconf-2.52.
60575 2001-08-04 Jim Meyering <meyering@lucent.com>
60577 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60578 stmt, to get in sync with glibc.
60580 2001-08-03 Paul Eggert <eggert@twinsun.com>
60582 The following changes are from gettext 0.10.39 as maintained by
60585 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60586 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60587 with inverted sense. All uses changed.
60589 * lib/mbswidth.c: Don't include <limits.h>.
60590 Include <stdlib.h> and <string.h> unconditionally.
60591 (iswcntrl, mbsinit, ISCNTRL): New macros.
60592 (mbsnwidth): Use K&R style function declarations.
60593 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60594 can optimize it when MB_CUR_MAX == 1.
60595 The width of control characters is zero, not 1.
60597 2001-08-03 Paul Eggert <eggert@twinsun.com>
60599 The following changes are from gettext 0.10.39 as maintained by
60600 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60602 * m4/codeset.m4: Upgrade to serial AM1.
60603 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60604 all uses changed. Quote first arg of AC_DEFUN.
60605 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60607 * m4/iconv.m4: Upgrade to serial AM2.
60608 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60609 Add --with-libconv-prefix.
60610 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60611 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60612 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60613 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60614 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60616 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60617 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60618 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60619 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60620 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60621 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60622 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60623 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60624 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60626 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60629 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60630 not the default value.
60632 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60633 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60634 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60635 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60636 Also check for iswcntrl, used for wcwidth fallback.
60637 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60640 2001-08-03 Jim Meyering <meyering@lucent.com>
60642 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60643 as it was in the original. Reported by Paul Eggert.
60645 2001-07-16 Jim Meyering <meyering@lucent.com>
60647 * m4/gettimeofday.m4: New file.
60648 Prompted by a report from Bernhard Baehr.
60650 2001-07-15 Jim Meyering <meyering@lucent.com>
60652 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60653 stuff. Now it's in ../Makefile.cfg.
60655 2001-07-15 Jim Meyering <meyering@lucent.com>
60657 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60658 (BUILT_SOURCES): Add unlocked-io.h.
60659 (io_functions): Define.
60660 (unlocked-io.h): New rule.
60661 (DISTCLEANFILES): Add unlocked-io.h.
60662 (all-local): Depend on unlocked-io.h, to ensure it is created.
60664 * lib/unlocked-io.hin: New file
60666 * lib/regex.c: Update from glibc.
60668 2001-07-05 Jim Meyering <meyering@lucent.com>
60670 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60672 (libfetish_a_SOURCES): Put all .h files here instead.
60673 Remove a thus-exposed (better checks in automake) duplicate and
60674 two unnecessary .h files.
60676 2001-07-04 Jim Meyering <meyering@lucent.com>
60678 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60679 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60682 2001-07-02 Jim Meyering <meyering@lucent.com>
60684 The following changes were prompted by suggestions from Bruno Haible.
60686 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60688 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60689 definition of EXTRA_DIST.
60690 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60691 ensure that the generated file is created/updated whenever the list
60692 of $(unlocked_functions) is changed.
60693 (jm-glibc-io.m4): New rule.
60694 (unlocked-io.h): New rule -- currently unused.
60696 2001-06-24 Jim Meyering <meyering@lucent.com>
60698 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60699 unmatched right bracket, rather than kludging it with an extra,
60700 falsely-matching quote in a comment. Patch by Akim Demaille.
60702 2001-06-11 Jim Meyering <meyering@lucent.com>
60704 * lib/regex.c: Update from GNU libc.
60706 2001-05-27 Jim Meyering <meyering@lucent.com>
60708 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60709 Check for ut_type in struct utmp.
60711 2001-05-27 Jim Meyering <meyering@lucent.com>
60713 * lib/readutmp.h (UT_TYPE): Define.
60715 2001-05-24 Jim Meyering <meyering@lucent.com>
60717 * lib/argmatch.c: Include "quote.h".
60718 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60719 quote function. Reported by Göran Uddeborg.
60721 2001-05-22 Jim Meyering <meyering@lucent.com>
60723 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60724 now that we use the package-supplied version unconditionally.
60725 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60727 2001-05-21 Jim Meyering <meyering@lucent.com>
60729 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60730 shell syntax errors.
60732 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60734 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60736 2001-05-20 Paul Eggert <eggert@twinsun.com>
60738 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60739 Don't bother to check library strftime, since
60740 we'll be using our own my_strftime function anyway.
60741 Define my_strftime instead of strftime.
60743 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60745 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60746 which is not yet declared.
60748 2001-05-15 Jim Meyering <meyering@lucent.com>
60750 * m4/regex.m4: Use proper quoting so brackets appear in the test
60752 Reported by, and with help from, Bruno Haible.
60754 2001-05-13 Jim Meyering <meyering@lucent.com>
60756 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60759 2001-05-11 Paul Eggert <eggert@twinsun.com>
60761 dirname code cleanup. base_name now behaves more compatibly
60762 with POSIX basename when given file names that have trailing
60763 slashes, and similarly for dir_name. Add new primitives
60764 base_len and dir_len. Put the directory-name-related decls
60767 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60768 * lib/backupfile.c (base_name): Likewise.
60769 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60770 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60771 * lib/makepath.c (strip_trailing_slashes): Likewise.
60772 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60773 ISSLASH): Likewise.
60774 * lib/rename.c (strip_trailing_slashes): Likewise.
60775 * lib/same.c (base_name): Likewise.
60776 * lib/stripslash.c (ISSLASH): Likewise.
60778 * lib/addext.c: Include <dirname.h> after size_t is defined.
60779 * lib/backupfile.c: Likewise.
60781 * lib/addext.c (addext): Use base_len to trim redundant
60782 trailing slashes instead of doing it ourselves.
60783 But do not trim the last slash if it is not redundant.
60785 * lib/backupfile.c (find_backup_file_name,
60786 max_backup_version): Use base_len instead of rolling it ourselves.
60787 Handle the case of "" and (on DOS) "C:" correctly.
60789 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60790 needed. Include <string.h>, <dirname.h>.
60791 (base_name): Allow file names ending in slashes, other than names
60792 that are all slashes. In this case, return the basename followed
60793 by the slashes. This is more general, and can be used in places
60794 where the original base_name purposely had an assertion failure.
60795 (base_len): New function.
60797 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60798 Do not include <assert.h>; no longer needed.
60800 (memrchr): Remove decl.
60801 (dir_name_r): Remove.
60802 (dir_len): Renamed from dirlen. All callers changed.
60803 Rewrite in terms of base_name, for simplicity and consistency.
60804 (dir_name): Never return NULL. All callers changed.
60805 Do not include <stdlib.h> in test program; no longer needed.
60806 return 0; is fine for test program.
60808 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60810 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60812 * lib/path-concat.c (path_concat): Use base_len to compute
60813 base length, not strlen; this means we cannot rely on memcpy
60816 * lib/same.c (STREQ): Remove.
60817 (same_name): Handle the case where the basename ends in trailing '/'.
60819 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60820 a slash was stripped. Do not strip the last slash after a
60821 file system prefix.
60823 2001-05-11 Paul Eggert <eggert@twinsun.com>
60825 * lib/Makefile.am (libfetish_a_SOURCES):
60826 Add strftime.c, since we now compile it on all hosts.
60828 * lib/strftime.c (my_strftime):
60829 Define to nstrftime if emacs, but only if my_strftime is not defined.
60830 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60831 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60832 Add one more extra argument: a nanoseconds value.
60835 (my_strftime function): Add %N format.
60836 (emacs_strftimeu): Renamed from emacs_strftime,
60837 with extra ut argument.
60839 2001-05-09 Paul Eggert <eggert@twinsun.com>
60841 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60843 2001-04-21 Jim Meyering <meyering@lucent.com>
60845 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60848 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60850 * m4/ftruncate.m4: Check for chsize.
60851 Link with ftruncate.o unconditionally if ftruncate is missing.
60852 This was required when cross-compiling to i586-mingw32msvc.
60854 2001-04-08 Jim Meyering <meyering@lucent.com>
60856 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60857 recomputed; that's necessary when the offset spans a DST transition.
60858 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
60860 2001-04-02 Jim Meyering <meyering@lucent.com>
60862 * lib/regex.h, regex.c: Update from GNU libc.
60864 2001-03-24 Jim Meyering <meyering@lucent.com>
60866 * m4/jm-macros.m4: Require autoconf-2.49d.
60868 2001-03-20 Bruno Haible <haible@clisp.cons.org>
60870 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60872 2001-03-19 Paul Eggert <eggert@twinsun.com>
60874 * lib/version-etc.c (version_etc_copyright): Update to 2001.
60876 2001-03-17 Jim Meyering <meyering@lucent.com>
60878 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60879 now that the version in autoconf is equivalent.
60880 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60882 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60883 Suggestion from Akim Demaille.
60885 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60886 (jm_PREREQ_TEMPNAME): New function.
60888 2001-03-16 Paul Eggert <eggert@twinsun.com>
60890 * lib/tempname.c (uint64_t): Define to uintmax_t if
60891 not defined, and if UINT64_MAX is not defined.
60892 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60893 Reported by John David Anglin.
60895 2001-03-15 Bruno Haible <haible@clisp.cons.org>
60897 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60898 resolve alias if codeset is empty.
60899 * lib/config.charset (BeOS): Use wildcard syntax.
60901 2001-03-13 Jim Meyering <meyering@lucent.com>
60903 * lib/path-concat.c (path_concat)
60904 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60905 concatenating e.g., `C:' and `foo'.
60908 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60910 * lib/localcharset.c (locale_charset): Don't use
60911 setlocale(LC_CTYPE,NULL). Don't return NULL.
60912 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60914 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60916 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60917 support for DOS/DJGPP.
60919 2001-03-01 Paul Eggert <eggert@twinsun.com>
60921 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60922 lacks mkstemp. Compile our own tempname.c if we compile our own
60923 mkstemp.c, as mkstemp relies on tempname.
60925 2001-03-01 Jim Meyering <meyering@lucent.com>
60927 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60928 AH_VERBATIM really does output its argument verbatim.
60930 2001-02-28 Paul Eggert <eggert@twinsun.com>
60932 * lib/Makefile.am (libfetish_a_SOURCES):
60933 Add dup-safer.c, fopen-safer.c.
60934 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60936 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60937 * lib/unistd-safer.h: New files.
60939 2001-02-25 Paul Eggert <eggert@twinsun.com>
60941 The mkstemp replacement is taken from glibc 2.2.2, with some
60942 portability fixes for use outside glibc, as follows:
60944 * lib/tempname.c (struct_stat64): New macro.
60945 (direxists, __gen_tempname): Use it.
60946 This avoids a portability problem with Solaris 8.
60948 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60949 (<stddef.h>, <stdint.h>, <string.h>):
60950 Include only if STDC_HEADERS || _LIBC.
60951 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60952 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60953 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60954 (__set_errno): Define this macro if <errno.h> doesn't.
60955 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60956 Define these macros if <stdio.h> doesn't.
60957 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60958 Define these macros if <sys/stat.h>
60959 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60960 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60961 __xstat64): Define if not _LIBC.
60962 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60963 (__gen_tempname): Invoke gettimeofday only if
60964 HAVE_GETTIMEOFDAY || _LIBC;
60965 otherwise, fall back on plain "time".
60966 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60968 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60970 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60972 2001-02-18 Paul Eggert <eggert@twinsun.com>
60974 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60976 2001-02-17 Paul Eggert <eggert@twinsun.com>
60978 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60979 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60980 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60981 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60983 2001-02-17 Paul Eggert <eggert@twinsun.com>
60985 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60986 Remove workaround macros for hosts that have mbrtowc but not
60987 mbstate_t, as we now insist on proper declarations for both
60988 before using mbrtowc.
60990 2001-02-17 Jim Meyering <meyering@lucent.com>
60992 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60993 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60994 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60997 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60998 rather than AC_CACHE_VAL.
61000 2001-02-17 Jim Meyering <meyering@lucent.com>
61002 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61003 around included file name.
61005 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61007 * lib/strftime.c: Update from GNU libc (the only changes were to
61010 2001-02-17 Jim Meyering <meyering@lucent.com>
61012 * lib/regex.c: Update from libc.
61014 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61016 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61019 2001-02-16 Paul Eggert <eggert@twinsun.com>
61021 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61022 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61023 Reported by Mark Hounschell via Paul Eggert.
61025 2001-02-07 Jim Meyering <meyering@lucent.com>
61027 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61029 2001-02-05 Jim Meyering <meyering@lucent.com>
61031 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61032 it includes the patch required for `large file' support with at least
61033 HP-UX's 10.20 /bin/cc.
61035 2001-02-03 Jim Meyering <meyering@lucent.com>
61037 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61038 AS_IF, now that it works once again (mysteriously).
61039 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61041 2001-01-30 Jim Meyering <meyering@lucent.com>
61043 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61044 * m4/chown.m4: Rename conftestchown to conftest.chown.
61045 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61046 s/conftestdir2/conftest.d2/.
61047 * m4/utimes.m4: s/conftestdata/conftest.data/
61048 Inspired by Pavel Roskin's change in autoconf.
61050 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61052 * lib/config.charset: Update for FreeBSD 4.2.
61054 2001-01-27 Jim Meyering <meyering@lucent.com>
61056 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61058 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61060 2001-01-26 Jim Meyering <meyering@lucent.com>
61062 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61063 quotearg.c includes it.
61065 2001-01-26 Jim Meyering <meyering@lucent.com>
61067 * lib/quotearg.c: Include stddef.h.
61068 * lib/quote.c: Include stddef.h.
61069 Reported by Axel Kittenberger.
61071 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61072 line in double quotes so that it evokes a better diagnostic.
61073 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61074 Reported by Axel Kittenberger.
61076 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61078 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61079 as if it was a `charset'.
61081 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61083 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61086 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61088 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61089 to avoid a warning. Add back 'const' to inptr.
61091 2001-01-20 Jim Meyering <meyering@lucent.com>
61093 Be sure that headers are checked before used in code compiled
61094 for the type checks.
61095 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61096 In place of that, invoke jm_CHECK_ALL_TYPES.
61097 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61098 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61099 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61100 The check for ssize_t was mistakenly run before the test for unistd.h.
61102 The configure-time check for stdbool.h was missing.
61103 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61104 (jm_PREREQ_HASH): New function.
61106 2001-01-17 Jim Meyering <meyering@lucent.com>
61108 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61109 for autoconf-2.49c.
61110 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61112 2001-01-16 Jim Meyering <meyering@lucent.com>
61114 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61117 2001-01-14 Jim Meyering <meyering@lucent.com>
61119 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61120 foo and bar. Create conftestdir/ in the script, not in the C code.
61121 Remove directories in the script, not in the C code.
61122 Remove conftestdir{,2} before trying to create the directory.
61123 Make the entire configure script fail if the mkdir fails.
61125 2001-01-14 Jim Meyering <meyering@lucent.com>
61127 * lib/rename.c: New file. From Volker Borchert.
61128 Include stdlib.h, string.h or strings.h, and xalloc.h.
61129 Use strip_trailing_slashes rather than open-coding it.
61131 2001-01-03 Paul Eggert <eggert@twinsun.com>
61133 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61135 2001-01-03 Jim Meyering <meyering@lucent.com>
61137 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61138 of local `inptr' to avoid warning with some system declarations of
61141 2001-01-02 Volker Borchert <bt@teknon.de>
61143 * m4/rename.m4: New file.
61144 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61146 2001-01-01 Jim Meyering <meyering@lucent.com>
61148 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61149 even on systems with utmpx.h. It's necessary for the declaration of
61150 utmp's ut_user member. Reported by Andreas Jaeger.
61152 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61153 available. They are required for the declarations of getgrgid and
61155 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61156 Reported by Andreas Jaeger.
61158 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61160 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61161 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61162 so `make install' also works in VPATH builds.
61164 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61166 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61167 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61168 can be used in subdirectories.
61170 2000-12-29 Paul Eggert <eggert@twinsun.com>
61172 * lib/modechange.c: Do not assume that mode_t uses the
61173 traditional octal encoding. E.g. "chmod 1 FOO" should set
61174 the other-execute bit of FOO even if S_IXOTH != 1.
61176 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61177 WOTH, XOTH, ALLM): New macros.
61178 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61179 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61181 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61182 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61184 No need to use uintmax_t; unsigned long is long enough.
61185 Don't bother to get suffix since we don't use it.
61187 2000-12-26 Jim Meyering <meyering@lucent.com>
61189 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61190 better with autoheader.
61192 2000-12-24 Jim Meyering <meyering@lucent.com>
61194 * lib/hash.c (is_prime): Return explicit boolean values.
61195 (hash_get_first): Return NULL to appease Irix5.6's 89.
61196 Reported by Nelson Beebe.
61198 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61200 * lib/localcharset.c (locale_charset): Add support for Win32.
61202 2000-12-18 Paul Eggert <eggert@twinsun.com>
61204 * lib/physmem.h, lib/physmem.c: New files.
61206 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61207 (noinst_HEADERS): Add physmem.h.
61209 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61210 't' for compatibility with Solaris 8 sort.
61212 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61214 * lib/config.charset: Add support for BeOS.
61216 2000-12-17 Jim Meyering <meyering@lucent.com>
61218 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61219 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61221 2000-12-16 Jim Meyering <meyering@lucent.com>
61223 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61224 N and M) would have treated it like `chown N:N FILE'.
61226 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61228 2000-12-16 Jim Meyering <meyering@lucent.com>
61230 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61231 SHELLS_FILE to a file name that's useful on djgpp systems.
61233 (ADDITIONAL_DEFAULT_SHELLS): Define.
61234 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61235 Based mostly on a patch from Prashant TR.
61237 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61239 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61240 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61241 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61243 2000-12-08 Andreas Schwab <schwab@suse.de>
61245 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61246 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61248 2000-12-07 Jim Meyering <meyering@lucent.com>
61250 * lib/stripslash.c (ISSLASH): Define.
61251 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61255 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61256 (dir_name_r): Declare this function as static.
61257 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61258 manifest itself on a name containing a mix of slashes and
61260 Make this function work with names starting with a DOS-style
61261 drive letter and colon prefix.
61262 (dir_name): Append `.' if necessary.
61263 Based mostly on patches from Prashant TR and Eli Zaretskii.
61265 * lib/dirname.h (dir_name_r): Remove prototype.
61267 2000-12-06 Paul Eggert <eggert@twinsun.com>
61269 * m4/off_t-format.m4: Remove this file.
61270 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61272 2000-12-06 Jim Meyering <meyering@lucent.com>
61274 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61275 replacement strtoull, we may well need the replacement strtoul, too.
61276 Check for declarations of strtoul and strtoull.
61277 Check for strtol. Mainly as a cue to cause automake to include
61278 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61279 Check for limits.h -- strtol.c needs it.
61281 2000-12-05 Jim Meyering <meyering@lucent.com>
61283 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61285 2000-12-04 Jim Meyering <meyering@lucent.com>
61287 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61288 Also include memory.h, stdlib.h, unistd.h if appropriate.
61289 Reported by Andreas Jaeger (conflicting declaration of malloc).
61291 2000-12-02 Jim Meyering <meyering@lucent.com>
61293 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61294 * m4/jm-macros.m4 (jm_MACROS): require it.
61296 2000-12-02 Jim Meyering <meyering@lucent.com>
61298 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61300 2000-12-01 Paul Eggert <eggert@twinsun.com>
61302 * lib/memrchr.c: Include <config.h> before any system include file.
61304 2000-11-30 Jim Meyering <meyering@lucent.com>
61306 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61308 2000-11-30 Jim Meyering <meyering@lucent.com>
61310 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61312 2000-11-29 Paul Eggert <eggert@twinsun.com>
61314 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61316 2000-11-26 Jim Meyering <meyering@lucent.com>
61318 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61320 2000-11-22 Paul Eggert <eggert@twinsun.com>
61322 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61323 size of (size_t) -1; it's not portable.
61325 2000-11-17 Jim Meyering <meyering@lucent.com>
61327 * lib/strstr.c: Update from GNU libc.
61329 2000-11-17 Akim Demaille <akim@epita.fr>
61331 * lib/obstack.h: Formatting changes.
61332 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61333 prevent type checking.
61334 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61335 cast the value to (void *): assigning a `foo *' to a `void *'
61337 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61339 2000-11-16 Jim Meyering <meyering@lucent.com>
61341 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61343 2000-11-11 Jim Meyering <meyering@lucent.com>
61345 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61347 2000-11-10 Jim Meyering <meyering@lucent.com>
61349 * lib/obstack.h: Update from GNU libc.
61350 * lib/obstack.c: Likewise.
61352 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61354 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61356 2000-11-06 Paul Eggert <eggert@twinsun.com>
61358 * lib/getusershell.c (setusershell): Use rewind rather than
61359 fseek/fseeko, to avoid configuration hassles with fseeko.
61360 Don't bother opening SHELLS_FILE if shellstream is NULL;
61361 it's not necessary.
61363 2000-11-05 Jim Meyering <meyering@lucent.com>
61365 * lib/makepath.h (make_dir): Declare.
61366 * lib/makepath.c (make_dir): Remove `static' attribute.
61369 2000-11-04 Jim Meyering <meyering@lucent.com>
61371 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61373 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61375 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61376 last one in a bucket, advance to the next bucket.
61378 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61380 * lib/fnmatch.c: Do not comment out all the code if we are using
61381 the GNU C library, because in some cases we are replacing buggy
61382 code in the GNU C library itself.
61384 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61386 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61387 (regex_compile): Catch bogus \(\1\).
61389 2000-10-30 Paul Eggert <eggert@twinsun.com>
61391 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61392 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61393 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61395 2000-10-30 Paul Eggert <eggert@twinsun.com>
61397 * lib/error.h, getline.h, modechange.h:
61398 Remove "2000" from Copyright line, as the file hasn't been
61399 changed this year other than in the copyright notice.
61401 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61402 was changed this year.
61404 2000-10-29 Jim Meyering <meyering@lucent.com>
61406 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61408 * m4/ls-mntd-fs.m4: Likewise
61410 2000-10-29 Jim Meyering <meyering@lucent.com>
61412 * lib/xstat.in: Fix grammar in comment.
61414 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61416 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61417 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61418 doesn't define __restrict_arr.
61420 2000-10-28 Jim Meyering <meyering@lucent.com>
61422 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61423 (jm_PREREQ_MEMCHR): New function.
61425 2000-10-28 Jim Meyering <meyering@lucent.com>
61427 * lib/memchr.c: Update from libc.
61428 Adjust for portability:
61429 [HAVE_STDLIB_H]: Include stdlib.h.
61430 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61431 Undef __memchr, too.
61432 [!weak_alias]: Define __memchr to memchr.
61434 * lib/regex.c: Update from libc.
61435 * lib/regex.h: Likewise.
61436 * lib/getopt1.c: Likewise.
61437 * lib/memcmp.c: Likewise.
61439 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61440 Avoid using fseek, when possible -- it's broken by design.
61441 Patch by Ulrich Drepper.
61443 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61445 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61446 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61447 Giving in to popular pressure to shut up the compiler with casts.
61449 2000-10-26 Jim Meyering <meyering@lucent.com>
61451 * lib/strftime.c: Update from libc.
61453 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61455 * regex.c: More `unsigned char' -> `re_char' changes.
61456 Also change several `int' into `re_wchar_t'.
61457 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61458 (PUSH_FAILURE_POINTER): Don't cast any more.
61459 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61460 We want GCC to complain, since this piece of code makes
61461 re_match non-reentrant, which *should* be fixed.
61462 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61463 (EXTEND_BUFFER): Use RETALLOC.
61464 (SET_LIST_BIT): Don't cast.
61465 (re_wchar_t): New type.
61466 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61467 that those two functions will always properly return.
61468 (IMMEDIATE_QUIT_CHECK): Cast to void.
61469 (analyse_first): Use recursion rather than an explicit stack.
61470 (re_compile_fastmap): Can't fail anymore.
61471 (re_search_2): Don't check re_compile_fastmap for failure.
61472 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61473 Now also sets the new value (passed in a new argument).
61474 (re_match_2_internal): Use it.
61475 Also, use a new var `reg' of type size_t when looping through regs
61476 rather than reuse the inappropriate `mcnt'.
61478 2000-10-25 Jim Meyering <meyering@lucent.com>
61480 * lib/obstack.c: Update from libc.
61482 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61484 * regex.c (regex_compile): Change the way of handling a range from
61485 a char less than 256 to a char not less than 256.
61487 2000-10-24 Andrew Innes <andrewi@gnu.org>
61489 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61491 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61492 so that re_search functions only quit when callers expect them to.
61494 2000-10-23 Jim Meyering <meyering@lucent.com>
61496 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61497 wrong. That set_locale call must not have any side effects.
61500 2000-10-22 Jim Meyering <meyering@lucent.com>
61502 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61503 [CYCLIC]: Remove now-unused definition.
61505 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61506 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61507 Suggestion from Ulrich Drepper.
61509 2000-10-21 Jim Meyering <meyering@lucent.com>
61511 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61512 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61513 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61515 2000-10-21 Jim Meyering <meyering@lucent.com>
61517 * lib/dirname.c (memrchr): Declare if necessary.
61518 (dir_name): Remove the restriction that there be no
61519 trailing slashes. Now, this code skips past them, effectively
61521 [TEST_DIRNAME] (main): New unit tests.
61523 * lib/memrchr.c: New file from GNU libc.
61524 Undef __memrchr, too.
61525 [!weak_alias]: Define __memrchr to memrchr.
61526 Guard weak_alias use with `#ifdef weak_alias'.
61528 2000-10-21 Jim Meyering <meyering@lucent.com>
61530 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61531 (dir_name): Use dir_name_r.
61532 * lib/dirname.h (dir_name_r): Declare it.
61534 2000-10-17 Jim Meyering <meyering@lucent.com>
61536 * lib/quote.h (PARAMS): Define and use.
61537 Reported by Akim Demaille.
61539 * lib/getopt.c: Update from libc.
61541 2000-10-16 Jim Meyering <meyering@lucent.com>
61543 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61547 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61549 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61551 2000-09-25 Jim Meyering <meyering@lucent.com>
61553 * lib/md5.h (rol): Define (from GnuPG).
61555 * lib/sha.c: Give credit (GnuPG) where due.
61556 (M): Use rol rather than open-coding it.
61557 Add a FIXME comment.
61559 2000-09-21 Jim Meyering <meyering@lucent.com>
61561 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61562 Reported by Michael Stone.
61564 2000-09-20 Jim Meyering <meyering@lucent.com>
61566 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61567 (noinst_HEADERS): Add sha.h.
61568 Based on code from Scott G. Miller and from GnuPG.
61570 2000-09-18 Jim Meyering <meyering@lucent.com>
61572 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61573 LIBS. Otherwise, everyone ends up linking with -lelf for some
61575 Reported by Mike Stone.
61577 2000-09-15 Jim Meyering <meyering@lucent.com>
61579 * lib/regex.c: Update from libc.
61581 2000-09-10 Jim Meyering <meyering@lucent.com>
61583 * lib/getopt.c (_getopt_internal): Update from glibc.
61585 2000-09-09 Jim Meyering <meyering@lucent.com>
61587 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61588 think it should be used as a general replacement for isascii.
61589 * lib/fnmatch.c: Likewise.
61590 * lib/mbswidth.c: Likewise
61591 * lib/regex.c: Likewise.
61594 * lib/userspec.c: Include sys/param.h and limits.h.
61596 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61597 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61598 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61599 UID, GID. Check range.
61601 2000-09-06 Jim Meyering <meyering@lucent.com>
61603 * lib/getopt.c (_getopt_internal): Update from glibc.
61605 2000-08-30 Jim Meyering <meyering@lucent.com>
61607 * lib/strftime.c: Merge in changes from GNU libc.
61609 2000-08-26 Jim Meyering <meyering@lucent.com>
61611 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61612 * m4/fpending.m4: New file.
61614 2000-08-26 Jim Meyering <meyering@lucent.com>
61616 * lib/closeout.c: Include "__fpending.h".
61617 (close_stdout_status): Return right away if there's nothing to flush.
61619 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61620 * lib/__fpending.c: New file.
61621 * lib/__fpending.h: New file.
61623 2000-08-20 Jim Meyering <meyering@lucent.com>
61625 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61626 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61627 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61629 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61631 Improve fileutils installation on systems where running
61632 programs (like install) can't be unlinked.
61633 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61634 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61636 2000-08-07 Paul Eggert <eggert@twinsun.com>
61638 Standardize on "memory exhausted" instead of "Memory exhausted"
61639 or "virtual memory exhausted".
61640 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61641 "virtual memory exhausted".
61642 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61644 * lib/userspec.c (parse_user_spec): Likewise.
61645 * lib/bumpalloc.h: comment fix
61646 * lib/same.c, userspec.c: Include xalloc.h.
61648 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61649 not char *const and pointing to a constant array.
61650 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61651 (xrealloc): Comment fix.
61653 * lib/userspec.c (parse_user_spec):
61654 Don't translate a message until just before returning,
61655 to avoid unnecessary translation.
61657 2000-08-07 Jim Meyering <meyering@lucent.com>
61659 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61660 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61661 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61662 getgroups.c, gethostname.c, getopt.h, group-member.c,
61663 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61664 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61665 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61666 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61667 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61668 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61669 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61670 yesno.c: Back out Copyright date changes for each file with no change
61671 this year. This eases coordination with other programs using the same
61672 source code modules. From Paul Eggert.
61674 2000-08-06 Paul Eggert <eggert@twinsun.com>
61676 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61677 not char, for compatibility with glibc 2.1.3 strftime.c.
61679 2000-08-03 Greg McGary <greg@mcgary.org>
61681 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61682 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61683 (EXTEND_BUFFER): Use them.
61685 2000-08-01 Jim Meyering <meyering@lucent.com>
61687 * lib/dirname.c (ISSLASH): Define.
61688 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61689 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61690 both `\' and `/' may be use as path separators.
61691 Based on a patch from Prashant TR.
61693 2000-07-31 Paul Eggert <eggert@twinsun.com>
61695 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61696 slot vector a constant, since it might get modified.
61698 2000-07-31 Jim Meyering <meyering@lucent.com>
61700 * lib/xmalloc.c: Use `virtual memory exhausted', not
61701 `Memory exhausted'.
61702 * lib/obstack.c (print_and_abort): Likewise.
61704 2000-07-30 Paul Eggert <eggert@twinsun.com>
61706 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61707 buffer, so that the caller can always quote one small
61708 component of a "memory exhausted" message in slot 0.
61709 From a suggestion by Jim Meyering.
61711 2000-07-30 Jim Meyering <meyering@lucent.com>
61713 * lib/makepath.c (make_path): Quote the other instance, too.
61715 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61716 (STATIC_BUF_SIZE): Define.
61717 (quotearg_n_options): Use only statically allocated storage when
61718 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61719 than STATIC_BUF_SIZE.
61721 2000-07-29 Jim Meyering <meyering@lucent.com>
61723 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61724 * lib/dirname.c (dir_name): Likewise.
61726 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61729 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61730 (dir_name): Assert that there are no trailing slashes.
61732 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61734 * lib/mbswidth.h (mbswidth): Add a flags argument.
61735 (mbswidth): New declaration.
61736 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61737 * lib/mbswidth.c (mbswidth): Add a flags argument.
61738 (mbsnwidth): New function.
61740 2000-07-24 Jim Meyering <meyering@lucent.com>
61742 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61744 2000-07-23 Paul Eggert <eggert@twinsun.com>
61746 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61748 2000-07-23 Paul Eggert <eggert@twinsun.com>
61750 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61751 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61752 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61753 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61754 invoke multibyte primitives.
61756 2000-07-23 Paul Eggert <eggert@twinsun.com>
61759 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61760 so that mbstate_t is always defined.
61762 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61763 be 1 in at least one GCC installation, and this configuration
61764 error is likely to be common. Ignoring MB_LEN_MAX hurts
61765 performance on hosts that have mbrtowc but have only unibyte
61766 locales, but I assume these hosts are rare.
61768 2000-07-23 Paul Eggert <eggert@twinsun.com>
61770 * lib/mbswidth.c (_XOPEN_SOURCE):
61771 Don't define; this causes problems on Solaris 7.
61772 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61774 2000-07-23 Jim Meyering <meyering@lucent.com>
61776 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61777 too: getgrgid, getpwuid, getuid.
61779 2000-07-23 Jim Meyering <meyering@lucent.com>
61781 * lib/basename.c (base_name): Add an assertion.
61783 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61785 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61786 shadow its mbsinit function.
61788 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61790 * lib/mbswidth.h: New file.
61791 * lib/mbswidth.c: New file.
61792 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61793 (noinst_HEADERS): Add mbswidth.h.
61795 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61797 * lib/config.charset: Add support for FreeBSD. Improve support for
61800 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61802 * m4/mbswidth.m4: New file.
61803 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61805 2000-07-15 Jim Meyering <meyering@lucent.com>
61807 * lib/makepath.c: Include quote.h.
61808 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61809 corresponding argument in a `quote (...)' call.
61810 Give better diagnostics.
61812 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61813 (noinst_HEADERS): Add quote.h.
61815 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61816 from tar's src/misc.c.
61817 * lib/quote.h: New file. Prototypes for same.
61819 2000-07-14 Paul Eggert <eggert@twinsun.com>
61821 From a suggestion by Bruno Haible.
61822 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61823 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61824 to decide whether to define the BeOS workaround macro;
61825 this adjusts to the change to AC_MBSTATE_T.
61827 2000-07-14 Jim Meyering <meyering@lucent.com>
61829 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61830 jm_AC_TYPE_UINTMAX_T.
61832 2000-07-13 Paul Eggert <eggert@twinsun.com>
61834 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61836 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61837 quotearg_buffer_restyled): Add support for
61838 clocale_quoting_style. Undo previous change to
61839 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61840 and "{RIGHT QUOTATION MARK}" msgids.
61842 2000-07-10 Paul Eggert <eggert@twinsun.com>
61844 From a suggestion by Bruno Haible.
61845 * m4/mbstate_t.m4 (AC_MBSTATE_T):
61846 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
61847 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61848 and mbstate_t, to a single-part test that simply defines mbstate_t.
61849 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61850 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61852 2000-07-10 Jim Meyering <meyering@lucent.com>
61854 * m4/strerror_r.m4: Mirror the correction made in autoconf.
61856 * m4/gnu-source.m4: Output to confdefs.h directly.
61857 Suggestion from Akim Demaille.
61859 2000-07-09 Paul Eggert <eggert@twinsun.com>
61861 The old behavior of quoting `like this' doesn't look good with
61862 newer, ISO-style fonts. See:
61863 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61865 Instead, quote "like this" by default. Let the translator
61866 tailor the locale-specific quoting behavior by providing
61867 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61869 * lib/quotearg.c (N_): New macro.
61870 (gettext_default): New function.
61871 (quotearg_buffer_restyled): Use
61872 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61873 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61875 2000-07-09 Jim Meyering <meyering@lucent.com>
61877 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61878 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
61880 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61881 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61883 2000-07-09 Jim Meyering <meyering@lucent.com>
61885 * lib/Most files: Update copyright dates to include 2000.
61887 2000-07-08 Jim Meyering <meyering@lucent.com>
61889 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61891 (xgethostname): Remove now-unnecessary #ifdef.
61892 Move declaration of `err' into loop where it's used.
61894 2000-07-05 Paul Eggert <eggert@twinsun.com>
61895 and Bruno Haible <haible@clisp.cons.org>
61897 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61898 only if the test for an object-type mbstate_t fails. This
61899 prevents us from mistakenly reporting that mbstate_t is a
61900 system object type after we "#define mbstate_t int" to work
61903 2000-07-05 Paul Eggert <eggert@twinsun.com>
61904 and Bruno Haible <haible@clisp.cons.org>
61906 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61908 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61910 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61912 Include <ctype.h> for use of isalpha.
61914 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61916 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61917 by allocating a larger buffer. Test the gethostname return value for
61918 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
61919 returns an error and ENAMETOOLONG isn't defined.
61921 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61923 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61926 2000-07-04 Jim Meyering <meyering@lucent.com>
61928 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61929 of the deprecated AC_CHECKING.
61931 2000-07-04 Jim Meyering <meyering@lucent.com>
61933 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61934 Reported by Bruno Haible.
61936 2000-07-04 Jim Meyering <meyering@lucent.com>
61938 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61939 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
61942 2000-07-03 Paul Eggert <eggert@twinsun.com>
61944 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61945 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61947 2000-07-03 Paul Eggert <eggert@twinsun.com>
61948 and Bruno Haible <haible@clisp.cons.org>
61950 * lib/quotearg.c (mbrtowc):
61951 Assign to *pwc, and return 1 only if result is nonzero.
61952 (iswprint): Use ISPRINT when substituting our own mbrtowc.
61954 2000-07-03 Jim Meyering <meyering@lucent.com>
61956 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61958 2000-07-03 Jim Meyering <meyering@lucent.com>
61960 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61961 This is necessary to get a definition of e.g., UTMP_FILE on
61965 2000-07-02 Jim Meyering <meyering@lucent.com>
61967 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61969 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61970 AC_LIBOBJ(function_name).
61971 * m4/chown.m4: Likewise.
61972 * m4/fnmatch.m4: Likewise.
61973 * m4/ftruncate.m4: Likewise.
61974 * m4/getgroups.m4: Likewise.
61975 * m4/getline.m4: Likewise.
61976 * m4/group-member.m4: Likewise.
61977 * m4/jm-macros.m4: Likewise.
61978 * m4/lstat.m4: Likewise.
61979 * m4/malloc.m4: Likewise.
61980 * m4/memcmp.m4: Likewise.
61981 * m4/nanosleep.m4: Likewise.
61982 * m4/putenv.m4: Likewise.
61983 * m4/realloc.m4: Likewise.
61984 * m4/regex.m4: Likewise.
61985 * m4/stat.m4: Likewise.
61986 * m4/strftime.m4: Likewise.
61988 2000-07-02 Jim Meyering <meyering@lucent.com>
61990 * lib/quotearg.c (mbstate_t): Don't define here.
61992 2000-07-02 Jim Meyering <meyering@lucent.com>
61994 * lib/nanosleep.c (SIGCONT): Define if not already defined.
61996 2000-07-01 Jim Meyering <meyering@lucent.com>
61998 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62000 2000-07-01 Jim Meyering <meyering@lucent.com>
62002 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62005 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62007 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62008 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62010 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62012 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62013 per change in ../m4/ls-mntd-fs.m4.
62014 (read_filesystem_list): Ignore symbolic links.
62016 2000-06-29 Jim Meyering <meyering@lucent.com>
62018 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62019 for declaration of strcmp.
62021 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62023 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62024 Avoid warning by casting result to `char *' to remove `const'.
62026 2000-06-28 Jim Meyering <meyering@lucent.com>
62028 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62029 included by quotearg.c, for which we perform this test. From
62032 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62034 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62035 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62036 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62038 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62040 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62042 2000-06-26 Paul Eggert <eggert@twinsun.com>
62044 savedir now sets errno on failure and invokes xmalloc to get memory.
62045 Fix a couple of other minor bugs while we're at it.
62047 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62048 (NAMLEN): Remove macro.
62049 (malloc, realloc): Remove decls.
62050 (stpcpy): Likewise.
62051 ("xalloc.h"): Include.
62052 (NAME_SIZE_DEFAULT): New macro.
62053 (savedir): Use xmalloc / xrealloc to allocate memory.
62054 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62055 Skip "" directory entries.
62056 Use strlen to calculate directory entry length, since the old method
62057 is rarely used these days and isn't worth supporting.
62058 Don't use a pointer after freeing it.
62059 Check for integer overflow when calculating allocation size.
62060 Use memcpy to copy entries, instead of stpcpy.
62061 Set errno properly when returning NULL.
62062 Check for readdir error.
62064 2000-06-26 Jim Meyering <meyering@lucent.com>
62066 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62068 2000-06-25 Jim Meyering <meyering@lucent.com>
62070 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62071 Linux header bug when _XOPEN_SOURCE is defined to 500.
62073 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62075 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62078 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62080 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62082 Don't include <stdlib.h>. Don't declare malloc, realloc.
62084 2000-06-24 Jim Meyering <meyering@lucent.com>
62086 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62087 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62088 for which strerror does return char*, but which lacks a conveniently
62089 accessible declaration of the function. If the compile-test says
62090 strerror_r doesn't work, then resort to a `run'-test that works on
62091 BeOS and segfaults on DEC Unix.
62093 2000-06-24 Jim Meyering <meyering@lucent.com>
62095 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62097 2000-06-23 Paul Eggert <eggert@twinsun.com>
62099 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62100 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62102 2000-06-23 Paul Eggert <eggert@twinsun.com>
62104 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62105 (mbrtowc, mbstate_t): Define substitutes if
62106 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62107 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62108 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62110 2000-06-23 Jim Meyering <meyering@lucent.com>
62112 * m4/afs.m4: Add missing AC_MSG_RESULT.
62113 Reported by Bruno Haible.
62115 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62116 Suggestion from Bruno Haible.
62118 2000-06-23 Jim Meyering <meyering@lucent.com>
62120 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62122 2000-06-21 Jim Meyering <meyering@lucent.com>
62124 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62126 2000-06-21 Jim Meyering <meyering@lucent.com>
62128 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62129 (noinst_HEADERS): Add getstr.h.
62131 * lib/getline.c (getstr): Move into a separate file.
62132 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62133 the following changes: new parameter, delim2; both delim[12]
62134 parameters have type `int', not `char'. The latter would lose
62135 with 8-bit delimiters.
62136 * lib/getstr.h: New file.
62138 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62140 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62141 than 1024, return a memory chunk of least possible size, instead
62142 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62143 Use free/xmalloc instead of xrealloc to avoid copying for very long
62146 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62148 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62151 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62153 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62154 address, not strdup. Include <stdlib.h> and don't declare free().
62156 2000-06-19 Jim Meyering <meyering@lucent.com>
62158 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62160 2000-06-18 Jim Meyering <meyering@lucent.com>
62162 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62164 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62165 `checking whether...' message to be consistent with that of the
62168 2000-06-18 Jim Meyering <meyering@lucent.com>
62170 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62171 Besides, these days every porting target provides a mkdir function.
62173 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62174 needed. (this snippet comes from src/system.h).
62176 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62178 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62180 2000-06-15 Paul Eggert <eggert@twinsun.com>
62182 * lib/human.c (adjust_value): New function.
62183 (human_readable_inexact): Apply rounding style even when
62184 printing approximate values.
62186 2000-06-14 Paul Eggert <eggert@twinsun.com>
62188 * lib/human.c (human_readable_inexact): Allow an input block
62189 size that is not a multiple of the output block size, and vice versa.
62190 Reported by Piergiorgio Sartor.
62192 2000-06-14 Paul Eggert <eggert@twinsun.com>
62194 * lib/getdate.y (get_date): Apply relative times after time
62195 zone indicator, not before. Reported by Todd A. Jacobs.
62197 2000-06-13 Jim Meyering <meyering@lucent.com>
62199 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62201 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62203 2000-06-12 Paul Eggert <eggert@twinsun.com>
62205 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62207 2000-06-12 Jim Meyering <meyering@lucent.com>
62209 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62210 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62212 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62213 the optional argument, `lib'.
62215 2000-06-08 Jim Meyering <meyering@lucent.com>
62217 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62219 2000-06-04 Paul Eggert <eggert@twinsun.com>
62221 Rewrite largefile configuration so that we don't need to run
62222 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62223 AC_CANONICAL_HOST in configure.in -- jmm]
62225 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62226 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62227 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62228 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62229 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62231 Instead of inspecting the output of getconf, try to compile the
62232 test program without and with the macro definition.
62233 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62234 for getconf. Instead, check for the needed flags by compiling
62237 2000-06-04 Paul Eggert <eggert@twinsun.com>
62239 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62241 2000-06-04 Jim Meyering <meyering@lucent.com>
62243 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62244 SunOS 4.1.4 for which gid_t is an unsigned type.
62246 2000-06-03 Jim Meyering <meyering@lucent.com>
62248 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62249 now that autoconf requires that.
62251 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62252 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62253 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62255 2000-06-03 Jim Meyering <meyering@lucent.com>
62257 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62259 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62261 * m4/glibc21.m4: New file.
62262 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62264 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62266 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62267 newer, don't install charset.alias.
62268 * lib/config.charset: Change the Linux/glibc rules so they become empty
62269 on glibc-2.1 or newer.
62271 2000-06-02 Jim Meyering <meyering@lucent.com>
62273 * lib/mountlist.c: Back out last change. Instead, do this...
62274 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62275 me_dummy member using the same `ignore'-testing code.
62276 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62280 2000-05-29 Jim Meyering <meyering@lucent.com>
62282 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62283 mounts with the `ignore' attribute. Based on a patch from
62286 2000-05-28 Jim Meyering <meyering@lucent.com>
62288 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62289 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62290 * m4/stat.m4: Likewise.
62291 * m4/lstat.m4: Likewise.
62292 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62294 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62295 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62297 2000-05-26 Jim Meyering <meyering@lucent.com>
62299 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62301 2000-05-24 Jim Meyering <meyering@lucent.com>
62303 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62304 autoconf requires that.
62305 * m4/lib-check.m4: Likewise.
62306 * m4/jm-macros.m4: Likewise.
62307 * m4/strftime.m4: Likewise.
62309 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62310 AC_CHECK_DECLS, now that autoconf requires that.
62312 2000-05-22 Jim Meyering <meyering@lucent.com>
62314 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62315 * m4/lstat.m4: Likewise.
62317 2000-05-22 Jim Meyering <meyering@lucent.com>
62319 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62321 2000-05-20 Jim Meyering <meyering@lucent.com>
62323 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62324 (jm_PREREQ): Use it.
62326 2000-05-18 Jim Meyering <meyering@lucent.com>
62328 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62329 back, too, since it may have been modified by allocate_entry.
62330 (hash_delete): Rewrite to use neither the assignment operator
62331 nor the comma operator in an if-expression.
62333 2000-05-15 Paul Eggert <eggert@twinsun.com>
62336 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62337 Remove; no longer needed.
62338 "quotearg.h": Add include.
62339 (file_name): Do not bother to explicitly initialize to NULL; it's less
62340 efficient on some hosts.
62341 (close_stdout_status): Remove test as to whether stdout was already
62342 closed; it breaks for the case "echo x | sort >&-".
62343 Quote file name colons.
62344 Do not assume that _("write error") lacks format strings.
62346 2000-05-15 Jim Meyering <meyering@lucent.com>
62348 * lib/version-etc.c (version_etc_copyright): Update the copyright
62349 string used in all --version output.
62351 2000-05-14 Jim Meyering <meyering@lucent.com>
62353 * lib/closeout.c (close_stdout_set_file_name): New function.
62354 (close_stdout_status): Use new file-scoped global.
62355 Return right away if fstat says the stdout file descriptor is invalid.
62356 * lib/closeout.h (close_stdout_set_file_name): Declare.
62358 2000-05-10 Jim Meyering <meyering@lucent.com>
62360 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62361 (close_stdout_set_status): New function.
62362 * lib/closeout.h (close_stdout_set_status): Declare.
62364 2000-05-09 Jim Meyering <meyering@lucent.com>
62366 * m4/gettext.m4: Rename this...
62367 * m4/libintl.m4: ...to this.
62369 2000-05-08 Jim Meyering <meyering@lucent.com>
62371 * lib/long-options.c: Don't include closeout.h.
62372 (parse_long_options): Don't call close_stdout for --version.
62374 2000-05-06 Paul Eggert <eggert@twinsun.com>
62376 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62377 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62378 2.1.3 bug. This avoids a clash when files like regex.c define
62381 2000-05-06 Jim Meyering <meyering@lucent.com>
62383 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62384 (AC_REPLACE_FUNCS): Add strnlen.
62386 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62387 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62389 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62390 AC_SEARCH_LIBS call for nanosleep.
62391 (LIB_NANOSLEEP): Set and AC_SUBST.
62393 2000-05-06 Jim Meyering <meyering@lucent.com>
62395 * lib/strnlen.c: Undefine __strnlen and strnlen.
62396 [!weak_alias]: Define __strnlen to strnlen.
62398 * lib/atexit.c: New file, from libiberty.
62400 2000-05-06 Jim Meyering <meyering@lucent.com>
62402 * lib/closeout.c (close_stdout_status): Also check for errors on the
62405 2000-05-05 Jim Meyering <meyering@lucent.com>
62407 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62408 AC_SEARCH_LIBS call for clock_gettime.
62409 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62411 * m4/search-libs.m4: Update from autoconf.
62413 su doesn't work on Solaris 2.6.
62414 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62415 <shadow.h>. Reported by Dragos Harabor.
62417 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62419 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62420 memcpy instead of xmalloc, xrealloc, path_concat.
62421 (locale_charset): Treat empty environment variables as absent.
62422 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62424 2000-05-04 Jim Meyering <meyering@lucent.com>
62426 * lib/getopt.c: Update from glibc.
62427 * lib/obstack.c: Likewise.
62428 * lib/obstack.h: Likewise.
62429 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62432 * lib/regex.h: Likewise.
62433 * lib/strndup.c: Likewise.
62434 * lib/strnlen.c: New file, from glibc.
62436 2000-05-03 Jim Meyering <meyering@lucent.com>
62438 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62440 2000-05-02 Paul Eggert <eggert@twinsun.com>
62442 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62443 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62444 compile-time test, rather than inspecting host and OS, to
62445 decide whether to define _LARGEFILE_SOURCE.
62447 2000-05-01 Jim Meyering <meyering@lucent.com>
62449 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62451 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62452 Based on a patch from Bruno Haible.
62454 2000-05-01 Jim Meyering <meyering@lucent.com>
62456 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62458 2000-04-29 Jim Meyering <meyering@lucent.com>
62460 * lib/path-concat.c: Declare strdup only if it's not defined.
62461 * lib/canon-host.c: Likewise.
62463 2000-04-28 Jim Meyering <meyering@lucent.com>
62465 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62466 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62467 is included first, then limits.h is included by locale.h by libintl.h.
62468 From John David Anglin.
62470 2000-04-25 Jim Meyering <meyering@lucent.com>
62472 * lib/makepath.c (S_IRWXUGO): Define.
62473 (make_path): Always perform explicit chmod if MODE specifies any
62474 of the `special' permission bits. Prompted by a bug report against
62475 install from Mate Wierdl and Joost van Baal.
62477 2000-04-18 Jim Meyering <meyering@lucent.com>
62479 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62480 (jm_PREREQ): Use it.
62482 2000-04-18 Jim Meyering <meyering@lucent.com>
62484 * lib/README: New file.
62486 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62487 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62489 2000-04-17 Jim Meyering <meyering@lucent.com>
62492 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62493 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62494 Suggestion from Akim Demaille.
62496 2000-04-17 Jim Meyering <meyering@lucent.com>
62498 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62499 the definition of it to rpl_strftime also defined-away the system's
62502 2000-04-15 Jim Meyering <meyering@lucent.com>
62504 Use `C' to denote so-called `contiguous' files, the same way
62506 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62507 (ftypelet): Use S_ISCTG.
62508 From Michael Deutschmann.
62510 2000-04-14 Jim Meyering <meyering@lucent.com>
62512 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62513 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62516 2000-04-14 Jim Meyering <meyering@lucent.com>
62518 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62520 2000-04-13 Jim Meyering <meyering@lucent.com>
62522 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62523 AH_VERBATIM to insert required #ifndef into config.h.in.
62524 Suggestion from Akim Demaille.
62526 2000-04-12 Jim Meyering <meyering@lucent.com>
62528 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62529 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62530 Christian Krackowizer.
62532 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62533 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62534 (AC_SYS_LARGEFILE): Require.
62535 (AM_C_PROTOTYPES): Require.
62537 2000-04-08 Jim Meyering <meyering@lucent.com>
62539 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62540 names don't conflict. Reported by Eli Zaretskii.
62542 2000-04-07 Jim Meyering <meyering@lucent.com>
62544 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62545 sys/types.h, to work around system header problems on AIX 3.2.5.
62548 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62550 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62551 bug. Deal with the different error behavior of Irix iconv.
62553 2000-04-05 Paul Eggert <eggert@twinsun.com>
62555 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62556 IRIX if the installer said otherwise.
62558 2000-04-05 Jim Meyering <meyering@lucent.com>
62560 Portability tweaks required for ultrix4.3.
62561 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62562 (jm_CHECK_DECLS): Add getutent to the list of functions.
62563 (_jm_DECL_HEADERS): Add utmpx.h.
62564 From John David Anglin.
62566 * m4/strftime.m4: Back out the 2000-04-02 change.
62567 Instead of that change, simply undefine putenv in the test program.
62569 2000-04-05 Jim Meyering <meyering@lucent.com>
62571 Portability tweaks required for ultrix4.3.
62572 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62574 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62575 * lib/canon-host.c: Declare strdup.
62576 * lib/path-concat.c: Likewise.
62577 From John David Anglin.
62579 2000-04-04 Jim Meyering <meyering@lucent.com>
62581 Be more DOS 8.3-friendly.
62582 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62583 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62584 * lib/Makefile.am: Reflect renaming.
62585 Reported by Eli Zaretskii.
62587 Use a temporary file name that won't clash with `charset.alias'
62588 in the DOS 8.3 name space.
62589 * lib/Makefile.am (charset_tmp): Define.
62590 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62591 (uninstall-local): Likewise.
62592 Reported by Eli Zaretskii.
62594 2000-04-03 Jim Meyering <meyering@lucent.com>
62596 * m4/gettext.m4: Fix typo in comment.
62598 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62599 textutils/configure.in). Suggestion from Paul Eggert.
62600 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62602 2000-04-02 Paul Eggert <eggert@twinsun.com>
62604 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62605 variable in the shell rather than using putenv, which isn't
62606 portable. This avoids the configure-time inter-test dependency
62607 on the potentially-renamed putenv function.
62609 2000-03-30 Paul Eggert <eggert@twinsun.com>
62611 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62612 before checking struct stat.st_blksize, so that
62613 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62615 2000-03-29 Paul Eggert <eggert@twinsun.com>
62617 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62618 since strftime.c uses HAVE_STRFTIME to decide whether to use
62619 the underlying strftime.
62621 2000-03-29 Paul Eggert <eggert@twinsun.com>
62623 * lib/time/strftime.c (my_strftime): Make sure we call the system
62624 strftime, not ourselves, when invoking the underlying strftime.
62626 2000-03-24 Jim Meyering <meyering@lucent.com>
62628 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62629 (charset_alias): Define.
62630 (install-exec-local): Factor out common code.
62631 (uninstall-local): Split lines longer than 80.
62632 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62633 (SUFFIXES): Define.
62634 (.sed.in.sed): New rule. Don't redirect directly to $@.
62635 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62637 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62639 * lib/config.charset: Output a line containing "Packages using this
62641 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62642 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62643 ref-del.sed): New rules.
62645 2000-03-17 Jim Meyering <meyering@lucent.com>
62647 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62648 Otherwise, include <strings.h>
62650 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62652 * lib/unicodeio.c (utf8_wctomb): New function.
62653 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62654 format instead of in UCS-4 with platform dependent endianness.
62656 2000-03-10 Jim Meyering <meyering@lucent.com>
62658 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62659 From Marco Franzen.
62661 2000-03-07 Paul Eggert <eggert@twinsun.com>
62663 * lib/savedir.c (savedir): Work even if directory size is
62664 negative; this can happen with some screwy NFS configurations.
62666 2000-03-06 Jim Meyering <meyering@lucent.com>
62668 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62669 if it's NULL (because we ran out of memory). From Bruno Haible.
62671 2000-03-05 Jim Meyering <meyering@lucent.com>
62673 * lib/localcharset.c ("path-concat.h"): Include.
62674 (get_charset_aliases): Use path_concat instead of ANSI string
62677 * lib/unicodeio.h (PARAMS): Define.
62678 Use it to guard prototype.
62680 2000-03-04 Jim Meyering <meyering@lucent.com>
62682 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62683 for lib/localcharset.c.
62685 2000-03-04 Jim Meyering <meyering@lucent.com>
62687 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62688 installing into it.
62689 (uninstall-local): Uncomment this rule so `make distcheck' works
62692 * lib/unicodeio.c (<errno.h>): Include it.
62693 (errno): Declare if not defined.
62695 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62697 * lib/config.charset: New version, incorporating remarks from a linux
62698 i18n mailing list. From Bruno Haible.
62700 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62702 * m4/codeset.m4: New file.
62703 * m4/iconv.m4: New file.
62704 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62706 2000-03-03 Jim Meyering <meyering@lucent.com>
62708 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62710 2000-03-02 Jim Meyering <meyering@lucent.com>
62712 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62713 the messages come out on separate lines.
62715 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62716 rather than jm_CHECK_DECLARATIONS.
62717 * m4/decl.m4: Remove now-unused file.
62719 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62722 2000-03-02 Jim Meyering <meyering@lucent.com>
62724 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62726 2000-03-01 Jim Meyering <meyering@lucent.com>
62728 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62729 * lib/unicodeio.c: Likewise.
62731 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62733 * lib/config.charset: New file.
62734 * lib/localcharset.c: New file.
62735 * lib/unicodeio.h, lib/unicodeio.c: New files.
62736 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62737 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62738 (noinst_HEADERS): Add unicodeio.h.
62739 (all-local, install-exec-local, charset.alias): New targets.
62741 2000-02-28 Paul Eggert <eggert@twinsun.com>
62743 * lib/quotearg.c (ALERT_CHAR): New macro.
62744 (quotearg_buffer_restyled): Use it.
62746 2000-02-27 Jim Meyering <meyering@lucent.com>
62748 * m4/check-decl.m4: Add getenv to the list.
62750 2000-02-27 Jim Meyering <meyering@lucent.com>
62752 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62753 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62755 * lib/backupfile.c: Guard inclusion of stdlib.h with
62756 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62757 Declare malloc if needed.
62759 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62760 `#ifndef HAVE_DECL..'
62761 now that autoconf always defines the HAVE_DECL_ symbols.
62762 * lib/human.c: Likewise.
62763 * lib/same.c: Likewise.
62764 * lib/strtoumax.c: Likewise.
62766 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62767 declaration check was not run.
62768 * lib/hash.c: Likewise.
62769 * lib/human.c: Likewise.
62770 * lib/same.c: Likewise.
62771 * lib/strtoumax.c: Likewise.
62773 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62774 `.', then first look up the entire `.'-containing string as a login
62777 2000-02-23 Jim Meyering <meyering@lucent.com>
62779 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62780 in place of my hack.
62782 2000-02-18 Paul Eggert <eggert@twinsun.com>
62784 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62785 (textint): New typedef.
62786 (parser_control): Member year changed from int to textint.
62788 (YYSTYPE): Removed; replaced by %union with int and textint members.
62789 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62790 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62791 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62792 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62793 (date, number, to_year): Use width of number in digits, not its value,
62794 to determine whether it's a 2-digit year, or a 2-digit time.
62795 (yylex): Store number of digits of numeric tokens.
62796 Reported by John Kendall.
62798 (parser_control): Changed from struct parser_control to typedef (for
62799 consistency). All uses changed.
62801 (tID): Removed; not used.
62802 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62804 2000-02-14 Paul Eggert <eggert@twinsun.com>
62806 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62807 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62809 2000-02-12 Jim Meyering <meyering@lucent.com>
62811 * lib/userspec.c (ISDIGIT): Define it.
62812 (isdigit): Remove definition.
62813 (is_number): Use ISDIGIT, not isdigit.
62814 <libintl.h>: Include.
62815 (_ and N_): Define.
62816 (parse_user_spec): Mark translatable strings.
62818 2000-02-10 Jim Meyering <meyering@lucent.com>
62820 With these changes, nanosleep.[ch] are finally enough like the other
62821 lib/* replacement files to compile on a few more losing systems.
62823 * lib/nanosleep.h: Don't include config.h.
62824 Remove prototype from declaration of nanosleep.
62825 (PARAMS): Remove now-unneeded definition.
62826 * lib/nanosleep.c: #undef nanosleep.
62827 (rpl_nanosleep): Rename from nanosleep.
62829 2000-02-10 Jim Meyering <meyering@lucent.com>
62831 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62832 gnu_nanosleep to rpl_nanosleep.
62834 2000-02-09 Jim Meyering <meyering@lucent.com>
62836 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62837 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
62839 2000-02-08 Akim Demaille <akim@epita.fr>
62841 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62842 `[' and `]' and remove uses of `changequote'.
62843 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62844 (AC_SYS_LARGEFILE): Likewise.
62845 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62846 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62848 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62849 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62850 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62851 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62853 2000-02-05 Jim Meyering <meyering@lucent.com>
62855 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62856 Remove explicit use of AC_HEADER_TIME. It is required by
62857 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
62858 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62859 in autoconf whereby the expansion of the latter ended up preceding
62860 the expansion of its prerequisite, AC_HEADER_TIME.
62861 Reported by Volker Borchert.
62863 2000-02-03 Jim Meyering <meyering@lucent.com>
62865 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62867 2000-02-03 Jim Meyering <meyering@lucent.com>
62869 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62870 rather than with `#if HAVE_UTMPNAME'.
62872 2000-02-02 Jim Meyering <meyering@lucent.com>
62874 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62875 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62876 Reported by Eli Zaretskii.
62878 2000-02-01 Jim Meyering <meyering@lucent.com>
62880 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
62882 2000-01-31 Jim Meyering <meyering@lucent.com>
62884 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62885 functions. Add the time.h and sys/time.h headers along with the
62886 AC_REQUIRE'ment of AC_HEADER_TIME.
62888 2000-01-31 Jim Meyering <meyering@lucent.com>
62890 * lib/nanosleep.h (nanosleep): Guard declaration with
62891 `#if ! HAVE_DECL_NANOSLEEP'.
62892 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62893 the declaration in that vendor's sys/timers.h.
62894 Reported by Christian Krackowizer.
62896 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62897 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62898 (ISPRINT): Likewise.
62899 Reported by Tom Tromey.
62901 2000-01-30 Jim Meyering <meyering@lucent.com>
62903 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62905 * m4/prereq.m4 (utmp_includes): Define.
62906 Check for ut_user and ut_name members in both struct utmpx
62909 2000-01-30 Jim Meyering <meyering@lucent.com>
62911 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62912 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
62913 header files where only utmpx.ut_user is declared.
62915 * lib/readutmp.h (UT_USER): Define.
62917 2000-01-29 Jim Meyering <meyering@lucent.com>
62919 * m4/lib-check.m4: New file containing library-related checks from
62920 fileutils and sh-utils (textutils had none).
62922 2000-01-28 Jim Meyering <meyering@lucent.com>
62924 * m4/perl.m4: Change format of warning message to look more like that
62925 from the missing script. Suggestion from François Pinard.
62927 2000-01-25 Jim Meyering <meyering@lucent.com>
62929 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62930 well as time.h in the compile check.
62931 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62932 Fix typo in cross-compiling case: s/yes/no/.
62934 2000-01-23 Jim Meyering <meyering@lucent.com>
62936 * m4/jm-macros.m4: Move df-related tests here from
62937 fileutils/configure.in
62939 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62940 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62942 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
62943 s/space/ac_fsusage_space/.
62944 (jm_FILE_SYSTEM_USAGE): Take two parameters.
62946 * m4/ftruncate.m4: New file (derived from part of
62947 fileutils/configure.in).
62948 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62949 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62951 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62952 AC_SUBST these here, rather than just in sh-util/configure.in, so
62953 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62955 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62956 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62957 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62958 (AC_SUBST(POW_LIBM)): Likewise.
62959 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62961 2000-01-23 Jim Meyering <meyering@lucent.com>
62963 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62966 2000-01-22 Jim Meyering <meyering@lucent.com>
62968 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62970 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62972 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62974 (AC_CHECK_HEADERS): Likewise for sh-utils.
62975 (AC_CHECK_HEADERS): Likewise for textutils.
62976 Merge the three lists of headers.
62978 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
62979 from fileutils' configure.in.
62981 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62982 code. Moved tests into their own function (_jm_DECL_HEADERS) in
62985 * m4/check-decl.m4: Use #if rather than #ifdef.
62986 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62987 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62988 (_jm_DECL_HEADERS): Define new function.
62989 (jm_CHECK_DECLARATIONS): Require it.
62991 2000-01-22 Jim Meyering <meyering@lucent.com>
62993 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62994 [! HAVE_DECL_STRTOULL]: Declare strtoull.
62995 Required for some AIX systems. Reported by Christian Krackowizer.
62996 [TESTING] (main): New function.
62998 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
62999 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63002 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63005 * lib/strverscmp.c (ISDIGIT): Define.
63006 (strverscmp): Use ISDIGIT, not isdigit.
63008 2000-01-19 Jim Meyering <meyering@lucent.com>
63010 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63011 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63012 defines `struct timespec' in <sys/time.h>
63014 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63015 Thanks to Akim for explaining.
63017 2000-01-17 Paul Eggert <eggert@twinsun.com>
63019 * lib/nanosleep.c (nanosleep):
63020 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63021 POSIX.1 doesn't require SA_INTERRUPT and some systems
63022 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63023 it's been part of POSIX.1 since day 1 (in 1988).
63025 2000-01-17 Jim Meyering <meyering@lucent.com>
63027 * lib/interlock: Remove unused file. Reported by François Pinard.
63029 2000-01-16 Paul Eggert <eggert@twinsun.com>
63031 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63032 alert, backslash, formfeed, and vertical tab unnecessarily in
63033 shell quoting style.
63035 2000-01-16 Jim Meyering <meyering@lucent.com>
63037 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63038 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63039 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63040 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63042 2000-01-16 Jim Meyering <meyering@lucent.com>
63044 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63045 because the latter didn't work.
63047 2000-01-15 Jim Meyering <meyering@lucent.com>
63049 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63050 (AC_REPLACE_FUNCS): Add memcpy and memset.
63051 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63053 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63055 2000-01-12 Jim Meyering <meyering@lucent.com>
63057 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63058 (jm_PREREQ): Use it.
63059 (jm_PREREQ_READUTMP): New macro.
63060 (jm_PREREQ): Use it.
63062 2000-01-11 Paul Eggert <eggert@twinsun.com>
63064 Quote multibyte characters correctly.
63065 * m4/c-bs-a.m4: New file.
63066 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63067 (jm_PREREQ): Use it.
63069 2000-01-11 Paul Eggert <eggert@twinsun.com>
63071 * m4/uintmax_t.m4: Port to autoconf 2.13.
63073 2000-01-08 Jim Meyering <meyering@ascend.com>
63075 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63076 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63078 2000-01-04 Jim Meyering <meyering@ascend.com>
63080 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63081 jm_STRUCT_DIRENT_D_TYPE.
63082 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63083 jm_STRUCT_DIRENT_D_INO.
63084 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63086 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63088 * m4/utime.m4: Likewise.
63090 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63091 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63093 2000-01-03 Paul Eggert <eggert@twinsun.com>
63095 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63096 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63098 2000-01-02 Jim Meyering <meyering@ascend.com>
63100 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63101 remember if this is necessary.
63103 1999-12-26 Jim Meyering <meyering@ascend.com>
63105 * m4/jm-macros.m4: Use it here.
63106 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63108 1999-12-23 Jim Meyering <meyering@ascend.com>
63110 * m4/jm-macros.m4: Check for clock_gettime (moved from
63111 fileutils/configure.in)
63112 Check for gettimeofday.
63114 1999-12-20 Jim Meyering <meyering@ascend.com>
63116 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63117 autoconf-2.14a-1999-12-20.
63119 1999-12-19 Jim Meyering <meyering@ascend.com>
63121 * m4/lstat-slash.m4: New file.
63122 * m4/jm-macros.m4: Use the new macro:
63123 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63125 1999-12-07 Jim Meyering <meyering@ascend.com>
63127 * m4/perl.m4: Require that File::Compare be available, too.
63128 Too many systems seem to lack it.
63130 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63131 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63133 1999-11-18 Paul Eggert <eggert@twinsun.com>
63135 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63136 problem with the QNX 4.25 shell, which doesn't propagate exit
63137 status of failed commands inside shell assignments.
63139 1999-11-17 Jim Meyering <meyering@ascend.com>
63141 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63143 1999-11-07 Jim Meyering <meyering@ascend.com>
63145 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63147 1999-11-06 Jim Meyering <meyering@ascend.com>
63149 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63150 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63152 1999-11-05 Jim Meyering <meyering@ascend.com>
63154 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63155 configure.in of textutils, fileutils, and sh-utils into this one
63156 (shared between those packages) file.
63157 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63158 AC_STRUCT_ST_BLKSIZE.
63160 1999-11-03 Jim Meyering <meyering@ascend.com>
63162 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63163 of AC_CHECK_TYPE checks includes unistd.h.
63164 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63165 Suggestion from Akim Demaille.
63167 1999-10-30 Jim Meyering <meyering@ascend.com>
63169 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63171 * m4/ls-mntd-fs.m4: Likewise.
63172 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63173 * m4/jm-winsz1.m4: Likewise.
63175 * m4/const.m4: Remove file, since the fix made it into the experimental
63176 version of autoconf.
63177 * m4/mktime.m4: Likewise.
63179 * m4/check-type.m4: Remove file, now that the latest version of
63180 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63182 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63183 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63186 1999-10-04 Jim Meyering <meyering@ascend.com>
63188 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63190 1999-09-22 Paul Eggert <eggert@twinsun.com>
63192 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63193 2.95.1 bug with HP-UX 10.20.
63195 1999-09-17 Jim Meyering <meyering@ascend.com>
63197 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63198 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63199 due to missing strdup (against sh-utils-2.0).
63201 1999-08-29 Jim Meyering <meyering@ascend.com>
63203 * m4/jm-macros.m4: Require jm_BISON.
63204 * m4/bison.m4: New file.
63206 1999-08-17 Paul Eggert <eggert@twinsun.com>
63208 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63209 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63211 1999-08-05 Jim Meyering <meyering@ascend.com>
63213 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63214 to avoid conflicts with `conftest' on 8+3 filesystems.
63215 Suggestion from Eli Zaretskii.
63217 1999-08-04 Jim Meyering <meyering@ascend.com>
63219 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63220 fileutils and sh-utils (textutils's getline test was inadequate).
63221 (AM_FUNC_GETLINE): Run this test.
63222 (AC_CHECK_FUNCS): Check for getdelim.
63223 Reported by Bob Proulx.
63225 1999-08-02 Jim Meyering <meyering@ascend.com>
63227 * m4/jm-macros.m4: Add a comment.
63229 1999-08-01 Paul Eggert <eggert@twinsun.com>
63231 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63232 <inttypes.h> defines strtoumax as a macro (and not as a
63235 1999-08-01 Paul Eggert <eggert@twinsun.com>
63237 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63238 that we can shift, multiply and divide unsigned long long
63239 values; Ultrix cc can't do it.
63241 1999-08-01 Paul Eggert <eggert@twinsun.com>
63243 * m4/mktime.m4: New file, which is a preview of what should appear
63244 in the next public autoconf release.
63246 1999-08-01 Paul Eggert <eggert@twinsun.com>
63248 * m4/lfs.m4: Remove this file.
63249 * m4/largefile.m4: New file. It contains the old contents of
63250 lfs.m4, except that all names with prefix AC_LFS have been
63251 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63252 compatible with future autoconf versions. Also, some minor m4
63253 quoting problems have been fixed.
63255 1999-08-01 Paul Eggert <eggert@twinsun.com>
63257 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63258 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63259 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63260 and simplify the shell code.
63262 1999-08-01 Jim Meyering <meyering@ascend.com>
63264 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63267 1999-07-20 Jim Meyering <meyering@ascend.com>
63269 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63271 1999-07-15 Jim Meyering <meyering@ascend.com>
63273 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63275 1999-05-22 Jim Meyering <meyering@ascend.com>
63277 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63279 1999-05-20 Jim Meyering <meyering@ascend.com>
63281 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63282 Add a colon after each `then' in case $4 is empty.
63284 1999-05-16 Jim Meyering <meyering@ascend.com>
63286 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63288 1999-05-10 Jim Meyering <meyering@ascend.com>
63290 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63292 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63295 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63297 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63299 1999-05-04 Paul Eggert <eggert@twinsun.com>
63301 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63302 not CPPFLAGS, so that linking works correctly in IRIX.
63304 1999-04-30 Paul Eggert <eggert@twinsun.com>
63306 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63308 1999-04-20 Paul Eggert <eggert@twinsun.com>
63310 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63311 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63312 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63313 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63314 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63316 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63318 1999-04-20 Jim Meyering <meyering@ascend.com>
63320 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63321 AC_REPLACE xstroull if necessary. From Paul Eggert.
63322 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63324 1999-04-18 Jim Meyering <meyering@ascend.com>
63326 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63327 * m4/jm-macros.m4: Use it.
63329 1999-04-06 Jim Meyering <meyering@ascend.com>
63331 * m4/strftime.m4: Remove test for %f.
63333 1999-03-29 Jim Meyering <meyering@ascend.com>
63335 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63336 superset of the AC_TYPE_* checks in the textutils, fileutils,
63337 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63340 1999-03-28 Jim Meyering <meyering@ascend.com>
63342 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63343 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63344 replaced e.g., in the *.sh files of the sh-utils.
63346 1999-03-20 Jim Meyering <meyering@ascend.com>
63348 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63349 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63350 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63352 1999-03-19 Jim Meyering <meyering@ascend.com>
63354 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63356 1999-03-12 Jim Meyering <meyering@ascend.com>
63358 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63360 1999-03-07 Jim Meyering <meyering@ascend.com>
63362 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63365 1999-02-17 Jim Meyering <meyering@ascend.com>
63367 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63368 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63370 1999-02-07 Jim Meyering <meyering@ascend.com>
63372 * m4/group-member.m4: New file -- extracted from sh-utils'
63375 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63376 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63378 1999-02-06 Jim Meyering <meyering@ascend.com>
63380 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63381 * m4/fnmatch.m4: Likewise.
63382 * m4/getgroups.m4: Likewise.
63383 * m4/lstat.m4: Likewise.
63384 * m4/malloc.m4: Likewise.
63385 * m4/putenv.m4: Likewise.
63386 * m4/realloc.m4: Likewise.
63387 * m4/regex.m4: Likewise.
63388 * m4/stat.m4: Likewise.
63389 * m4/strftime.m4: Likewise.
63390 Suggestion from Alain Magloire.
63392 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63393 * m4/fnmatch.m4: Likewise.
63394 * m4/getgroups.m4: Likewise.
63395 * m4/getline.m4: Likewise.
63396 * m4/lstat.m4: Likewise.
63397 * m4/malloc.m4: Likewise.
63398 * m4/memcmp.m4: Likewise.
63399 * m4/putenv.m4: Likewise.
63400 * m4/realloc.m4: Likewise.
63401 * m4/regex.m4: Likewise.
63402 * m4/stat.m4: Likewise.
63403 * m4/strftime.m4: Likewise.
63404 Suggestion from Alain Magloire.
63406 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63409 * m4/regex.m4: Add a run-time Test for proper operation of
63410 re_compile_pattern.
63412 1999-01-31 Jim Meyering <meyering@ascend.com>
63414 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63416 1999-01-30 Jim Meyering <meyering@ascend.com>
63418 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63420 * m4/jm-mktime.m4: Make this a wrapper around the official
63421 AM_FUNC_MKTIME rather than my private copy, now that the official one
63423 * m4/mktime.m4: Remove file.
63425 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63426 * m4/uptime.m4: Likewise.
63427 * m4/uintmax_t.m4: Likewise.
63429 1999-01-28 Jim Meyering <meyering@ascend.com>
63431 * m4/jm-macros.m4: Use jm_AFS.
63432 * m4/afs.m4: New file (from fileutils' configure.in).
63434 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63435 * m4/chown.m4: Likewise.
63436 * m4/d-ino.m4: Likewise.
63437 * m4/d-type.m4: Likewise.
63438 * m4/fnmatch.m4: Likewise.
63439 * m4/getgroups.m4: Likewise.
63440 * m4/gettext.m4: Likewise.
63441 * m4/jm-mktime.m4: Likewise.
63442 * m4/jm-winsz2.m4: Likewise.
63443 * m4/lcmessage.m4: Likewise.
63444 * m4/ls-mntd-fs.m4: Likewise.
63445 * m4/malloc.m4: Likewise.
63446 * m4/memcmp.m4: Likewise.
63447 * m4/putenv.m4: Likewise.
63448 * m4/realloc.m4: Likewise.
63449 * m4/st_mtim.m4: Likewise.
63450 * m4/strftime.m4: Likewise.
63452 1999-01-16 Jim Meyering <meyering@ascend.com>
63454 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63455 (ARGMATCH_DIE_DECL): Define.
63457 1999-01-12 Jim Meyering <meyering@ascend.com>
63459 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63460 Reported by Lars Hecking.
63462 1999-01-10 Jim Meyering <meyering@ascend.com>
63464 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63466 * m4/inttypes_h.m4: Likewise.
63467 * m4/lstat.m4: Likewise.
63468 * m4/malloc.m4: Likewise.
63469 * m4/readdir.m4: Likewise.
63470 * m4/realloc.m4: Likewise.
63471 * m4/st_dm_mode.m4: Likewise.
63472 * m4/stat.m4: Likewise.
63473 * m4/utimbuf.m4: Likewise.
63474 * m4/utimes.m4: Likewise.
63476 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63477 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63478 comments in config.h.in are meaningful.
63480 * m4/jm-macros.m4: Require autoconf-2.13 here.
63482 * m4/regex.m4: By default, don't use the included regex.c on systems
63483 with glibc 2. Suggestion from Uli Drepper.
63485 1999-01-02 Jim Meyering <meyering@ascend.com>
63487 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63489 1998-12-18 Jim Meyering <meyering@ascend.com>
63491 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63492 Based on a suggestion from Lars Hecking.
63494 1998-11-16 Paul Eggert <eggert@twinsun.com>
63496 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63498 1998-11-16 Jim Meyering <meyering@ascend.com>
63500 * m4/lfs.m4: Double-quote the `uname...` expression.
63502 1998-11-14 Jim Meyering <meyering@ascend.com>
63504 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63505 * m4/stat.m4: Likewise.
63507 1998-11-03 Jim Meyering <meyering@ascend.com>
63509 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63510 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63512 1998-10-18 Jim Meyering <meyering@ascend.com>
63514 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63516 1998-10-17 Jim Meyering <meyering@ascend.com>
63518 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63519 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63520 calls for those previously hard-coded headers. Instead, take a new
63522 (jm_CHECK_DECLARATIONS): Reflect interface change.
63523 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63524 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63526 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63528 1998-10-14 Jim Meyering <meyering@ascend.com>
63530 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63531 instead of "TZ=America/Vancouver". From Paul Eggert.
63533 1998-10-11 Jim Meyering <meyering@ascend.com>
63535 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63536 This adds a test for a recently added compatibility fix for mktime.c.
63537 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63539 1998-09-27 Jim Meyering <meyering@ascend.com>
63541 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63543 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63544 ../configure.in, including a change from Gordon Matzigkeit to allow
63545 cross-compiling for the Hurd.
63547 * m4/glibc.m4: New file/macro to test for the GNU C Library
63548 versions 1 and 2. From Gordon Matzigkeit.
63551 1998-09-21 Jim Meyering <meyering@ascend.com>
63553 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63555 1998-08-18 Paul Eggert <eggert@twinsun.com>
63557 Port nanosecond-resolution times to UnixWare 2.1.2 and
63558 pedantic Solaris 2.6.
63560 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63562 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63563 Generate name of ns member, instead of just 1 or undef.
63564 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63566 1998-08-15 Jim Meyering <meyering@ascend.com>
63568 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63569 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63570 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63571 instead of jm_TYPE_SSIZE_T.
63573 1998-08-12 Jim Meyering <meyering@ascend.com>
63575 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63577 1998-08-02 Jim Meyering <meyering@ascend.com>
63579 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63580 in acconfig.h manually.
63582 1998-07-31 Paul Eggert <eggert@twinsun.com>
63584 * m4/st_mtim.m4: New file.
63586 1998-07-28 Jim Meyering <meyering@ascend.com>
63588 * m4/utimes.m4: Undef stat.
63590 1998-07-25 Jim Meyering <meyering@ascend.com>
63592 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63593 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63595 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63597 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63598 uid and gid actually remain unchanged.
63600 1998-07-07 Jim Meyering <meyering@ascend.com>
63602 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63604 1998-07-04 Jim Meyering <meyering@ascend.com>
63606 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63607 to prove that this macro can be used in packages without regex.c.
63609 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63611 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63614 1998-07-03 Jim Meyering <meyering@ascend.com>
63616 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63618 * m4/gettext.m4: New file -- from gettext-0.10.35.
63619 * m4/lcmessage.m4: Likewise.
63620 * m4/progtest.m4: Likewise.
63622 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63623 * m4/jm-macros.m4: Require the new macro.
63625 1998-06-29 Jim Meyering <meyering@ascend.com>
63627 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63628 for the definition of NGROUPS (used in a system header included
63631 1998-06-28 Jim Meyering <meyering@ascend.com>
63633 * m4/ls-mntd-fs.m4: New file.
63634 * m4/fstypename.m4: New file.
63636 * m4/jm-macros.m4: Require the new macro.
63637 * m4/jm-glibc-io.m4: New file.
63639 1998-05-19 Jim Meyering <meyering@ascend.com>
63641 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63642 * m4/lchown.m4: New file.
63644 * m4/Makefile.am.in: New file.
63645 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63647 1998-05-14 Jim Meyering <meyering@ascend.com>
63649 * m4/Makefile.am (EXTRA_DIST): Add them.
63650 * m4/jm-macros.m4: New file.
63651 * m4/utimbuf.m4: New file.
63653 1998-05-12 Jim Meyering <meyering@ascend.com>
63655 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63657 1998-05-11 Jim Meyering <meyering@ascend.com>
63659 * m4/isc-posix.m4: New file.
63661 1998-05-10 Jim Meyering <meyering@ascend.com>
63663 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63665 1998-05-09 Jim Meyering <meyering@ascend.com>
63667 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63668 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63671 * m4/ssize_t.m4: New file.
63672 * m4/mktime.m4: Remove file -- the new automake has this now.
63674 1998-04-26 Jim Meyering <meyering@ascend.com>
63676 * m4/assert.m4: New file.
63677 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63679 1998-04-05 Jim Meyering <meyering@ascend.com>
63681 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63682 (jm_PREREQ): Use it here.
63684 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63686 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63689 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63691 * m4/prereq.m4: New file.
63692 * m4/error.m4: New file.
63693 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63695 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63697 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63698 cache-check for the same variable -- that defeated the purpose of
63699 the test; the test program was never run. This was a problem only
63700 on systems with losing getline functions -- HP-UX 10.20 is one.
63701 Reported by Bjorn Helgaas.
63703 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63705 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63707 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63709 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63711 * m4/const.m4: New file. Use an initializer in this declaration
63712 typedef int charset[2]; const charset x;
63713 Reported by Bob Glickstein.
63715 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63717 * m4/chown.m4: Fix reversed types on -1 args to chown.
63720 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63722 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63723 Add lseek and memchr.
63725 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63726 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63727 have a 20-character limit on names.
63729 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63731 * m4/inttypes_h.m4: New file.
63732 * m4/uintmax_t.m4: New file.
63733 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63742 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63744 Copying and distribution of this file, with or without
63745 modification, are permitted provided the copyright notice
63746 and this notice are preserved.